params 2 and 3 of reg_set_between_p
[gcc.git] / gcc / ChangeLog
1 2014-09-12 David Malcolm <dmalcolm@redhat.com>
2
3 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
4 with NULL when dealing with an insn.
5 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
6 from rtx to rtx_insn *.
7 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
8 const_rtx to const rtx_insn *.
9 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
10
11 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
12
13 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
14 assert.
15
16 2014-09-12 Joseph Myers <joseph@codesourcery.com>
17
18 * target.def (libgcc_floating_mode_supported_p): New hook.
19 * targhooks.c (default_libgcc_floating_mode_supported_p): New
20 function.
21 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
22 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
23 (LIBGCC2_HAS_TF_MODE): Remove.
24 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
25 * doc/tm.texi: Regenerate.
26 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
27 machine mode.
28 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
29 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
30 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
31 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
32 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
33 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
34 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
35 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
36 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
37 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
38 function.
39 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
40 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
41 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
42 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
43 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
44 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
45 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
46 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
47 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
48 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
49 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
50 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
51 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
52 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
53 Remove.
54 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
55 New macro.
56 (ia64_libgcc_floating_mode_supported_p): New function.
57 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
58 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
59 (IA64_NO_LIBGCC_TFMODE): Define.
60 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
61 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
62 macro.
63 (pdp11_scalar_mode_supported_p): New function.
64 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
65 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
66 2014-09-12 Richard Biener <rguenther@suse.de>
67
68 PR middle-end/63237
69 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
70
71 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
72
73 * tree.c (integer_each_onep): New function.
74 * tree.h (integer_each_onep): Declare it.
75 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
76 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
77 (X & 1) == 0 for vector and complex.
78
79 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
80
81 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
82 for A57.
83 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
84 cost to spilling from integer to FP registers.
85
86 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
87
88 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
89 move handling.
90 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
91 are now handled correctly.
92
93 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
94
95 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
96 handling of CALLER_SAVE_REGS and POINTER_REGS.
97
98 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
99
100 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
101 the number of hard registers.
102
103 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
104 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
105 Anna Tikhonova <anna.tikhonova@intel.com>
106 Ilya Tocar <ilya.tocar@intel.com>
107 Andrey Turetskiy <andrey.turetskiy@intel.com>
108 Ilya Verbin <ilya.verbin@intel.com>
109 Kirill Yukhin <kirill.yukhin@intel.com>
110 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
111
112 * config/i386/sse.md
113 (define_mode_iterator VI48_AVX512VL): New.
114 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
115 "avx512f_vternlog<mode>_maskz" and update mode iterator.
116 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
117 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
118 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
119 "avx512f_vternlog<mode>_mask" and update mode iterator.
120 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
121 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
122 iterator.
123 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
124 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
125 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
126 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
127 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
128 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
129
130 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
131 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
132 Anna Tikhonova <anna.tikhonova@intel.com>
133 Ilya Tocar <ilya.tocar@intel.com>
134 Andrey Turetskiy <andrey.turetskiy@intel.com>
135 Ilya Verbin <ilya.verbin@intel.com>
136 Kirill Yukhin <kirill.yukhin@intel.com>
137 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
138
139 * config/i386/sse.md (VI128_256): Delete.
140 (define_mode_iterator VI124_256): New.
141 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
142 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
143 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
144 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
145 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
146 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
147 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
148 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
149 iterator.
150 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
151 in presence of AVX-512.
152
153 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
154 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
155 Anna Tikhonova <anna.tikhonova@intel.com>
156 Ilya Tocar <ilya.tocar@intel.com>
157 Andrey Turetskiy <andrey.turetskiy@intel.com>
158 Ilya Verbin <ilya.verbin@intel.com>
159 Kirill Yukhin <kirill.yukhin@intel.com>
160 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
161
162 * config/i386/sse.md
163 (define_expand "<avx512>_gathersi<mode>"): Rename from
164 "avx512f_gathersi<mode>".
165 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
166 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
167 (define_expand "<avx512>_gatherdi<mode>"): Rename from
168 "avx512f_gatherdi<mode>".
169 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
170 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
171 wide versions.
172 (define_expand "<avx512>_scattersi<mode>"): Rename from
173 "avx512f_scattersi<mode>".
174 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
175 (define_expand "<avx512>_scatterdi<mode>"): Rename from
176 "avx512f_scatterdi<mode>".
177 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
178
179 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
180
181 * ira.h (ira_finish_once): Delete.
182 * ira-int.h (target_ira_int::~target_ira_int): Declare.
183 (target_ira_int::free_ira_costs): Likewise.
184 (target_ira_int::free_register_move_costs): Likewise.
185 (ira_finish_costs_once): Delete.
186 * ira.c (free_register_move_costs): Replace with...
187 (target_ira_int::free_register_move_costs): ...this new function.
188 (target_ira_int::~target_ira_int): Define.
189 (ira_init): Call free_register_move_costs as a member function rather
190 than a global function.
191 (ira_finish_once): Delete.
192 * ira-costs.c (free_ira_costs): Replace with...
193 (target_ira_int::free_ira_costs): ...this new function.
194 (ira_init_costs): Call free_ira_costs as a member function rather
195 than a global function.
196 (ira_finish_costs_once): Delete.
197 * target-globals.c (target_globals::~target_globals): Call the
198 target_ira_int destructor.
199 * toplev.c: Include lra.h.
200 (finalize): Call lra_finish_once rather than ira_finish_once.
201
202 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
203
204 * common.opt (flto-odr-type-merging): New flag.
205 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
206 (types_same_for_odr): Likewise.
207 (odr_subtypes_equivalent_p): Likewise.
208 (add_type_duplicate): Do not walk type variants.
209 (register_odr_type): New function.
210 * ipa-utils.h (register_odr_type): Declare.
211 (odr_type_p): New function.
212 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
213 TYPE_DECLs
214 * doc/invoke.texi (-flto-odr-type-merging): Document.
215 * tree.c (need_assembler_name_p): Compute ODR names when asked
216 for it.
217 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
218
219 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
220
221 PR target/63228
222 * config/i386/i386.c (ix86_option_override_internal): Also turn
223 off OPTION_MASK_ABI_X32 for -m16.
224
225 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
226
227 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
228 GPR instead of P.
229
230 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
231
232 PR target/58757
233 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
234 Directly forward to __*_DENORM_MIN__.
235
236 2014-09-11 David Malcolm <dmalcolm@redhat.com>
237
238 * rtl.h (LABEL_REF_LABEL): New macro.
239
240 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
241 of XEXP (, 0), where we know that we have a LABEL_REF.
242 * cfgbuild.c (make_edges): Likewise.
243 (purge_dead_tablejump_edges): Likewise.
244 * cfgexpand.c (convert_debug_memory_address): Likewise.
245 * cfgrtl.c (patch_jump_insn): Likewise.
246 * combine.c (distribute_notes): Likewise.
247 * cse.c (hash_rtx_cb): Likewise.
248 (exp_equiv_p): Likewise.
249 (fold_rtx): Likewise.
250 (check_for_label_ref): Likewise.
251 * cselib.c (rtx_equal_for_cselib_1): Likewise.
252 (cselib_hash_rtx): Likewise.
253 * emit-rtl.c (mark_label_nuses): Likewise.
254 * explow.c (convert_memory_address_addr_space): Likewise.
255 * final.c (output_asm_label): Likewise.
256 (output_addr_const): Likewise.
257 * gcse.c (add_label_notes): Likewise.
258 * genconfig.c (walk_insn_part): Likewise.
259 * genrecog.c (validate_pattern): Likewise.
260 * ifcvt.c (cond_exec_get_condition): Likewise.
261 (noce_emit_store_flag): Likewise.
262 (noce_get_alt_condition): Likewise.
263 (noce_get_condition): Likewise.
264 * jump.c (maybe_propagate_label_ref): Likewise.
265 (mark_jump_label_1): Likewise.
266 (redirect_exp_1): Likewise.
267 (rtx_renumbered_equal_p): Likewise.
268 * lra-constraints.c (operands_match_p): Likewise.
269 * reload.c (operands_match_p): Likewise.
270 (find_reloads): Likewise.
271 * reload1.c (set_label_offsets): Likewise.
272 * reorg.c (get_branch_condition): Likewise.
273 * rtl.c (rtx_equal_p_cb): Likewise.
274 (rtx_equal_p): Likewise.
275 * rtlanal.c (reg_mentioned_p): Likewise.
276 (rtx_referenced_p): Likewise.
277 (get_condition): Likewise.
278 * sched-vis.c (print_value): Likewise.
279 * varasm.c (const_hash_1): Likewise.
280 (compare_constant): Likewise.
281 (const_rtx_hash_1): Likewise.
282 (output_constant_pool_1): Likewise.
283
284 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
285
286 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
287 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
288 instead of minus.
289 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
290 cr6_test_for_lt_reverse): Ditto.
291
292 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
293
294 PR c++/61489
295 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
296
297 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
298
299 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
300 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
301 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
302 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
303 Delete.
304
305 (aarch64_fold_builtin): Remove all reinterpret cases.
306
307 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
308
309 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
310
311 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
312 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
313 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
314 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
315 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
316 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
317 aarch64_reinterpretv2df<mode>): Delete.
318
319 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
320
321 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
322 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
323 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
324 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
325 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
326 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
327 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
328 vreinterpret_u32_f64): Use cast.
329
330 * config/aarch64/iterators.md (VD_RE): Delete.
331
332 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
333
334 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
335 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
336 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
337 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
338 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
339 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
340 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
341 Replace inline assembler with __aarch64_vset_lane_any.
342
343 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
344
345 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
346 types.
347 (vmull_high_lane_s32): Likewise.
348 (vmull_high_lane_u16): Likewise.
349 (vmull_high_lane_u32): Likewise.
350
351 2014-09-11 Jason Merrill <jason@redhat.com>
352
353 PR c++/58678
354 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
355
356 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
357
358 PR target/63223
359 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
360 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
361 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
362
363 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
364 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
365 Anna Tikhonova <anna.tikhonova@intel.com>
366 Ilya Tocar <ilya.tocar@intel.com>
367 Andrey Turetskiy <andrey.turetskiy@intel.com>
368 Ilya Verbin <ilya.verbin@intel.com>
369 Kirill Yukhin <kirill.yukhin@intel.com>
370 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
371
372 * config/i386/sse.md
373 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
374 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
375 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
376 New.
377 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
378 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
379 iterator.
380 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
381 New.
382 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
383 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
384 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
385 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
386 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
387 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
388 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
389 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
390 iterator.
391 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
392 New.
393 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
394 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
395 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
396
397 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
398
399 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
400 to access removed nodes.
401
402 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
403
404 PR tree-optimization/63186
405 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
406 (mark_nonssa_use): Likewise.
407 (verify_non_ssa_vars): Verify all header blocks for label
408 definitions.
409
410 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
411 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
412 Anna Tikhonova <anna.tikhonova@intel.com>
413 Ilya Tocar <ilya.tocar@intel.com>
414 Andrey Turetskiy <andrey.turetskiy@intel.com>
415 Ilya Verbin <ilya.verbin@intel.com>
416 Kirill Yukhin <kirill.yukhin@intel.com>
417 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
418
419 * config/i386/sse.md
420 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
421 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
422 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
423 "<avx2_avx512f>_permvar<mode><mask_name>".
424 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
425 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
426 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
427 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
428 Ditto.
429 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
430 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
431 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
432 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
433
434 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
435
436 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
437 V2DF, V4SF, DF, and DI modes.
438 (vsx_fmav2df2): Likewise.
439 (vsx_float_fix_<mode>2): Likewise.
440 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
441
442 2014-09-10 Xinliang David Li <davidxl@google.com>
443
444 PR target/63209
445 * config/arm/arm.md (movcond_addsi): Handle case where source
446 and target operands are the same.
447
448 2014-09-10 David Malcolm <dmalcolm@redhat.com>
449
450 * final.c (this_is_asm_operands): Strengthen this variable from
451 rtx to const rtx_insn *.
452 * output.h (this_is_asm_operands): Likewise.
453 * rtl-error.c (location_for_asm): Strengthen param "insn" from
454 const_rtx to const rtx_insn *.
455 (diagnostic_for_asm): Likewise.
456 * rtl-error.h (error_for_asm): Likewise.
457 (warning_for_asm): Likewise.
458
459 2014-09-10 David Malcolm <dmalcolm@redhat.com>
460
461 * genextract.c (print_header): When writing out insn_extract to
462 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
463 * recog.h (insn_extract): Strengthen the param from rtx to
464 rtx_insn *.
465
466 2014-09-10 Mike Stump <mikestump@comcast.net>
467
468 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
469 8.6.1.
470
471 2014-09-10 Martin Jambor <mjambor@suse.cz>
472
473 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
474 (analyze): Do not set analyze flag if expand_thunk returns false;.
475 (create_wrapper): Likewise.
476 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
477
478 2014-09-10 Martin Jambor <mjambor@suse.cz>
479
480 PR ipa/61654
481 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
482 new decl properly. Analyze the new thunk if it is expanded.
483
484 2014-09-10 Andreas Schwab <schwab@suse.de>
485
486 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
487 [USED_FOR_TARGET]: Define.
488
489 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
490
491 * config/mips/mips.c (mips_secondary_reload_class): Handle
492 regno < 0 case.
493
494 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
495
496 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
497 assignment.
498
499 2014-09-10 Jakub Jelinek <jakub@redhat.com>
500
501 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
502 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
503 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
504 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
505 flag_delete_null_pointer_checks for them.
506 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
507 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
508 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
509 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
510 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
511 stmt's iterator.
512 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
513 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
514 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
515 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
516 * doc/invoke.texi (-fsanitize=nonnull-attribute,
517 -fsanitize=returns-nonnull-attribute): Document.
518
519 * ubsan.h (struct ubsan_mismatch_data): Removed.
520 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
521 * ubsan.c (ubsan_source_location): For unknown locations,
522 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
523 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
524 Allow more than one location and arbitrary extra arguments passed
525 in ... instead of through MISMATCH pointer.
526 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
527 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
528 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
529 callers.
530
531 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
532 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
533 Anna Tikhonova <anna.tikhonova@intel.com>
534 Ilya Tocar <ilya.tocar@intel.com>
535 Andrey Turetskiy <andrey.turetskiy@intel.com>
536 Ilya Verbin <ilya.verbin@intel.com>
537 Kirill Yukhin <kirill.yukhin@intel.com>
538 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
539
540 * config/i386/sse.md
541 (define_mode_iterator VI48F): New.
542 (define_insn "<avx512>_compress<mode>_mask"): Rename from
543 "avx512f_compress<mode>_mask" and update mode iterator.
544 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
545 "avx512f_compressstore<mode>_mask" and update mode iterator.
546 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
547 "avx512f_expand<mode>_maskz" and update mode iterator.
548 (define_insn "<avx512>_expand<mode>_mask"): Rename from
549 "avx512f_expand<mode>_mask" and update mode iterator.
550
551 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
552 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
553 Anna Tikhonova <anna.tikhonova@intel.com>
554 Ilya Tocar <ilya.tocar@intel.com>
555 Andrey Turetskiy <andrey.turetskiy@intel.com>
556 Ilya Verbin <ilya.verbin@intel.com>
557 Kirill Yukhin <kirill.yukhin@intel.com>
558 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
559
560 * config/i386/i386.c
561 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
562 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
563 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
564 avx512dq_rangepv4sf_mask.
565 * config/i386/sse.md
566 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
567 UNSPEC_RANGE.
568 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
569 (define_insn "reduces<mode>"): Ditto.
570 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
571 Ditto.
572 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
573 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
574 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
575
576 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
577 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
578 Anna Tikhonova <anna.tikhonova@intel.com>
579 Ilya Tocar <ilya.tocar@intel.com>
580 Andrey Turetskiy <andrey.turetskiy@intel.com>
581 Ilya Verbin <ilya.verbin@intel.com>
582 Kirill Yukhin <kirill.yukhin@intel.com>
583 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
584
585 * config/i386/i386.c
586 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
587 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
588 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
589 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
590 avx512vl_getmantv2df_mask.
591 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
592 avx512f_vgetmantv4sf_round.
593 * config/i386/sse.md
594 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
595 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
596 mode iterator.
597 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
598 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
599 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
600 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
601 iterator..
602 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
603 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
604 update mode iterator.
605 (define_expand
606 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
607 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
608 mode iterator.
609 (define_insn
610 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
611 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
612 update mode iterator.
613 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
614 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
615 iterator..
616 (define_insn
617 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
618 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
619 mode iterator..
620 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
621 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
622 update mode iterator.
623 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
624 "avx512f_getmant<mode><round_saeonly_name>".
625
626 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
627
628 PR ipa/63166
629 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
630
631 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
632 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
633 Anna Tikhonova <anna.tikhonova@intel.com>
634 Ilya Tocar <ilya.tocar@intel.com>
635 Andrey Turetskiy <andrey.turetskiy@intel.com>
636 Ilya Verbin <ilya.verbin@intel.com>
637 Kirill Yukhin <kirill.yukhin@intel.com>
638 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
639
640 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
641 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
642 (define_mode_iterator FMAMODE_AVX512): New.
643 (define_mode_iterator FMAMODE): Remove conditions.
644 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
645 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
646 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
647 mode iterator.
648 (define_mode_iterator FMAMODE_NOVF512): Remove.
649 (define_insn "*fma_fmadd_<mode>"): Rename from
650 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
651 FMAMODE mode iterator.
652 (define_mode_iterator VF_SF_AVX512VL): New.
653 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
654 Use VF_SF_AVX512VL mode iterator.
655 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
656 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
657 iterator.
658 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
659 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
660 iterator.
661 (define_insn "*fma_fmsub_<mode>"): Rename from
662 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
663 FMAMODE mode iterator.
664 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
665 Use VF_SF_AVX512VL mode iterator.
666 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
667 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
668 iterator.
669 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
670 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
671 iterator.
672 (define_insn "*fma_fnmadd_<mode>"): Rename from
673 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
674 use FMAMODE mode iterator.
675 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
676 Use VF_SF_AVX512VL mode iterator.
677 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
678 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
679 iterator.
680 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
681 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
682 iterator.
683 (define_insn "*fma_fnmsub_<mode>"): Rename from
684 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
685 FMAMODE mode iterator.
686 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
687 Use VF_SF_AVX512VL mode iterator.
688 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
689 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
690 iterator.
691 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
692 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
693 iterator.
694 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
695 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
696 use VF_AVX512VL mode iterator.
697 (define_insn "*fma_fmaddsub_<mode>"): Rename from
698 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
699 remove subst usage.
700 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
701 Use VF_SF_AVX512VL mode iterator.
702 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
703 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
704 iterator.
705 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
706 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
707 iterator.
708 (define_insn "*fma_fmsubadd_<mode>"): Rename from
709 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
710 remove usage of subst.
711 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
712 Use VF_SF_AVX512VL mode iterator.
713 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
714 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
715 iterator.
716 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
717 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
718 iterator.
719
720 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
721
722 Revert r213751:
723 * calls.c (precompute_arguments): Check
724 promoted_for_signed_and_unsigned_p and set the promoted mode.
725 (promoted_for_signed_and_unsigned_p): New function.
726 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
727 and set the promoted mode.
728 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
729 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
730 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
731
732 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
733
734 * opth-gen.awk: Generate mapping from cpp message reasons to the
735 options that enable them.
736 * doc/options.texi (CppReason): Document.
737
738 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
739
740 * doc/invoke.texi (Wnormalized=): Update.
741
742 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
743
744 PR target/63195
745 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
746 operands. Split off the constant operand alternative to ...
747 (*bool<mode>3_imm): New.
748
749 2014-09-09 David Malcolm <dmalcolm@redhat.com>
750
751 * rtl.h (single_set_2): Strengthen first param from const_rtx to
752 const rtx_insn *, and move prototype to above...
753 (single_set): ...this. Convert this from a macro to an inline
754 function, enforcing the requirement that the param is a const
755 rtx_insn *.
756 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
757
758 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
759 Strengthen both params from rtx to rtx_insn *.
760 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
761 Likewise; introduce locals "producer_set", "consumer_set", using
762 them in place of "producer" and "consumer" when dealing with SET
763 rather than insn.
764 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
765 when invoking single_set in region guarded by INSN_P.
766 (avr_out_bitop): Likewise.
767 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
768 region guarded by GET_CODE check, using methods to strengthen
769 local "this_insn" from rtx to rtx_insn *, and for clarity.
770 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
771 Strengthen local "insn" from rtx to rtx_insn *.
772 (define_insn_and_split "xload<mode>_A"): Likewise.
773 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
774 "insn".
775 (find_load): Likewise for return type.
776 (workaround_speculation): Likewise for both locals named
777 "load_insn".
778 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
779 local "cc0_user".
780 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
781 for local "prev".
782 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
783 param 2.
784 * config/h8300/h8300.c (notice_update_cc): Likewise.
785 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
786 "insn" and "dep_insn".
787 (exact_store_load_dependency): Likewise for both params.
788 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
789 since this now clashes with inline function. Instead, delay
790 calling single_set until the point where its needed, and then
791 assign the result to "compare_set" and rework the conditional that
792 follows.
793 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
794 local "last" from rtx to rtx_insn *.
795 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
796 second param.
797 (mips_store_data_bypass_p): Likewise for both params.
798 * config/mips/mips.c (mips_load_store_insns): Likewise for second
799 param.
800 (mips_store_data_bypass_p): Likewise for both params.
801 (mips_orphaned_high_part_p): Likewise for param "insn".
802 * config/mn10300/mn10300.c (extract_bundle): Likewise.
803 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
804 Introduce local rtx "insn2_pat".
805 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
806 "ninsn".
807 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
808 Introduce local rtx "set", using it in place of "insn" for the
809 result of single_set. This appears to fix a bug, since the call
810 to find_regno_note on a SET does nothing.
811 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
812 params from rtx to rtx_insn *.
813 (set_to_load_agen): Likewise.
814 * config/s390/s390.c (s390_label_align): Likewise for local
815 "prev_insn". Introduce new rtx locals "set" and "src", using
816 them in place of "prev_insn" for the results of single_set
817 and SET_SRC respectively.
818 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
819 Introduce new rtx local "set" using in place of "jump" for the
820 result of single_set. Use SET_SRC (set) rather than plain
821 XEXP (set, 1).
822 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
823 rtx to rtx_insn *.
824 (noncall_uses_reg): Likewise.
825 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
826 guarded by GET_CODE check, using its methods for clarity, and to
827 enable strengthening local "this_insn" from rtx to rtx_insn *.
828 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
829 "insn" from rtx to rtx_insn *.
830 (define_expand "umulhisi3"): Likewise.
831 (define_expand "smulsi3_highpart"): Likewise.
832 (define_expand "umulsi3_highpart"): Likewise.
833 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
834 local "after". Replace GET_CODE check with a dyn_cast,
835 introducing new local rtx_sequence * "seq", using insn method for
836 typesafety.
837
838 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
839 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
840 place of "insn" once we're dealing with patterns rather than the
841 input insn.
842 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
843 (scan_trace): Likewise for local "elt", updating lookups within
844 sequence to use insn method rather than element method.
845 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
846 to rtx_insn *.
847 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
848 * ifcvt.c (noce_try_abs): Likewise for local "insn".
849 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
850 invoking single_set.
851 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
852 "insn" from rtx to rtx_insn *.
853 (skip_usage_debug_insns): Likewise for return type, adding a
854 checked cast.
855 (check_secondary_memory_needed_p): Likewise for local "insn".
856 (inherit_reload_reg): Likewise.
857 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
858 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
859 checked casts.
860 (store_data_bypass_p): Likewise for both params.
861 (if_test_bypass_p): Likewise.
862 * recog.h (store_data_bypass_p): Likewise for both params.
863 (if_test_bypass_p): Likewise.
864 * reload.c (find_equiv_reg): Likewise for local "where".
865 * reorg.c (delete_jump): Likewise for param "insn".
866 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
867 to const rtx_insn *.
868 * store-motion.c (replace_store_insn): Likewise for param "del".
869 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
870 and use its methods for clarity, and to strengthen local "del"
871 from rtx to rtx_insn *.
872 (build_store_vectors): Use insn method of "st" when calling
873 replace_store_insn for typesafety and clarity.
874
875 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
876
877 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
878 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
879 on how to make it legal in future.
880
881 2014-09-09 David Malcolm <dmalcolm@redhat.com>
882
883 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
884 to rtx_insn *.
885 (restinsn): Likewise.
886 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
887 Likewise for param.
888 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
889 Likewise.
890 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
891 first param.
892 (arc_hazard): Likewise for both params.
893 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
894 checked casts to rtx_sequence * and uses of the insn method for
895 type-safety.
896 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
897 (arc_adjust_insn_length): Likewise for param "insn".
898 (struct insn_length_parameters_s): Likewise for first param of
899 "get_variants" callback field.
900 (arc_get_insn_variants): Likewise for first param and local
901 "inner". Replace a check of GET_CODE with a dyn_cast to
902 rtx_sequence *, using methods for type-safety and clarity.
903 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
904 rtx_sequence * and uses of the insn method for type-safety when
905 invoking arc_adjust_insn_length.
906 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
907 for param.
908 (arm_address_offset_is_imm): Likewise.
909 (struct tune_params): Likewise for params 1 and 3 of the
910 "sched_adjust_cost" callback field.
911 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
912 params 1 and 3 ("insn" and "dep").
913 (xscale_sched_adjust_cost): Likewise.
914 (fa726te_sched_adjust_cost): Likewise.
915 (cortexa7_older_only): Likewise for param "insn".
916 (cortexa7_younger): Likewise.
917 (arm_attr_length_move_neon): Likewise.
918 (arm_address_offset_is_imm): Likewise.
919 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
920 * config/avr/avr.c (avr_notice_update_cc): Likewise.
921 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
922 (workaround_speculation): Likewise for local "last_condjump".
923 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
924 (shadow_or_blockage_p): Likewise.
925 (get_unit_reqs): Likewise.
926 (get_unit_operand_masks): Likewise.
927 (c6x_registers_update): Likewise.
928 (returning_call_p): Likewise.
929 (can_use_callp): Likewise.
930 (convert_to_callp): Likewise.
931 (find_last_same_clock): Likwise for local "t".
932 (reorg_split_calls): Likewise for local "shadow".
933 (hwloop_pattern_reg): Likewise for param "insn".
934 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
935 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
936 (frv_extract_membar): Likewise.
937 (frv_optimize_membar_local): Strengthen param "last_membar" from
938 rtx * to rtx_insn **.
939 (frv_optimize_membar_global): Strengthen param "membar" from rtx
940 to rtx_insn *.
941 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
942 to rtx_insn **.
943 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
944 both params from rtx to rtx_insn *.
945 (ia64_ld_address_bypass_p): Likewise.
946 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
947 "insn".
948 (ia64_safe_type): Likewise.
949 (group_barrier_needed): Likewise.
950 (safe_group_barrier_needed): Likewise.
951 (ia64_single_set): Likewise.
952 (is_load_p): Likewise.
953 (record_memory_reference): Likewise.
954 (get_mode_no_for_insn): Likewise.
955 (important_for_bundling_p): Likewise.
956 (unknown_for_bundling_p): Likewise.
957 (ia64_st_address_bypass_p): Likewise for both params.
958 (ia64_ld_address_bypass_p): Likewise.
959 (expand_vselect): Introduce new local rtx_insn * "insn", using it
960 in place of rtx "x" after the emit_insn call.
961 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
962 Strengthen param from rtx to rtx_insn *.
963 (ix86_agi_dependent): Likewise for both params.
964 (ix86_attr_length_immediate_default): Likewise for param 1.
965 (ix86_attr_length_address_default): Likewise for param.
966 (ix86_attr_length_vex_default): Likewise for param 1.
967 * config/i386/i386.c (ix86_attr_length_immediate_default):
968 Likewise for param "insn".
969 (ix86_attr_length_address_default): Likewise.
970 (ix86_attr_length_vex_default): Likewise.
971 (ix86_agi_dependent): Likewise for both params.
972 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
973 (vselect_insn): Likewise for this variable.
974 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
975 for param 1.
976 (m68k_sched_attr_opy_type): Likewise.
977 * config/m68k/m68k.c (sched_get_operand): Likewise.
978 (sched_attr_op_type): Likewise.
979 (m68k_sched_attr_opx_type): Likewise.
980 (m68k_sched_attr_opy_type): Likewise.
981 (sched_get_reg_operand): Likewise.
982 (sched_get_mem_operand): Likewise.
983 (m68k_sched_address_bypass_p): Likewise for both params.
984 (sched_get_indexed_address_scale): Likewise.
985 (m68k_sched_indexed_address_bypass_p): Likewise.
986 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
987 (m68k_sched_indexed_address_bypass_p): Likewise.
988 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
989 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
990 removing another.
991 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
992 params from rtx to rtx_insn *.
993 (mips_fmadd_bypass): Likewise.
994 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
995 (mips_linked_madd_p): Likewise.
996 (mips_macc_chains_last_hilo): Likewise for this variable.
997 (mips_macc_chains_record): Likewise for param.
998 (vr4130_last_insn): Likewise for this variable.
999 (vr4130_swap_insns_p): Likewise for both params.
1000 (mips_ls2_variable_issue): Likewise for param.
1001 (mips_need_noat_wrapper_p): Likewise for param "insn".
1002 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1003 in place of "x" after the emit_insn.
1004 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1005 params from rtx to rtx_insn *.
1006 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1007 (pa_combine_instructions): Introduce local "par" for result of
1008 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1009 to make_insn_raw.
1010 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1011 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1012 (rl78_alloc_physical_registers_op1): Likewise.
1013 (rl78_alloc_physical_registers_op2): Likewise.
1014 (rl78_alloc_physical_registers_ro1): Likewise.
1015 (rl78_alloc_physical_registers_cmp): Likewise.
1016 (rl78_alloc_physical_registers_umul): Likewise.
1017 (rl78_alloc_address_registers_macax): Likewise.
1018 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1019 * config/s390/predicates.md (execute_operation): Likewise for
1020 local "insn".
1021 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1022 params.
1023 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1024 (addr_generation_dependency_p): Likewise for param "insn".
1025 (s390_agen_dep_p): Likewise for both params.
1026 (s390_fpload_toreg): Likewise for param "insn".
1027 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1028 * config/sh/sh.c (sh_loop_align): Likewise for param and local
1029 "next".
1030 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1031 * config/sh/sh_treg_combine.cc
1032 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1033 and local "i".
1034 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1035 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1036 "and_insn", "load", "shift".
1037 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1038 "insn".
1039 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1040 for XEXP (note, 0) of the REG_CC_SETTER note.
1041 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1042 rtx_insn *, eliminating a checked cast made redundant by this.
1043 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1044 to rtx_insn *.
1045 * genattr.c (main): When writing out the prototype to
1046 const_num_delay_slots, strengthen the param from rtx to
1047 rtx_insn *.
1048 * genattrtab.c (write_const_num_delay_slots): Likewise when
1049 writing out the implementation of const_num_delay_slots.
1050 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1051 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1052 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1053 favor of new rtx locals "src" and "set" and new local rtx_insn *
1054 "insn" and "seq".
1055 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1056 to rtx_insn *.
1057 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1058 locals "cond", "if_then_else", "set" and new rtx_insn * locals
1059 "insn" and "seq".
1060 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1061 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
1062 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
1063 the top-level scope, replacing with new more tightly-scoped rtx
1064 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1065 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1066 tightly-scoped.
1067 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1068 rtx_insn *.
1069 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1070 "move_insn".
1071 (ira_setup_alts): Likewise for param "insn".
1072 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1073 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1074 and an rtx_insn *.
1075 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1076 new more-tightly scoped rtx locals "add3_insn", "insn",
1077 "add2_insn" and rtx_insn * "move_insn".
1078 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1079 checked cast on result of gen_move_insn when invoking
1080 extract_insn.
1081 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1082 rtx_insn *.
1083 (verify_changes): Add a checked cast on "object" when invoking
1084 insn_invalid_p.
1085 (extract_insn_cached): Strengthen param "insn" from rtx to
1086 rtx_insn *.
1087 (extract_constrain_insn_cached): Likewise.
1088 (extract_insn): Likewise.
1089 * recog.h (insn_invalid_p): Likewise for param 1.
1090 (recog_memoized): Likewise for param.
1091 (extract_insn): Likewise.
1092 (extract_constrain_insn_cached): Likewise.
1093 (extract_insn_cached): Likewise.
1094 * reload.c (can_reload_into): Likewise for local "test_insn".
1095 * reload.h (cleanup_subreg_operands): Likewise for param.
1096 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1097 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1098 result of emit_insn. Remove a checked cast made redundant by this
1099 change.
1100 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1101 rtx to rtx_insn *.
1102 * sel-sched.c (get_reg_class): Likewise.
1103
1104 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1105 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1106
1107 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1108 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1109 Define.
1110 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1111
1112 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1113
1114 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1115 const rtx_insn *, and from rtx to rtx_insn * for the other
1116 overloaded variant.
1117 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1118 INSN_LOCATION, since we know INSN_P holds.
1119 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1120 (insn_file): Likewise.
1121 (insn_scope): Likewise.
1122 (insn_location): Likewise.
1123
1124 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1125 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1126 for the result of gen_load_const_gp.
1127 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1128 param from rtx to rtx_insn *.
1129 * config/rs6000/rs6000.c (output_call): Likewise.
1130 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1131 introducing a checked cast to rtx_sequence * and use of the insn
1132 method.
1133 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1134 from rtx to rtx_insn *.
1135 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1136 (insn_line): Likewise.
1137 (insn_file): Likewise.
1138 (insn_location): Likewise.
1139 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1140 from rtx to rtx_insn *.
1141 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1142 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1143 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1144 via a checked cast.
1145 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1146 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1147
1148 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1149
1150 * combine.c (try_combine): Eliminate checked cast on result of
1151 gen_rtx_INSN.
1152 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1153 autogenerated one by strengthening the return type and params 2 and 3
1154 from rtx to rtx_insn *, and by naming the params.
1155 * gengenrtl.c (special_rtx): Add INSN to those that are
1156 special-cased.
1157 * rtl.h (gen_rtx_INSN): New prototype.
1158
1159 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1160
1161 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1162 than NULL_RTX.
1163 (no_equiv): Likewise.
1164 (update_equiv_regs): Likewise.
1165 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1166 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1167 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1168 clarity.
1169 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1170 from rtx to rtx_insn_list *.
1171 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1172 rtx_insn_list * and use methods for clarity and typesafety.
1173 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1174 "list".
1175 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1176 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1177 an INSN_LIST, not an insn.
1178 (reverse_equiv_p): Strengthen local "insns" from rtx to
1179 rtx_insn_list * and use methods for clarity and typesafety.
1180 (contains_reloaded_insn_p): Likewise for local "list".
1181
1182 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1183
1184 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1185 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1186 (arm_builtin_vectorized_function): Likewise.
1187 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1188 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1189
1190 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1191
1192 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1193 * builtins.h (default_target_builtins): Likewise.
1194 * gcse.h (default_target_gcse): Likewise.
1195 * target-globals.h (target_globals): Add a destructor. Convert
1196 void-pointer fields back to their real type and change from
1197 GTY((atomic)) to GTY((skip)).
1198 (restore_target_globals): Remove casts accordingly.
1199 * target-globals.c (save_target_globals): Use XCNEW rather than
1200 ggc_internal_cleared_alloc to allocate non-GC structures.
1201 Use ggc_cleared_alloc to allocate the target_globals structure
1202 itself.
1203 (target_globals::~target_globals): Define.
1204
1205 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1206
1207 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1208 mnemonic instead of fldmfdd.
1209 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1210 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1211 Output vpush when address register is SP.
1212 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1213 (vfp_output_vstmd): ... This.
1214 * config/arm/vfp.md (push_multi_vfp): Update call to
1215 vfp_output_vstmd.
1216
1217 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1218
1219 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1220
1221 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1222
1223 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1224 (*sqrtdf2_vfp): Likewise.
1225 (*cmpsf_vfp): Likewise.
1226 (*cmpsf_trap_vfp): Likewise.
1227 (*cmpdf_vfp): Likewise.
1228 (*cmpdf_trap_vfp): Likewise.
1229
1230 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1231
1232 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1233 (*truncdfsf2_vfp): Likewise.
1234 (*truncsisf2_vfp): Likewise.
1235 (*truncsidf2_vfp): Likewise.
1236 (fixuns_truncsfsi2): Likewise.
1237 (fixuns_truncdfsi2): Likewise.
1238 (*floatsisf2_vfp): Likewise.
1239 (*floatsidf2_vfp): Likewise.
1240 (floatunssisf2): Likewise.
1241 (floatunssidf2): Likewise.
1242
1243 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1244
1245 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1246 (*muldf3_vfp): Likewise.
1247 (*mulsf3negsf_vfp): Likewise.
1248 (*muldf3negdf_vfp): Likewise.
1249 (*mulsf3addsf_vfp): Likewise.
1250 (*muldf3adddf_vfp): Likewise.
1251 (*mulsf3subsf_vfp): Likewise.
1252 (*muldf3subdf_vfp): Likewise.
1253 (*mulsf3negsfaddsf_vfp): Likewise.
1254 (*fmuldf3negdfadddf_vfp): Likewise.
1255 (*mulsf3negsfsubsf_vfp): Likewise.
1256 (*muldf3negdfsubdf_vfp): Likewise.
1257
1258 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1259
1260 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1261 (*absdf2_vfp): Likewise.
1262 (*negsf2_vfp): Likewise.
1263 (*negdf2_vfp): Likewise.
1264 (*addsf3_vfp): Likewise.
1265 (*adddf3_vfp): Likewise.
1266 (*subsf3_vfp): Likewise.
1267 (*subdf3_vfp): Likewise.
1268 (*divsf3_vfp): Likewise.
1269 (*divdf3_vfp): Likewise.
1270
1271 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1272
1273 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1274 multiple.
1275 (arm_print_operand): Don't convert real values to decimal
1276 representation in default case.
1277 (fp_immediate_constant): Delete.
1278 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1279 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1280 syntax.
1281 (*thumb2_movsi_vfp): Likewise.
1282 (*movdi_vfp): Likewise.
1283 (*movdi_vfp_cortexa8): Likewise.
1284 (*movhf_vfp_neon): Likewise.
1285 (*movhf_vfp): Likewise.
1286 (*movsf_vfp): Likewise.
1287 (*thumb2_movsf_vfp): Likewise.
1288 (*movdf_vfp): Likewise.
1289 (*thumb2_movdf_vfp): Likewise.
1290 (*movsfcc_vfp): Likewise.
1291 (*thumb2_movsfcc_vfp): Likewise.
1292 (*movdfcc_vfp): Likewise.
1293 (*thumb2_movdfcc_vfp): Likewise.
1294
1295 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1296
1297 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1298 (-mtune): Likewise.
1299 (-mcpu): Likewise.
1300
1301 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1302
1303 PR target/61749
1304 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1305 Use qualifier_immediate for last operand. Rename to...
1306 (aarch64_types_ternop_lane_qualifiers): ... This.
1307 (TYPES_QUADOP): Rename to...
1308 (TYPES_TERNOP_LANE): ... This.
1309 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1310 error. Change return of 0 to return of NULL_RTX.
1311 (aarch64_crc32_expand_builtin): Likewise.
1312 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1313 ICE when expanding unknown builtin.
1314 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1315 TERNOP_LANE qualifiers.
1316 (sqdmlsl_lane): Likewise.
1317 (sqdmlal_laneq): Likewise.
1318 (sqdmlsl_laneq): Likewise.
1319 (sqdmlal2_lane): Likewise.
1320 (sqdmlsl2_lane): Likewise.
1321 (sqdmlal2_laneq): Likewise.
1322 (sqdmlsl2_laneq): Likewise.
1323
1324 2014-09-09 Nick Clifton <nickc@redhat.com>
1325
1326 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1327 end of a line.
1328 (S/390 and zSeries Options): Remove superfluous word from the
1329 description of the -mhotpatch option.
1330
1331 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1332
1333 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1334 * ira.c: #include "shrink-wrap.h"
1335 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1336 * ifcvt.c: #include "shrink-wrap.h"
1337 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1338
1339 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1340
1341 * common/config/picochip/picochip-common.c: Remove.
1342 * config.gcc: Remove support for picochip.
1343 * config/picochip/constraints.md: Remove.
1344 * config/picochip/dfa_space.md: Remove.
1345 * config/picochip/dfa_speed.md: Remove.
1346 * config/picochip/picochip-protos.h: Remove.
1347 * config/picochip/picochip.c: Remove.
1348 * config/picochip/picochip.h: Remove.
1349 * config/picochip/picochip.md: Remove.
1350 * config/picochip/picochip.opt: Remove.
1351 * config/picochip/predicates.md: Remove.
1352 * config/picochip/t-picochip: Remove.
1353 * doc/md.texi: Don't document picochi.
1354
1355 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1356
1357 * basic-block.h (control_flow_insn_p): Strengthen param from
1358 const_rtx to const rtx_insn *.
1359 * cfgbuild.c (control_flow_insn_p): Likewise.
1360
1361 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1362
1363 * gcse.c (modify_mem_list): Strengthen this variable from
1364 vec<rtx> * to vec<rtx_insn *> *.
1365 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1366 vec<rtx_insn *>.
1367 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1368 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1369 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1370 rtx_insn *.
1371 (record_last_set_info): Likewise for local "last_set_insn".
1372
1373 2014-09-08 DJ Delorie <dj@redhat.com>
1374
1375 * doc/invoke.texi (MSP430 Options): Add -minrt.
1376
1377 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1378
1379 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1380 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1381 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1382 handling SH_SPLAT.
1383 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1384 of extracted lane.
1385 (adjust_splat): New function.
1386 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1387 (dump_swap_insn_table): Add case for SH_SPLAT.
1388
1389 2014-09-08 Richard Biener <rguenther@suse.de>
1390
1391 PR ipa/63196
1392 * tree-inline.c (copy_loops): The source loop header should
1393 always be non-NULL.
1394 (tree_function_versioning): If loops need fixup after removing
1395 unreachable blocks fix them.
1396 * omp-low.c (simd_clone_adjust): Do not add incr block to
1397 loop under construction.
1398
1399 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1400
1401 * config/aarch64/aarch64-builtins.c
1402 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1403
1404 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1405
1406 * config/i386/cygming.h (TF_SIZE): Remove.
1407 * config/i386/darwin.h (TF_SIZE): Remove.
1408 * config/i386/dragonfly.h (TF_SIZE): Remove.
1409 * config/i386/freebsd.h (TF_SIZE): Remove.
1410 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1411 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1412 * config/i386/sol2.h (TF_SIZE): Remove.
1413 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1414 * config/ia64/linux.h (TF_SIZE): Remove.
1415 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1416 * doc/tm.texi: Regenerate.
1417 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1418
1419 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1420
1421 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1422 Remove.
1423 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1424 Remove.
1425 * doc/tm.texi: Regenerate.
1426 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1427 Poison.
1428 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1429 * config/cris/cris.h (__make_dp): Remove.
1430
1431 2014-09-08 Richard Biener <rguenther@suse.de>
1432
1433 PR bootstrap/63204
1434 * cfgloop.c (mark_loop_for_removal): Track former header
1435 unconditionally.
1436 * cfgloop.h (struct loop): Add former_header member unconditionally.
1437 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1438 diagnostic unconditionally.
1439
1440 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1441
1442 PR target/63190
1443 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1444 constraint for operand0 and remove write only modifier from operand3.
1445
1446 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1447
1448 PR rtl-optimization/62208
1449 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1450 rather than const0_rtx in eq/ne-xor simplifications.
1451
1452 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1453
1454 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1455 (arc_output_mi_thunk): Likewise.
1456
1457 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1458 arguments to silence bogus warning.
1459
1460 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1461
1462 PR middle-end/63171
1463 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1464
1465 2014-09-06 Tom de Vries <tom@codesourcery.com>
1466
1467 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1468 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1469 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1470
1471 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1472
1473 PR target/63188
1474 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1475 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1476
1477 2014-09-05 Easwaran Raman <eraman@google.com>
1478
1479 PR rtl-optimization/62146
1480 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1481 hoisted instruction unconditional.
1482
1483 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1484
1485 PR target/63187
1486 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1487 Do not allow any_mask_operand for operands[2].
1488 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1489
1490 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1491
1492 * config/arc/arc.c (arc_print_operand): Use insn method of
1493 final_sequence for type-safety.
1494 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1495 "insn" from rtx to rtx_insn *.
1496 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1497 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1498 Likewise for locals "branch", "label".
1499 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1500 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1501 (same_cmp_following_p): Likewise for locals "i2", "i3".
1502 * config/sh/sh_optimize_sett_clrt.cc
1503 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1504 param "cbranch_insn".
1505 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1506 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1507 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1508 const rtx_insn *.
1509 (condjump_p): Likewise.
1510 (condjump_in_parallel_p): Likewise.
1511 (pc_set): Likewise.
1512 (any_uncondjump_p): Likewise.
1513 (any_condjump_p): Likewise.
1514 (condjump_label): Likewise.
1515 (returnjump_p): Strengthen param "insn" from rtx to
1516 const rtx_insn *.
1517 (onlyjump_p): Strengthen param "insn" from const_rtx to
1518 const rtx_insn *.
1519 (jump_to_label_p): Likewise.
1520 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1521 (invert_jump): Likewise.
1522 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1523 simplejump_p.
1524 (get_jump_flags): Strengthen param "insn" from rtx to
1525 const rtx_insn *.
1526 (get_branch_condition): Likewise.
1527 (condition_dominates_p): Likewise.
1528 (make_return_insns): Move declaration of local "pat" earlier, to
1529 after we've handled NONJUMP_INSN_P and non-sequences, using its
1530 methods to simplify the code and for type-safety.
1531 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1532 const rtx_insn *.
1533 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1534 (condjump_p): Strengthen param from const_rtx to
1535 const rtx_insn *.
1536 (any_condjump_p): Likewise.
1537 (any_uncondjump_p): Likewise.
1538 (pc_set): Likewise.
1539 (condjump_label): Likewise.
1540 (simplejump_p): Likewise.
1541 (returnjump_p): Likewise.
1542 (onlyjump_p): Likewise.
1543 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1544 (invert_jump): Likewise.
1545 (condjump_in_parallel_p): Strengthen param from const_rtx to
1546 const rtx_insn *.
1547 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1548 to const rtx_insn *.
1549 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1550 to const rtx_insn *.
1551 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1552
1553 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1554
1555 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1556 above the conditional, and convert the check on GET_CODE to a
1557 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1558 the conditional. Simplify the conditional by using methods of
1559 "trial_seq".
1560
1561 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1562
1563 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1564 "link" from rtx to rtx_insn_list *, and use its methods for
1565 clarity and type-safety.
1566 (toggle_cancelled_flags): Likewise.
1567 (restore_last_backtrack_point): Likewise.
1568 (queue_to_ready): Use insn method of "link" in one place.
1569 (schedule_block): Strengthen local "link" from rtx to
1570 rtx_insn_list *, and use its methods for clarity and type-safety.
1571
1572 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1573
1574 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1575 param "insn" from const_rtx to const rtx_insn *.
1576 (sched_get_reverse_condition_uncached): Likewise.
1577 (sched_get_condition_with_rev): Likewise.
1578 (sched_has_condition_p): Likewise.
1579 (sched_insns_conditions_mutex_p): Likewise for both params.
1580 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1581 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1582 (setup_insn_reg_uses): Move local "list" to be more tightly
1583 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1584 its methods for clarity and type-safety.
1585 (sched_analyze_1): Strengthen local "pending" from rtx to
1586 rtx_insn_list *, and local "pending_mem" from rtx to
1587 rtx_expr_list *. Use methods of each for clarity and type-safety.
1588 (sched_analyze_2): Likewise.
1589 (sched_analyze_insn): Likewise.
1590
1591 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1592 param from const_rtx to const rtx_insn *.
1593 (sched_insns_conditions_mutex_p): Likewise for both params.
1594 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1595 param.
1596
1597 * system.h (CONST_CAST_RTX_INSN): New macro.
1598
1599 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1600
1601 * recog.c (peep2_attempt): Strengthen return type from rtx to
1602 rtx_insn *.
1603 (peep2_update_life): Likewise for params "last", "prev", removing
1604 a checked cast made redundant by this.
1605 (peephole2_optimize): Likewise for local "last".
1606
1607 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1608
1609 * basic-block.h (set_block_for_insn): Eliminate this macro in
1610 favor of...
1611 * rtl.h (set_block_for_insn): New inline function, imposing the
1612 requirement that the "insn" param is an rtx_insn *.
1613
1614 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1615
1616 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1617 rtx to rtx_insn *.
1618 * final.c (get_call_reg_set_usage): Likewise for first param,
1619 eliminating a checked cast.
1620 * regs.h (get_call_reg_set_usage): Likewise for first param.
1621 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1622 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1623 cast, replacing references to "x" with "call_insn" where
1624 appropriate.
1625 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1626 rtx_insn *, adding a checked cast.
1627
1628 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1629
1630 * output.h (final_scan_insn): Strengthen first param from rtx to
1631 rtx_insn *.
1632
1633 * final.c (final_scan_insn): Likewise, renaming it back from
1634 "uncast_insn" to "insn", eliminating the checked cast.
1635
1636 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1637 "vec" with an rtx_sequence * "seq", taking a copy of
1638 "final_sequence", and using methods of "seq" for clarity, and for
1639 type-safety in the calls to final_scan_insn.
1640 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1641 of "final_sequence" for clarity, and for type-safety in the call to
1642 final_scan_insn.
1643 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1644 rtx_sequence * and rename from "insn" to "seq".
1645
1646 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1647
1648 * jump.c (delete_related_insns): Introduce a new local "table" by
1649 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1650 get_labels method of "table" to simplify access to the labels in
1651 the jump table.
1652
1653 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1654
1655 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1656 f_minmaxs, f_minmaxd types.
1657
1658 2014-09-05 Richard Biener <rguenther@suse.de>
1659
1660 * cfgloop.c (mark_loop_for_removal): Record former header
1661 when ENABLE_CHECKING.
1662 * cfgloop.h (strut loop): Add former_header member when
1663 ENABLE_CHECKING.
1664 * loop-init.c (fix_loop_structure): Sanity check loops
1665 marked for removal if they re-appeared.
1666
1667 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1668
1669 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1670 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1671
1672 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1673 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1674 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1675 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1676 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1677 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1678 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1679 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1680 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1681 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1682 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1683 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1684 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1685 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1686 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1687 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1688 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1689 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1690 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1691 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1692 with int{32,16,8}_t.
1693
1694 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1695
1696 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1697 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1698 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1699 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1700 Remove temporary __asm__ and reimplement.
1701
1702 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1703
1704 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1705 handling cmge, cmgt, cmeq, cmtst.
1706
1707 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1708 cmlt, cmgeu, cmgtu, cmtst): Remove.
1709
1710 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1711 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1712 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1713 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1714
1715 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1716
1717 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1718 TYPES_TST): Define.
1719 (aarch64_fold_builtin): Update pattern for cmtst.
1720
1721 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1722 Declare.
1723
1724 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1725
1726 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1727 Switch operands, separate out more cases, refactor.
1728
1729 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1730
1731 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1732 argument; rename old version to...
1733 (aarch64_const_vec_all_same_in_range_p): ...this.
1734 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1735
1736 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1737
1738 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1739
1740 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1741 Remove qualifier_const_pointer, update comment.
1742
1743 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1744
1745 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1746
1747 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1748
1749 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1750 varargs with pointer parameter.
1751 (aarch64_simd_expand_builtin): pass pointer into previous.
1752
1753 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1754
1755 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1756 alus_ext.
1757
1758 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1759
1760 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1761 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1762 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1763 Replace temporary asm with call to builtin.
1764 (vrbit_p8, vrbitq_p8): New functions.
1765
1766 2014-09-05 Richard Biener <rguenther@suse.de>
1767
1768 * cfgloop.c (mark_loop_for_removal): New function.
1769 * cfgloop.h (mark_loop_for_removal): Declare.
1770 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1771 (merge_blocks): Likewise.
1772 (duplicate_block): Likewise.
1773 * except.c (sjlj_emit_dispatch_table): Likewise.
1774 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1775 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1776 (thread_through_loop_header): Likewise.
1777
1778 2014-09-05 Richard Biener <rguenther@suse.de>
1779
1780 PR middle-end/63148
1781 * fold-const.c (try_move_mult_to_index): Remove.
1782 (fold_binary_loc): Do not call it.
1783 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1784 from the base object again.
1785
1786 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1787
1788 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1789 DImode.
1790
1791 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1792
1793 PR target/55701
1794 * config/arm/arm.md (setmem): New pattern.
1795 * config/arm/arm-protos.h (struct tune_params): New fields.
1796 (arm_gen_setmem): New prototype.
1797 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1798 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1799 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1800 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1801 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1802 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1803 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1804 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1805 (arm_const_inline_cost): New function.
1806 (arm_block_set_max_insns): New function.
1807 (arm_block_set_non_vect_profit_p): New function.
1808 (arm_block_set_vect_profit_p): New function.
1809 (arm_block_set_unaligned_vect): New function.
1810 (arm_block_set_aligned_vect): New function.
1811 (arm_block_set_unaligned_non_vect): New function.
1812 (arm_block_set_aligned_non_vect): New function.
1813 (arm_block_set_vect, arm_gen_setmem): New functions.
1814
1815 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1816
1817 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1818
1819 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1820
1821 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1822
1823 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1824
1825 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1826 an rtx.
1827 * valtrack.h: Adjust.
1828
1829 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1830
1831 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1832 an rtx.
1833 (emit_jump_insn_before_noloc): Likewise.
1834 (emit_call_insn_before_noloc): Likewise.
1835 (emit_label_before): Likewise.
1836 (emit_label_after): Likewise.
1837 (emit_insn_before_setloc): Likewise.
1838 (emit_jump_insn_before_setloc): Likewise.
1839 (emit_call_insn_before_setloc): Likewise.
1840 (emit_call_insn_before): Likewise.
1841 * rtl.h: Adjust.
1842
1843 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1844
1845 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1846 rtx_insn *, eliminating a checked cast.
1847
1848 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1849
1850 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1851 const_rtx to const rtx_insn *.
1852 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1853 cast.
1854
1855 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1856
1857 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1858 fixup_args_size_notes.
1859 * expr.c (fixup_args_size_notes): Strengthen first two params from
1860 rtx to rtx_insn *, eliminating a checked cast.
1861 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1862 rtx to rtx_insn *.
1863
1864 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1865
1866 * haifa-sched.c (get_ready_element): Strengthen return type from
1867 rtx to rtx_insn *.
1868 * sched-int.h (get_ready_element): Likewise.
1869
1870 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1871
1872 PR target/63165
1873 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1874 indexed_or_indirect_operand instead of memory_operand.
1875 (floatsi<mode>2_lfiwzx_mem): Ditto.
1876
1877 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1878
1879 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1880 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1881 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1882
1883 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1884
1885 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1886 rtx.
1887 (get_last_nonnote_insn): Likewise.
1888 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1889 * resource.c (find_basic_block): Likewise.
1890 * rtl.h: Adjust.
1891 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1892 const_rtx.
1893
1894 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1895
1896 * genattr.c (main): Within the prototype of insn_latency written
1897 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1898 * genautomata.c (output_internal_maximal_insn_latency_func):
1899 Within the implementation of insn_latency written out to
1900 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1901 eliminating a pair of checked casts.
1902
1903 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1904
1905 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1906 rtx_insn *.
1907
1908 * rtl.h (eh_returnjump_p): Likewise.
1909
1910 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1911
1912 * Makefile.in (TAGS): Handle constructs in timevar.def.
1913
1914 2014-09-04 Guozhi Wei <carrot@google.com>
1915
1916 PR target/62040
1917 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1918 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1919 it into two patterns.
1920 (move_lo_quad_internal_be_<mode>): Likewise.
1921
1922 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1923
1924 * doc/options.texi: Document that Var and Init are required if CPP
1925 is given.
1926 * optc-gen.awk: Require Var and Init if CPP is given.
1927 * common.opt (Wpedantic): Use Init.
1928
1929 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1930
1931 * config/rs6000/rs6000.c (special_handling_values): Add
1932 SH_EXTRACT.
1933 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1934 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1935 as swappable with special handling SH_EXTRACT. Remove
1936 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1937 optimization.
1938 (adjust_extract): New function.
1939 (handle_special_swappables): Add default to case statement; add
1940 case for SH_EXTRACT that calls adjust_extract.
1941 (dump_swap_insn_table): Handle SH_EXTRACT.
1942
1943 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1944
1945 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1946 selection of 0th memory doubleword, regardless of endianness.
1947
1948 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1949
1950 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1951
1952 2014-09-04 Alan Modra <amodra@gmail.com>
1953
1954 PR debug/60655
1955 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1956 can't be output.
1957
1958 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1959
1960 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1961 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1962 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1963 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1964 * doc/tm.texi: Regenerate.
1965 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1966 selection logic to default_dwarf_frame_reg_mode.
1967
1968 2014-09-03 Marek Polacek <polacek@redhat.com>
1969
1970 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1971 by -Wall.
1972
1973 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1974
1975 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1976 the automodified register.
1977
1978 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1979
1980 * output.h (get_some_local_dynamic_name): Declare.
1981 * final.c (some_local_dynamic_name): New variable.
1982 (get_some_local_dynamic_name): New function.
1983 (final_end_function): Clear some_local_dynamic_name.
1984 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1985 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1986 (print_operand): Report an error if '%&' is used inappropriately.
1987 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1988 (get_some_local_dynamic_name_1): Delete.
1989 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1990 (rs6000_get_some_local_dynamic_name): Delete.
1991 (rs6000_get_some_local_dynamic_name_1): Delete.
1992 (print_operand): Report an error if '%&' is used inappropriately.
1993 * config/s390/s390.c (machine_function): Remove some_ld_name.
1994 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1995 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1996 * config/sparc/sparc.c: Include rtl-iter.h.
1997 (machine_function): Remove some_ld_name.
1998 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1999 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2000
2001 2014-09-03 Richard Henderson <rth@redhat.com>
2002
2003 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2004 (aarch64_popwb_pair_reg): Remove.
2005 (aarch64_set_frame_expr): Remove.
2006 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2007 the restore ops performed by the insns generated.
2008 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2009 insn. Perform the calls_eh_return addition later; do not attempt to
2010 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
2011 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2012 special markup at all. Load cfun->machine->frame.hard_fp_offset
2013 into a local variable.
2014 (aarch64_frame_pointer_required): Don't check calls_alloca.
2015
2016 2014-09-03 Richard Biener <rguenther@suse.de>
2017
2018 * opts.c (default_options_optimization): Adjust
2019 max-combine-insns to 2 for -Og.
2020
2021 2014-09-03 Martin Jambor <mjambor@suse.cz>
2022
2023 PR ipa/62015
2024 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2025 pass-trough jump functions correctly.
2026
2027 2014-09-03 Martin Jambor <mjambor@suse.cz>
2028
2029 PR ipa/61986
2030 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2031 created replacements in ascending order of offsets.
2032 (known_aggs_to_agg_replacement_list): Likewise.
2033
2034 2014-09-03 Martin Liska <mliska@suse.cz>
2035
2036 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2037 is set to set uninitialized value for vnresult.
2038
2039 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2040
2041 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2042 for TARGET_MUST_PASS_IN_STACK.
2043
2044 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2045
2046 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2047 for TARGET_ARG_PARTIAL_BYTES.
2048
2049 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2050
2051 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2052 instructions for varargs implementation.
2053 (nds32_expand_epilogue): Emit stack adjustment instructions for
2054 varargs implementation.
2055
2056 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2057
2058 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2059 optimization detection.
2060
2061 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2062
2063 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2064 arguments.
2065 (nds32_function_arg_advance): Deal with nameless arguments.
2066 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2067 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2068 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2069
2070 2014-09-03 Richard Biener <rguenther@suse.de>
2071
2072 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2073 (struct bb_bitmap_sets): Remove deferred member.
2074 (BB_DEFERRED): Remove.
2075 (defer_or_phi_translate_block): Remove.
2076 (compute_antic_aux): Remove deferring of blocks, assert
2077 proper iteration order.
2078 (compute_antic): Do not set BB_DEFERRED.
2079 (eliminate): Allocate el_avail of proper size initially.
2080
2081 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2082
2083 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2084 according to the value of crtl->args.pretend_args_size.
2085
2086 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2087
2088 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2089 varargs information.
2090
2091 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2092
2093 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2094 implementation for TARGET_SETUP_INCOMING_VARARGS.
2095 (nds32_strict_argument_naming): Refine comment.
2096 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2097 Define for future implementation.
2098
2099 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2100
2101 * config/i386/adxintrin.h (_subborrow_u32): New.
2102 (_addcarry_u32): Ditto.
2103 (_subborrow_u64): Ditto.
2104 (_addcarry_u64): Ditto.
2105 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2106 IX86_BUILTIN_SBB64.
2107 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2108 __builtin_ia32_sbb_u64
2109
2110 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2111
2112 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2113 GPR-specific stuff.
2114 (nds32_function_arg_advance): Likewise.
2115 (nds32_init_cumulative_args): Likewise.
2116 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2117 (NDS32_FIRST_GPR_REGNUM): Define.
2118 (NDS32_LAST_GPR_REGNUM): Define.
2119 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2120 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2121 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2122 (machine_function): Use GRP-specific stuff.
2123
2124 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2125
2126 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2127 (nds32_expand_epilogue): Likewise.
2128 (nds32_expand_prologue_v3push): Likewise.
2129 (nds32_expand_epilogue_v3pop): Likewise.
2130
2131 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2132
2133 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2134 v3push/v3pop for variadic function.
2135 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2136
2137 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2138
2139 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2140 Check rtx for varargs implementation.
2141 (nds32_output_stack_pop): Likewise.
2142 * config/nds32/nds32-protos.h: Have a rtx argument for
2143 nds32_output_stack_push and nds32_output_stack_pop.
2144 * config/nds32/nds32.md: Likewise.
2145
2146 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2147
2148 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2149 to check if FUNC is an interrupt service routine.
2150 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2151
2152 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2153
2154 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2155 arguments implementation.
2156
2157 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2158
2159 * config/nds32/nds32-predicates.c
2160 (nds32_valid_stack_push_pop): Rename to ...
2161 (nds32_valid_stack_push_pop_p): ... this.
2162 * config/nds32/nds32-protos.h: Likewise.
2163 * config/nds32/predicates.md: Likewise.
2164
2165 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2166
2167 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2168 (nds32_emit_stack_v3push): ... this.
2169 (nds32_gen_stack_v3pop): Rename to ...
2170 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2171 information.
2172
2173 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2174
2175 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2176 (nds32_emit_stack_push_multiple): ... this.
2177 (nds32_gen_stack_pop_multiple): Rename to ...
2178 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2179 information.
2180
2181 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2182
2183 PR target/61078
2184 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2185 and add a second splitter to handle the remaining cases.
2186
2187 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2188
2189 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2190
2191 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2192
2193 * cfgexpand.c (label_rtx_for_bb): Change type to
2194 hash_map<basic_block, rtx_code_label *> *.
2195 (expand_gimple_basic_block): Adjust.
2196 (pass_expand::execute): Likewise.
2197
2198 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2199
2200 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2201 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2202 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2203 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2204 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2205 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2206 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2207 of rtx.
2208
2209 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2210
2211 * alloc-pool.c: Include coretypes.h.
2212 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2213 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2214 hash_set instead of htab.
2215 * ggc-page.c (in_gc): New variable.
2216 (ggc_free): Do nothing if a collection is taking place.
2217 (ggc_collect): Set in_gc appropriately.
2218 * ggc.h (gt_ggc_mx(const char *)): New function.
2219 (gt_pch_nx(const char *)): Likewise.
2220 (gt_ggc_mx(int)): Likewise.
2221 (gt_pch_nx(int)): Likewise.
2222 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2223 (hash_map::hash_entry::pch_nx): Likewise.
2224 (hash_map::hash_entry::pch_nx_helper): Likewise.
2225 (hash_map::hash_map): Adjust.
2226 (hash_map::create_ggc): New function.
2227 (gt_ggc_mx): Likewise.
2228 (gt_pch_nx): Likewise.
2229 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2230 (default_hashset_traits::pch_nx): Likewise.
2231 (hash_set::hash_entry::ggc_mx): Likewise.
2232 (hash_set::hash_entry::pch_nx): Likewise.
2233 (hash_set::hash_entry::pch_nx_helper): Likewise.
2234 (hash_set::hash_set): Adjust.
2235 (hash_set::create_ggc): New function.
2236 (hash_set::elements): Likewise.
2237 (gt_ggc_mx): Likewise.
2238 (gt_pch_nx): Likewise.
2239 * hash-table.h (hash_table::hash_table): Adjust.
2240 (hash_table::m_ggc): New member.
2241 (hash_table::~hash_table): Adjust.
2242 (hash_table::expand): Likewise.
2243 (hash_table::empty): Likewise.
2244 (gt_ggc_mx): New function.
2245 (hashtab_entry_note_pointers): Likewise.
2246 (gt_pch_nx): Likewise.
2247
2248 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2249
2250 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2251 built-in definition.
2252 (XVCVUXDDP_SCALE): Likewise.
2253 (XVCVDPSXDS_SCALE): Likewise.
2254 (XVCVDPUXDS_SCALE): Likewise.
2255 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2256 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2257 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2258 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2259 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2260 prototype.
2261 * config/rs6000/rs6000.c (real.h): New include.
2262 (rs6000_scale_v2df): New function.
2263 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2264 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2265 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2266 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2267 (vsx_xvcvsxddp_scale): New define_expand.
2268 (vsx_xvcvsxddp): New define_insn.
2269 (vsx_xvcvuxddp_scale): New define_expand.
2270 (vsx_xvcvuxddp): New define_insn.
2271 (vsx_xvcvdpsxds_scale): New define_expand.
2272 (vsx_xvcvdpsxds): New define_insn.
2273 (vsx_xvcvdpuxds_scale): New define_expand.
2274 (vsx_xvcvdpuxds): New define_insn.
2275 * doc/extend.texi (vec_ctf): Add new prototypes.
2276 (vec_cts): Likewise.
2277 (vec_ctu): Likewise.
2278 (vec_splat): Likewise.
2279 (vec_div): Likewise.
2280 (vec_mul): Likewise.
2281
2282 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2283
2284 PR target/62275
2285 * config/arm/neon.md
2286 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2287 <v_cmp_result>): New pattern.
2288 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2289 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2290 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2291 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2292 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2293 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2294
2295 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2296
2297 PR target/62275
2298 * config/arm/iterators.md (FIXUORS): New code iterator.
2299 (VCVT): New int iterator.
2300 (su_optab): New code attribute.
2301 (su): Likewise.
2302 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2303
2304 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2305
2306 * config/aarch64/predicates.md (aarch64_comparison_operation):
2307 New special predicate.
2308 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2309 aarch64_comparison_operation instead of matching an operator.
2310 Update operand numbers.
2311 (csinc3<mode>_insn): Likewise.
2312 (*csinv3<mode>_insn): Likewise.
2313 (*csneg3<mode>_insn): Likewise.
2314 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2315 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2316 Return -1 instead of aborting on invalid condition codes.
2317 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2318 to assert that the returned condition code is valid.
2319 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2320
2321 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2322
2323 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2324 tree.def, and gimple.def
2325
2326 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2327 Balaji V. Iyer <balaji.v.iyer@intel.com>
2328 Igor Zamyatin <igor.zamyatin@intel.com>
2329
2330 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2331 (__cilkrts_cilk_for_64): Likewise.
2332 * cilk-common.c (declare_cilk_for_builtin): New function.
2333 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2334 __cilkrts_cilk_for_64 bultins.
2335 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2336 CILK_TI_F_LOOP_64.
2337 (cilk_for_32_fndecl): New define.
2338 (cilk_for_64_fndecl): Likewise.
2339 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2340 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2341 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2342 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2343 GF_OMP_FOR_COMBINED_INTO.
2344 * gimplify.c (gimplify_scan_omp_clauses): Added
2345 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2346 (gimplify_adjust_omp_clauses): Ditto.
2347 (gimplify_omp_for): Added CILK_FOR case.
2348 (gimplify_expr): Ditto.
2349 * omp-low.c: Include cilk.h.
2350 (extract_omp_for_data): Set appropriate kind for
2351 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2352 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2353 (create_omp_child_function_name): Added second argument to handle
2354 cilk_for case.
2355 (cilk_for_check_loop_diff_type): New function.
2356 (expand_cilk_for_call): Likewise.
2357 (expand_cilk_for): Likewise.
2358 (create_omp_child_function): Set cilk_for_count; handle the cases when
2359 it is true; call create_omp_child_function_name with second argument.
2360 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2361 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2362 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2363 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2364 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2365 (convert_local_omp_clauses): Ditto.
2366 * tree-pretty-print.c (dump_omp_clause): Added
2367 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2368 (dump_generic_node): Added CILK_FOR case.
2369 * tree.c (omp_clause_num_ops): New element
2370 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2371 (omp_clause_code_name): New element _Cilk_for_count_.
2372 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2373 * tree.def: Add tree code for CILK_FOR.
2374
2375 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2376
2377 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2378 (ppc403-compare): Add "exts with dot" case.
2379 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2380 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2381 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2382 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2383 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2384 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2385 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2386 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2387 cell-cmp-microcoded): Similarly.
2388 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2389 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2390 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2391 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2392 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2393 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2394 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2395 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2396 (power6-compare): Add "exts with dot" case.
2397 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2398 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2399 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2400
2401 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2402 if avoiding Cell microcode.
2403 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2404 (is_cracked_insn): Ditto.
2405 (insn_must_be_first_in_group): Ditto.
2406 * config/rs6000/rs6000.md (dot): Adjust comment.
2407 (cell_micro): Handle exts+dot.
2408 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2409 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2410 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2411 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2412 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2413 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2414 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2415
2416 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2417
2418 * config/rs6000/rs6000.md (QHSI): Delete.
2419 (EXTQI, EXTHI, EXTSI): New mode iterators.
2420 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2421 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2422 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2423 9 anonymous instructions, and 8 splitters): Delete.
2424 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2425 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2426 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2427 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2428 *zero_extendsi<mode>2_dot2): New.
2429
2430 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2431
2432 * config/rs6000/rs6000.md (any_extend): New code iterator.
2433 (u, su): New code attributes.
2434 (dmode, DMODE): New mode attributes.
2435 (<su>mul<mode>3_highpart): New.
2436 (*<su>mul<mode>3_highpart): New.
2437 (<su>mulsi3_highpart_le): New.
2438 (<su>muldi3_highpart_le): New.
2439 (<su>mulsi3_highpart_64): New.
2440 (<u>mul<mode><dmode>3): New.
2441 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2442 splitters): Delete.
2443 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2444 splitters): Delete.
2445
2446 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2447
2448 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2449 *mulsi3_internal2, and two splitters): Delete.
2450 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2451 Delete.
2452 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2453
2454 2014-09-02 Richard Biener <rguenther@suse.de>
2455
2456 PR tree-optimization/62695
2457 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2458 vector truncate.
2459
2460 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2461
2462 PR target/62312
2463 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2464
2465 2014-09-01 Andi Kleen <ak@linux.intel.com>
2466
2467 * file-find.c (add_prefix_begin): Add.
2468 (do_add_prefix): Rename from add_prefix with first argument.
2469 (add_prefix): Add new wrapper.
2470 * file-find.h (add_prefix_begin): Add.
2471 * gcc-ar.c (main): Support -B option.
2472
2473 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2474
2475 * genemit.c: Include dumpfile.h.
2476 (gen_split): Print name of splitter function to dump file.
2477
2478 2014-09-01 Richard Biener <rguenther@suse.de>
2479
2480 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2481 Use stack auto_vecs for constraint expressions.
2482 (find_func_aliases_for_call): Likewise.
2483 (find_func_aliases): Likewise.
2484 (find_func_clobbers): Likewise.
2485
2486 2014-09-01 Richard Biener <rguenther@suse.de>
2487
2488 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2489 operands vector in most cases. Remove redundant code.
2490
2491 2014-09-01 Olivier Hainque <hainque@adacore.com>
2492
2493 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2494 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2495 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2496
2497 2014-09-01 Richard Biener <rguenther@suse.de>
2498
2499 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2500 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2501 vn_reference_compute_hash, vn_reference_insert): Remove.
2502 (vn_reference_lookup_call): New function.
2503 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2504 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2505 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2506 (create_reference_ops_from_call): Remove.
2507 (vn_reference_lookup_3): Properly update shared_lookup_references.
2508 (vn_reference_lookup_pieces): Assert that we updated
2509 shared_lookup_references properly.
2510 (vn_reference_lookup): Likewise.
2511 (vn_reference_lookup_call): New function.
2512 (visit_reference_op_call): Use it. Avoid re-building the
2513 reference ops.
2514 (visit_reference_op_load): Remove redundant lookup.
2515 (visit_reference_op_store): Perform special tail-merging work
2516 only when possibly doing tail-merging.
2517 (visit_use): Likewise.
2518 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2519
2520 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2521
2522 PR target/62025
2523 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2524 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2525 (find_inc): Revert 2014-08-13 change.
2526
2527 2014-09-01 Marek Polacek <polacek@redhat.com>
2528
2529 PR middle-end/61903
2530 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2531 Change the type of V to unsigned HOST_WIDE_INT.
2532
2533 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2534
2535 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2536 the size of byte markers.
2537 (do_shift_rotate): Fix confusion between host, target and marker byte
2538 size.
2539 (verify_symbolic_number_p): Likewise.
2540 (find_bswap_or_nop_1): Likewise.
2541 (find_bswap_or_nop): Likewise.
2542
2543 2014-09-01 Olivier Hainque <hainque@adacore.com>
2544
2545 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2546 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2547
2548 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2549
2550 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2551 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2552 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2553
2554 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2555
2556 PR sanitizer/61897
2557 PR sanitizer/62140
2558 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2559 (build_check_stmt): Likewise.
2560 (instrument_strlen_call): Likewise.
2561 (asan_expand_check_ifn): Likewise and fix types.
2562 (maybe_cast_to_ptrmode): New function.
2563
2564 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2565
2566 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2567
2568 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2569
2570 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2571
2572 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2573
2574 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2575 prefix to function labels when generating fast indirect calls.
2576
2577 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2578
2579 PR bootstrap/62304
2580
2581 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2582 param back from rtx_insn * to rtx. Rename param from "label" to
2583 "label_or_return", reintroducing "label" as an rtx_insn * after
2584 we've ensured it's not a RETURN.
2585 (first_active_target_insn): Likewise for return type and param;
2586 add a checked cast to rtx_insn * once we've ensured "insn" is not
2587 a RETURN.
2588 (steal_delay_list_from_target): Convert param "pnew_thread" back
2589 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2590 with JUMP_LABEL.
2591 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2592 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2593 cast once we've established we're not dealing with a RETURN,
2594 renaming subsequent uses of "thread" to "thread_insn".
2595 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2596 to JUMP_LABEL.
2597 (follow_jumps): Convert return type and param "label" from
2598 rtx_insn * back to rtx. Move initialization of "value" to after
2599 the handling for ANY_RETURN_P, adding a checked cast there to
2600 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2601 rename to "this_label_or_return", reintroducing "this_label" as
2602 an rtx_insn * once we've handled the case where it could be an
2603 ANY_RETURN_P.
2604 (fill_slots_from_thread): Rename param "thread" to
2605 "thread_or_return", converting from an rtx_insn * back to an rtx.
2606 Reintroduce name "thread" as an rtx_insn * local with a checked
2607 cast once we've handled the case of it being an ANY_RETURN_P.
2608 Convert local "new_thread" from an rtx_insn * back to an rtx.
2609 Add a checked cast when assigning to "trial" from "new_thread".
2610 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2611 checked cast to rtx_insn * from "new_thread" when invoking
2612 get_label_before.
2613 (fill_eager_delay_slots): Convert locals "target_label",
2614 "insn_at_target" from rtx_insn * back to rtx.
2615 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2616 (relax_delay_slots): Convert locals "trial", "target_label" from
2617 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2618 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2619 invoking update_block.
2620 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2621 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2622
2623 * resource.h (mark_target_live_regs): Undo erroneous conversion
2624 of second param of r214693, converting it back from rtx_insn * to
2625 rtx, since it could be a RETURN.
2626
2627 * resource.c (find_dead_or_set_registers): Similarly, convert
2628 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2629 could be writing back a RETURN. Rename local rtx_insn * "next" to
2630 "next_insn", and introduce "lab_or_return" as a local rtx,
2631 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2632 (mark_target_live_regs): Undo erroneous conversion
2633 of second param of r214693, converting it back from rtx_insn * to
2634 rtx, since it could be a RETURN. Rename it from "target" to
2635 "target_maybe_return", reintroducing the name "target" as a local
2636 rtx_insn * with a checked cast, after we've handled the case of
2637 ANY_RETURN_P.
2638
2639 2014-08-29 DJ Delorie <dj@redhat.com>
2640
2641 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2642 pointer size up to a power of two.
2643 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2644 (POINTER_SIZE_UNITS): New, rounded up value.
2645 * dwarf2asm.c (size_of_encoded_value): Use it.
2646 (dw2_output_indirect_constant_1): Likewise.
2647 * expmed.c (init_expmed_one_conv): We now know the sizes of
2648 partial int modes.
2649 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2650 * optabs.c (expand_float): Use precision, not size.
2651 (expand_fix): Likewise.
2652 * simplify-rtx (simplify_unary_operation_1): Likewise.
2653 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2654 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2655 (default_assemble_integer) Likewise.
2656 (dump_tm_clone_pairs): Likewise.
2657 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2658 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2659 (prepare_call_arguments): Likewise.
2660 * stor-layout.c (finalize_type_size): Preserve precision.
2661 (layout_type): Use precision, not size.
2662
2663 * expr.c (convert_move): If the target has an explicit converter,
2664 use it.
2665
2666 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2667
2668 * gdbinit.in: Skip various inline functions in rtl.h when
2669 stepping.
2670
2671 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2672
2673 PR bootstrap/62301
2674 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2675
2676 2014-08-29 Richard Biener <rguenther@suse.de>
2677
2678 PR tree-optimization/62291
2679 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2680 exactly the vector size needed and use quick_push.
2681 (phi_translate_1): Adjust comment.
2682 (valid_in_sets): Remove block argument and remove pointless
2683 checking of NAMEs.
2684 (dependent_clean): Adjust for removal of block argument.
2685 (clean): Likewise.
2686 (compute_antic_aux): Likewise.
2687 (compute_partial_antic_aux): Likewise.
2688
2689 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2690 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2691 Anna Tikhonova <anna.tikhonova@intel.com>
2692 Ilya Tocar <ilya.tocar@intel.com>
2693 Andrey Turetskiy <andrey.turetskiy@intel.com>
2694 Ilya Verbin <ilya.verbin@intel.com>
2695 Kirill Yukhin <kirill.yukhin@intel.com>
2696 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2697
2698 * config/i386/sse.md
2699 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2700 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2701 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2702 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2703
2704 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2705 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2706 Anna Tikhonova <anna.tikhonova@intel.com>
2707 Ilya Tocar <ilya.tocar@intel.com>
2708 Andrey Turetskiy <andrey.turetskiy@intel.com>
2709 Ilya Verbin <ilya.verbin@intel.com>
2710 Kirill Yukhin <kirill.yukhin@intel.com>
2711 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2712
2713 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2714 * config/i386/sse.md
2715 (define_mode_iterator VI4_128_8_256): New.
2716 (define_mode_iterator VI2_128_4_256): Ditto.
2717 (define_mode_iterator PMOV_DST_MODE): Rename into
2718 (define_mode_iterator PMOV_DST_MODE_1): this.
2719 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2720 Use PMOV_DST_MODE_1 mode iterator.
2721 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2722 Ditto.
2723 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2724 Ditto.
2725 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2726 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2727 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2728 (define_mode_iterator PMOV_DST_MODE_2): New.
2729 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2730 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2731 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2732 Ditto.
2733 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2734 (define_mode_attr pmov_dst_3): Ditto.
2735 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2736 (define_mode_attr pmov_suff_3): Ditto.
2737 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2738 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2739 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2740 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2741 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2742 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2743 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2744 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2745 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2746 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2747 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2748 (define_mode_attr pmov_dst_4): Ditto.
2749 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2750 (define_mode_attr pmov_suff_4): Ditto.
2751 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2752 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2753 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2754 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2755 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2756 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2757 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2758 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2759 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2760 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2761 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2762
2763 2014-08-29 Richard Biener <rguenther@suse.de>
2764
2765 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2766 NON_LVALUE_EXPR in gimple.
2767
2768 2014-08-29 Richard Biener <rguenther@suse.de>
2769
2770 PR middle-end/62292
2771 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2772 from previous refactoring.
2773 (gimple_fold_builtin_strncpy): Likewise.
2774
2775 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2776
2777 PR bootstrap/62300
2778 * function.c (assign_parm_setup_reg): Remove erroneous checked
2779 cast to rtx_insn * on result of gen_extend_insn in favor of
2780 introducing a new local rtx "pat".
2781
2782 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2783
2784 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2785 to silence warning.
2786 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2787
2788 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2789
2790 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2791 (next_insn): Likewise.
2792 * emit-rtl.c (next_insn): Likewise.
2793 (previous_insn): Likewise.
2794 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2795 "insn" and "next" from rtx to rtx_insn *.
2796 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2797 "insn", "insn1", "vliw_start", "prologue_end_note",
2798 "last_insn_in_packet".
2799
2800 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2801
2802 * shrink-wrap.h (active_insn_between): Strengthen both params from
2803 rtx to rtx_insn *.
2804 * function.c (active_insn_between): Likewise.
2805
2806 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2807
2808 * genattr.c (main): When writing out insn-attr.h, strengthen param
2809 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2810 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2811 writing out the definition of dfa_clear_single_insn_cache to the
2812 generated insn-automata.c
2813
2814 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2815
2816 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2817 rtx to rtx_insn *.
2818 (incr_ticks_for_insn): Likewise.
2819 (init_resource_info): Likewise.
2820
2821 * resource.c (init_resource_info): Likewise.
2822 (clear_hashed_info_for_insn): Likewise.
2823 (incr_ticks_for_insn): Likewise.
2824
2825 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2826 rtx to rtx_insn *.
2827 (steal_delay_list_from_target): Use methods of "seq".
2828 (try_merge_delay_insns): Use methods of "merged_insns".
2829 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2830 (reorg_redirect_jump): Likewise for param "jump".
2831
2832 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2833
2834 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2835 rtx to rtx_insn *.
2836 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2837 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2838 "set_insn".
2839 (s390_mainpool_finish): In three places, split out a local rtx
2840 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2841 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2842 and split another local rtx "insn" out into rtx "pat" and
2843 rtx_insn * "insn".
2844 * config/sh/sh.c (output_branchy_insn): Rather than working
2845 directly on operands[9], introduce local rtx_code_label *
2846 variables named "lab" in two places, working on them, and then
2847 assigning them to operands[9], so that the intervening operations
2848 are known by the type system to be on insns.
2849
2850 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2851
2852 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2853 const rtx_insn *.
2854
2855 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2856 in invocation of INSN_HAS_LOCATION.
2857
2858 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2859
2860 * config/rs6000/altivec.h (vec_xl): New #define.
2861 (vec_xst): Likewise.
2862 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2863 (XXSPLTD_V2DI): Likewise.
2864 (DIV_V2DI): Likewise.
2865 (UDIV_V2DI): Likewise.
2866 (MUL_V2DI): Likewise.
2867 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2868 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2869 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2870 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2871 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2872 (UNSPEC_VSX_DIVSD): Likewise.
2873 (UNSPEC_VSX_DIVUD): Likewise.
2874 (UNSPEC_VSX_MULSD): Likewise.
2875 (vsx_mul_v2di): New insn-and-split.
2876 (vsx_div_v2di): Likewise.
2877 (vsx_udiv_v2di): Likewise.
2878 (vsx_xxspltd_<mode>): New insn.
2879
2880 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2881
2882 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2883 NEXT_INSN.
2884 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2885 (NEXT_INSN): Likewise.
2886 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2887 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2888 const rtx_insn *.
2889 (no_labels_between_p): Likewise for both params.
2890
2891 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2892 cast when using NEXT_INSN on operands[2].
2893 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2894 "insn" from rtx to rtx_insn *, adding a checked cast.
2895 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2896 rtx_insn *.
2897 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2898 for third param.
2899 (arc_text_label): Likewise for param "insn".
2900 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2901 "insn".
2902 (arc_ccfsm_record_condition): Likewise for param "jump".
2903 (arc_text_label): Likewise for local "label".
2904 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2905 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2906 a method for typesafety. Add a checked cast.
2907 * config/arc/constraints.md (Clb): Add a checked cast when getting
2908 the CODE_LABEL from a LABEL_REF.
2909 * config/arm/arm.c (require_pic_register): Strengthen locals
2910 "seq", "insn" from rtx to rtx_insn *.
2911 (create_fix_barrier): Likewise for locals "selected", "next".
2912 (thumb1_reorg): Likewise for locals "prev", "insn".
2913 (arm_expand_prologue): Likewise for local "last".
2914 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2915 operands[0].
2916 (thumb2_output_casesi): Likewise for operands[2].
2917 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2918 strengthen local "insn" from rtx to rtx_insn *.
2919 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2920 type and param "insn".
2921 (find_prev_insn_start): Likewise.
2922 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2923 "prev".
2924 (gen_one_bundle): Likewise for loal "t".
2925 (find_load): Likewise for param "insn".
2926 (workaround_speculation): Likewise for locals "insn", "next",
2927 "target", "next_tgt".
2928 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2929 and for locals "insn", "within", "last".
2930 (count_unit_reqs): Likewise for params "head", "tail" and local
2931 "insn".
2932 (try_rename_operands): Likewise for params "head", "tail".
2933 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2934 (struct c6x_sched_context): Likewise for fields
2935 "last_scheduled_insn", "last_scheduled_iter0".
2936 (init_sched_state): Replace NULL_RTX with NULL.
2937 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2938 to rtx_insn *.
2939 (undo_split_delayed_nonbranch): Likewise for param and for local
2940 "prev".
2941 (conditionalize_after_sched): Likewise for local "insn".
2942 (bb_earliest_end_cycle): Likewise.
2943 (filter_insns_above): Likewise for locals "insn", "next".
2944 (hwloop_optimize): Remove redundant checked cast.
2945 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2946 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2947 NULL_RTX with NULL.
2948 (cris_simple_epilogue): Likewise.
2949 (cris_expand_prologue): Likewise.
2950 (cris_expand_epilogue): Likewise.
2951 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2952 local "insn" from rtx to rtx_insn *.
2953 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2954 (struct frv_packet_group): Likewise for the elements within array
2955 fields "insns", "sorted", and for field "nop".
2956 (frv_packet): Likewise for the elements within array field
2957 "insns".
2958 (frv_add_insn_to_packet): Likewise for param "insn".
2959 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2960 "last".
2961 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2962 (frv_sort_insn_group_1): Likewise for local "insn".
2963 (frv_optimize_membar_local): Likewise.
2964 (frv_align_label): Likewise for locals "x", "last", "barrier",
2965 "label".
2966 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2967 local.
2968 (ia64_sched_init): Likewise for local "insn".
2969 (scheduled_good_insn): Likewise for param "last".
2970 (struct _ia64_sched_context): Likewise for field
2971 "last_scheduled_insn".
2972 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2973 (struct bundle_state): Likewise for field "insn".
2974 (issue_nops_and_insn): Likewise for param "insn".
2975 (get_next_important_insn): Likewise for return type and both
2976 params.
2977 (ia64_add_bundle_selector_before): Likewise for param "insn".
2978 (bundling): Likewise for params "prev_head_insn", "tail" and
2979 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2980 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2981 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2982 Strengthen final param from rtx to rtx_insn *.
2983 (iq2000_move_1word): Likewise for second param.
2984 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2985 param "cur_insn" and local "next_insn".
2986 (iq2000_move_1word): Likewise for param "insn".
2987 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2988 casts when using NEXT_INSN on operands[1].
2989 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2990 "insn" from rtx to rtx_insn *.
2991 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2992 "x", introducing local rtx_insn * "insn" for when working with the
2993 CODE_LABEL of the LABEL_REF.
2994 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2995 rtx_insn *.
2996 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2997 param.
2998 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2999 type.
3000 (conditionalize_block): Likewise for return type and param.
3001 (mcore_is_dead): Likewise for param "first" and local "insn".
3002 (emit_new_cond_insn): Likewise for return type.
3003 (conditionalize_block): Likewise for return type, param, and
3004 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3005 "newinsn".
3006 (conditionalize_optimization): Likewise for local "insn".
3007 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3008 using NEXT_INSN.
3009 * config/microblaze/microblaze.md: Add checked casts when using
3010 NEXT_INSN.
3011 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3012 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3013 and rtx_insn * "insn".
3014 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3015 checked cast when using NEXT_INSN on operands[2].
3016 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3017 local "insn" from rtx to rtx_insn *.
3018 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3019 Likewise.
3020 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3021 Add a checked cast when using NEXT_INSN on operands[1].
3022 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3023 rtx to rtx_insn *.
3024 (pa_output_cbranch): Likewise for final param.
3025 (pa_output_lbranch): Likewise for second param.
3026 (pa_output_bb): Likewise for third param.
3027 (pa_output_bvb): Likewise.
3028 (pa_output_dbra): Likewise for second param.
3029 (pa_output_movb): Likewise.
3030 (pa_output_parallel_movb): Likewise.
3031 (pa_output_parallel_addb): Likewise.
3032 (pa_output_millicode_call): Likewise for first param.
3033 (pa_output_mul_insn): Likewise for second param.
3034 (pa_output_div_insn): Likewise for third param.
3035 (pa_output_mod_insn): Likewise for second param.
3036 (pa_jump_in_call_delay): Likewise for param.
3037 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3038 (pa_output_div_insn): Likewise.
3039 (pa_output_mod_insn): Likewise.
3040 (pa_output_cbranch): Likewise.
3041 (pa_output_lbranch): Likewise.
3042 (pa_output_bb): Likewise.
3043 (pa_output_bvb): Likewise.
3044 (pa_output_dbra): Likewise.
3045 (pa_output_movb): Likewise.
3046 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3047 to simplify and for typesafety.
3048 (pa_output_call): Use method of rtx_sequence *.
3049 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3050 (pa_jump_in_call_delay): Likewise.
3051 (pa_output_parallel_movb): Likewise.
3052 (pa_output_parallel_addb): Likewise.
3053 (pa_following_call): Likewise.
3054 (pa_combine_instructions): Likewise for locals "anchor",
3055 "floater".
3056 (pa_can_combine_p): Likewise for params "anchor", "floater" and
3057 locals "start", "end".
3058 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3059 param "insn" and local "local_insn".
3060 (picochip_final_prescan_insn): Likewise for local "local_insn".
3061 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3062 local "insn".
3063 (uses_TOC): Likewise.
3064 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3065 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3066 splitting out to more tightly-scoped locals, 3 as rtx and one as
3067 rtx_insn *.
3068 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3069 to rtx_insn *.
3070 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3071 where needed.
3072 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3073 to rtx_insn *.
3074 (fixup_addr_diff_vecs): Likewise.
3075 (reg_unused_after): Likewise for param 2.
3076 (sh_can_redirect_branch): Likewise for both params.
3077 (check_use_sfunc_addr): Likewise for param 1.
3078 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3079 (find_barrier): Likewise for local "last_got".
3080 (gen_block_redirect): Likewise for return type, param "jump" and
3081 locals "prev", "scan", "next", "insn".
3082 (struct far_branch): Likewise for fields "near_label",
3083 "insert_place", "far_label".
3084 (gen_far_branch): Likewise for local "jump".
3085 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3086 "insn", "prev".
3087 (barrier_align): Likewise for param and for locals "prev", "x".
3088 Introduce local rtx_sequence * "prev_seq" and use insn method for
3089 typesafety and clarity.
3090 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3091 (get_dest_uid): Likewise for local "dest".
3092 (split_branches): Likewise for locals "next", "beyond", "label",
3093 "block", "far_label". Add checked casts when assigning to
3094 bp->far_label and "far_label".
3095 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3096 (sequence_insn_p): Likewise.
3097 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3098 more loop-scoped rtx "insn" when walking LABEL_REFS.
3099 (sh_can_redirect_branch): Strengthen both params from rtx to
3100 rtx_insn *.
3101 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3102 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3103 for clarity and typesafety.
3104 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3105 "insn" from rtx to rtx_insn *.
3106 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3107 when using NEXT_INSN on the CODE_LABEL in operands[2].
3108 (define_insn "casesi_worker_2"): Likewise.
3109 (define_insn "casesi_shift_media"): Likewise.
3110 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3111 operands[3].
3112 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3113 Strengthen field "insn" from rtx to rtx_insn *.
3114 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3115 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3116 param "start_insn" and local "start_insn".
3117 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3118 field "insn".
3119 (find_set_of_reg_bb): Likewise for param "insn".
3120 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3121 (trace_reg_uses): Likewise for param "start_insn".
3122 (sh_treg_combine::cbranch_trace): Likewise for field
3123 "cbranch_insn".
3124 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3125 param "insn".
3126 (sh_treg_combine::record_set_of_reg): Likewise for param
3127 "start_insn" and local "i".
3128 (sh_treg_combine::can_remove_cstore): Likewise for local
3129 "prev_insn".
3130 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3131 "insn".
3132 (sh_treg_combine::execute): Likewise for local "i".
3133 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3134 param.
3135 (sparc_check_64): Likewise for second param.
3136 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3137 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3138 dyn_cast, using its insn method for typesafety and clarity.
3139 (empty_delay_slot): Strengthen param "insn" from rtx to
3140 rtx_insn *.
3141 (set_extends): Likewise.
3142 (sparc_check_64): Likewise.
3143 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3144 for locals "seq", "last_insn".
3145 (combine_bnp): Likewise for param "insn".
3146 (xstormy16_reorg): Likewise for local "insn".
3147 * config/v850/v850.c (substitute_ep_register): Likewise for params
3148 "first_insn", "last_insn" and local "insn".
3149 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3150 elements of "regs" array, and local "insn".
3151 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3152 * final.c (final_sequence): Strengthen this global from rtx to
3153 rtx_sequence *.
3154 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3155 rtx_insn *.
3156 (final_scan_insn): Update assignment to "final_sequence" to be
3157 from "seq", the cast version of "body", for type-safety.
3158 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3159 "insns" from rtx to rtx_insn *.
3160 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3161 * genattr.c (main): When writing out generated insn-attr.h,
3162 strengthen params 1 and 3 of eligible_for_delay,
3163 eligible_for_annul_true, eligible_for_annul_false from rtx to
3164 rtx_insn *.
3165 * genattrtab.c (write_eligible_delay): Likewise when writing out
3166 generated insn-attrtab.c; also local "insn" the generated
3167 functions.
3168 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3169 to rtx_insn *.
3170 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3171 "start_label" from rtx to rtx_insn *.
3172 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3173 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3174 "insns" and local "insn".
3175 (validate_equiv_mem): Likewise for param "start" and local "insn".
3176 (memref_used_between_p): Likewise for params "start", "end" and
3177 local "insn".
3178 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3179 final param.
3180 * loop-doloop.c (doloop_optimize): Within region guarded by
3181 INSN_P (doloop_pat), introduce a new local rtx_insn *
3182 "doloop_insn" via a checked cast, and use it for typesafety,
3183 eventually writing the value back into doloop_pat.
3184 * output.h (final_sequence): Strengthen this global from rtx to
3185 rtx_sequence *.
3186 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3187 reintroducing "insn" as an rtx_insn * via a checked cast.
3188 Strengthen param "attempt" and local "new_insn"from rtx to
3189 rtx_insn *.
3190 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3191 to rtx_insn *.
3192 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3193 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3194 "p" in favor of more tightly-scoped replacements, sometimes rtx
3195 and sometimes rtx_insn *, as appropriate.
3196 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3197 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3198 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3199 local "trial" from rtx to rtx_insn *.
3200 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3201 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3202 rtx_sequence * and use methods for clarity and typesafety.
3203 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3204 rtx to rtx_insn *. Strenghten local "li" from rtx to
3205 rtx_insn_list * and use its methods for clarity and typesafety.
3206 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3207 to rtx_insn *.
3208 (steal_delay_list_from_fallthrough): Likewise.
3209 (try_merge_delay_insns): Likewise for param "thread" and locals
3210 "trial", "next_trial", "delay_insn".
3211 (redundant_insn): Likewise for param "target" and local "trial".
3212 (own_thread_p): Likewise for param "thread" and locals
3213 "active_insn", "insn".
3214 (get_label_before): Likewise for param "insn".
3215 (fill_simple_delay_slots): Likewise for local "new_label"; use
3216 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3217 (label_before_next_insn): Strengthen return type and local "insn"
3218 from rtx to rtx_insn *.
3219 (relax_delay_slots): Likewise for locals "other", "tmp".
3220 (make_return_insns): Likewise for param "first" and locals "insn",
3221 "jump_insn", "prev". Move declaration of "pat" to its assignment
3222 and strengthen from rtx to rtx_sequence *. Use its methods for
3223 clarity and typesafety.
3224 * rtlanal.c (no_labels_between_p): Strengthen params from
3225 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3226 rtx_insn *.
3227 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3228 from const_rtx to const rtx_insn *.
3229 (reg_set_between_p): Rename param "from_insn" to
3230 "uncast_from_insn", and reintroduce "from_insn" as a
3231 const rtx_insn * via a checked cast.
3232 (modified_between_p): Likewise for param "start" as "uncast_start".
3233 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3234 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3235 "tmp", head" from rtx to rtx_insn *.
3236 (recompute_rev_top_order): Likewise for local "insn".
3237 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3238 * store-motion.c (build_store_vectors): Likewise for local "insn".
3239 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3240 for clarity and typesafety.
3241 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3242 rtx to rtx_insn *.
3243 (computation_cost): Likewise for local "seq".
3244 (get_address_cost): Likewise.
3245
3246 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3247
3248 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3249 const rtx_insn *.
3250 (label_is_jump_target_p): Likewise for second param.
3251
3252 * rtlanal.c (tablejump_p): Likewise for param "insn".
3253 (label_is_jump_target_p): Likewise for param "jump_insn".
3254
3255 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3256
3257 * rtl.h (find_first_parameter_load): Strengthen return type and
3258 both params from rtx to rtx_insn *.
3259 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3260 both params and locals "before", "first_set" from rtx to
3261 rtx_insn *. Remove now-redundant cast.
3262 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3263
3264 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3265
3266 * rtl.h (find_last_value): Delete.
3267 * rtlanal.c (find_last_value): Delete.
3268
3269 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3270
3271 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3272 from rtx to rtx_insn *.
3273 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3274 rtx "note" with new local rtx_insn * "new_head" when calculating
3275 head insn of new basic block.
3276 * combine.c (combine_split_insns): Strengthen return type and local
3277 "ret" from rtx to rtx_insn *.
3278 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3279 (try_combine): Eliminate local "m_split", splitting into new
3280 locals "m_split_insn" and "m_split_pat".
3281 (find_split_point): Strengthen local "seq" from rtx into
3282 rtx_insn *.
3283 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3284 locals "label", "branch".
3285 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3286 for local "insn".
3287 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3288 * dse.c (note_add_store_info): Likewise for fields "first",
3289 "current".
3290 (note_add_store): Likewise for local "insn".
3291 (emit_inc_dec_insn_before): Likewise for locals "insn",
3292 "new_insn", "cur".
3293 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3294 (replace_read): Likewise for locals "insns", "this_insn".
3295 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3296 (notice_eh_throw): Likewise for param "insn".
3297 (before_next_cfi_note): Likewise for return type, param, and local
3298 "prev".
3299 (connect_traces): Likewise for local "note".
3300 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3301 (verify_rtl_sharing): Likewise.
3302 (unshare_all_rtl_in_chain): Likewise for param "insn".
3303 (get_first_nonnote_insn): Likewise for local "insn".
3304 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3305 "seq" and use its methods to clarify things.
3306 (next_insn): Strengthen return type from rtx to rtx_insn *.
3307 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3308 local rtx_insn * using a checked cast, dropping a checked cast
3309 made redundant by this change. Use a cast to and method of
3310 rtx_sequence to clarify the code.
3311 (previous_insn): Rename param "insn" to "uncast_insn" and
3312 reintroduce "insn" as a local rtx_insn * using a checked cast,
3313 dropping a checked cast made redundant by this change. Use a cast
3314 to and method of rtx_sequence to clarify the code.
3315 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3316 reintroduce "insn" as a local rtx_insn * using a checked cast,
3317 dropping a checked cast made redundant by this change.
3318 (next_nonnote_insn_bb): Likewise.
3319 (prev_nonnote_insn): Likewise.
3320 (prev_nonnote_insn_bb): Likewise.
3321 (next_nondebug_insn): Likewise.
3322 (prev_nondebug_insn): Likewise.
3323 (next_nonnote_nondebug_insn): Likewise.
3324 (prev_nonnote_nondebug_insn): Likewise.
3325 (next_real_insn): Likewise.
3326 (prev_real_insn): Likewise.
3327 (next_active_insn): Likewise.
3328 (prev_active_insn): Likewise.
3329 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3330 clarity.
3331 (prev_cc0_setter): Likewise.
3332 (try_split): Rename param "trial" to "uncast_trial" and
3333 reintroduce "insn" as a local rtx_insn * using a checked cast,
3334 dropping checked casts made redundant by this change.
3335 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3336 rtx to rtx_insn *.
3337 (remove_insn): Rename param "insn" to "uncast_insn" and
3338 reintroduce "insn" as a local rtx_insn * using a checked cast.
3339 (emit_pattern_after_setloc): Likewise for param "after", as
3340 "uncast_after".
3341 (emit_pattern_after): Likewise. Strengthen local "prev" from
3342 rtx to rtx_insn *.
3343 (emit_pattern_before_setloc): Rename param "before" to
3344 "uncast_before" and reintroduce "before" as a local rtx_insn *
3345 using a checked cast. Strengthen locals "first", "last" from
3346 rtx to rtx_insn *.
3347 (emit_pattern_before): Likewise rename/cast param "before" to
3348 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3349 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3350 "first" and local "insn" from rtx to rtx_insn *.
3351 (copy_reg_eh_region_note_backward): Likewise for param "last"
3352 and local "insn".
3353 * expr.c (fixup_args_size_notes): Rename param "last" to
3354 "uncast_last" and reintroduce "last" as a local rtx_insn *
3355 using a checked cast. Strengthen local "insn" from rtx to
3356 rtx_insn *.
3357 * function.c (set_insn_locations): Strengthen param "insn" from
3358 rtx to rtx_insn *.
3359 (record_insns): Likewise for param "insns" and local "tmp".
3360 (active_insn_between): Rename param "tail" to
3361 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3362 using a checked cast.
3363 (thread_prologue_and_epilogue_insns): Split out top-level local
3364 rtx "seq" into three different rtx_insn * locals. Strengthen
3365 local "prologue_seq" from rtx to rtx_insn *.
3366 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3367 from rtx to rtx_insn *.
3368 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3369 (priority): Likewise for locals "prev_first", "twin".
3370 (setup_insn_max_reg_pressure): Likewise for param "after".
3371 (sched_setup_bb_reg_pressure_info): Likewise.
3372 (no_real_insns_p): Strengthen params from const_rtx to
3373 const rtx_insn *.
3374 (schedule_block): Strengthen local "next_tail" from rtx to
3375 rtx_insn *.
3376 * ifcvt.c (find_active_insn_before): Strengthen return type and
3377 param "insn" from rtx to rtx_insn *.
3378 (find_active_insn_after): Likewise.
3379 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3380 (cond_exec_process_if_block): Likewise for locals "then_start",
3381 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3382 (noce_process_if_block): Likewise for local "jump".
3383 (merge_if_block): Likewise for two locals named "end".
3384 (cond_exec_find_if_block): Likewise for local "last_insn".
3385 * jump.c (delete_related_insns): Rename param "insn" to
3386 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3387 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3388 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3389 NULL.
3390 (split_reg): Likewise.
3391 * lra.c (lra_process_new_insns): Likewise.
3392 * modulo-sched.c (permute_partial_schedule): Strengthen param
3393 "last" from rtx to rtx_insn *.
3394 * optabs.c (add_equal_note): Likewise for param "insns" and local
3395 "last_insn".
3396 (expand_binop_directly): Add checked casts to rtx_insn * within
3397 NEXT_INSN (pat) uses.
3398 (expand_unop_direct): Likewise.
3399 (maybe_emit_unop_insn): Likewise.
3400 * recog.c (peep2_attempt): Strengthen locals "last",
3401 "before_try", "x" from rtx to rtx_insn *.
3402 * reorg.c (optimize_skip): Strengthen return type and local
3403 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3404 and locals "trial", "next_trial" from rtx to rtx_insn *.
3405 * resource.c (next_insn_no_annul): Strengthen return type and
3406 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3407 rtx_sequence to clarify the code.
3408 (mark_referenced_resources): Add a checked cast to rtx_insn *
3409 within PREV_INSN (x).
3410 (find_dead_or_set_registers): Strengthen return type, param
3411 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3412 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3413 to rtx_insn **.
3414 (mark_target_live_regs): Strengthen params "insns" and "target",
3415 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3416 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3417 the code.
3418 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3419 from rtx to rtx_insn *.
3420 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3421 from rtx to rtx_insn *.
3422 (copy_reg_eh_region_note_backward): Likewise.
3423 (unshare_all_rtl_in_chain): Likewise for sole param.
3424 (dump_rtl_slim): Strengthen second and third params from const_rtx
3425 to const rtx_insn *.
3426 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3427 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3428 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3429 "next_tail" from rtx to rtx_insn *.
3430 (begin_move_insn): Likewise for local "next".
3431 * sched-int.h (sched_free_deps): Likewise for first and second
3432 params.
3433 (no_real_insns_p): Strengthen both params from const_rtx to
3434 const rtx_insn *.
3435 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3436 rtx to rtx_insn *.
3437 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3438 "next_tail".
3439 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3440 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3441 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3442 rtx_insn *.
3443 (debug_rtl_slim): Strengthen params "first" and "last" from
3444 const_rtx to const rtx_insn *.
3445 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3446 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3447 (convert_to_simple_return): Likewise for param "returnjump".
3448 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3449 "prologue_seq".
3450 (convert_to_simple_return): Likewise for param "returnjump".
3451 * valtrack.c (propagate_for_debug): Likewise for params
3452 "insn", "last".
3453 * valtrack.h (propagate_for_debug): Likewise for second param.
3454
3455 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3456
3457 * output.h (insn_current_reference_address): Strengthen param
3458 from rtx to rtx_insn *.
3459 * final.c (insn_current_reference_address): Likewise.
3460
3461 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3462
3463 * basic-block.h (inside_basic_block_p): Strengthen param from
3464 const_rtx to const rtx_insn *.
3465 * cfgbuild.c (inside_basic_block_p): Likewise.
3466
3467 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3468
3469 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3470 rtx_insn *.
3471 (get_trace_info): Likewise for param "insn".
3472 (save_point_p): Likewise.
3473 (maybe_record_trace_start): Likewise for both params.
3474 (maybe_record_trace_start_abnormal): Likewise.
3475 (create_trace_edges): Likewise for sole param and for three of the
3476 locals named "lab".
3477 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3478 to rtx_insn *, and update a call to pat->element to pat->insn.
3479
3480 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3481
3482 * function.h (struct expr_status): Convert field "x_forced_labels"
3483 from rtx_expr_list * to rtx_insn_list *.
3484
3485 * cfgbuild.c (make_edges): Convert local "x" from an
3486 rtx_expr_list * to an rtx_insn_list *, replacing use of
3487 "element" method with "insn" method.
3488 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3489 * except.c (sjlj_emit_dispatch_table): Replace use of
3490 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3491 forced_labels.
3492 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3493 rtx_expr_list * to an rtx_insn_list *, replacing use of
3494 "element" method with "insn" method.
3495 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3496 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3497 rtx_insn *, adding a checked cast. Replace use of
3498 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3499 forced_labels.
3500 (expand_label): Likewise for local "label_r".
3501
3502 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3503
3504 * function.h (struct rtl_data): Convert field
3505 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3506 rtx_insn_list *.
3507 * rtl.h (remove_node_from_insn_list): New prototype.
3508
3509 * builtins.c (expand_builtin): When prepending to
3510 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3511 gen_rtx_EXPR_LIST.
3512 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3513 to rtx_insn_list *, and use its "insn" method rather than
3514 "element" method.
3515 * cfgrtl.c (delete_insn): Use new function
3516 remove_node_from_insn_list rather than
3517 remove_node_from_expr_list.
3518 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3519 to rtx_insn_list *, and use its "insn" method rather than
3520 "element" method.
3521 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3522 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3523 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3524 from remove_node_from_expr_list.
3525 * stmt.c (expand_label): When prepending to
3526 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3527 gen_rtx_EXPR_LIST.
3528
3529 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3530
3531 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3532 and "x_naked_return_label" from rtx to rtx_code_label *.
3533
3534 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3535
3536 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3537 (SET_NEXT_INSN): Likewise.
3538 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3539
3540 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3541 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3542 to split out the SEQUENCE from local "bundle", strengthening the
3543 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3544 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3545 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3546 and the type of the elements of the "slot" array from rtx to
3547 rtx_insn *.
3548 (reorg_split_calls): Likewise for locals "insn" and "next", and
3549 the type of the elements of the "slot" array.
3550
3551 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3552 array.
3553 (frv_function_prologue): Likewise for locals "insn", "next",
3554 "last_call".
3555 (frv_register_nop): Introduce a local "nop_insn" to be the
3556 rtx_insn * containing rtx "nop".
3557
3558 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3559 used as an insn and sometimes as a pattern, so rename it to
3560 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3561 using it where dealing with the core insn.
3562
3563 * config/picochip/picochip.c (reorder_var_tracking_notes):
3564 Strengthen locals "insn", "next", "last_insn", "queue",
3565 "next_queue", "prev" from rtx to rtx_insn *.
3566
3567 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3568 the second param is an rtx_insn ** rather than an rtx **.
3569 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3570 from rtx to rtx_sequence *, and introduce local named "sequence",
3571 using methods of rtx_sequence to clarify the code.
3572 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3573 use its methods.
3574 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3575 Rename param "after" to "uncast_after", reintroducing "after" as a
3576 local rtx_insn * with a checked cast.
3577 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3578 reintroducing "after" as a local rtx_insn * with a checked cast.
3579 Strengthen local "last" from rtx to rtx_insn * and remove the
3580 now-redundant checked casts.
3581 (copy_delay_slot_insn): Strengthen return type and param from rtx
3582 to rtx_insn *.
3583
3584 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3585 "last" from rtx to rtx_insn *.
3586
3587 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3588
3589 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3590 param from rtx to rtx_insn *.
3591
3592 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3593
3594 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3595 and local "insn" from rtx to rtx_insn *.
3596 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3597 (unfilled_slots_next): Likewise.
3598 (function_return_label): Strengthen from rtx to rtx_code_label *.
3599 (function_simple_return_label): Likewise.
3600 (first_active_target_insn): Strengthen return type and param from
3601 rtx to rtx_insn *.
3602 (find_end_label): Strengthen return type from rtx to
3603 rtx_code_label *; strengthen locals as appropriate.
3604 (emit_delay_sequence): Strengthen return type, param "insn" and
3605 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3606 and local "li" from rtx to rtx_insn_list *, using methods of
3607 rtx_insn_list for clarity and typesafety.
3608 (add_to_delay_list): Strengthen return type and param "insn" from
3609 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3610 rtx_insn_list * and use methods of rtx_insn_list.
3611 (delete_from_delay_slot): Strengthen return type, param "insn",
3612 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3613 Strengthen local "seq" from rtx to rtx_sequence *, and local
3614 "delay_list" from rtx to rtx_insn_list *, using methods of
3615 rtx_sequence for clarity and type-safety.
3616 (delete_scheduled_jump): Add checked cast when invoking
3617 delete_from_delay_slot. Strengthen local "trial" from rtx to
3618 rtx_insn *.
3619 (optimize_skip): Strengthen return type and local "delay_list"
3620 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3621 rtx_insn *.
3622 (steal_delay_list_from_target): Strengthen return type, param
3623 "delay_list" and local "new_delay_list" from rtx to
3624 rtx_insn_list *. Strengthen param "seq" from rtx to
3625 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3626 rtx_insn **.
3627 Split out local "temp" into multiple more-tightly scoped locals:
3628 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3629 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3630 Strengthen locals named "trial" from rtx to rtx_insn *.
3631 (steal_delay_list_from_fallthrough): Strengthen return type and
3632 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3633 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3634 Strengthen local "trial" from rtx to rtx_insn *.
3635 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3636 to rtx_insn_list * and use its methods. Strengthen local "pat"
3637 from rtx to rtx_sequence * and use its methods. Strengthen locals
3638 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3639 (get_label_before): Strengthen return type and local "label" from
3640 rtx to rtx_insn *.
3641 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3642 "next_trial", "next", prev". Strengthen local "delay_list" from
3643 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3644 rtx_insn **.
3645 (follow_jumps): Strengthen return type, param "label" and locals
3646 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3647 (fill_slots_from_thread): Strengthen return type, param
3648 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3649 "insn", "thread", "opposite_thread" and locals "new_thread",
3650 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3651 "sequence" from a checked cast to rtx_sequence so that we can call
3652 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3653 with an rtx_sequence *.
3654 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3655 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3656 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3657 (relax_delay_slots): Strengthen param "first" and locals "insn",
3658 "next", "trial", "delay_insn", "target_label" from rtx to
3659 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3660 Introduce a local "trial_seq" for PATTERN (trial) of type
3661 rtx_sequence *, in both cases using methods of rtx_sequence.
3662 (dbr_schedule): Strengthen param "first" and locals "insn",
3663 "next", "epilogue_insn" from rtx to rtx_insn *.
3664
3665 2014-08-28 Richard Biener <rguenther@suse.de>
3666
3667 PR tree-optimization/62283
3668 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3669 Do not peel loops for alignment where the vector loop likely
3670 doesn't run at least VF times.
3671
3672 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3673
3674 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3675 important_candidates. Consider all important candidates if
3676 IVS doesn't give any result. Remove check on ivs->upto.
3677 (try_add_cand_for): Call iv_ca_add_use only once.
3678
3679 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3680 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3681 Anna Tikhonova <anna.tikhonova@intel.com>
3682 Ilya Tocar <ilya.tocar@intel.com>
3683 Andrey Turetskiy <andrey.turetskiy@intel.com>
3684 Ilya Verbin <ilya.verbin@intel.com>
3685 Kirill Yukhin <kirill.yukhin@intel.com>
3686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3687
3688 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3689 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3690 masking.
3691 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3692 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3693 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3694 (define_insn "*mul<mode>3"): Add EVEX version.
3695
3696 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3697 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3698 Anna Tikhonova <anna.tikhonova@intel.com>
3699 Ilya Tocar <ilya.tocar@intel.com>
3700 Andrey Turetskiy <andrey.turetskiy@intel.com>
3701 Ilya Verbin <ilya.verbin@intel.com>
3702 Kirill Yukhin <kirill.yukhin@intel.com>
3703 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3704
3705 * config/i386/sse.md
3706 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3707 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3708 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3709 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3710 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3711 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3712 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3713 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3714 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3715 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3716 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3717 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3718 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3719 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3720 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3721 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3722
3723 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3724 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3725 Anna Tikhonova <anna.tikhonova@intel.com>
3726 Ilya Tocar <ilya.tocar@intel.com>
3727 Andrey Turetskiy <andrey.turetskiy@intel.com>
3728 Ilya Verbin <ilya.verbin@intel.com>
3729 Kirill Yukhin <kirill.yukhin@intel.com>
3730 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3731
3732 * config/i386/sse.md
3733 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3734 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3735 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3736
3737 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3738 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3739 Anna Tikhonova <anna.tikhonova@intel.com>
3740 Ilya Tocar <ilya.tocar@intel.com>
3741 Andrey Turetskiy <andrey.turetskiy@intel.com>
3742 Ilya Verbin <ilya.verbin@intel.com>
3743 Kirill Yukhin <kirill.yukhin@intel.com>
3744 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3745
3746 * config/i386/sse.md
3747 (define_mode_iterator VI128_256): New.
3748 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3749
3750 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3751 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3752 Anna Tikhonova <anna.tikhonova@intel.com>
3753 Ilya Tocar <ilya.tocar@intel.com>
3754 Andrey Turetskiy <andrey.turetskiy@intel.com>
3755 Ilya Verbin <ilya.verbin@intel.com>
3756 Kirill Yukhin <kirill.yukhin@intel.com>
3757 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3758
3759 * config/i386/sse.md
3760 (define_mode_iterator VI8_256_512): New.
3761 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3762 Ditto.
3763 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3764 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3765 Ditto.
3766 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3767
3768 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3769
3770 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3771 pointer to the cumulative reloc value and return the value for
3772 this reloc instead.
3773 (compute_reloc_for_rtx): Take a const_rtx. Call
3774 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3775 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3776 for_each_rtx for the CONST case.
3777
3778 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3779
3780 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3781 (mark_constants_in_pattern): ...this new function to iterate over
3782 all the subrtxes.
3783 (mark_constants): Update accordingly.
3784
3785 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3786
3787 * varasm.c: Include rtl-iter.h.
3788 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3789 Remove the pointer to the cumulative hashval_t and just return
3790 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3791 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3792 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3793
3794 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3795
3796 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3797 Give real type of data parameter. Remove return value.
3798 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3799 to iterate over subrtxes.
3800
3801 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3802
3803 * var-tracking.c (use_narrower_mode_test): Turn from being a
3804 for_each_rtx callback to being a function that examines each
3805 subrtx itself.
3806 (adjust_mems): Update accordingly.
3807
3808 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3809
3810 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3811 callback to being a function that examines each subrtx itself.
3812 Remove handling of null rtxes.
3813 (add_uses): Update accordingly.
3814
3815 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3816
3817 * var-tracking.c: Include rtl-iter.h.
3818 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3819 to being a function that examines each subrtx itself.
3820 (use_type): Update accordingly.
3821
3822 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3823
3824 * store-motion.c: Include rtl-iter.h.
3825 (extract_mentioned_regs_1): Delete.
3826 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3827 for_each_rtx to iterate over subrtxes.
3828
3829 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3830
3831 * sel-sched.c: Include rtl-iter.h
3832 (count_occurrences_1): Delete.
3833 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3834 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3835
3836 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3837
3838 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3839 * rtlanal.c (tls_referenced_p_1): Delete.
3840 (tls_referenced_p): Take a const_rtx rather than an rtx.
3841 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3842
3843 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3844
3845 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3846 (for_each_inc_dec): Take an rtx rather than an rtx *.
3847 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3848 (cselib_record_sets): Likewise.
3849 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3850 (check_for_inc_dec): Likewise.
3851 * rtlanal.c (for_each_inc_dec_ops): Delete.
3852 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3853 rather than a pointer to the memory address. Replace
3854 for_each_inc_dec_ops argument with separate function and data
3855 arguments. Abort on non-autoinc addresses.
3856 (for_each_inc_dec_find_mem): Delete.
3857 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3858 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3859
3860 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3861
3862 * rtl.h (find_all_hard_regs): Declare.
3863 * rtlanal.c (find_all_hard_regs): New function.
3864 (record_hard_reg_uses_1): Delete.
3865 (record_hard_reg_uses): Use find_all_hard_regs.
3866
3867 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3868
3869 * rtl.h (replace_label_data): Delete.
3870 (replace_label): Take the old label, new label and update-nuses flag
3871 as direct arguments. Return void.
3872 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3873 * rtlanal.c (replace_label): Update interface as above. Handle
3874 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3875 iterator. Use FOR_EACH_SUBRTX_PTR.
3876
3877 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3878
3879 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3880 with const_rtx parameters.
3881 * varasm.c (get_pool_constant): Likewise.
3882 * rtlanal.c (rtx_referenced_p_1): Delete.
3883 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3884 Assert that the rtx we're looking for is nonnull. Allow searches
3885 for constant pool SYMBOL_REFs.
3886
3887 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3888
3889 * reload1.c: Include rtl-iter.h.
3890 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3891 to being a function that examines each subrtx itself.
3892 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3893
3894 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3895
3896 * regcprop.c (cprop_find_used_regs_1): Delete.
3897 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3898
3899 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3900
3901 * regcprop.c: Include rtl-iter.h.
3902 (kill_value): Take a const_rtx.
3903 (kill_autoinc_value): Turn from being a for_each_rtx callback
3904 to being a function that examines each subrtx itself.
3905 (copyprop_hardreg_forward_1): Update accordingly.
3906
3907 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3908
3909 * reg-stack.c: Include rtl-iter.h.
3910 (subst_stack_regs_in_debug_insn): Delete.
3911 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3912 instead of for_each_rtx.
3913
3914 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3915
3916 * lower-subreg.c (find_decomposable_subregs): Turn from being
3917 a for_each_rtx callback to being a function that examines each
3918 subrtx itself. Remove handling of null rtxes.
3919 (decompose_multiword_subregs): Update accordingly.
3920
3921 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3922
3923 * lower-subreg.c (adjust_decomposed_uses): Delete.
3924 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3925 Remove handling of null rtxes.
3926
3927 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3928
3929 * lower-subreg.c: Include rtl-iter.h.
3930 (resolve_subreg_use): Turn from being a for_each_rtx callback
3931 to being a function that examines each subrtx itself. Remove
3932 handling of null rtxes.
3933 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3934 (decompose_multiword_subregs): Likewise.
3935
3936 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3937
3938 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3939 to being a function that examines each subrtx itself.
3940 (simplify_using_condition, simplify_using_initial_values): Update
3941 accordingly.
3942
3943 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3944
3945 * loop-iv.c: Include rtl-iter.h.
3946 (find_single_def_src): New function.
3947 (replace_single_def_regs): Turn from being a for_each_rtx callback
3948 to being a function that examines each subrtx itself.
3949 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3950
3951 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3952
3953 * jump.c (eh_returnjump_p_1): Delete.
3954 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3955 Remove handling of null rtxes.
3956
3957 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3958
3959 * jump.c: Include rtl-iter.h.
3960 (returnjump_p_1): Delete.
3961 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3962 Remove handling of null rtxes.
3963
3964 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3965
3966 * ira.c: Include rtl-iter.h.
3967 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3968 to being a function that examines each subrtx itself. Remove
3969 handling of null rtxes.
3970 (update_equiv_regs): Update call accordingly.
3971
3972 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3973
3974 * fwprop.c: Include rtl-iter.h.
3975 (varying_mem_p): Turn from being a for_each_rtx callback to being
3976 a function that examines each subrtx itself.
3977 (propagate_rtx): Update accordingly.
3978
3979 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3980
3981 * function.c: Include rtl-iter.h
3982 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3983 callback to being a function that examines each subrtx itself.
3984 Return the changed flag.
3985 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3986 (instantiate_virtual_regs): Update calls accordingly.
3987
3988 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3989
3990 * final.c: Include rtl-iter.h.
3991 (mark_symbol_ref_as_used): Delete.
3992 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3993 for_each_rtx.
3994
3995 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3996
3997 * emit-rtl.c: Include rtl-iter.h.
3998 (find_auto_inc): Turn from being a for_each_rtx callback to being
3999 a function that examines each subrtx itself. Assume the first operand
4000 to an RTX_AUTOINC is the automodified register.
4001 (try_split): Update call accordingly.
4002
4003 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4004
4005 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4006 Return a bool, inverting the result so that 0/false means "not ok".
4007 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4008 subrtxes of a CONST.
4009 (mem_loc_descriptor, add_const_value_attribute)
4010 (resolve_addr_in_expr): Update calls accordingly.
4011
4012 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4013
4014 * dwarf2out.c: Include rtl-iter.h.
4015 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4016 Remove unused data parameter. Return a bool, inverting the result
4017 so that 0/false means "not ok".
4018 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
4019 instead of for_each_rtx.
4020
4021 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4022
4023 * dse.c: Include rtl-iter.h.
4024 (check_mem_read_rtx): Change void * parameter to real type.
4025 Remove return value.
4026 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
4027 for_each_rtx. Don't handle null rtxes.
4028
4029 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4030
4031 * df-problems.c: Include rtl-iter.h.
4032 (find_memory): Turn from being a for_each_rtx callback to being
4033 a function that examines each subrtx itself. Continue to look for
4034 volatile references even after a nonvolatile one has been found.
4035 (can_move_insns_across): Update calls accordingly.
4036
4037 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4038
4039 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4040 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4041 to iterate over subrtxes. Return a bool rather than an int.
4042
4043 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4044
4045 * ddg.c: Include rtl-iter.h.
4046 (mark_mem_use_1): Rename to...
4047 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
4048 instead of for_each_rtx.
4049 (mem_read_insn_p): Update accordingly.
4050
4051 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4052
4053 * cse.c (change_cc_mode_args): Delete.
4054 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4055 a function that examines each subrtx itself. Take the fields of
4056 change_cc_mode_args as argument and return void.
4057 (cse_change_cc_mode_insn): Update calls accordingly.
4058
4059 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4060
4061 * cse.c (is_dead_reg): Change argument to const_rtx.
4062 (dead_debug_insn_data): Delete.
4063 (is_dead_debug_insn): Expand commentary. Turn from being a
4064 for_each_rtx callback to being a function that examines
4065 each subrtx itself. Take the fields of dead_debug_insn_data
4066 as argument.
4067 (delete_trivially_dead_insns): Update call accordingly.
4068
4069 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4070
4071 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4072 being a for_each_rtx callback to being a function that examines
4073 each subrtx itself.
4074 (cse_extended_basic_block): Update call accordingly.
4075
4076 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4077
4078 * cse.c (check_dependence_data): Delete.
4079 (check_dependence): Change from being a for_each_rtx callback to being
4080 a function that examines all subrtxes itself. Don't handle null rtxes.
4081 (invalidate): Update call accordingly.
4082
4083 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4084
4085 * cse.c: Include rtl-iter.h.
4086 (approx_reg_cost_1): Delete.
4087 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4088 Don't handle null rtxes.
4089
4090 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4091
4092 * cfgcleanup.c: Include rtl-iter.h.
4093 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4094 to being a function that examines each subrtx itself.
4095 (thread_jump): Update accordingly.
4096
4097 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4098
4099 * combine-stack-adj.c: Include rtl-iter.h.
4100 (record_stack_refs_data): Delete.
4101 (record_stack_refs): Turn from being a for_each_rtx callback
4102 to being a function that examines each subrtx itself.
4103 Take a pointer to the reflist. Invert sense of return value
4104 so that true means success and false means failure. Don't
4105 handle null rtxes.
4106 (combine_stack_adjustments_for_block): Update accordingly.
4107
4108 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4109
4110 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4111 callback to a function that takes an rtx and returns a bool
4112 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4113 for_each_rtx.
4114
4115 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4116
4117 * combine.c: Include rtl-iter.h.
4118 (unmentioned_reg_p_1): Delete.
4119 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4120 Don't handle null rtxes.
4121
4122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4123
4124 * calls.c: Include rtl-iter.h.
4125 (internal_arg_pointer_based_exp_1): Delete.
4126 (internal_arg_pointer_based_exp): Take a const_rtx.
4127 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4128
4129 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4130
4131 * caller-save.c: Include rtl-iter.h.
4132 (add_used_regs_1): Delete.
4133 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4134 to iterate over subrtxes. Assert that any remaining pseudos
4135 have been spilled.
4136
4137 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4138
4139 * bt-load.c: Include rtl-iter.h.
4140 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4141 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4142 to iterate over subrtxes.
4143 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4144 find_btr_use rather than btr_referenced_p.
4145
4146 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4147
4148 * alias.c: Include rtl-iter.h.
4149 (refs_newer_value_cb): Delete.
4150 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4151
4152 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4153
4154 * rtl-iter.h: New file.
4155 * rtlanal.c: Include it.
4156 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4157 (generic_subrtx_iterator <T>::add_single_to_queue)
4158 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4159 (generic_subrtx_iterator <T>::free_array): New functions.
4160 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4161 (generic_subrtx_iterator <const_rtx_accessor>)
4162 (generic_subrtx_iterator <rtx_var_accessor>
4163 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4164 (setup_reg_subrtx_bounds): New function.
4165 (init_rtlanal): Call it.
4166
4167 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4168
4169 PR target/62261
4170 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4171 TARGET_SHMEDIA.
4172 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4173
4174 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4175
4176 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4177
4178 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4179
4180 * rtl.h (JUMP_LABEL_AS_INSN): New.
4181
4182 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4183
4184 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4185 rtx_expr_list **.
4186 (alloc_EXPR_LIST): Strengthen return type from rtx to
4187 rtx_expr_list *.
4188 (remove_free_EXPR_LIST_node): Likewise for param.
4189 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4190 from rtx to rtx_expr_list *.
4191 * sched-int.h (struct deps_desc): Strengthen fields
4192 "pending_read_mems" and "pending_write_mems" from rtx to
4193 rtx_expr_list *.
4194
4195 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4196 rtx to rtx_expr_list *.
4197 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4198 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4199 rtx_expr_list **.
4200 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4201 from rtx to rtx_expr_list *.
4202 * loop-iv.c (simplify_using_initial_values): Strengthen local
4203 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4204 "pnote_next" from rtx * to rtx_expr_list **.
4205 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4206 param "exprp" from rtx * to rtx_expr_list **.
4207 (add_insn_mem_dependence): Strengthen local "mem_list" from
4208 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4209 to rtx_expr_list *.
4210 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4211 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4212 param "old_mems_p" from rtx * to rtx_expr_list **.
4213 * var-tracking.c (struct adjust_mem_data): Strengthen field
4214 "side_effects" from rtx to rtx_expr_list *.
4215 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4216 rtx_expr_list *.
4217 (prepare_call_arguments): Likewise.
4218
4219 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4220
4221 * function.h (struct rtl_data): Strengthen field
4222 "x_stack_slot_list" from rtx to rtx_expr_list *.
4223
4224 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4225 when assigning to stack_slot_list.
4226
4227 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4228
4229 * function.h (struct rtl_data): Strengthen field
4230 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4231 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4232 rtx * to rtx_expr_list **.
4233
4234 * cfgbuild.c (make_edges): In loop over
4235 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4236 rtx_expr_list *, and use methods of the latter class to clarify
4237 the code.
4238 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4239 rtx_expr_list *, and use methods of the latter class to clarify
4240 the code.
4241 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4242 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4243 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4244 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4245 to rtx_expr_list *. Use methods of the latter class to clarify
4246 the code.
4247
4248 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4249
4250 * function.h (struct expr_status): Strengthen field
4251 "x_forced_labels" from rtx to rtx_expr_list *.
4252
4253 * cfgbuild.c (make_edges): Split local "x" into two locals,
4254 strengthening one from rtx to rtx_expr_list *, and using methods
4255 of said class.
4256 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4257 loop over forced_labels, introduce strengthen it from rtx to
4258 rtx_expr_list *, using methods to clarify the code.
4259 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4260 to rtx_expr_list *, using methods of said class to clarify the
4261 code.
4262 * reload1.c (set_initial_label_offsets): Split local "x" into two
4263 per-loop variables, strengthening the first from rtx to
4264 rtx_expr_list * and using methods.
4265
4266 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4267
4268 * coretypes.h (class rtx_expr_list): Add forward declaration.
4269 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4270 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4271 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4272 invariant: GET_CODE (X) == EXPR_LIST.
4273 (is_a_helper <rtx_expr_list *>::test): New.
4274 (rtx_expr_list::next): New.
4275 (rtx_expr_list::element): New.
4276 (gen_rtx_EXPR_LIST): New.
4277
4278 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4279
4280 * varasm.c (mark_constants): Convert a GET_CODE check into a
4281 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4282 Use methods of rtx_sequence to clarify the code.
4283
4284 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4285
4286 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4287 local "seq" via a checked cast, and use methods of rtx_sequence
4288 to simplify the code.
4289
4290 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4291
4292 * resource.c (mark_referenced_resources): Strengthen local
4293 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4294 using methods of rtx_sequence to clarify the code.
4295 (find_dead_or_set_registers): Within the switch statement, convert
4296 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4297 the JUMP_P handling, introduce another local "seq", adding a
4298 checked cast to rtx_sequence *. In both cases, use methods of
4299 rtx_sequence to clarify the code.
4300 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4301 via a checked cast, and use methods of rtx_sequence to simplify
4302 the code.
4303
4304 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4305
4306 * reorg.c (redundant_insn): In two places in the function, replace
4307 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4308 usings methods of rtx_sequence to clarify the code.
4309
4310 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4311
4312 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4313 local "seq" with a checked cast, and use methods of rtx_sequence
4314 to clarify the code.
4315
4316 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4317
4318 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4319 with a checked cast, in the region for where we know it's a
4320 SEQUENCE. Use methods of rtx_sequence.
4321
4322 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4323
4324 * final.c (get_attr_length_1): Replace GET_CODE check with a
4325 dyn_cast, introducing local "seq" and the use of methods of
4326 rtx_sequence.
4327 (shorten_branches): Likewise, introducing local "body_seq".
4328 Strengthen local "inner_insn" from rtx to rtx_insn *.
4329 (reemit_insn_block_notes): Replace GET_CODE check with a
4330 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4331 Use methods of rtx_sequence.
4332 (final_scan_insn): Likewise, introducing local "seq" for when
4333 "body" is known to be a SEQUENCE, using its methods.
4334
4335 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4336
4337 * except.c (can_throw_external): Strengthen local "seq" from rtx
4338 to rtx_sequence *. Use methods of rtx_sequence.
4339 (insn_nothrow_p): Likewise.
4340
4341 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4342
4343 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4344 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4345 Use methods of rtx_sequence.
4346 (scan_trace): Likewise for local "pat".
4347
4348 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4349
4350 * coretypes.h (class rtx_sequence): Add forward declaration.
4351 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4352 invariant: GET_CODE (X) == SEQUENCE.
4353 (is_a_helper <rtx_sequence *>::test): New.
4354 (is_a_helper <const rtx_sequence *>::test): New.
4355 (rtx_sequence::len): New.
4356 (rtx_sequence::element): New.
4357 (rtx_sequence::insn): New.
4358
4359 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4360
4361 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4362 rtx_insn_list **.
4363 (alloc_INSN_LIST): Strengthen return type from rtx to
4364 rtx_insn_list *.
4365 (copy_INSN_LIST): Likewise for return type and param.
4366 (concat_INSN_LIST): Likewise for both params and return type.
4367 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4368 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4369 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4370 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4371
4372 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4373 "implicit_sets", "control_uses", "clobbers" from rtx to
4374 rtx_insn_list *.
4375 (struct deps_desc): Likewise for fields "pending_read_insns",
4376 "pending_write_insns", "pending_jump_insns",
4377 "last_pending_memory_flush", "last_function_call",
4378 "last_function_call_may_noreturn", "sched_before_next_call",
4379 "sched_before_next_jump".
4380 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4381 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4382
4383 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4384 from rtx to rtx_insn_list *.
4385 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4386 rtx_insn_list *.
4387
4388 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4389 to rtx_insn_list **.
4390 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4391 rtx_insn_list *.
4392 (queue_insn): Likewise for local "link".
4393 (struct haifa_saved_data): Strengthen field "insn_queue" from
4394 rtx * to rtx_insn_list **.
4395 (save_backtrack_point): Update allocation of save->insn_queue to
4396 reflect the strengthening of elements from rtx to rtx_insn_list *.
4397 (queue_to_ready): Strengthen local "link" from rtx to
4398 rtx_insn_list *; use methods "next" and "insn" when traversing the
4399 list.
4400 (early_queue_to_ready): Likewise for locals "link", "next_link",
4401 "prev_link".
4402 (schedule_block): Update allocation of insn_queue to reflect the
4403 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4404 local "link" from rtx to rtx_insn_list *, and use methods when
4405 working it.
4406 (add_to_speculative_block): Strengthen locals "twins" and
4407 "next_node" from rtx to rtx_insn_list *, and use methods when
4408 working with them. Strengthen local "twin" from rtx to
4409 rtx_insn *, eliminating a checked cast.
4410 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4411 from rtx to rtx_insn_list *, and use methods when working with
4412 them.
4413
4414 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4415 from rtx to rtx_insn_list *, adding a checked cast.
4416 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4417 rtx_insn_list **.
4418 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4419 "newlink" from rtx to rtx_insn_list *. Strengthen local
4420 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4421 from rtx to rtx_insn *.
4422 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4423 from rtx to rtx_insn_list *. Use methods of the latter class.
4424 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4425 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4426 (remove_free_INSN_LIST_node): Strengthen return type and local
4427 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4428 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4429 rtx_insn_list *, using "insn" method.
4430
4431 * sched-deps.c (add_dependence_list): Strengthen param "list"
4432 from rtx to rtx_insn_list *, and use methods when working with it.
4433 (add_dependence_list_and_free): Strengthen param "listp" from
4434 rtx * to rtx_insn_list **.
4435 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4436 to rtx_insn_list **, and use methods when working with *listp.
4437 (remove_from_both_dependence_lists): Strengthen param "listp" from
4438 rtx * to rtx_insn_list **
4439 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4440 to rtx_insn_list **. Eliminate local "link", in favor of two new
4441 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4442 respectively.
4443 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4444 by introducing local "cond_deps".
4445 (remove_from_deps): Strengthen param "insn" from rtx to
4446 rtx_insn *.
4447
4448 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4449 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4450 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4451 Use methods of rtx_insn_list.
4452
4453 * store-motion.c (struct st_expr): Strengthen fields
4454 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4455 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4456 rtx_insn_list *.
4457 (find_moveable_store): Split out "tmp" into multiple more-tightly
4458 scoped locals. Use methods of rtx_insn_list *.
4459 (compute_store_table): Strengthen local "tmp" from rtx to
4460 rtx_insn *. Use methods of rtx_insn_list *.
4461
4462 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4463
4464 * coretypes.h (class rtx_insn_list): Add forward declaration.
4465 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4466 (is_a_helper <rtx_insn_list *>::test): New.
4467 (rtx_insn_list::next): New.
4468 (rtx_insn_list::insn): New.
4469 (gen_rtx_INSN_LIST): Add prototype.
4470 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4471 * gengenrtl.c (special_rtx): Add INSN_LIST.
4472
4473 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4474
4475 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4476 "prev" from rtx to rtx_insn *.
4477
4478 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4479
4480 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4481 functions. Require merely an rtx for now, not an rtx_insn *.
4482 (BLOCK_FOR_INSN): Likewise.
4483 (INSN_LOCATION): Likewise.
4484 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4485
4486 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4487
4488 * rtl.h (PATTERN): Convert this macro into a pair of inline
4489 functions, for now, requiring const_rtx and rtx.
4490
4491 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4492
4493 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4494 rtx_insn *.
4495 (final_postscan_insn): Likewise.
4496 (adjust_cost): Likewise.
4497 (adjust_priority): Likewise.
4498 (variable_issue): Likewise.
4499 (macro_fusion_pair_p): Likewise.
4500 (dfa_post_cycle_insn): Likewise.
4501 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4502 (first_cycle_multipass_issue): Likewise.
4503 (dfa_new_cycle): Likewise.
4504 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4505 (speculate_insn): Likewise for param "insn".
4506 (gen_spec_check): Likewise for params "insn" and "label".
4507 (get_insn_spec_ds): Likewise for param "insn".
4508 (get_insn_checked_ds): Likewise.
4509 (dispatch_do): Likewise.
4510 (dispatch): Likewise.
4511 (cannot_copy_insn_p): Likewise.
4512 (invalid_within_doloop): Likewise.
4513 (legitimate_combined_insn): Likewise.
4514 (needed): Likewise.
4515 (after): Likewise.
4516
4517 * doc/tm.texi: Automatically updated to reflect changes to
4518 target.def.
4519
4520 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4521 working with insn.
4522 (schedule_block): Likewise.
4523 (sched_init): Likewise.
4524 (sched_speculate_insn): Strengthen param "insn" from rtx to
4525 rtx_insn *.
4526 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4527 working with insn.
4528 * hooks.c (hook_bool_rtx_true): Rename to...
4529 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4530 rtx to rtx_insn *.
4531 (hook_constcharptr_const_rtx_null): Rename to...
4532 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4533 first param from const_rtx to const rtx_insn *.
4534 (hook_bool_rtx_int_false): Rename to...
4535 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4536 param from rtx to rtx_insn *.
4537 (hook_void_rtx_int): Rename to...
4538 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4539 rtx to rtx_insn *.
4540
4541 * hooks.h (hook_bool_rtx_true): Rename to...
4542 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4543 rtx to rtx_insn *.
4544 (hook_bool_rtx_int_false): Rename to...
4545 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4546 param from rtx to rtx_insn *.
4547 (hook_void_rtx_int): Rename to...
4548 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4549 rtx to rtx_insn *.
4550 (hook_constcharptr_const_rtx_null): Rename to...
4551 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4552 first param from const_rtx to const rtx_insn *.
4553
4554 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4555 and local "prev" from rtx to rtx_insn *.
4556
4557 * sched-int.h (sched_speculate_insn): Strengthen first param from
4558 rtx to rtx_insn *.
4559
4560 * sel-sched.c (create_speculation_check): Likewise for local "label".
4561 * targhooks.c (default_invalid_within_doloop): Strengthen param
4562 "insn" from const_rtx to const rtx_insn *.
4563 * targhooks.h (default_invalid_within_doloop): Strengthen param
4564 from const_rtx to const rtx_insn *.
4565
4566 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4567 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4568
4569 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4570 "insn".
4571 (arc_invalid_within_doloop): Likewise, with const.
4572
4573 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4574 (arm_cannot_copy_insn_p): Likewise for param "insn".
4575 (arm_unwind_emit): Likewise.
4576
4577 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4578 "dep_insn".
4579
4580 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4581 (c6x_variable_issue): Likewise. Removed now-redundant checked
4582 cast.
4583 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4584
4585 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4586 Likewise for param "insn".
4587 (epiphany_mode_after): Likewise.
4588 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4589 params "insn", "dep_insn".
4590 (epiphany_mode_needed): Likewise for param "insn".
4591 (epiphany_mode_after): Likewise.
4592
4593 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4594 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4595 (ix86_avx_u128_mode_needed): Likewise.
4596 (ix86_i387_mode_needed): Likewise.
4597 (ix86_mode_needed): Likewise.
4598 (ix86_avx_u128_mode_after): Likewise.
4599 (ix86_mode_after): Likewise.
4600 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4601 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4602 (ix86_adjust_priority): Likewise for param "insn".
4603 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4604 (do_dispatch): Likewise.
4605 (has_dispatch): Likewise.
4606 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4607
4608 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4609 reflect renaming of default hook implementation from
4610 hook_constcharptr_const_rtx_null to
4611 hook_constcharptr_const_rtx_insn_null.
4612 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4613 rtx to rtx_insn *.
4614 (ia64_variable_issue): Likewise for param "insn".
4615 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4616 (ia64_dfa_new_cycle): Likewise.
4617 (ia64_get_insn_spec_ds): Likewise.
4618 (ia64_get_insn_checked_ds): Likewise.
4619 (ia64_speculate_insn): Likewise.
4620 (ia64_gen_spec_check): Likewise for params "insn", "label".
4621 (ia64_asm_unwind_emit): Likewise for param "insn".
4622
4623 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4624
4625 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4626 "insn", "def_insn".
4627 (m68k_sched_variable_issue): Likewise for param "insn".
4628
4629 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4630 "def_insn".
4631
4632 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4633 Likewise for params "insn", "dep".
4634
4635 * config/mips/mips.c (mips_adjust_cost): Likewise.
4636 (mips_variable_issue): Likewise for param "insn".
4637 (mips_final_postscan_insn): Likewise.
4638
4639 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4640 for params "insn", "dep".
4641
4642 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4643 "dep_insn".
4644 (pa_adjust_priority): Likewise for param "insn".
4645
4646 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4647 Likewise for params "insn", "dep_insn".
4648
4649 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4650 param "insn".
4651 (rs6000_variable_issue): Likewise.
4652 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4653 (rs6000_debug_adjust_cost): Likewise.
4654 (rs6000_adjust_priority): Likewise for param "insn".
4655 (rs6000_use_sched_lookahead_guard): Likewise.
4656 (get_next_active_insn): Likewise for return type and both params.
4657 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4658 and locals "insn", "next_insn".
4659 (pad_groups): Likewise.
4660
4661 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4662 "insn".
4663 (s390_cannot_copy_insn_p): Likewise.
4664 (s390_sched_variable_issue): Likewise for third param, eliminating
4665 checked cast.
4666 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4667 default hook implementation from hook_constcharptr_const_rtx_null
4668 to hook_constcharptr_const_rtx_insn_null.
4669
4670 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4671 from rtx to rtx_insn *.
4672 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4673 (sh_variable_issue): Likewise for param "insn".
4674 (sh_dfa_new_cycle): Likewise.
4675 (sh_mode_needed): Likewise.
4676 (sh_mode_after): Likewise.
4677
4678 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4679 params "insn", "dep_insn".
4680 (hypersparc_adjust_cost): Likewise.
4681 (sparc_adjust_cost): Likewise.
4682
4683 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4684 param, eliminated checked cast.
4685 (spu_sched_adjust_cost): Likewise for first and third params.
4686
4687 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4688 params "insn" and "dep_insn" from rtx to rtx_insn *.
4689
4690 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4691
4692 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4693
4694 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4695 (set_is_load_p): ...this, updating to work on a SET pattern rather
4696 than an insn.
4697 (is_store_insn): Rename to...
4698 (set_is_store_p): ...this, updating to work on a SET pattern
4699 rather than an insn.
4700 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4701 top of function to where it is needed. Rewrite the bogus
4702 condition that checks for "insn" and "dep" being PARALLEL to
4703 instead use single_set, introducing locals "insn_set" and
4704 "dep_set". Given that we only ever returned "cost" for a non-pair
4705 of SETs, bail out early if we don't have a pair of SET.
4706 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4707 use the new locals "insn_set" and "dep_set", and update calls to
4708 is_load_insn and is_store_insn to be calls to set_is_load_p and
4709 set_is_store_p.
4710
4711 2014-08-27 Guozhi Wei <carrot@google.com>
4712
4713 PR target/62262
4714 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4715 amount before using it.
4716
4717 2014-08-27 Richard Biener <rguenther@suse.de>
4718
4719 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4720 get_maxval_strlen inside a more useful API.
4721 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4722 (gimple_fold_builtin): ... caller.
4723 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4724 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4725 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4726 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4727 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4728 gimple_fold_builtin_sprintf): Adjust to compute maxval
4729 themselves.
4730
4731 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4732
4733 PR other/62248
4734 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4735
4736 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4737 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4738 Anna Tikhonova <anna.tikhonova@intel.com>
4739 Ilya Tocar <ilya.tocar@intel.com>
4740 Andrey Turetskiy <andrey.turetskiy@intel.com>
4741 Ilya Verbin <ilya.verbin@intel.com>
4742 Kirill Yukhin <kirill.yukhin@intel.com>
4743 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4744
4745 * config/i386/sse.md
4746 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4747 Use `concat_tg_mode' attribute to determine asm register size.
4748
4749 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4750 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4751 Anna Tikhonova <anna.tikhonova@intel.com>
4752 Ilya Tocar <ilya.tocar@intel.com>
4753 Andrey Turetskiy <andrey.turetskiy@intel.com>
4754 Ilya Verbin <ilya.verbin@intel.com>
4755 Kirill Yukhin <kirill.yukhin@intel.com>
4756 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4757
4758 * config/i386/sse.md
4759 (define_mode_iterator VI48_AVX512VL): New.
4760 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4761 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4762 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4763 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4764 with VI1): Change mode iterator.
4765 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4766 with VI_ULOADSTORE_BW_AVX512VL): New.
4767 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4768 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4769 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4770 with VI1): Change mode iterator.
4771 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4772 with VI_ULOADSTORE_BW_AVX512VL): New.
4773 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4774 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4775 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4776 with VI1): Change mode iterator.
4777 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4778 with VI_ULOADSTORE_BW_AVX512VL): New.
4779 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4780 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4781 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4782 (define_insn "<avx512>_storedqu<mode>_mask" with
4783 VI48_AVX512VL): New.
4784 (define_insn "<avx512>_storedqu<mode>_mask" with
4785 VI12_AVX512VL): Ditto.
4786
4787 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4788 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4789 Anna Tikhonova <anna.tikhonova@intel.com>
4790 Ilya Tocar <ilya.tocar@intel.com>
4791 Andrey Turetskiy <andrey.turetskiy@intel.com>
4792 Ilya Verbin <ilya.verbin@intel.com>
4793 Kirill Yukhin <kirill.yukhin@intel.com>
4794 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4795
4796 * config/i386/sse.md
4797 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4798 (define_mode_iterator VI48_AVX512BW): New.
4799 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4800 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4801 with VI48_AVX2_48_AVX512F): New.
4802 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4803 with VI2_AVX512VL): Ditto.
4804
4805 2014-08-27 Richard Biener <rguenther@suse.de>
4806
4807 PR middle-end/62239
4808 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4809 (fold_builtin_3): Do not fold strcat_chk here.
4810 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4811 from builtins.c.
4812 (gimple_fold_builtin): Fold strcat_chk here.
4813
4814 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4815
4816 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4817 * dwarf2out.c (dwarf2out_decl): Make static.
4818
4819 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4820
4821 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4822
4823 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4824
4825 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4826 from rtx to rtx_insn *.
4827 (cselib_lookup_from_insn): Likewise for final param.
4828 (cselib_subst_to_values_from_insn): Likewise.
4829 (cselib_add_permanent_equiv): Likewise.
4830
4831 * cselib.c (cselib_current_insn): Likewise for this variable.
4832 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4833 (cselib_lookup_from_insn): Likewise.
4834 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4835 "save_cselib_current_insn".
4836 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4837
4838 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4839 from rtx to rtx_insn *.
4840
4841 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4842
4843 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4844 rtx_insn *.
4845
4846 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4847
4848 * df.h (df_dump_insn_problem_function): Strengthen first param of
4849 this callback from const_rtx to const rtx_insn *.
4850 (struct df_insn_info): Strengthen field "insn" from rtx to
4851 rtx_insn *.
4852 (DF_REF_INSN): Eliminate this function, reinstating the older
4853 macro definition.
4854 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4855 (df_reg_defined): Likewise.
4856 (df_find_use): Likewise.
4857 (df_reg_used): Likewise.
4858 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4859 const rtx_insn *.
4860 (df_dump_insn_bottom): Likewise.
4861 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4862 (df_insn_debug_regno): Likewise.
4863 (debug_df_insn): Likewise.
4864 (df_rd_simulate_one_insn): Likewise for param 2.
4865 (df_word_lr_simulate_defs): Likewise for param 1.
4866 (df_word_lr_simulate_uses): Likewise.
4867 (df_md_simulate_one_insn): Likewise for param 2.
4868 (df_simulate_find_noclobber_defs): Likewise for param 1.
4869 (df_simulate_find_defs): Likewise.
4870 (df_simulate_defs): Likewise.
4871 (df_simulate_uses): Likewise.
4872 (df_simulate_one_insn_backwards): Likewise for param 2.
4873 (df_simulate_one_insn_forwards): Likewise.
4874 (df_uses_create): Likewise for param 2.
4875 (df_insn_create_insn_record): Likewise for param 1.
4876 (df_insn_delete): Likewise.
4877 (df_insn_rescan): Likewise.
4878 (df_insn_rescan_debug_internal): Likewise.
4879 (df_insn_change_bb): Likewise.
4880 (df_notes_rescan): Likewise.
4881 * rtl.h (remove_death): Likewise for param 2.
4882 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4883 const rtx_insn *.
4884 * sched-int.h (reemit_notes): Strengthen param from rtx to
4885 rtx_insn *.
4886 * valtrack.h (propagate_for_debug): Likewise for param 1.
4887
4888 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4889 local "tmp_rtx" from const_rtx to const rtx_insn *.
4890 * combine.c (remove_death): Strengthen param "insn" from rtx to
4891 rtx_insn *.
4892 (move_deaths): Likewise for local "where_dead".
4893 * cse.c (delete_trivially_dead_insns): Introduce local
4894 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4895 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4896 rtx_insn *.
4897 (df_reg_defined): Likewise.
4898 (df_find_use): Likewise.
4899 (df_reg_used): Likewise.
4900 (df_dump_insn_problem_data): Strengthen param "insn" from
4901 const_rtx to const rtx_insn *.
4902 (df_dump_insn_top): Likewise.
4903 (df_dump_insn_bottom): Likewise.
4904 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4905 (df_insn_debug_regno): Likewise.
4906 (debug_df_insn): Likewise.
4907 (DF_REF_INSN): Delete.
4908 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4909 from rtx to rtx_insn *.
4910 (df_chain_insn_top_dump): Strengthen param "insn" from
4911 const_rtx to const rtx_insn *.
4912 (df_chain_insn_bottom_dump): Likewise.
4913 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4914 rtx_insn *.
4915 (df_word_lr_simulate_uses): Likewise.
4916 (df_print_note): Likewise.
4917 (df_remove_dead_and_unused_notes): Likewise.
4918 (df_set_unused_notes_for_mw): Likewise.
4919 (df_set_dead_notes_for_mw): Likewise.
4920 (df_create_unused_note): Likewise.
4921 (df_simulate_find_defs): Likewise.
4922 (df_simulate_find_uses): Likewise.
4923 (df_simulate_find_noclobber_defs): Likewise.
4924 (df_simulate_defs): Likewise.
4925 (df_simulate_uses): Likewise.
4926 (df_simulate_one_insn_backwards): Likewise.
4927 (df_simulate_one_insn_forwards): Likewise.
4928 (df_md_simulate_one_insn): Likewise.
4929 * df-scan.c (df_uses_create): Likewise.
4930 (df_insn_create_insn_record): Likewise.
4931 (df_insn_delete): Likewise.
4932 (df_insn_rescan): Likewise.
4933 (df_insn_rescan_debug_internal): Likewise.
4934 (df_insn_change_bb): Likewise.
4935 (df_notes_rescan): Likewise.
4936 (df_refs_add_to_chains): Likewise.
4937 (df_insn_refs_verify): Likewise.
4938 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4939 when invoking df_insn_delete.
4940 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4941 (set_unique_reg_note): Add checked cast.
4942 * final.c (cleanup_subreg_operands): Likewise.
4943 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4944 "insn" from rtx to rtx_insn *.
4945 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4946 "last" from rtx to rtx_insn *.
4947 * ira-emit.c (change_regs_in_insn): New function.
4948 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4949 Invoke change_regs_in_insn rather than change_regs.
4950 * ira.c (update_equiv_regs): Strengthen locals "insn",
4951 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4952 for_each_rtx_in_insn rather than for_each_rtx.
4953 * recog.c (confirm_change_group): Add checked casts.
4954 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4955 Add checked cast.
4956 (peep2_fill_buffer): Add checked cast.
4957 * rtlanal.c (remove_note): Likewise.
4958 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4959 locals "next" "end" from rtx to rtx_insn *.
4960
4961 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4962
4963 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4964 to rtx_insn *.
4965 (struct reg_use_data): Likewise for field "insn".
4966 (insn_cost): Likewise for param.
4967 (real_insn_for_shadow): Likewise for return type and param.
4968 (increase_insn_priority): Likewise for param 1.
4969 (debug_dependencies): Likewise for both params.
4970
4971 * haifa-sched.c (insn_delay): Likewise for param "insn".
4972 (real_insn_for_shadow): Likewise for return type and param "insn".
4973 (update_insn_after_change): Likewise for param "insn".
4974 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4975 "other".
4976 (insn_cost): Likewise for param "insn".
4977 (increase_insn_priority): Likewise.
4978 (calculate_reg_deaths): Likewise.
4979 (setup_insn_reg_pressure_info): Likewise.
4980 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4981 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4982 (model_recompute): Likewise.
4983 (must_restore_pattern_p): Likewise for param "next".
4984 (model_excess_cost): Likewise for param "insn".
4985 (queue_remove): Likewise.
4986 (adjust_priority): Likewise for param "prev".
4987 (update_register_pressure): Likewise for param "insn".
4988 (setup_insn_max_reg_pressure): Likewise for local "insn".
4989 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4990 (model_add_to_schedule): Likewise.
4991 (model_reset_queue_indices): Likewise for local "insn".
4992 (unschedule_insns_until): Strengthen local "recompute_vec" from
4993 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4994 "con" from rtx to rtx_insn *.
4995 (restore_last_backtrack_point): Likewise for both locals "x". Add
4996 checked casts.
4997 (estimate_insn_tick): Likewise for param "insn".
4998 (commit_schedule): Likewise for params "prev_head", "tail" and
4999 local "x".
5000 (verify_shadows): Likewise for locals "i1", "i2".
5001 (dump_insn_stream): Likewise for params "head", "tail" and locals
5002 "next_tail", "insn".
5003 (schedule_block): Likewise for locals "insn", "x". Add a checked
5004 cast.
5005 (fix_inter_tick): Likewise for params "head", "tail".
5006 (create_check_block_twin): Likewise for local "jump".
5007 (haifa_change_pattern): Likewise for param "insn".
5008 (haifa_speculate_insn): Likewise.
5009 (dump_new_block_header): Likewise for params "head", "tail".
5010 (fix_jump_move): Likewise for param "jump".
5011 (move_block_after_check): Likewise.
5012 (sched_init_insn_luid): Likewise for param "insn".
5013 (sched_init_luids): Likewise for local "insn".
5014 (insn_luid): Likewise for param "insn".
5015 (init_h_i_d): Likewise.
5016 (haifa_init_h_i_d): Likewise for local "insn".
5017 (haifa_init_insn): Likewise for param "insn".
5018 * sched-deps.c (add_dependence): Likewise for local "real_pro",
5019 "other".
5020 (create_insn_reg_use): Likewise for param "insn".
5021 (setup_insn_reg_uses): Likewise. Add a checked cast.
5022 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5023 "tail" from rtx to rtx_insn *.
5024 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5025 "insn", "next_tail".
5026
5027 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5028
5029 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5030 from rtx to rtx_insn *.
5031 (model_add_to_schedule): Likewise for locals "start", "end",
5032 "iter".
5033
5034 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5035
5036 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5037 rtx_insn *.
5038 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
5039 "to" and locals "insn", "next", "copy". Remove now-redundant
5040 checked cast.
5041
5042 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5043
5044 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5045 rtx_insn * and param 4 from rtx * to rtx_insn **.
5046 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5047 param 2 from rtx * to rtx_insn **.
5048
5049 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5050 rtx_insn * and final param from rtx * to rtx_insn **.
5051
5052 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5053 from rtx to rtx_insn *.
5054 (try_head_merge_bb): Likewise for both locals named "move_upto".
5055 * df-problems.c (can_move_insns_across): Likewise for params
5056 "from", "to", "across_from", "across_to" and locals "insn",
5057 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
5058 rtx_insn **.
5059 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5060 from rtx to rtx_insn *.
5061 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5062 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5063 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5064 rtx_insn *.
5065 (noce_try_abs): Likewise.
5066 (noce_get_condition): Likewise for param "jump". Strengthen param
5067 "earliest" from rtx * to rtx_insn **.
5068 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5069 rtx_insn *.
5070 (find_cond_trap): Likewise.
5071 (dead_or_predicable): Likewise for local "earliest".
5072 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5073 checked cast.
5074 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5075 and local "prev". Strengthen param "earliest" from rtx * to
5076 rtx_insn **.
5077 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5078 Strengthen param "earliest" from rtx * to rtx_insn **.
5079
5080 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5081
5082 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5083 "to" and local "insn" from rtx to rtx_insn *.
5084
5085 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5086
5087 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5088 from rtx to rtx_insn *.
5089 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5090 (code_motion_path_driver): Likewise for local "last_insn".
5091 (simplify_changed_insns): Likewise for local "insn".
5092
5093 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5094
5095 * rtl.h (push_to_sequence): Strengthen param from rtx to
5096 rtx_insn *.
5097 (push_to_sequence2): Likewise for both params.
5098 (delete_insns_since): Likewise for param.
5099 (reorder_insns_nobb): Likewise for all three params.
5100 (set_new_first_and_last_insn): Likewise for both params.
5101
5102 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5103 rtx_insn *. Remove now-redundant cast.
5104 (set_last_insn): Likewise.
5105
5106 * builtins.c (expand_builtin_return): Strengthen local
5107 "call_fusage" from rtx to rtx_insn *.
5108 * cfgrtl.c (create_basic_block_structure): Likewise for local
5109 "after".
5110 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5111 "first", "last" and local "insn".
5112 (delete_insns_since): Likewise for param "from".
5113 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5114 and local "x".
5115 (push_to_sequence): Likewise for param "first" and local "last".
5116 (push_to_sequence2): Likewise for params "first" and "last".
5117 * lra.c (emit_add3_insn): Likewise for local "last".
5118 (lra_emit_add): Likewise.
5119 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5120 "last_insn".
5121 (process_address_1): Likewise for locals "insn", last".
5122 * modulo-sched.c (ps_first_note): Likewise for return type.
5123 * optabs.c (expand_binop_directly): Likewise for param "last".
5124
5125 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5126
5127 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5128 to rtx_insn*.
5129 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5130
5131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5132
5133 * function.h (struct sequence_stack): Strengthen fields "first"
5134 and "last" from rtx to rtx_insn *.
5135 (struct emit_status): Likewise for fields "x_first_insn" and
5136 "x_last_insn".
5137
5138 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5139 (set_first_insn): Add checked cast.
5140 (get_last_insn): Remove now-redundant checked cast.
5141 (set_last_insn): Add checked cast.
5142
5143 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5144 "saved_first" and "saved_last" from rtx to rtx_insn *.
5145
5146 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5147
5148 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5149 (unlink_insn_chain): Strengthen both params from rtx to
5150 rtx_insn *.
5151
5152 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5153 variable.
5154 (unlink_insn_chain): Likewise for params "first" and "last".
5155 Remove now-redundant checked cast.
5156 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5157 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5158 rtx_insn *.
5159 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5160 params.
5161 (add_insn): Likewise for param "insn" and local "prev".
5162 (add_insn_after_nobb): Likewise for both params and local "next".
5163 (add_insn_before_nobb): Likewise for both params and local "prev".
5164 (add_insn_after): Rename param "after" to "uncast_after",
5165 introducing local "after" with another checked cast.
5166 (add_insn_before): Rename params "insn" and "before", giving them
5167 "uncast_" prefixes, adding the old names back using checked casts.
5168 (emit_note_after): Likewise for param "after".
5169 (emit_note_before): Likewise for param "before".
5170 (emit_label): Add a checked cast.
5171
5172 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5173
5174 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5175 "insn" from rtx to rtx_insn *.
5176
5177 * cselib.c (cselib_record_sets_hook): Likewise.
5178
5179 * var-tracking.c (add_with_sets): Likewise, renaming back from
5180 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5181 to rtx_insn *.
5182
5183 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5184
5185 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5186 and "header_" from rtx to rtx_insn *.
5187 (struct basic_block_d): Likewise for field "head_" within "x"
5188 field of union basic_block_il_dependent.
5189 (BB_HEAD): Drop function...
5190 (SET_BB_HEAD): ...and this function in favor of...
5191 (BB_HEAD): ...reinstate macro.
5192 (BB_END): Drop function...
5193 (SET_BB_END): ...and this function in favor of...
5194 (BB_END): ...reinstate macro.
5195 (BB_HEADER): Drop function...
5196 (SET_BB_HEADER): ...and this function in favor of...
5197 (BB_HEADER): ...reinstate macro.
5198
5199 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5200 (fix_crossing_unconditional_branches): Likewise.
5201 * caller-save.c (save_call_clobbered_regs): Likewise.
5202 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5203 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5204 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5205 (merge_blocks_move_successor_nojumps): Likewise.
5206 (outgoing_edges_match): Update use of for_each_rtx to
5207 for_each_rtx_in_insn.
5208 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5209 (expand_gimple_cond): Likewise.
5210 (expand_gimple_tailcall): Likewise.
5211 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5212 SET_BB_END.
5213 (construct_exit_block): Drop use of SET_BB_END.
5214 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5215 rtx_insn *.
5216 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5217 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5218 SET_BB_HEAD and SET_BB_END.
5219 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5220 SET_BB_END.
5221 (rtl_delete_block): Drop use of SET_BB_HEAD.
5222 (rtl_split_block): Drop use of SET_BB_END.
5223 (emit_nop_for_unique_locus_between): Likewise.
5224 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5225 (block_label): Drop use of SET_BB_HEAD.
5226 (fixup_abnormal_edges): Drop use of SET_BB_END.
5227 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5228 (relink_block_chain): Likewise.
5229 (fixup_reorder_chain): Drop use of SET_BB_END.
5230 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5231 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5232 rtx_insn **. Drop use of SET_BB_HEADER.
5233 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5234 SET_BB_HEAD.
5235 (BB_HEAD): Delete this function.
5236 (SET_BB_HEAD): Likewise.
5237 (BB_END): Likewise.
5238 (SET_BB_END): Likewise.
5239 (BB_HEADER): Likewise.
5240 (SET_BB_HEADER): Likewise.
5241 * emit-rtl.c (add_insn_after): Rename param "insn" to
5242 "uncast_insn", adding a new local "insn" and a checked cast to
5243 rtx_insn *. Drop use of SET_BB_END.
5244 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5245 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5246 (reorder_insns): Drop use of SET_BB_END.
5247 (emit_insn_after_1): Strengthen param "first" and locals "last",
5248 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5249 (emit_pattern_after_noloc): Add checked cast.
5250 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5251 (restore_other_notes): Likewise.
5252 (move_insn): Likewise.
5253 (sched_extend_bb): Likewise.
5254 (fix_jump_move): Likewise.
5255 * ifcvt.c (noce_process_if_block): Likewise.
5256 (dead_or_predicable): Likewise.
5257 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5258 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5259 * sel-sched-ir.c (sel_move_insn): Likewise.
5260 * sel-sched.c (move_nop_to_previous_block): Likewise.
5261
5262 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5263 SET_BB_END.
5264 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5265
5266 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5267
5268 * basic-block.h (create_basic_block_structure): Strengthen params
5269 1 "head" and 2 "end" from rtx to rtx_insn *.
5270 * cfgrtl.c (create_basic_block_structure): Likewise.
5271 (rtl_create_basic_block): Update casts from void * to rtx to
5272 rtx_insn *, so that we can pass them as rtx_insn * to
5273 create_basic_block_structure.
5274 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5275
5276 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5277
5278 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5279 rtx_insn **.
5280 (check_for_inc_dec): Strengthen param "insn" from rtx to
5281 rtx_insn *.
5282
5283 * cselib.h (cselib_process_insn): Likewise.
5284
5285 * cselib.c (cselib_record_sets): Likewise.
5286 (cselib_process_insn): Likewise.
5287
5288 * dse.c (struct insn_info): Likewise for field "insn".
5289 (check_for_inc_dec_1): Likewise for local "insn".
5290 (check_for_inc_dec): Likewise for param "insn".
5291 (scan_insn): Likewise.
5292 (dse_step1): Likewise for local "insn".
5293
5294 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5295 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5296
5297 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5298
5299 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5300 from rtx to rtx_insn *.
5301 (DEP_PRO): Delete this function and...
5302 (SET_DEP_PRO): ...this function in favor of...
5303 (DEP_PRO): ...reinstate this macro.
5304 (DEP_CON): Delete this function and...
5305 (SET_DEP_CON): ...this function in favor of...
5306 (DEP_CON): ...reinstate this old macro.
5307 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5308 (init_dep): Likewise.
5309 (set_priorities): Likewise for both params.
5310 (sd_copy_back_deps): Likewise for params 1 and 2.
5311
5312 * haifa-sched.c (priority): Likewise for param "insn" and local
5313 "next".
5314 (set_priorities): Likewise for params "head" and "tail" and local
5315 "insn".
5316 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5317 local "consumer".
5318 (add_to_speculative_block): Add a checked cast.
5319 (create_check_block_twin): Drop use of SET_DEP_CON.
5320 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5321 rtx to rtx_insn *.
5322
5323 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5324 Drop use of SET_DEP_PRO
5325 (init_dep): Strengthen params "pro" and "con" from rtx to
5326 rtx_insn *.
5327 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5328 use of SET_DEP_CON.
5329 (DEP_PRO): Delete.
5330 (DEP_CON): Delete.
5331 (SET_DEP_PRO): Delete.
5332 (SET_DEP_CON): Delete.
5333
5334 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5335
5336 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5337 from rtx to rtx_insn *.
5338 (VINSN_INSN_RTX): Eliminate rvalue function and...
5339 (SET_VINSN_INSN): ...lvalue function in favor of...
5340 (VINSN_INSN_RTX): reinstate this old macro.
5341
5342 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5343 in favor of VINSN_INSN_RTX.
5344 (VINSN_INSN_RTX): Delete this function.
5345 (SET_VINSN_INSN_RTX): Likewise.
5346
5347 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5348
5349 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5350 (BND_TO): Delete this function and...
5351 (SET_BND_TO): ...this functions in favor of...
5352 (BND_TO): ...reinstating this macro.
5353 (struct _fence): Strengthen field "executing_insns" from
5354 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5355 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5356 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5357 and param "insn" from rtx to insn_t.
5358 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5359 rtx_insn *.
5360
5361 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5362 vec<rtx_insn *> .
5363 (rtx_vec_t): Likewise.
5364 (struct sched_deps_info_def): Strengthen param of "start_insn"
5365 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5366 "note_mem_dep" callback and first param of "note_dep" callback.
5367
5368 * haifa-sched.c (add_to_speculative_block): Strengthen param
5369 "insn" from rtx to rtx_insn *.
5370 (clear_priorities): Likewise.
5371 (calc_priorities): Likewise for local "insn".
5372
5373 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5374 Remove redundant checked cast.
5375 (haifa_note_mem_dep): Likewise for param "pending_insn".
5376 (haifa_note_dep): Likewise for param "elem".
5377 (note_mem_dep): Likewise for param "e".
5378 (sched_analyze_1): Add checked casts.
5379 (sched_analyze_2): Likewise.
5380
5381 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5382 from rtx to rtx_insn *.
5383 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5384 from vec<rtx> * to vec<rtx_insn *> *.
5385
5386 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5387 scaffolding.
5388 (flist_add): Strengthen param "executing_insns" from
5389 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5390 (advance_deps_context): Remove now-redundant checked cast.
5391 (init_fences): Replace uses of NULL_RTX with NULL.
5392 (merge_fences): Strengthen params "last_scheduled_insn" and
5393 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5394 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5395 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5396 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5397 an instruction, rather than doing double-duty as a pattern.
5398 (return_nop_to_pool): Update for change of insn_t.
5399 (deps_init_id): Remove now-redundant checked cast.
5400 (struct sched_scan_info_def): Strengthen param of "init_insn"
5401 callback from rtx to insn_t.
5402 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5403 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5404 NULL.
5405 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5406 "end" from rtx to rtx_insn *.
5407 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5408 (rtx insn_rtx, bool force_unique_p)
5409 (BND_TO): Delete function.
5410 (SET_BND_TO): Delete function.
5411
5412 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5413 rtx to rtx_insn *.
5414 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5415 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5416 rtx to rtx_insn *.
5417 (undo_transformations): Likewise for param "insn".
5418 (update_liveness_on_insn): Likewise.
5419 (compute_live_below_insn): Likewise for param "insn" and local
5420 "succ".
5421 (update_data_sets): Likewise for param "insn".
5422 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5423 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5424 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5425 rtx_insn *.
5426 (move_cond_jump): Likewise for param "insn".
5427 (move_cond_jump): Drop use of SET_BND_TO.
5428 (compute_av_set_on_boundaries): Likewise.
5429 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5430 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5431 from rtx to rtx_insn *.
5432 (maybe_emit_renaming_copy): Likewise for param "insn".
5433 (maybe_emit_speculative_check): Likewise.
5434 (handle_emitting_transformations): Likewise.
5435 (remove_insn_from_stream): Likewise.
5436 (code_motion_process_successors): Strengthen local "succ" from rtx
5437 to insn_t.
5438
5439 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5440
5441 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5442 ilist_t, not _xlist_t;
5443 (ILIST_INSN): Define in terms of new union field "insn".
5444 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5445 _XLIST_NEXT.
5446 (struct _list_node): Add new field "insn" to the union, of type
5447 insn_t.
5448 (ilist_add): Replace macro with an inline function, requiring an
5449 insn_t.
5450 (ilist_remove): Define this macro directly in terms of
5451 _list_remove, rather than indirectly via _xlist_remove.
5452 (ilist_clear): Likewise, in terms of _list_clear rather than
5453 _xlist_clear.
5454 (ilist_is_in_p): Replace macro with an inline function, requiring
5455 an insn_t.
5456 (_list_iter_cond_insn): New function.
5457 (ilist_iter_remove): Define this macro directly in terms of
5458 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5459 (ilist_iterator): Define directly in terms of _list_iterator
5460 rather than indirectly through _xlist_iterator.
5461 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5462 than in terms of _FOR_EACH_X.
5463 (FOR_EACH_INSN_1): Likewise.
5464
5465 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5466
5467 PR target/60606
5468 PR target/61330
5469 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5470 DECL_HARD_REGISTER and return for invalid register specifications.
5471 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5472 DECL_HARD_REGISTER, call expand_one_error_var.
5473 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5474 CC_REGNUM with non-MODE_CC modes.
5475 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5476
5477 2014-08-26 Marek Polacek <polacek@redhat.com>
5478
5479 PR c/61271
5480 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5481
5482 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5483
5484 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5485 qi cost; add di cost.
5486 (cortexa57_addrcost_table): Likewise.
5487
5488 2014-08-26 Marek Polacek <polacek@redhat.com>
5489
5490 PR c/61271
5491 * expr.c (is_aligning_offset): Remove logical not.
5492
5493 2014-08-26 Marek Polacek <polacek@redhat.com>
5494
5495 PR c/61271
5496 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5497 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5498
5499 2014-08-26 Richard Biener <rguenther@suse.de>
5500
5501 PR tree-optimization/62175
5502 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5503 expand possibly trapping operations.
5504
5505 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5506
5507 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5508 "insn" from rtx to rtx_insn *.
5509 (permute_load): Likewise for param "insn".
5510 (permute_store): Likewise.
5511 (handle_special_swappables): Likewise for local "insn".
5512 (replace_swap_with_copy): Likewise for locals "insn" and
5513 "new_insn".
5514 (rs6000_analyze_swaps): Likewise for local "insn".
5515
5516 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5517
5518 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5519 to rtx_insn *.
5520
5521 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5522
5523 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5524 "note_list" from rtx to rtx_insn *.
5525 (BB_NOTE_LIST): Replace this function and...
5526 (SET_BB_NOTE_LIST): ...this function with...
5527 (BB_NOTE_LIST): ...the former macro implementation.
5528
5529 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5530 local "from_start" from rtx to rtx_insn *. Strengthen param
5531 "to_endp" from rtx * to rtx_insn **.
5532
5533 * haifa-sched.c (concat_note_lists): Likewise.
5534 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5535 BB_NOTE_LIST.
5536 (sel_restore_notes): Likewise.
5537 (move_bb_info): Likewise.
5538 (BB_NOTE_LIST): Delete this function.
5539 (SET_BB_NOTE_LIST): Delete this function.
5540 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5541 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5542
5543 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5544
5545 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5546 from rtx * to rtx_insn **.
5547 (reorder2): Likewise.
5548 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5549 from rtx to rtx_insn *.
5550
5551 * doc/tm.texi: Update mechanically for above change to target.def.
5552
5553 * sched-int.h (note_list): Strengthen this variable from rtx to
5554 rtx_insn *.
5555 (remove_notes): Likewise for both params.
5556 (restore_other_notes): Likewise for return type and first param.
5557 (struct ready_list): Strengthen field "vec" from rtx * to
5558 rtx_insn **.
5559 (struct dep_replacement): Strenghten field "insn" from rtx to
5560 rtx_insn *.
5561 (struct deps_desc): Likewise for fields "last_debug_insn",
5562 "last_args_size".
5563 (struct haifa_sched_info): Likewise for callback field
5564 "can_schedule_ready_p"'s param, for first param of "new_ready"
5565 callback field, for both params of "rank" callback field, for
5566 first field of "print_insn" callback field (with a const), for
5567 both params of "contributes_to_priority" callback, for param
5568 of "insn_finishes_block_p" callback, for fields "prev_head",
5569 "next_tail", "head", "tail", for first param of "add_remove_insn"
5570 callback, for first param of "begin_schedule_ready" callback, for
5571 both params of "begin_move_insn" callback, and for second param
5572 of "advance_target_bb" callback.
5573 (add_dependence): Likewise for params 1 and 2.
5574 (sched_analyze): Likewise for params 2 and 3.
5575 (deps_analyze_insn): Likewise for param 2.
5576 (ready_element): Likewise for return type.
5577 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5578 (try_ready): Strenghten param from rtx to rtx_insn *.
5579 (sched_emit_insn): Likewise for return type.
5580 (record_delay_slot_pair): Likewise for params 1 and 2.
5581 (add_delay_dependencies): Likewise for param.
5582 (contributes_to_priority): Likewise for both params.
5583 (find_modifiable_mems): Likewise.
5584
5585 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5586 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5587 "first_older_only_insn" from rtx to rtx_insn *.
5588 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5589 rtx_insn **.
5590
5591 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5592 "last_scheduled_iter0" from rtx to rtx_insn *.
5593 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5594 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5595 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5596 "insn" from rtx to rtx_insn *.
5597 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5598 rtx_insn **.
5599 (c6x_sched_reorder2): Strengthen param "ready" and locals
5600 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5601 "insn" from rtx to rtx_insn *.
5602 (c6x_variable_issue): Add a checked cast when assigning from insn
5603 to ss.last_scheduled_iter0.
5604 (split_delayed_branch): Strengthen param "insn" and local "i1"
5605 from rtx to rtx_insn *.
5606 (split_delayed_nonbranch): Likewise.
5607 (undo_split_delayed_nonbranch): Likewise for local "insn".
5608 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5609 "entry_after", "end_packet", "head_insn", "tail_insn",
5610 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5611 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5612 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5613 but add a checked cast on loop->start_label. Consolidate calls to
5614 avoid assigning result of gen_spkernel to "insn", now an
5615 rtx_insn *.
5616
5617 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5618 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5619 rtx to rtx_insn *.
5620 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5621 rtx_insn **. Strengthen locals "top", "next" from rtx to
5622 rtx_insn *.
5623 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5624 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5625 (add_parameter_dependencies): Strengthen params "call", "head" and
5626 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5627 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5628 (add_dependee_for_func_arg): Likewise for param "arg" and local
5629 "insn".
5630 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5631 "tail" and locals "insn", "first_arg".
5632
5633 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5634 for params "head", "tail" and locals "insn", "next", "next_tail".
5635 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5636 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5637 "insn", "lowest", "highest" from rtx to rtx_insn *.
5638 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5639 rtx_insn **.
5640 (ia64_sched_reorder2): Likewise.
5641
5642 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5643 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5644 from rtx * to rtx_insn **.
5645 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5646 rtx_insn **.
5647 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5648 rtx_insn *.
5649 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5650 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5651 to rtx_insn *.
5652
5653 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5654 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5655 to rtx_insn *.
5656 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5657 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5658 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5659 rtx_insn **.
5660 (vr4130_reorder): Likewise.
5661 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5662 rtx to rtx_insn *.
5663 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5664 rtx_insn **.
5665 (mips_sched_reorder): Likewise.
5666 (mips_sched_reorder2): Likewise.
5667
5668 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5669
5670 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5671 Strengthen local "tmp" from rtx to rtx_insn *.
5672 (rs6000_sched_reorder2): Likewise.
5673
5674 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5675 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5676 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5677 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5678
5679 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5680 "tmp2" from rtx to rtx_insn *.
5681 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5682 Strengthen local "insn" from rtx to rtx_insn *.
5683 (ready_reorder): Strengthen param "ready" from rtx * to
5684 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5685 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5686 (sh_reorder2): Likewise.
5687
5688 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5689 local "insn" from rtx to rtx_insn *.
5690
5691 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5692 rtx_insn *.
5693 (scheduled_insns): Strengthen this variable from vec<rtx> to
5694 vec<rtx_insn *>.
5695 (set_modulo_params): Likewise for locals "i1", "i2".
5696 (record_delay_slot_pair): Likewise for params "i1", "i2".
5697 (add_delay_dependencies): Likewise for param "insn".
5698 (cond_clobbered_p): Likewise.
5699 (recompute_todo_spec): Likewise for local "prev".
5700 (last_scheduled_insn): Likewise for this variable.
5701 (nonscheduled_insns_begin): Likewise.
5702 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5703 rtx_insn **.
5704 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5705 rtx_insn *.
5706 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5707 Strengthen local "insn" from rtx to rtx_insn *.
5708 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5709 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5710 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5711 (ready_remove_first): Likewise for return type and local "t".
5712 (ready_element): Likewise for return type.
5713 (ready_remove): Likewise for return type and local "t".
5714 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5715 (check_clobbered_conditions): Strengthen local "x" from rtx to
5716 rtx_insn *, adding a checked cast.
5717 (schedule_insn): Likewise for param "insn".
5718 (remove_notes): Likewise for params "head", "tail" and locals
5719 "next_tail", "insn", "next".
5720 (struct haifa_saved_data): Likewise for fields
5721 "last_scheduled_insn", "nonscheduled_insns_begin".
5722 (save_backtrack_point): Update for change to field "vec" of
5723 struct ready_list.
5724 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5725 rtx_insn **.
5726 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5727 from rtx to rtx_insn *
5728 (resolve_dependencies): Strengthen param "insn" from rtx to
5729 rtx_insn *
5730 (restore_other_notes): Likewise for return type, for param "head"
5731 and local "note_head".
5732 (undo_all_replacements): Likewise for local "insn".
5733 (first_nonscheduled_insn): Likewise for return type and local "insn".
5734 (queue_to_ready): Likewise for local "insn", adding checked casts.
5735 (early_queue_to_ready): Likewise for local "insn".
5736 (debug_ready_list_1): Strengthen local "p" from rtx * to
5737 rtx_insn **.
5738 (move_insn): Strengthen param "insn" and local "note" from rtx to
5739 rtx_insn *
5740 (insn_finishes_cycle_p): Likewise for param "insn".
5741 (max_issue): Likewise for local "insn".
5742 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5743 to rtx_insn **.
5744 (commit_schedule): Strengthen param "prev_head" and local "insn"
5745 from rtx to rtx_insn *
5746 (prune_ready_list): Likewise for local "insn".
5747 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5748 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5749 (set_priorities): Likewise for local "prev_head".
5750 (try_ready): Likewise for param "next".
5751 (fix_tick_ready): Likewise.
5752 (change_queue_index): Likewise.
5753 (sched_extend_ready_list): Update for change to field "vec" of
5754 struct ready_list.
5755 (generate_recovery_code): Strengthen param "insn" from rtx to
5756 rtx_insn *.
5757 (begin_speculative_block): Likewise.
5758 (create_check_block_twin): Likewise for param "insn" and locals
5759 "label", "check", "twin". Introduce local "check_pat" to avoid
5760 "check" being used as a plain rtx before being used as an insn.
5761 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5762 extracting elements from ready_list.
5763 (sched_remove_insn): Strengthen param "insn" from rtx to
5764 rtx_insn *.
5765 (sched_emit_insn): Likewise for return type.
5766 (ready_remove_first_dispatch): Likewise for return type and local
5767 "insn".
5768
5769 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5770
5771 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5772 const rtx_insn *.
5773
5774 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5775 from rtx to rtx_insn *.
5776 (add_dependence_list): Likewise for param "insn". Add a checked
5777 cast.
5778 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5779 to rtx_insn *. Strengthen param "list_p" from rtx * to
5780 rtx_insn **.
5781 (chain_to_prev_insn): Strengthen param "insn" and locals
5782 "prec_nonnote", "i" from rtx to rtx_insn *.
5783 (flush_pending_lists): Likewise for param "insn".
5784 (cur_insn): Likewise for this variable.
5785 (haifa_start_insn): Add a checked cast.
5786 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5787 (sched_analyze_reg): Likewise for param "insn".
5788 (sched_analyze_1): Likewise.
5789 (sched_analyze_2): Likewise. Add checked casts.
5790 (sched_analyze_insn): Likewise. Also for local "prev".
5791 (deps_analyze_insn): Likewise for param "insn".
5792 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5793 (add_dependence_1): Likewise for params "insn", "elem".
5794 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5795 (parse_add_or_inc): Likewise for param "insn".
5796 (find_inc): Likewise for local "inc_cand".
5797 (find_modifiable_mems): Likewise for params "head", "tail" and
5798 locals "insn", "next_tail".
5799
5800 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5801 (begin_schedule_ready): Likewise for param "insn".
5802 (begin_move_insn): Likewise for params "insn" and "last".
5803 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5804 const rtx_insn *.
5805 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5806 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5807 (ebb_add_remove_insn): Likewise for param "insn".
5808 (advance_target_bb): Likewise.
5809
5810 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5811 "insn".
5812 (check_live): Likewise for param "insn".
5813 (init_ready_list): Likewise for local "insn".
5814 (can_schedule_ready_p): Likewise for param "insn".
5815 (begin_schedule_ready): Likewise.
5816 (new_ready): Likewise for param "next".
5817 (rgn_print_insn): Likewise for param "insn".
5818 (rgn_rank): Likewise for params "insn1", "insn2".
5819 (contributes_to_priority): Likewise for params "next", "insn".
5820 (rgn_insn_finishes_block_p): Likewise for param "insn".
5821 (add_branch_dependences): Likewise for params "head", "tail" and
5822 locals "insn", "last".
5823 (rgn_add_remove_insn): Likewise for param "insn".
5824 (advance_target_bb): Likewise.
5825
5826 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5827 const_rtx to const rtx_insn *.
5828
5829 * sel-sched-dump.h (sel_print_insn): Likewise.
5830
5831 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5832 (deps_init_id): Likewise.
5833
5834 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5835 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5836 rtx_insn **.
5837
5838 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5839
5840 * output.h (final_start_function): Strengthen param 1 from rtx to
5841 rtx_insn *.
5842
5843 * final.c (final_start_function): Likewise, renaming back from
5844 "uncast_first" to "first", and dropping the checked cast from rtx
5845 to rtx_insn *.
5846
5847 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5848
5849 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5850 * final.c (final): Likewise. Rename param back from
5851 "uncast_first" to "first" and eliminate the checked cast from rtx
5852 to rtx_insn *.
5853
5854 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5855
5856 * output.h (shorten_branches): Strengthen param from rtx to
5857 rtx_insn *.
5858
5859 * final.c (shorten_branches): Likewise, renaming param back from
5860 "uncast_first" to "first", and dropping the checked cast from rtx
5861 to rtx_insn *.
5862
5863 * genattr.c (gen_attr): Likewise when writing out the prototype of
5864 shorten_branches.
5865
5866 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5867
5868 * sched-int.h (struct haifa_sched_info): Strengthen fields
5869 "prev_head" and "next_tail" from rtx to rtx_insn *.
5870
5871 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5872
5873 * rtl.h (rtx_jump_table_data::get_labels): New method.
5874 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5875 with use of the new rtx_jump_table_data::get_labels method.
5876 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5877 to rtx_jump_table_data *. Simplify by using get_labels method.
5878 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5879 a dyn_cast, introducing local "table", using it to replace
5880 label-lookup logic with a get_labels method call.
5881 (patch_jump_insn): Simplify using get_labels method.
5882 * dwarf2cfi.c (create_trace_edges): Likewise.
5883 * rtlanal.c (label_is_jump_target_p): Likewise.
5884
5885 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5886
5887 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5888 to rtx_insn *.
5889
5890 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5891 (unshare_all_rtl_again): Likewise, also for local "p".
5892
5893 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5894
5895 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5896 to rtx_insn *.
5897 * cfgrtl.c (delete_insn_and_edges): Likewise.
5898
5899 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5900
5901 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5902 from rtx to rtx_insn *.
5903
5904 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5905
5906 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5907
5908 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5909 locals "returnjump", "epilogue_end", "insn", "next".
5910
5911 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5912 "returnjump" from rtx * to rtx_insn **.
5913 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5914
5915 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5916
5917 * basic-block.h (struct edge_def). Strengthen "r" within
5918 union edge_def_insns from rtx to rtx_insn *.
5919
5920 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5921 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5922 rtx_insn *.
5923 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5924 from rtx to rtx_insn *.
5925 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5926 rtx_insn *.
5927 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5928 (reg_used_on_edge): Likewise.
5929 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5930 (gt_pch_nx): New overload for rtx_insn *&.
5931 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5932 from rtx to rtx_insn *.
5933
5934 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5935
5936 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5937 from rtx to rtx_insn *.
5938 (BB_FOOTER): Replace function with access macro.
5939 (SET_BB_FOOTER): Delete.
5940
5941 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5942 with BB_FOOTER.
5943 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5944 (emit_barrier_after_bb): Likewise.
5945 (record_effective_endpoints): Likewise.
5946 (relink_block_chain): Likewise.
5947 (fixup_fallthru_exit_predecessor): Likewise.
5948 (cfg_layout_duplicate_bb): Likewise.
5949 (cfg_layout_split_block): Likewise.
5950 (cfg_layout_delete_block): Likewise.
5951 (cfg_layout_merge_blocks): Likewise.
5952 (BB_FOOTER): Delete function.
5953 (SET_BB_FOOTER): Delete function.
5954 * combine.c (update_cfg_for_uncondjump): Replace uses of
5955 SET_BB_FOOTER with BB_FOOTER.
5956
5957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5958
5959 * except.h (struct eh_landing_pad_d): Strengthen field
5960 "landing_pad" from rtx to rtx_code_label *.
5961
5962 * except.c (sjlj_emit_dispatch_table): Likewise for param
5963 "dispatch_label"
5964 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5965
5966 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5967
5968 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5969 first param from rtx to rtx_insn *.
5970 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5971 field "set_frame_ptr_insn".
5972 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5973 "csend" from rtx to rtx_code_label *.
5974 (xtensa_expand_atomic): Likewise for local "csloop".
5975 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5976 rtx_insn *.
5977 (xtensa_call_tls_desc): Likewise for return type and locals
5978 "call_insn", "insns".
5979 (xtensa_legitimize_tls_address): Likewise for local "insns".
5980 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5981
5982 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5983
5984 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5985 first param from rtx to rtx_insn *.
5986 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5987 "insn".
5988
5989 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5990
5991 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5992 Strengthen param 1 from rtx to rtx_insn *.
5993 (tilepro_output_cbranch): Likewise.
5994 (tilepro_adjust_insn_length): Likewise.
5995 (tilepro_final_prescan_insn): Likewise for sole param.
5996
5997 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5998 Likewise for local "last".
5999 (cbranch_predicted_p): Likewise for param "insn".
6000 (tilepro_output_simple_cbranch_with_opcode): Likewise.
6001 (tilepro_output_cbranch_with_opcode): Likewise.
6002 (tilepro_output_cbranch): Likewise.
6003 (frame_emit_load): Likewise for return type and locals "seq",
6004 "insn".
6005 (emit_sp_adjust): Likewise for return type and local "insn".
6006 (tilepro_expand_epilogue): Likewise for locals "last_insn",
6007 "insn".
6008 (tilepro_adjust_insn_length): Likewise for param "insn".
6009 (next_insn_to_bundle): Likewise for return type and params
6010 "r", "end".
6011 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6012 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6013 local "new_insns".
6014 (match_addli_pcrel): Likewise for param "insn".
6015 (replace_addli_pcrel): Likewise.
6016 (match_auli_pcrel): Likewise.
6017 (replace_auli_pcrel): Likewise.
6018 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6019 "next_insn".
6020 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6021 "queue", "next_queue", "prev".
6022 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6023 (tilepro_final_prescan_insn): Likewise for param "insn".
6024
6025 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6026
6027 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6028 Strengthen param 1 from rtx to rtx_insn *.
6029 (tilegx_output_cbranch): Likewise.
6030 (tilegx_adjust_insn_length): Likewise.
6031 (tilegx_final_prescan_insn): Likewise for sole param.
6032
6033 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6034 or local "last".
6035 (cbranch_predicted_p): Likewise for param "insn".
6036 (tilegx_output_simple_cbranch_with_opcode): Likewise.
6037 (tilegx_output_cbranch_with_opcode): Likewise.
6038 (tilegx_output_cbranch): Likewise.
6039 (frame_emit_load): Likewise for return type.
6040 (set_frame_related_p): Likewise for locals "seq", "insn".
6041 (emit_sp_adjust): Likewise for return type, and for local "insn".
6042 Introduce local "pat" for use in place of "insn" where the latter
6043 isn't an instruction.
6044 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6045 from rtx to rtx_insn *.
6046 (tilegx_adjust_insn_length): Likewise for param "insn".
6047 (next_insn_to_bundle): Likewise for return type and params "r" and
6048 "end".
6049 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6050 "end".
6051 (replace_insns): Likewise for params "old_insn", "new_insns".
6052 (replace_mov_pcrel_step1): Likewise for param "insn" and local
6053 "new_insns".
6054 (replace_mov_pcrel_step2): Likewise.
6055 (replace_mov_pcrel_step3): Likewise.
6056 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6057 "next_insn".
6058 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6059 "queue", "next_queue", "prev".
6060 (tilegx_output_mi_thunk): Likewise for local "insn".
6061 (tilegx_final_prescan_insn): Likewise for param "insn".
6062
6063 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6064
6065 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6066 rtx to rtx_insn *.
6067 (frame_emit_load): Likewise.
6068 (frame_emit_add_imm): Likewise, also for local "insn".
6069 (spu_expand_prologue): Likewise for local "insn".
6070 (struct spu_bb_info): Likewise for field "prop_jump".
6071 (emit_nop_for_insn): Likewise for param "insn" and local
6072 "new_insn".
6073 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6074 "hbr_insn".
6075 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6076 locals "hint", "insn".
6077 (get_branch_target): Likewise for param "branch".
6078 (insn_clobbers_hbr): Likewise for param "insn".
6079 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6080 locals "insn", "before_4", "before_16".
6081 (insert_hbrp): Likewise for local "insn".
6082 (spu_machine_dependent_reorg): Likewise for locals "branch",
6083 "insn", "next", "bbend".
6084 (uses_ls_unit): Likewise for param "insn".
6085 (get_pipe): Likewise.
6086 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6087 introducing a checked cast.
6088 (spu_sched_adjust_cost): Likewise for params "insn" and
6089 "dep_insn".
6090 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6091 (spu_sms_res_mii): Likewise.
6092
6093 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6094
6095 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6096 from rtx to rtx_insn *.
6097 (output_cbranch): Likewise for param 6.
6098 (output_return): Likewise for param 1.
6099 (output_sibcall): Likewise.
6100 (output_v8plus_shift): Likewise.
6101 (output_v8plus_mult): Likewise.
6102 (output_v9branch): Likewise for param 7.
6103 (output_cbcond): Likewise for param 3.
6104
6105 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6106 for local "insn".
6107 (sparc_legitimize_pic_address): Likewise.
6108 (sparc_emit_call_insn): Likewise.
6109 (emit_save_or_restore_regs): Likewise.
6110 (emit_window_save): Likewise for return type and local "insn".
6111 (sparc_expand_prologue): Likewise for local "insn".
6112 (sparc_flat_expand_prologue): Likewise.
6113 (output_return): Likewise for param "insn".
6114 (output_sibcall): Likewise for param "insn" and local "delay".
6115 (output_ubranch): Likewise for param "insn".
6116 (output_cbranch): Likewise.
6117 (output_cbcond): Likewise.
6118 (output_v9branch): Likewise.
6119 (output_v8plus_shift): Likewise.
6120 (sparc_output_mi_thunk): Likewise for local "insn".
6121 (get_some_local_dynamic_name): Likewise.
6122 (output_v8plus_mult): Likewise for param "insn".
6123
6124 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6125
6126 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6127 from rtx to rtx_insn *.
6128 (output_branchy_insn): Likewise for param 3.
6129 (output_far_jump): Likewise for param 1.
6130 (final_prescan_insn): Likewise.
6131 (sh_insn_length_adjustment): Likewise for sole param.
6132
6133 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6134 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6135 rtx_code_label *.
6136 (sh_emit_compare_and_set): Likewise for local "lab".
6137 (output_far_jump): Strengthen param "insn" and local "prev" from
6138 rtx to rtx_insn *.
6139 (output_branchy_insn): Likewise for param "insn" and local
6140 "next_insn".
6141 (output_ieee_ccmpeq): Likewise for param "insn".
6142 (struct label_ref_list_d): Strengthen field "label" from rtx to
6143 rtx_code_label *.
6144 (pool_node): Likewise.
6145 (pool_window_label): Likewise for this global.
6146 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6147 (dump_table): Strengthen params "start", "barrier" and local
6148 "scan" from rtx to rtx_insn *.
6149 (broken_move): Likewise for param "insn".
6150 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6151 Strengthen param "first_mova" from rtx * to rtx_insn **.
6152 (mova_p): Likewise for param "insn".
6153 (fixup_mova): Likewise for param "mova".
6154 (find_barrier): Likewise for return type, params "mova" and
6155 "from", and locals "barrier_before_mova", "found_barrier",
6156 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6157 "label" from rtx to rtx_code_label *.
6158 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6159 rtx to rtx_insn *.
6160 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6161 (split_branches): Likewise for param "first" and local "insn".
6162 (final_prescan_insn): Likewise for param "insn".
6163 (sequence_insn_p): Likewise for locals "prev", "next".
6164 (sh_insn_length_adjustment): Likewise for param "insn".
6165 (sh_can_redirect_branch): Likewise for local "insn".
6166 (find_r0_life_regions): Likewise for locals "end", "insn".
6167 (sh_output_mi_thunk): Likewise for local "insns".
6168
6169 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6170
6171 * config/score/score.c (score_output_mi_thunk): Strengthen local
6172 "insn" from rtx to rtx_insn *.
6173 (score_prologue): Likewise.
6174
6175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6176
6177 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6178 1 from rtx to rtx_insn *.
6179 (s390_emit_jump): Likewise for return type.
6180 (s390_emit_call): Likewise.
6181 (s390_load_got): Likewise.
6182
6183 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6184 variable.
6185 (s390_match_ccmode): Likewise for param "insn".
6186 (s390_emit_jump): Likewise for return type.
6187 (s390_split_branches): Likewise for local "label".
6188 (struct constant): Strengthen field "label" from rtx to
6189 rtx_code_label *.
6190 (struct constant_pool): Likewise for field "label". Strengthen
6191 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6192 rtx_insn *.
6193 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6194 insns.
6195 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6196 (s390_end_pool): Likewise.
6197 (s390_dump_pool): Likewise for local "insn".
6198 (s390_mainpool_start): Likewise.
6199 (s390_chunkify_start): Likewise.
6200 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6201 with insns. Strengthen locals "label", "jump", "barrier", "next",
6202 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6203 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6204 rtx_insn *.
6205 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6206 "jump", "label", "next_insn".
6207 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6208 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6209 "tbegin_insn".
6210 (s390_load_got): Likewise for return type and local "insns".
6211 (s390_save_gprs_to_fprs): Likewise for local "insn".
6212 (s390_restore_gprs_from_fprs): Likewise.
6213 (pass_s390_early_mach::execute): Likewise.
6214 (s390_emit_prologue): Likewise for local "insns".
6215 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6216 rtx_code_label *.
6217 (s390_emit_call): Strengthen return type and local "insn" from
6218 rtx to rtx_insn *.
6219 (s390_emit_tpf_eh_return): Likewise for local "insn".
6220 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6221 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6222 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6223 local "cur_insn".
6224 (s390_non_addr_reg_read_p): Likewise for param "insn".
6225 (find_cond_jump): Likewise for return type and param "insn".
6226 (s390_swap_cmp): Likewise for param "insn".
6227 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6228 "prev_insn", "next_insn".
6229 (s390_reorg): Likewise for locals "insn", "target".
6230 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6231 (s390_sched_variable_issue): For now, rename param "insn" to
6232 "uncast_insn", introducing a checked cast.
6233 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6234 insn.
6235 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6236 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6237
6238 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6239
6240 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6241 param from rtx to rtx_insn *.
6242 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6243
6244 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6245
6246 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6247 4 from rtx to rtx_insn *.
6248 (rs6000_final_prescan_insn): Likewise for first param.
6249 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6250 local "insn".
6251 (rs6000_get_some_local_dynamic_name): Likewise.
6252 (output_cbranch): Likewise for param "insn".
6253 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6254 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6255 (rs6000_emit_allocate_stack): Likewise for local "insn".
6256 (load_cr_save): Likewise.
6257 (restore_saved_cr): Likewise.
6258 (restore_saved_lr): Likewise.
6259 (emit_cfa_restores): Likewise.
6260 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6261 "deleted_debug_label".
6262 (rs6000_output_mi_thunk): Likewise for local "insn".
6263 (rs6000_final_prescan_insn): Likewise for param "insn".
6264
6265 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6266
6267 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6268 Strengthen param "insn" from rtx to rtx_insn *.
6269 * config/picochip/picochip.c (picochip_current_prescan_insn):
6270 Likewise for this variable.
6271 (picochip_final_prescan_insn): Likewise for param "insn".
6272
6273 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6274
6275 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6276 from rtx to rtx_insn *.
6277 (pa_output_indirect_call): Likewise.
6278 (pa_adjust_insn_length): Likewise.
6279 (pa_attr_length_millicode_call): Likewise.
6280 (pa_attr_length_call): Likewise.
6281 (pa_attr_length_indirect_call): Likewise.
6282
6283 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6284 "insn".
6285 (pa_attr_length_millicode_call): Likewise.
6286 (pa_attr_length_call): Likewise.
6287 (pa_output_call): Likewise.
6288 (pa_attr_length_indirect_call): Likewise.
6289 (pa_output_indirect_call): Likewise.
6290
6291 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6292
6293 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6294 Strengthen first param from rtx to rtx_insn *.
6295 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6296 param "insn".
6297
6298 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6299
6300 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6301 type from rtx to rtx_insn *.
6302 (mips_expand_call): Likewise.
6303 (mips_adjust_insn_length): Likewise for first param.
6304 (mips_output_conditional_branch): Likewise.
6305 (mips_output_order_conditional_branch): Likewise.
6306 (mips_final_prescan_insn): Likewise.
6307
6308 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6309 rtx_insn * for the SEQUENCE case.
6310 (SEQ_END): Likewise.
6311 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6312 (mips_emit_call_insn): Likewise, also for local "insn".
6313 (mips16_gp_pseudo_reg): Likewise for local "scan".
6314 (mips16_build_call_stub): Likewise for return type and for local
6315 "insn". Introduce a new local "pattern" so that "insn" can indeed
6316 be an insn.
6317 (mips_expand_call): Strengthen return type and local "insn" from
6318 rtx to rtx_insn *.
6319 (mips_block_move_loop): Strengthen local "label" from rtx to
6320 rtx_code_label *.
6321 (mips_expand_synci_loop): Likewise for locals "label",
6322 "end_label".
6323 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6324 rtx_insn *.
6325 (mips16e_collect_argument_saves): Likewise for locals "insn",
6326 "next".
6327 (mips_find_gp_ref): Likewise for param of callback for "pred"
6328 param, and for local "insn".
6329 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6330 (mips_insn_has_flexible_gp_ref_p): Likewise.
6331 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6332 local "insn".
6333 (mips_epilogue_set_cfa): Likewise for local "insn".
6334 (mips_expand_epilogue): Likewise.
6335 (mips_adjust_insn_length): Likewise for param "insn".
6336 (mips_output_conditional_branch): Likewise.
6337 (mips_output_order_conditional_branch): Likewise.
6338 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6339 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6340 "falu2_turn_enabled_insn".
6341 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6342 "done_label" from rtx to rtx_code_label *.
6343 (struct mips16_constant): Likewise for field "label".
6344 (mips16_add_constant): Likewise for return type.
6345 (mips16_emit_constants_1): Strengthen return type and param "insn"
6346 from rtx to rtx_insn *.
6347 (mips16_emit_constants): Likewise for param "insn".
6348 (mips16_insn_length): Likewise.
6349 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6350 to rtx_code_label *.
6351 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6352 from rtx to rtx_insn *.
6353 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6354 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6355 (r10k_simplify_address): Strengthen param "insn" and local
6356 "def_insn" from rtx to rtx_insn *.
6357 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6358 rtx_insn *.
6359 (r10k_needs_protection_p_1): Update target type of cast of data
6360 from to rtx to rtx_insn *.
6361 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6362 rtx * to rtx_insn **.
6363 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6364 rtx_insn *.
6365 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6366 (mips_call_expr_from_insn): Likewise for param "insn".
6367 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6368 (mips_find_pic_call_symbol): Likewise for param "insn".
6369 (mips_annotate_pic_calls): Likewise for local "insn".
6370 (mips_sim_insn): Likewise for this variable.
6371 (struct mips_sim): Likewise for field "insn" within elements of
6372 last_set array.
6373 (mips_sim_wait_reg): Likewise for param "insn".
6374 (mips_sim_wait_regs): Likewise.
6375 (mips_sim_wait_units): Likewise.
6376 (mips_sim_wait_insn): Likewise.
6377 (mips_sim_issue_insn): Likewise.
6378 (mips_sim_finish_insn): Likewise.
6379 (mips_seq_time): Likewise for param "seq" and local "insn".
6380 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6381 locals "first", "second".
6382 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6383 "last", "last2", "next".
6384 (mips_avoid_hazard): Likewise for params "after", "insn".
6385 (mips_reorg_process_insns): Likewise for locals "insn",
6386 "last_insn", "subinsn", "next_insn".
6387 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6388 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6389 "jump_sequence".
6390 (mips_output_mi_thunk): Likewise for local "insn".
6391 (mips_final_prescan_insn): Likewise for param "insn".
6392
6393 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6394
6395 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6396 Strengthen return type and local "insns" from rtx to rtx_insn *.
6397 (microblaze_legitimize_tls_address): Likewise for local "insns".
6398 (microblaze_block_move_loop): Strengthen local "label" from rtx
6399 to rtx_code_label *.
6400 (microblaze_expand_prologue): Strengthen two locals named "insn"
6401 from rtx to rtx_insn *.
6402 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6403 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6404 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6405 to rtx_code_label *.
6406
6407 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6408
6409 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6410 param from rtx to rtx_insn *.
6411 (mep_reuse_lo): Likewise for third param.
6412 (mep_use_post_modify_p): Likewise for first param.
6413 (mep_core_address_length): Likewise.
6414 (mep_cop_address_length): Likewise.
6415 (mep_final_prescan_insn): Likewise.
6416 (mep_store_data_bypass_p): Likewise for both params.
6417 (mep_mul_hilo_bypass_p): Likewise.
6418 (mep_ipipe_ldc_p): Likewise for param.
6419
6420 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6421 (mep_rewrite_mult): Likewise.
6422 (mep_rewrite_mulsi3): Likewise.
6423 (mep_rewrite_maddsi3): Likewise.
6424 (mep_reuse_lo_p_1): Likewise.
6425 (mep_reuse_lo_p): Likewise.
6426 (mep_frame_expr): Likewise.
6427 (mep_make_parallel): Likewise for both params.
6428 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6429 local "insn".
6430 (mep_use_post_modify_p): Likewise for param "insn".
6431 (mep_core_address_length): Likewise.
6432 (mep_cop_address_length): Likewise.
6433 (mep_reg_set_in_function): Likewise for local "insn".
6434 (mep_asm_without_operands_p): Likewise.
6435 (F): Likewise for return type and param "x".
6436 (add_constant): Likewise for local "insn".
6437 (maybe_dead_move): Likewise for return type and local "insn".
6438 (mep_expand_prologue): Likewise for local "insn".
6439 (mep_final_prescan_insn): Likewise for param "insn".
6440 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6441 "next", "follow", "x".
6442 (mep_insert_repeat_label_last): Likewise for return type, param
6443 "last_insn", and locals "next", "prev". Strengthen param "label"
6444 from rtx to rtx_code_label *.
6445 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6446 rtx_insn *.
6447 (struct mep_doloop_end): Likewise for fields "insn" and
6448 "fallthrough".
6449 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6450 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6451 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6452 rtx_insn *.
6453 (mep_invert_branch): Likewise for params "insn" and "after".
6454 (mep_reorg_erepeat): Likewise for param "insns" and locals
6455 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6456 "l" from rtx to rtx_code_label *.
6457 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6458 from rtx to rtx_insn *.
6459 (mep_reorg_addcombine): Likewise for param "insns" and locals
6460 "i", "n".
6461 (add_sp_insn_p): Likewise for param "insn".
6462 (mep_reorg_noframe): Likewise for param "insns" and locals
6463 "start_frame_insn", "end_frame_insn", "next".
6464 (mep_reorg): Likewise for local "insns".
6465 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6466 cast.
6467 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6468 (mep_mul_hilo_bypass_p): Likewise.
6469 (mep_ipipe_ldc_p): Likewise for param "insn".
6470 (mep_make_bundle): Likewise for return type, param "cop" and local
6471 "insn", splitting out the latter into a new local "seq" for when it
6472 is a SEQUENCE rather than an insn.
6473 (core_insn_p): Likewise for param "insn".
6474 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6475 "last", "first", "note", "prev", "core_insn".
6476
6477 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6478
6479 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6480 rtx to rtx_insn *.
6481 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6482 (m68k_final_prescan_insn): Likewise for first param.
6483
6484 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6485 (m68k_set_frame_related): Likewise for param "insn".
6486 (output_btst): Likewise for param "insn".
6487 (m68k_final_prescan_insn): Likewise.
6488 (m68k_move_to_reg): Likewise for local "insn".
6489 (m68k_call_tls_get_addr): Likewise for local "insns".
6490 (m68k_call_m68k_read_tp): Likewise.
6491 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6492 (m68k_output_mi_thunk): Likewise for local "insn".
6493
6494 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6495
6496 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6497 first param from rtx to rtx_insn *.
6498 (iq2000_adjust_insn_length): Likewise.
6499 (iq2000_output_conditional_branch): Likewise.
6500 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6501 "insn" and local "nop_insn".
6502 (iq2000_annotate_frame_insn): Likewise for param "insn".
6503 (iq2000_expand_prologue): Likewise for both locals "insn".
6504 (iq2000_adjust_insn_length): Likewise for param "insn".
6505 (iq2000_output_conditional_branch): Likewise.
6506
6507 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6508
6509 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6510 "insns" from rtx to rtx_insn *.
6511 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6512 (struct spill_fill_data): Likewise for field "init_after" and for
6513 elements of array field "prev_insn".
6514 (spill_restore_mem): Likewise for locals "insn", "first".
6515 (do_spill): Likewise for local "insn".
6516 (do_restore): Likewise.
6517 (ia64_expand_prologue): Likewise.
6518 (ia64_expand_epilogue): Likewise.
6519 (emit_insn_group_barriers): Likewise for locals "insn",
6520 "last_label".
6521 (emit_all_insn_group_barriers): Likewise for locals "insn",
6522 "last".
6523 (dfa_stop_insn): Likewise for this global.
6524 (dfa_pre_cycle_insn): Likewise.
6525 (ia64_nop): Likewise.
6526 (final_emit_insn_group_barriers): Likewise for locals "insn",
6527 "last".
6528 (emit_predicate_relation_info): Likewise for locals "head", "n",
6529 "insn", "b", "a".
6530 (ia64_reorg): Likewise for local "insn".
6531 (ia64_output_mi_thunk): Likewise.
6532 (expand_vec_perm_interleave_2): Likewise for local "seq".
6533
6534 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6535
6536 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6537 param 1 "insn" from rtx to rtx_insn *.
6538 (ix86_use_lea_for_mov): Likewise.
6539 (ix86_avoid_lea_for_addr): Likewise.
6540 (ix86_split_lea_for_addr): Likewise.
6541 (ix86_lea_for_add_ok): Likewise.
6542 (ix86_output_call_insn): Likewise.
6543
6544 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6545 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6546 (ix86_output_function_epilogue): Likewise for locals "insn",
6547 "deleted_debug_label".
6548 (legitimize_tls_address): Likewise for local "insn".
6549 (get_some_local_dynamic_name): Likewise.
6550 (increase_distance): Likewise for params "prev", "next".
6551 (distance_non_agu_define_in_bb): Likewise for params "insn",
6552 "start" and locals "prev", "next".
6553 (distance_non_agu_define): Likewise for param "insn".
6554 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6555 locals "next", "prev".
6556 (distance_agu_use): Likewise for param "insn".
6557 (ix86_lea_outperforms): Likewise.
6558 (ix86_ok_to_clobber_flags): Likewise.
6559 (ix86_avoid_lea_for_add): Likewise.
6560 (ix86_use_lea_for_mov): Likewise.
6561 (ix86_avoid_lea_for_addr): Likewise.
6562 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6563 (ix86_split_lea_for_addr): Likewise for param "insn".
6564 (ix86_lea_for_add_ok): Likewise for param "insn".
6565 (ix86_expand_carry_flag_compare): Likewise for local
6566 "compare_seq".
6567 (ix86_expand_int_movcc): Likewise.
6568 (ix86_output_call_insn): Likewise for param "insn".
6569 (ix86_output_call_insn): Likewise for local "i".
6570 (x86_output_mi_thunk): Introduce local "insn", using it in place
6571 of "tmp" when dealing with insns.
6572 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6573 "start".
6574 (ix86_pad_returns): Likewise for locals "ret", "prev".
6575 (ix86_count_insn_bb): Likewise for local "insn".
6576 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6577 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6578 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6579 (expand_vec_perm_interleave2): Likewise for local "seq".
6580 (expand_vec_perm_vperm2f128_vblend): Likewise.
6581 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6582 call to for_each_rtx with for_each_rtx_in_insn.
6583
6584 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6585
6586 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6587 "label" from rtx to rtx_code_label *.
6588 (ix86_expand_prologue): Likewise.
6589 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6590 "varargs_label".
6591 (ix86_split_idivmod): Likewise for locals "end_label" and
6592 "qimode_label".
6593 (ix86_expand_branch): Likewise for local "label2".
6594 (ix86_expand_aligntest): Likewise for return type and local "label".
6595 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6596 "top_label".
6597 (expand_movmem_epilogue): Likewise for the various locals named
6598 "label".
6599 (expand_setmem_epilogue): Likewise.
6600 (expand_small_movmem_or_setmem): Likewise for local "label".
6601 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6602 Strengthen param "done_label" from rtx * to rtx_code_label **.
6603 Strengthen locals "loop_label" and "label" from rtx to
6604 rtx_code_label *.
6605 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6606 Likewise for locals "loop_label", "label".
6607 (ix86_expand_set_or_movmem): Likewise for locals "label",
6608 "jump_around_label", "hot_label".
6609 (ix86_expand_strlensi_unroll_1): Likewise for locals
6610 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6611 "end_2_label".
6612 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6613 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6614 "label2", "jump_label".
6615 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6616 local "label".
6617 (ix86_expand_lfloorceil): Likewise for local "label".
6618 (ix86_expand_rint): Likewise.
6619 (ix86_expand_floorceildf_32): Likewise.
6620 (ix86_expand_floorceil): Likewise.
6621 (ix86_expand_rounddf_32): Likewise.
6622 (ix86_expand_trunc): Likewise.
6623 (ix86_expand_truncdf_32): Likewise.
6624 (ix86_expand_round): Likewise.
6625
6626 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6627
6628 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6629 first param from rtx to rtx_insn *.
6630 (h8300_insn_length_from_table): Likewise.
6631 * config/h8300/h8300.c (F): Likewise for return type and param
6632 "x".
6633 (Fpa): Add a checked cast to rtx_insn *.
6634 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6635 rtx_insn *.
6636 (final_prescan_insn): Likewise for param "insn".
6637 (h8300_binary_length): Likewise.
6638 (h8300_insn_length_from_table): Likewise.
6639
6640 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6641
6642 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6643 Strengthen first param "insn" from rtx to rtx_insn *.
6644
6645 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6646 Likewise.
6647 (frame_insn): Likewise for return type. Introduce local "insn"
6648 for use in place of local "x" for use as an rtx_insn *.
6649 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6650 (epiphany_expand_prologue): Likewise for local "insn".
6651 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6652 * config/epiphany/resolve-sw-modes.c
6653 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6654 "seq".
6655
6656 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6657
6658 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6659 param from rtx to rtx_insn *.
6660 (c6x_final_prescan_insn): Likewise for first param.
6661
6662 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6663 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6664 (c6x_expand_compare): Strengthen local "insns" from rtx to
6665 rtx_insn *.
6666 (c6x_get_unit_specifier): Likewise for param "insn".
6667 (c6x_print_unit_specifier_field): Likewise.
6668 (c6x_final_prescan_insn): Likewise.
6669 (emit_add_sp_const): Likewise for local "insn".
6670 (c6x_expand_prologue): Likewise.
6671
6672 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6673
6674 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6675 param 1 from rtx to rtx_insn *.
6676 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6677 the various locals named "insn".
6678 (expand_epilogue_reg_restore): Likewise.
6679 (frame_related_constant_load): Likewise.
6680 (add_to_reg): Likewise.
6681 (emit_link_insn): Likewise.
6682 (do_link): Likewise.
6683 (expand_interrupt_handler_prologue): Likewise.
6684 (branch_dest): Likewise for param "branch".
6685 (asm_conditional_branch): Likewise for param "insn".
6686 (gen_one_bundle): Likewise for elements of param "slot" and local
6687 "t".
6688 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6689 elements of local "slot".
6690 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6691 "queue", "next_queue", "prev".
6692 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6693 (add_sched_insns_for_speculation): Likewise for local "insn".
6694
6695 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6696
6697 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6698 from rtx to rtx_insn *.
6699 (output_movhi): Likewise.
6700 (output_movsisf): Likewise.
6701 (avr_out_tstsi): Likewise.
6702 (avr_out_tsthi): Likewise.
6703 (avr_out_tstpsi): Likewise.
6704 (avr_out_compare): Likewise.
6705 (avr_out_compare64): Likewise.
6706 (avr_out_movpsi): Likewise.
6707 (ashlqi3_out): Likewise.
6708 (ashlhi3_out): Likewise.
6709 (ashlsi3_out): Likewise.
6710 (ashrqi3_out): Likewise.
6711 (ashrhi3_out): Likewise.
6712 (ashrsi3_out): Likewise.
6713 (lshrqi3_out): Likewise.
6714 (lshrhi3_out): Likewise.
6715 (lshrsi3_out): Likewise.
6716 (avr_out_ashlpsi3): Likewise.
6717 (avr_out_ashrpsi3): Likewise.
6718 (avr_out_lshrpsi3): Likewise.
6719 (avr_out_fract): Likewise.
6720 (avr_out_sbxx_branch): Likewise.
6721 (avr_out_round): Likewise.
6722 (avr_out_xload): Likewise.
6723 (avr_out_movmem): Likewise.
6724 (adjust_insn_length): Likewise.
6725 (avr_out_lpm): Likewise.
6726 (reg_unused_after): Likewise.
6727 (_reg_unused_after): Likewise.
6728 (avr_jump_mode): Likewise for second param.
6729 (jump_over_one_insn): Likewise for first param.
6730 (avr_final_prescan_insn): Likewise.
6731 (out_shift_with_cnt): Likewise for second param.
6732
6733 * config/avr/avr.c (get_sequence_length): Likewise for param
6734 "insns" and local "insn".
6735 (emit_push_byte): Likewise for local "insn".
6736 (emit_push_sfr): Likewise.
6737 (avr_prologue_setup_frame): Likewise for locals "insn",
6738 "fp_plus_insns", "sp_plus_insns".
6739 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6740 "sp_plus_insns".
6741 (avr_jump_mode): Likewise for param "insn".
6742 (avr_final_prescan_insn): Likewise.
6743 (avr_find_unused_d_reg): Likewise.
6744 (avr_out_lpm_no_lpmx): Likewise.
6745 (avr_out_lpm): Likewise.
6746 (avr_out_xload): Likewise.
6747 (output_movqi): Likewise.
6748 (output_movhi): Likewise.
6749 (out_movqi_r_mr): Likewise.
6750 (out_movhi_r_mr): Likewise.
6751 (out_movsi_r_mr): Likewise.
6752 (out_movsi_mr_r): Likewise.
6753 (output_movsisf): Likewise.
6754 (avr_out_load_psi): Likewise.
6755 (avr_out_store_psi): Likewise.
6756 (avr_out_movpsi): Likewise.
6757 (out_movqi_mr_r): Likewise.
6758 (avr_out_movhi_mr_r_xmega): Likewise.
6759 (out_movhi_mr_r): Likewise.
6760 (compare_condition): Likewise for param "insn" and local "next".
6761 (compare_sign_p): Likewise for param "insn".
6762 (compare_diff_p): Likewise.
6763 (compare_eq_p): Likewise.
6764 (avr_out_compare): Likewise.
6765 (avr_out_compare64): Likewise.
6766 (avr_out_tsthi): Likewise.
6767 (avr_out_tstpsi): Likewise.
6768 (avr_out_tstsi): Likewise.
6769 (out_shift_with_cnt): Likewise.
6770 (ashlqi3_out): Likewise.
6771 (ashlhi3_out): Likewise.
6772 (avr_out_ashlpsi3): Likewise.
6773 (ashlsi3_out): Likewise.
6774 (ashrqi3_out): Likewise.
6775 (ashrhi3_out): Likewise.
6776 (avr_out_ashrpsi3): Likewise.
6777 (ashrsi3_out): Likewise.
6778 (lshrqi3_out): Likewise.
6779 (lshrhi3_out): Likewise.
6780 (avr_out_lshrpsi3): Likewise.
6781 (lshrsi3_out): Likewise.
6782 (avr_out_fract): Likewise.
6783 (avr_out_round): Likewise.
6784 (avr_adjust_insn_length): Likewise.
6785 (reg_unused_after): Likewise.
6786 (_reg_unused_after): Likewise.
6787 (avr_compare_pattern): Likewise.
6788 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6789 and locals "branch1", "branch2", "insn2", "jump".
6790 (avr_reorg): Likewise for local "insn".
6791 (avr_2word_insn_p): Likewise for param "insn".
6792 (jump_over_one_insn_p): Likewise.
6793 (avr_out_sbxx_branch): Likewise.
6794 (avr_out_movmem): Likewise.
6795
6796 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6797
6798 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6799 param from rtx to rtx_insn *.
6800 (thumb1_final_prescan_insn): Likewise.
6801 (thumb2_final_prescan_insn): Likewise.
6802
6803 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6804 rtx to rtx_insn *.
6805 (struct minipool_node): Likewise for field "insn".
6806 (dump_minipool): Likewise for param "scan".
6807 (create_fix_barrier): Likewise for local "from". Strengthen local
6808 "label" from rtx to rtx_code_label *.
6809 (push_minipool_barrier): Strengthen param "insn" from rtx to
6810 rtx_insn *.
6811 (push_minipool_fix): Likewise.
6812 (note_invalid_constants): Likewise.
6813 (thumb2_reorg): Likewise for local "insn".
6814 (arm_reorg): Likewise.
6815 (thumb2_final_prescan_insn): Likewise for param
6816 "insn" and local "first_insn".
6817 (arm_final_prescan_insn): Likewise for param "insn" and locals
6818 "start_insn", "this_insn".
6819 (arm_debugger_arg_offset): Likewise for param "insn".
6820 (thumb1_emit_multi_reg_push): Likewise for return type and local
6821 "insn".
6822 (thumb1_final_prescan_insn): Likewise for param "insn".
6823 (thumb_far_jump_used_p): Likewise for local "insn".
6824 (thumb1_expand_prologue): Likewise.
6825 (arm_expand_epilogue_apcs_frame): Likewise.
6826 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6827 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6828 from rtx to rtx_code_label *.
6829 (arm_split_atomic_op): Likewise for local "label".
6830 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6831
6832 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6833
6834 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6835 first param from rtx to rtx_insn *.
6836 (arc_verify_short): Likewise.
6837 (arc_short_long): Likewise.
6838 (arc_need_delay): Likewise.
6839
6840 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6841 "target_insn".
6842 (arc_ccfsm_advance): Likewise for param "insn" and locals
6843 "start_insn", "this_insn".
6844 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6845 (arc_ccfsm_post_advance): Likewise for param "insn".
6846 (arc_next_active_insn): Likewise for return type and param "insn".
6847 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6848 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6849 (output_short_suffix): Likewise for local "insn".
6850 (arc_final_prescan_insn): Likewise for param "insn". Remove
6851 now-redundant checked cast.
6852 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6853 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6854 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6855 for use where lc_set became an insn.
6856 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6857 rtx to rtx_insn *.
6858 (arc_get_insn_variants): Likewise for local "prev".
6859 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6860 "next".
6861 (arc_predicate_delay_insns): Likewise for local "insn".
6862 (arc_pad_return): Likewise for local "prev". For now, add a
6863 checked cast when extracting the insn from "final_sequence".
6864 (arc_short_long): Likewise for param "insn".
6865 (arc_need_delay): Likewise for param "insn" and local "next".
6866 (arc_label_align): Likewise for locals "prev", "next".
6867
6868 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6869
6870 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6871 "insn" from rtx to rtx_insn *.
6872 (alpha_gp_save_rtx): Likewise for local "seq".
6873 (alpha_instantiate_decls): Likewise for local "top".
6874 (get_some_local_dynamic_name): Likewise for local "insn".
6875 (alpha_does_function_need_gp): Likewise.
6876 (set_frame_related_p): Likewise for return type and for locals
6877 "seq" and "insn".
6878 (emit_frame_store_1): Likewise for local "insn".
6879 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6880 (alpha_end_function): Likewise for local "insn".
6881 (alpha_output_mi_thunk_osf): Likewise.
6882 (alphaev4_insn_pipe): Likewise for param "insn".
6883 (alphaev5_insn_pipe): Likewise.
6884 (alphaev4_next_group): Likewise for return type and param 1
6885 "insn".
6886 (alphaev5_next_group): Likewise.
6887 (alpha_align_insns_1): Likewise for return type and param 1 of
6888 callback param "next_group", and for locals "i", "next", "prev",
6889 "where", "where2", "insn".
6890
6891 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6892
6893 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6894 rather than modifying the stmt.
6895
6896 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6897
6898 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6899 cgraph_state conversion.
6900
6901 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6902
6903 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6904 Strengthen local "insns" from rtx to rtx_insn *.
6905 (aarch64_set_frame_expr): Likewise for local "insn".
6906 (aarch64_save_or_restore_fprs): Likewise.
6907 (aarch64_save_or_restore_callee_save_registers): Likewise.
6908 (aarch64_expand_prologue): Likewise.
6909 (aarch64_expand_epilogue): Likewise.
6910 (aarch64_output_mi_thunk): Likewise.
6911 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6912 "label2" from rtx to rtx_code_label *.
6913 (aarch64_split_atomic_op): Likewise for local "label".
6914
6915 2014-08-25 Martin Liska <mliska@suse.cz>
6916
6917 * cgraph.h (symtab_node):
6918 (bool needed_p (void)): created from decide_is_symbol_needed
6919 (bool referred_to_p (void)): created from referred_to_p
6920 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6921 * cgraph.h (cgraph_node):
6922 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6923 (void expand (void)): created from expand_function
6924 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6925 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6926 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6927 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6928 * cgraph.h (varpool_node):
6929 (static void add (tree decl): created from varpool_add_new_variable
6930 * cgraph.h (cgraph_edge):
6931 void remove (void);
6932 (void remove_caller (void)): created from cgraph_edge_remove_caller
6933 (void remove_callee (void)): created from cgraph_edge_remove_callee
6934 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6935 created from cgraph_set_call_stmt
6936 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6937 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6938 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6939 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6940 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6941 created from cgraph_speculative_call_info
6942 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6943 int freq_scale, bool update_original)): created from cgraph_clone_edge
6944 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6945 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6946 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6947 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6948 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6949 (static void rebuild_references (void)): created from cgraph_rebuild_references
6950 * cgraph.h (symbol_table):
6951 (create_reference): renamed from add_reference
6952 (maybe_create_reference): renamed from maybe_add_reference
6953 (void register_symbol (symtab_node *node)): new function
6954 (void clear_asm_symbols (void)): new function
6955 (void unregister (symtab_node *node)): new function
6956 (void release_symbol (cgraph_node *node, int uid)): new function
6957 (cgraph_node * allocate_cgraph_symbol (void)): new function
6958 (void initialize (void)): created from cgraph_init
6959 (symtab_node *first_symbol (void)):new function
6960 (asm_node *first_asm_symbol (void)):new function
6961 (symtab_node *first_defined_symbol (void)):new function
6962 (varpool_node *first_variable (void)):new function
6963 (varpool_node *next_variable (varpool_node *node)):new function
6964 (varpool_node *first_static_initializer (void)):new function
6965 (varpool_node *next_static_initializer (varpool_node *node)):new function
6966 (varpool_node *first_defined_variable (void)):new function
6967 (varpool_node *next_defined_variable (varpool_node *node)):new function
6968 (cgraph_node *first_defined_function (void)):new function
6969 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6970 (cgraph_node *first_function (void)):new function
6971 (cgraph_node *next_function (cgraph_node *node)):new function
6972 (cgraph_node *first_function_with_gimple_body (void)):new function
6973 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6974 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6975 created from symtab_remove_unreachable_nodes
6976 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6977 (void process_new_functions (void)): created from cgraph_process_new_functions
6978 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6979 (bool output_variables (void)): created from varpool_node::output_variables
6980 (void output_asm_statements (void)): created from output_asm_statements
6981 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6982 (void compile (void)): created from compile
6983 (void output_weakrefs (void)): created from output_weakrefs
6984 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6985 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6986 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6987 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6988 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6989 created from cgraph_next_function_with_gimple_body
6990 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6991 created from cgraph_remove_edge_removal_hook
6992 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6993 created from cgraph_add_node_removal_hook
6994 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6995 created from cgraph_remove_node_removal_hook
6996 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6997 created from varpool_add_node_removal_hook
6998 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6999 created from varpool_remove_node_removal_hook
7000 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7001 created from cgraph_add_function_insertion_hook
7002 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7003 created from cgraph_remove_function_insertion_hook
7004 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7005 created from varpool_add_variable_insertion_hook
7006 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7007 created from varpool_remove_variable_insertion_hook
7008 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7009 created from cgraph_add_edge_duplication_hook
7010 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7011 created from cgraph_remove_edge_duplication_hook
7012 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7013 created from cgraph_add_node_duplication_hook
7014 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7015 created from cgraph_remove_node_duplication_hook
7016 (void call_edge_removal_hooks (cgraph_edge *e)):
7017 created from cgraph_call_edge_removal_hooks
7018 (void call_cgraph_insertion_hooks (cgraph_node *node)):
7019 created from call_function_insertion_hooks
7020 (void call_cgraph_removal_hooks (cgraph_node *node)):
7021 created from cgraph_call_node_removal_hooks
7022 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7023 created from cgraph_node::call_duplication_hooks
7024 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7025 created from cgraph_call_edge_duplication_hooks
7026 (void call_varpool_removal_hooks (varpool_node *node)):
7027 created from varpool_call_node_removal_hooks
7028 (void call_varpool_insertion_hooks (varpool_node *node)):
7029 created from varpool_call_variable_insertion_hooks
7030 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7031 created from insert_to_assembler_name_hash
7032 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7033 created from unlink_from_assembler_name_hash
7034 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7035 created from symtab_prevail_in_asm_name_hash
7036 (void symtab_initialize_asm_name_hash (void)):
7037 created from symtab_initialize_asm_name_hash
7038 (void change_decl_assembler_name (tree decl, tree name)):
7039 created from change_decl_assembler_name
7040 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7041 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7042 created from decl_assembler_name_hash
7043 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7044 created from decl_assembler_name_equal
7045 (static hashval_t hash_node_by_assembler_name (const void *p)):
7046 created from hash_node_by_assembler_name
7047 (static int eq_assembler_name (const void *p1, const void *p2)):
7048 created from eq_assembler_name
7049
7050 2014-08-25 Marek Polacek <polacek@redhat.com>
7051
7052 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7053
7054 2014-08-25 Petr Murzin <petr.murzin@intel.com>
7055
7056 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7057 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7058 SWI1248_AVX512BW mode iterator.
7059
7060 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
7061
7062 PR target/62111
7063 * config/sh/predicates.md (general_extend_operand): Disable
7064 TRUNCATE before reload completes.
7065
7066 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7067
7068 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7069
7070 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7071
7072 PR target/61996
7073 * config/sh/sh.opt (musermode): Allow negative form.
7074 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7075 targets that don't support it.
7076 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7077 Document -mno-usermode option.
7078
7079 2014-08-24 Kito Cheng <kito@0xlab.org>
7080
7081 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7082 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7083 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7084 * doc/tm.texi: Regenerate.
7085
7086 2014-08-24 Kito Cheng <kito@0xlab.org>
7087
7088 * ira.c: Fix typo in comment.
7089
7090 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7091
7092 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7093 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7094
7095 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7096
7097 PR target/62038
7098 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7099 last_address when the current function is a thunk.
7100 (pa_asm_output_mi_thunk): When we don't have named sections or they
7101 are not being used, check that thunk can reach the stub table with a
7102 short branch.
7103
7104 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7105
7106 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7107 rtx_insn *.
7108 (pass_web::execute): Likewise for local "insn".
7109
7110 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7111
7112 * var-tracking.c (struct micro_operation_def): Strengthen field
7113 "insn" from rtx to rtx_insn *.
7114 (struct emit_note_data_def): Likewise.
7115 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7116 (vt_stack_adjustments): Likewise for local "insn".
7117 (adjust_insn): Likewise for param "insn".
7118 (val_store): Likewise.
7119 (val_resolve): Likewise.
7120 (struct count_use_info): Likewise for field "insn".
7121 (log_op_type): Likewise for param "insn".
7122 (reverse_op): Likewise.
7123 (prepare_call_arguments): Likewise.
7124 (add_with_sets): The initial param takes an insn, but we can't
7125 yet strengthen it from rtx to rtx_insn * since it's used as a
7126 cselib_record_sets_hook callback. For now rename initial param
7127 from "insn" to "uncast_insn", and introduce a local "insn" of
7128 the stronger rtx_insn * type, with a checked cast.
7129 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7130 rtx_insn *.
7131 (emit_note_insn_var_location): Likewise.
7132 (emit_notes_for_changes): Likewise.
7133 (emit_notes_for_differences): Likewise.
7134 (next_non_note_insn_var_location): Likewise for return type and
7135 for param "insn".
7136 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7137 (vt_initialize): Likewise for local "insn".
7138 (delete_debug_insns): Likewise for locals "insn" and "next".
7139
7140 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7141
7142 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7143 rtx_insn *.
7144 (mark_constant_pool): Likewise for local "insn".
7145
7146 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7147
7148 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7149 rtx to rtx_insn *.
7150 (dead_debug_promote_uses): Likewise.
7151 (dead_debug_insert_temp): Likewise.
7152
7153 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7154
7155 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7156 from const_rtx to const rtx_insn *.
7157 (store_killed_after): Likewise. Strengthen locals "last", "act"
7158 from rtx to rtx_insn *.
7159 (store_killed_before): Strengthen param "insn" from const_rtx to
7160 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7161 (find_moveable_store): Strengthen param "insn" from rtx to
7162 rtx_insn *.
7163 (compute_store_table): Likewise for local "insn".
7164 (insert_insn_start_basic_block): Likewise for param "insn" and
7165 locals "prev", "before", "insn".
7166 (insert_store): For now, add a checked cast to rtx_insn * on the
7167 result of gen_move_insn.
7168 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7169 to rtx_insn *.
7170 (replace_store_insn): Likewise. For now, add a checked cast to
7171 rtx_insn * on the result of gen_move_insn.
7172
7173 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7174
7175 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7176 rtx_insn *.
7177 (expand_sjlj_dispatch_table): Likewise.
7178
7179 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7180
7181 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7182 "insn" from rtx to rtx_insn *.
7183
7184 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7185
7186 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7187 "insn" from rtx to rtx_insn *.
7188 (dup_block_and_redirect): Likewise for param 3 "before".
7189
7190 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7191 from rtx to rtx_insn *.
7192 (move_insn_for_shrink_wrap): Likewise.
7193 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7194 (dup_block_and_redirect): Likewise for param "before" and local
7195 "insn".
7196 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7197 "end".
7198 (convert_to_simple_return): Likewise for local "start".
7199
7200 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7201 Strengthen local "insn" from rtx to rtx_insn *, for use when
7202 invoking requires_stack_frame_p.
7203
7204 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7205
7206 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7207 rtx_insn *.
7208 (speculate_expr): Likewise for locals "orig_insn_rtx",
7209 "spec_insn_rtx".
7210 (eq_transformed_insns): Likewise for locals "i1", "i2".
7211 (check_for_new_jump): Likewise for return type and local "end".
7212 (find_new_jump): Likewise for return type and local "jump".
7213 (sel_split_edge): Likewise for local "jump".
7214 (sel_create_recovery_block): Likewise.
7215 (sel_redirect_edge_and_branch_force): Likewise.
7216 (sel_redirect_edge_and_branch): Likewise.
7217
7218 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7219
7220 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7221 "new_insn" from rtx to rtx_insn *.
7222 (create_insn_rtx_with_rhs): Likewise for return type and for local
7223 "insn_rtx".
7224 (create_insn_rtx_with_lhs): Likewise.
7225 (create_speculation_check): Likewise for local "insn_rtx".
7226 (implicit_clobber_conflict_p): Likewise for local "insn".
7227 (get_expr_cost): Likewise.
7228 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7229 (move_cond_jump): Likewise for locals "next", "prev", "link",
7230 "head", "from", "to".
7231
7232 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7233
7234 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7235 "next" from rtx to rtx_insn *.
7236 (find_conditional_protection): Likewise for local "next".
7237 (is_conditionally_protected): Likewise for local "insn1".
7238 (is_pfree): Likewise for locals "insn1", "insn2".
7239
7240 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7241
7242 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7243 from rtx to rtx_insn *.
7244
7245 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7246 locals "insn1", "insn2" from rtx to rtx_insn *.
7247 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7248 locals "insn", "prev", "last_jump", "next_tail".
7249 (schedule_ebb): Likewise for params "head", "tail".
7250 (schedule_ebbs): Likewise for locals "tail", "head".
7251
7252 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7253 to rtx_insn on "last_insn" in one of the invocations of
7254 schedule_ebb.
7255
7256 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7257
7258 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7259 "elem", "insn" from rtx to rtx_insn *.
7260 (change_spec_dep_to_hard): Likewise.
7261 (get_back_and_forw_lists): Likewise for local "con".
7262 (sd_add_dep): Likewise for locals "elem", "insn".
7263 (sd_resolve_dep): Likewise for locals "pro", "con".
7264 (sd_unresolve_dep): Likewise.
7265 (sd_delete_dep): Likewise.
7266 (chain_to_prev_insn): Likewise for local "pro".
7267 (find_inc): Likewise for locals "pro", "con".
7268
7269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7270
7271 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7272 to rtx_insn *.
7273 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7274 const rtx_insn *.
7275 (modified_between_p): Strengthen local "insn" from rtx to
7276 rtx_insn *.
7277 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7278 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7279 const rtx_insn *.
7280
7281 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7282
7283 * resource.c (next_insn_no_annul): Strengthen local "next" from
7284 rtx to rtx_insn *.
7285 (mark_referenced_resources): Likewise for local "insn".
7286
7287 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7288
7289 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7290 to rtx_insn *.
7291 (find_reloads): Likewise for param 1.
7292 (subst_reloads): Likewise for sole param.
7293 (find_equiv_reg): Likwise for param 2.
7294 (regno_clobbered_p): Likwise for param 2.
7295 (reload): Likewise for param 1.
7296
7297 * caller-save.c (save_call_clobbered_regs): Strengthen local
7298 "insn" from rtx to rtx_insn *.
7299 (insert_one_insn): Likewise for local "insn".
7300
7301 * reload.c (this_insn): Likewise for this global.
7302 (find_reloads): Likewise for param "insn".
7303 (find_reloads_toplev): Likewise.
7304 (find_reloads_address): Likewise.
7305 (subst_reg_equivs): Likewise.
7306 (update_auto_inc_notes): Likewise.
7307 (find_reloads_address_1): Likewise.
7308 (find_reloads_subreg_address): Likewise.
7309 (subst_reloads): Likewise.
7310 (find_equiv_reg): Likewise, also for local "p".
7311 (regno_clobbered_p): Likewise for param "insn".
7312
7313 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7314 array.
7315 (spill_reg_store): Likewise for the elements of this array.
7316 (remove_init_insns): Likewise for local "equiv_insn".
7317 (will_delete_init_insn_p): Likewise for param "insn".
7318 (reload): Likewise for param ""first" and local "insn".
7319 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7320 rtx_insn *.
7321 (calculate_elim_costs_all_insns): Likewise.
7322 (delete_caller_save_insns): Likewise.
7323 (spill_failure): Likewise for param "insn".
7324 (delete_dead_insn): Likewise.
7325 (set_label_offsets): Likewise.
7326 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7327 "prev_insn".
7328 (elimination_costs_in_insn): Likewise for param "insn".
7329 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7330 when referring to an insn.
7331 (set_initial_label_offsets): Likewise.
7332 (set_offsets_for_label): Strengthen param "insn" from rtx to
7333 rtx_insn *.
7334 (init_eliminable_invariants): Likewise for param "first" and local
7335 "insn".
7336 (fixup_eh_region_note): Likewise for param "insn".
7337 (reload_as_needed): Likewise for locals "prev", "insn",
7338 "old_next", "old_prev", "next".
7339 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7340 "last".
7341 (reload_inheritance_insn): Strengthen elements of this array from
7342 rtx to rtx_insn *.
7343 (failed_reload): Likewise for param "insn".
7344 (choose_reload_regs): Likewise for local "insn". Replace use of
7345 NULL_RTX with NULL when referring to an insn.
7346 (input_reload_insns): Strengthen elements of this array from rtx
7347 to rtx_insn *.
7348 (other_input_address_reload_insns): Likewise for this global.
7349 (other_input_reload_insns): Likewise for this global.
7350 (input_address_reload_insns): Likwise for the elements of this
7351 array.
7352 (inpaddr_address_reload_insns): Likwise for the elements of this
7353 array.
7354 (output_reload_insns): Likewise for the elements of this array.
7355 (output_address_reload_insns): Likewise for the elements of this
7356 array.
7357 (outaddr_address_reload_insns): Likewise for the elements of this
7358 array.
7359 (operand_reload_insns): Likewise for this global.
7360 (other_operand_reload_insns): Likewise for this global.
7361 (other_output_reload_insns): Likewise for the elements of this
7362 array.
7363 (new_spill_reg_store): Likewise for the elements of this
7364 array.
7365 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7366 Strengthen local "where" from rtx * to rtx_insn **.
7367 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7368 from rtx to rtx_insn *.
7369 (do_input_reload): Likewise for local "insn".
7370 (do_output_reload): Likewise for local "insn".
7371 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7372 (emit_insn_if_valid_for_reload): Likewise for return type and local
7373 "last". Add checked cast to rtx_insn when returning "insn" since
7374 this has been through emit_insn.
7375 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7376 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7377 returning "insn" since it's been through
7378 emit_insn_if_valid_for_reload at this point.
7379 (delete_output_reload): Strengthen param "insn" and locals
7380 "output_reload_insn", "i2" from rtx to rtx_insn *.
7381 (delete_address_reloads): Likewise for params "dead_insn",
7382 "current_insn" and locals "prev", "next".
7383 (delete_address_reloads_1): Likewise for params "dead_insn",
7384 "current_insn" and locals "prev", "i2".
7385 (inc_for_reload): Likewise for locals "last", "add_insn".
7386 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7387 rtx_insn *.
7388
7389 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7390 param of this duplicate of the prototype from reload.h
7391
7392 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7393
7394 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7395 rtx to rtx_insn *.
7396 (regstat_bb_compute_calls_crossed): Likewise.
7397
7398 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7399
7400 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7401 to rtx_insn *.
7402 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7403 with an insn.
7404 (regrename_analyze): Strengthen local "insn" from rtx to
7405 rtx_insn *.
7406 (scan_rtx_reg): Likewise for param "insn".
7407 (scan_rtx_address): Likewise.
7408 (scan_rtx): Likewise.
7409 (restore_operands): Likewise.
7410 (record_out_operands): Likewise.
7411 (build_def_use): Likewise for local "insn". Replace use of
7412 NULL_RTX with NULL when dealing with an insn.
7413
7414 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7415
7416 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7417 * reginfo.c (reg_scan): Likewise, also for local "insn".
7418 (reg_scan_mark_refs): Likewise for param "insn".
7419 (init_subregs_of_mode): Likewise for local "insn".
7420
7421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7422
7423 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7424 "insn" from rtx to rtx_insn *.
7425 (replace_oldest_value_reg): Likewise for param "insn".
7426 (replace_oldest_value_addr): Likewise.
7427 (replace_oldest_value_mem): Likewise.
7428 (apply_debug_insn_changes): Likewise for local "last_insn".
7429 (copyprop_hardreg_forward_1): Likewise for local "insn".
7430
7431 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7432
7433 * reg-stack.c (next_flags_user): Strengthen return type and param
7434 "insn" from rtx to rtx_insn *.
7435 (straighten_stack): Likewise for param "insn".
7436 (check_asm_stack_operands): Likewise.
7437 (remove_regno_note): Likewise.
7438 (emit_pop_insn): Likewise for return type, param "insn", local
7439 "pop_insn".
7440 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7441 "limit" from rtx to rtx_insn *.
7442 (swap_to_top): Likewise for param "insn".
7443 (move_for_stack_reg): Likewise.
7444 (move_nan_for_stack_reg): Likewise.
7445 (swap_rtx_condition): Likewise.
7446 (compare_for_stack_reg): Likewise.
7447 (subst_all_stack_regs_in_debug_insn): Likewise.
7448 (subst_stack_regs_pat): Likewise, and local "insn2".
7449 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7450 rtx_insn *.
7451 (subst_stack_regs): Likewise.
7452 (change_stack): Likewise.
7453 (convert_regs_1): Likewise for locals "insn", "next".
7454
7455 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7456
7457 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7458 rtx_insn *.
7459 (combine_set_extension): Likewise for param "curr_insn".
7460 (transform_ifelse): Likewise for param "def_insn".
7461 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7462 from vec<rtx> * to vec<rtx_insn *> *.
7463 (is_cond_copy_insn): Likewise for param "insn".
7464 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7465 to vec<rtx_insn *>.
7466 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7467 local "def_insn" from rtx to rtx_insn *.
7468 (get_sub_rtx): Likewise for param "def_insn".
7469 (merge_def_and_ext): Likewise.
7470 (combine_reaching_defs): Likewise.
7471 (add_removable_extension): Likewise for param "insn".
7472 (find_removable_extensions): Likewise for local "insn".
7473 (find_and_remove_re): Likewise for locals "curr_insn" and
7474 "def_insn". Strengthen locals "reinsn_del_list" and
7475 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7476
7477 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7478
7479 * recog.c (split_insn): Strengthen param "insn" and locals
7480 "first", "last" from rtx to rtx_insn *.
7481 (split_all_insns): Likewise for locals "insn", "next".
7482 (split_all_insns_noflow): Likewise.
7483
7484 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7485
7486 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7487 const rtx_insn *.
7488 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7489 (debug_rtx_find): Likewise for param 1 "x".
7490
7491 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7492 const_rtx to const rtx_insn *. Likewise for local "insn".
7493 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7494 (debug_rtx_find): Likewise for param 1 "x".
7495 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7496 from const_rtx to const rtx_insn * within the appropriate cases of
7497 the switch statement.
7498
7499 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7500 Strengthen local "insns" from rtx to rtx_insn * since this is
7501 passed to a call to debug_rtx_list.
7502
7503 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7504
7505 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7506 to rtx_insn *.
7507
7508 * function.c (stack_protect_epilogue): Add checked cast to
7509 rtx_insn for now when invoking predict_insn_def.
7510
7511 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7512 rtx_insn *.
7513 (predict_insn_def): Likewise.
7514 (rtl_predict_edge): Likewise for local "last_insn".
7515 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7516 const rtx_insn *.
7517 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7518 to rtx_insn *.
7519 (bb_estimate_probability_locally): Likewise for local "last_insn".
7520 (expensive_function_p): Likewise for local "insn".
7521
7522 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7523 local "jmp", since this is used when invoking predict_insn_def.
7524
7525 2014-08-22 Marek Polacek <polacek@redhat.com>
7526
7527 PR c++/62199
7528 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7529
7530 2014-08-22 Marek Polacek <polacek@redhat.com>
7531
7532 PR c/61271
7533 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7534 a comparison in parens.
7535 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7536 in parens.
7537
7538 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7539
7540 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7541 rtx_insn *.
7542
7543 * cprop.c (fis_get_condition): Likewise.
7544
7545 * postreload.c (reload_cse_regs): Likewise for param "first".
7546 (reload_cse_simplify): Likewise for param "insn".
7547 (reload_cse_regs_1): Likewise for local "insn".
7548 (reload_cse_simplify_set): Likewise for param "insn".
7549 (reload_cse_simplify_operands): Likewise.
7550 (struct reg_use): Likewise for field "insn".
7551 (reload_combine_purge_insn_uses): Likewise for param "insn".
7552 (fixup_debug_insns): Likewise for params "from", "to" and local
7553 "insn".
7554 (try_replace_in_use): Likewise for local "use_insn".
7555 (reload_combine_recognize_const_pattern): Likewise for param
7556 "insn" and locals "add_moved_after_insn", "use_insn".
7557 (reload_combine_recognize_pattern): Likewise for param "insn" and
7558 local "prev".
7559 (reload_combine): Likewise for locals "insn", "prev".
7560 (reload_combine_note_use): Likewise for param "insn".
7561 (move2add_use_add2_insn): Likewise.
7562 (move2add_use_add3_insn): Likewise.
7563 (reload_cse_move2add): Likewise, also for local "next".
7564 (move2add_note_store): Likewise for local "insn".
7565
7566 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7567
7568 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7569 rtx to rtx_insn *.
7570 (struct unoccr): Likewise.
7571 (struct modifies_mem): Likewise.
7572 (alloc_mem): Likewise for local "insn".
7573 (insert_expr_in_table): Likewise for param "insn".
7574 (dump_expr_hash_table_entry): Likewise for local "insn".
7575 (oprs_unchanged_p): Likewise for param "insn".
7576 (load_killed_in_block_p): Likewise for local "setter".
7577 (record_last_reg_set_info): Likewise for param "insn".
7578 (record_last_reg_set_info_regno): Likewise.
7579 (record_last_mem_set_info): Likewise.
7580 (record_last_set_info): Likewise for local "last_set_insn".
7581 (record_opr_changes): Likewise for param "insn".
7582 (hash_scan_set): Likewise.
7583 (compute_hash_table): Likewise for local "insn".
7584 (get_avail_load_store_reg): Likewise for param "insn".
7585 (eliminate_partially_redundant_load): Likewise, also for locals
7586 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7587 RTX for insns.
7588 (eliminate_partially_redundant_loads): Likewise for local "insn".
7589
7590 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7591
7592 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7593 rtx to rtx_insn *.
7594 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7595 (expand_twoval_unop): Likewise for locals entry_last", "last".
7596 (expand_twoval_binop): Likewise.
7597 (expand_twoval_binop_libfunc): Likewise for local "insns".
7598 (widen_leading): Likewise for local "last".
7599 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7600 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7601 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7602 (expand_parity): Likewise for locals "last" and "seq".
7603 (expand_ffs): Likewise for local "seq". Strengthen local
7604 "nonzero_label" from rtx to rtx_code_label *.
7605 (expand_absneg_bit): Strengthen local "insns" from rtx to
7606 rtx_insn *.
7607 (expand_unop_direct): Likewise for local "last".
7608 (expand_unop): Likewise for locals "last", "insns".
7609 (expand_abs_nojump): Likewise for local "last".
7610 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7611 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7612 rtx_insn *.
7613 (expand_copysign_absneg): Strengthen local "label" from rtx to
7614 rtx_code_label *.
7615 (expand_copysign_bit): Strengthen local "insns" from rtx to
7616 rtx_insn *.
7617 (struct no_conflict_data): Likewise for fields "first", "insn".
7618 (emit_libcall_block_1): Likewise for param "insns" and locals
7619 "next", "last", "insn".
7620 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7621 on "insns" when invoking emit_libcall_block_1. Ultimately we
7622 want to strengthen insns itself.
7623 (prepare_cmp_insn): Strengthen local "last" from rtx to
7624 rtx_insn *.
7625 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7626 (prepare_float_lib_cmp): Likewise for local "insns".
7627 (emit_conditional_move): Likewise for local "last".
7628 (emit_conditional_add): Likewise.
7629 (have_sub2_insn): Likewise for local "seq".
7630 (expand_float): Likewise for local "insns". Strengthen locals
7631 "label", "neglabel" from rtx to rtx_code_label *.
7632 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7633 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7634 (expand_fixed_convert): Likewise for local "insns" (to
7635 rtx_insn *).
7636 (expand_sfix_optab): Likewise for local "last".
7637 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7638 to rtx_code_label *.
7639 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7640 from rtx to rtx_insn *.
7641 (expand_atomic_fetch_op): Likewise for local "insn".
7642 (maybe_legitimize_operand_same_code): Likewise for local "last".
7643 (maybe_legitimize_operands): Likewise.
7644
7645 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7646
7647 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7648 "insn" from rtx to rtx_insn *.
7649 (ps_rtl_insn): Likewise for return type.
7650 (doloop_register_get): Likewise for params "head", "tail" and
7651 locals "insn", "first_insn_not_to_check".
7652 (schedule_reg_move): Likewise for local "this_insn".
7653 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7654 of gen_move_insn for now.
7655 (reset_sched_times): Strengthen local "insn" from rtx to
7656 rtx_insn *.
7657 (permute_partial_schedule): Likewise.
7658 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7659 (dump_insn_location): Likewise for param "insn".
7660 (loop_canon_p): Likewise for local "insn".
7661 (sms_schedule): Likewise.
7662 (print_partial_schedule): Likewise.
7663 (ps_has_conflicts): Likewise.
7664
7665 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7666
7667 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7668 "tailp" from rtx * to rtx_insn **.
7669
7670 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7671 from rtx to rtx_insn *.
7672 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7673 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7674 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7675 rtx to rtx_insn *.
7676 * modulo-sched.c (const_iteration_count): Strengthen return type
7677 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7678 use of NULL_RTX with NULL when working with insns.
7679 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7680 to rtx_insn *.
7681 (sms_schedule): Likewise.
7682 * sched-rgn.c (init_ready_list): Likewise, also for locals
7683 "src_head" and "src_next_tail".
7684 (compute_block_dependences): Likewise.
7685 (free_block_dependencies): Likewise.
7686 (debug_rgn_dependencies): Likewise.
7687 (free_rgn_deps): Likewise.
7688 (compute_priorities): Likewise.
7689 (schedule_region): Likewise.
7690 * sel-sched.c (find_ebb_boundaries): Likewise.
7691
7692 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7693 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7694
7695 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7696
7697 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7698 from rtx to rtx_insn *.
7699 (new_seginfo): Likewise for param "insn".
7700 (create_pre_exit): Likewise for locals "last_insn",
7701 "before_return_copy", "return_copy".
7702 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7703 "mode_set".
7704
7705 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7706
7707 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7708 from rtx to rtx_insn *.
7709 (lra_push_insn): Likewise for 1st param.
7710 (lra_push_insn_and_update_insn_regno_info): Likewise.
7711 (lra_pop_insn): Likewise for return type.
7712 (lra_invalidate_insn_data): Likewise for 1st param.
7713 (lra_set_insn_deleted): Likewise.
7714 (lra_delete_dead_insn): Likewise.
7715 (lra_process_new_insns): Likewise for first 3 params.
7716 (lra_set_insn_recog_data): Likewise for 1st param.
7717 (lra_update_insn_recog_data): Likewise.
7718 (lra_set_used_insn_alternative): Likewise.
7719 (lra_invalidate_insn_regno_info): Likewise.
7720 (lra_update_insn_regno_info): Likewise.
7721 (lra_former_scratch_operand_p): Likewise.
7722 (lra_eliminate_regs_1): Likewise.
7723 (lra_get_insn_recog_data): Likewise.
7724
7725 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7726 rtx to rtx_insn *.
7727
7728 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7729 "mv1" and "mv2".
7730 (substitute_within_insn): New.
7731 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7732 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7733 Replace call to "substitute" with call to substitute_within_insn.
7734
7735 * lra-constraints.c (curr_insn): Strengthen from rtx to
7736 rtx_insn *.
7737 (get_equiv_with_elimination): Likewise for param "insn".
7738 (match_reload): Strengthen params "before" and "after" from rtx *
7739 to rtx_insn **.
7740 (emit_spill_move): Likewise for return type. Add a checked cast
7741 to rtx_insn * on result of gen_move_insn for now.
7742 (check_and_process_move): Likewise for local "before". Replace
7743 NULL_RTX with NULL when referring to insns.
7744 (process_addr_reg): Strengthen params "before" and "after" from
7745 rtx * to rtx_insn **.
7746 (insert_move_for_subreg): Likewise.
7747 (simplify_operand_subreg): Strengthen locals "before" and "after"
7748 from rtx to rtx_insn *.
7749 (process_address_1): Strengthen params "before" and "after" from
7750 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7751 rtx to rtx_insn *.
7752 (process_address): Strengthen params "before" and "after" from
7753 rtx * to rtx_insn **.
7754 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7755 (curr_insn_transform): Strengthen locals "before" and "after"
7756 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7757 to insns.
7758 (loc_equivalence_callback): Update cast of "data", changing
7759 resulting type from rtx to rtx_insn *.
7760 (substitute_pseudo_within_insn): New.
7761 (inherit_reload_reg): Strengthen param "insn" from rtx to
7762 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7763 NULL when referring to insns. Add a checked cast to rtx_insn *
7764 when using usage_insn to invoke lra_update_insn_regno_info.
7765 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7766 likewise for locals "restore", "save". Add checked casts to
7767 rtx_insn * when using usage_insn to invoke
7768 lra_update_insn_regno_info and lra_process_new_insns. Replace
7769 NULL_RTX with NULL when referring to insns.
7770 (split_if_necessary): Strengthen param "insn" from rtx to
7771 rtx_insn *.
7772 (update_ebb_live_info): Likewise for params "head", "tail" and local
7773 "prev_insn".
7774 (get_last_insertion_point): Likewise for return type and local "insn".
7775 (get_live_on_other_edges): Likewise for local "last".
7776 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7777 "prev_insn", "next_insn", "restore".
7778 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7779 (undo_optional_reloads): Likewise for local "insn".
7780
7781 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7782 "insn".
7783 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7784 insns.
7785 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7786 rtx_insn *.
7787 (spill_pseudos): Likewise for local "insn".
7788 (init_elimination): Likewise.
7789 (process_insn_for_elimination): Likewise for param "insn".
7790
7791 * lra-lives.c (curr_insn): Likewise.;
7792
7793 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7794 (remove_pseudos): Likewise for param "insn".
7795 (spill_pseudos): Likewise for local "insn".
7796 (lra_final_code_change): Likewise for locals "insn", "curr".
7797
7798 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7799 (lra_set_insn_deleted): Likewise.
7800 (lra_delete_dead_insn): Likewise, and for local "prev".
7801 (new_insn_reg): Likewise for param "insn".
7802 (lra_set_insn_recog_data): Likewise.
7803 (lra_update_insn_recog_data): Likewise.
7804 (lra_set_used_insn_alternative): Likewise.
7805 (get_insn_freq): Likewise.
7806 (invalidate_insn_data_regno_info): Likewise.
7807 (lra_invalidate_insn_regno_info): Likewise.
7808 (lra_update_insn_regno_info): Likewise.
7809 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7810 vec<rtx_insn *>.
7811 (lra_push_insn_1): Strengthen param "insn" from rtx to
7812 rtx_insn *.
7813 (lra_push_insn): Likewise.
7814 (lra_push_insn_and_update_insn_regno_info): Likewise.
7815 (lra_pop_insn): Likewise for return type and local "insn".
7816 (push_insns): Likewise for params "from", "to", and local "insn".
7817 (setup_sp_offset): Likewise for params "from", "last" and locals
7818 "before", "insn".
7819 (lra_process_new_insns): Likewise for params "insn", "before",
7820 "after" and local "last".
7821 (struct sloc): Likewise for field "insn".
7822 (lra_former_scratch_operand_p): Likewise for param "insn".
7823 (remove_scratches): Likewise for locals "insn", "last".
7824 (check_rtl): Likewise for local "insn".
7825 (add_auto_inc_notes): Likewise for param "insn".
7826 (update_inc_notes): Likewise for local "insn".
7827 (lra): Replace NULL_RTX with NULL when referring to insn.
7828
7829 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7830
7831 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7832 to rtx_insn *.
7833 (resolve_reg_notes): Likewise.
7834 (resolve_simple_move): Likewise for return type, param "insn", and
7835 locals "insns", "minsn".
7836 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7837 (resolve_use): Likewise.
7838 (resolve_debug): Likewise.
7839 (find_decomposable_shift_zext): Likewise.
7840 (resolve_shift_zext): Likewise for return type, param "insn", and
7841 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7842 (decompose_multiword_subregs): Likewise for local "insn",
7843 "orig_insn", "decomposed_shift", "end".
7844
7845 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7846
7847 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7848 param "insns" from rtx to rtx_insn *.
7849
7850 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7851 rtx to rtx_insn *.
7852 (struct iv_to_split): Likewise.
7853 (loop_exit_at_end_p): Likewise for local "insn".
7854 (split_edge_and_insert): Likewise for param "insns".
7855 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7856 and locals "seq", "jump".
7857 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7858 "branch_code"; update invocations of compare_and_jump_seq to
7859 eliminate NULL_RTX in favor of NULL.
7860 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7861 rtx to rtx_insn *.
7862 (reset_debug_uses_in_loop): Likewise.
7863 (analyze_insn_to_expand_var): Likewise for param "insn".
7864 (analyze_iv_to_split_insn): Likewise.
7865 (analyze_insns_in_loop): Likewise for local "insn".
7866 (insert_base_initialization): Likewise for param
7867 "insn" and local "seq".
7868 (split_iv): Likewise for param "insn" and local "seq".
7869 (expand_var_during_unrolling): Likewise for param "insn".
7870 (insert_var_expansion_initialization): Likewise for local "seq".
7871 (combine_var_copies_in_loop_exit): Likewise.
7872 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7873 "insn".
7874 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7875 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7876 "next".
7877
7878 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7879
7880 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7881 rtx_insn *.
7882 (iv_analyze_result): Likewise.
7883 (iv_analyze_expr): Likewise.
7884 (biv_p): Likewise.
7885
7886 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7887 local "def_insn" from rtx to rtx_insn *.
7888 (get_biv_step_1): Likewise for local "insn".
7889 (iv_analyze_expr): Likewise for param "insn".
7890 (iv_analyze_def): Likewise for local "insn".
7891 (iv_analyze_op): Likewise for param "insn".
7892 (iv_analyze): Likewise.
7893 (iv_analyze_result): Likewise.
7894 (biv_p): Likewise.
7895 (suitable_set_for_replacement): Likewise.
7896 (simplify_using_initial_values): Likewise for local "insn".
7897 (iv_number_of_iterations): Likewise for param "insn".
7898 (check_simple_exit): Add checked cast to rtx_insn when invoking
7899 iv_number_of_iterations for now (until get_condition is
7900 strengthened).
7901
7902 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7903 "insn" from rtx to rtx_insn *.
7904 (analyze_insns_in_loop): Likewise for local "insn".
7905
7906 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7907
7908 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7909 to rtx_insn *.
7910 (struct invariant): Likewise.
7911 (hash_invariant_expr_1): Likewise for param "insn".
7912 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7913 (find_exits): Likewise for local "insn".
7914 (create_new_invariant): Likewise for param "insn".
7915 (check_dependencies): Likewise.
7916 (find_invariant_insn): Likewise.
7917 (record_uses): Likewise.
7918 (find_invariants_insn): Likewise.
7919 (find_invariants_bb): Likewise for local "insn".
7920 (get_pressure_class_and_nregs): Likewise for param "insn".
7921 (calculate_loop_reg_pressure): Likewise for local "insn".
7922
7923 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7924
7925 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7926 to rtx_insn *.
7927 (add_test): Likewise for locals "seq", "jump".
7928 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7929
7930 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7931
7932 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7933 rtx_insn *.
7934 (rebuild_jump_labels_chain): Likewise for param "chain".
7935
7936 * cfgexpand.c (pass_expand::execute): Add checked cast to
7937 rtx_insn * when calling rebuild_jump_labels_chain in region where
7938 we know e->insns.r is non-NULL.
7939
7940 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7941 rtx_insn *.
7942 (rebuild_jump_labels): Likewise.
7943 (rebuild_jump_labels_chain): Likewise for param "chain".
7944 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7945 (init_label_info): Likewise for param "f".
7946 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7947 "prev_nonjump_insn".
7948 (mark_all_labels): Likewise for param "f" and locals "insn",
7949 "prev_nonjump_insn".
7950
7951 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7952
7953 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7954 from rtx to rtx_insn *insn.
7955 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7956 (ira_add_allocno_copy): Likewise.
7957 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7958 rtx to rtx_insn *.
7959 (ira_create_copy): Likewise.
7960 (ira_add_allocno_copy): Likewise.
7961 (create_bb_allocnos): Likewise for local "insn".
7962 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7963 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7964 process_regs_for_copy for rtx_insn * param.
7965 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7966 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7967 process_regs_for_copy for rtx_insn * param.
7968 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7969 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7970 (record_operand_costs): Likewise.
7971 (scan_one_insn): Likewise for return type, and for param "insn".
7972 (process_bb_for_costs): Likewise for local "insn".
7973 (process_bb_node_for_hard_reg_moves): Likewise.
7974 * ira-emit.c (struct move): Likewise for field "insn".
7975 (create_move): Eliminate use of NULL_RTX when dealing with an
7976 rtx_insn *.
7977 (emit_move_list): Strengthen return type and locals "result",
7978 "insn" from rtx to rtx_insn *insn.
7979 (emit_moves): Likewise for locals "insns", "tmp".
7980 (ira_emit): Likewise for local "insn".
7981 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7982 "insn".
7983 (find_call_crossed_cheap_reg): Likewise.
7984 (process_bb_node_lives): Likewise for local "insn".
7985 * ira.c (decrease_live_ranges_number): Likewise.
7986 (compute_regs_asm_clobbered): Likewise.
7987 (build_insn_chain): Likewise.
7988 (find_moveable_pseudos): Likewise, also locals "def_insn",
7989 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7990 to rtx_insn **. Add a checked cast when assigning from
7991 "closest_use" into closest_uses array in a region where we know
7992 it's a non-NULL insn.
7993 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7994 to rtx_insn *.
7995 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7996 "last_interesting_insn", "uin".
7997 (move_unallocated_pseudos): Likewise for locals "def_insn",
7998 "move_insn", "newinsn".
7999
8000 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8001
8002 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8003 Strengthen locals "done_label", "do_error" from rtx to
8004 rtx_code_label *.
8005 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8006 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
8007 rtx_code_label *.
8008 (ubsan_expand_si_overflow_neg_check): Likewise for locals
8009 "done_label", "do_error" to rtx_code_label * and local "last" to
8010 rtx_insn *.
8011 (ubsan_expand_si_overflow_mul_check): Likewise for locals
8012 "done_label", "do_error", "large_op0", "small_op0_large_op1",
8013 "one_small_one_large", "both_ops_large", "after_hipart_neg",
8014 "after_lopart_neg", "do_overflow", "hipart_different" to
8015 rtx_code_label * and local "last" to rtx_insn *.
8016
8017 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8018
8019 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8020 "insn" and "move_insn" from rtx to rtx_insn *.
8021
8022 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8023
8024 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8025 rtx_insn *.
8026 (cheap_bb_rtx_cost_p): Likewise.
8027 (first_active_insn): Likewise for return type and local "insn".
8028 (last_active_insn): Likewise for return type and locals "insn",
8029 "head".
8030 (struct noce_if_info): Likewise for fields "jump", "insn_a",
8031 "insn_b".
8032 (end_ifcvt_sequence): Likewise for return type and locals "insn",
8033 "seq".
8034 (noce_try_move): Likewise for local "seq".
8035 (noce_try_store_flag): Likewise.
8036 (noce_try_store_flag_constants): Likewise.
8037 (noce_try_addcc): Likewise.
8038 (noce_try_store_flag_mask): Likewise.
8039 (noce_try_cmove): Likewise.
8040 (noce_try_minmax): Likewise.
8041 (noce_try_abs): Likewise.
8042 (noce_try_sign_mask): Likewise.
8043 (noce_try_bitop): Likewise.
8044 (noce_can_store_speculate_p): Likewise for local "insn".
8045 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8046 seq".
8047 (check_cond_move_block): Likewise for local "insn".
8048 (cond_move_convert_if_block): Likewise.
8049 (cond_move_process_if_block): Likewise for locals "seq",
8050 "loc_insn".
8051 (noce_find_if_block): Likewise for local "jump".
8052 (merge_if_block): Likewise for local "last".
8053 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8054 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8055 (block_has_only_trap): Likewise for return type and local "trap".
8056 (find_if_case_1): Likewise for local "jump".
8057 (dead_or_predicable): Likewise for locals "head", "end", "jump",
8058 "insn".
8059
8060 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8061
8062 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8063 "last_insn", "loop_end" from rtx to rtx_insn *.
8064
8065 * hw-doloop.c (scan_loop): Likewise for local "insn".
8066 (discover_loop): Likewise for param "tail_insn".
8067 (discover_loops): Likewise for local "tail".
8068
8069 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8070 cast to rtx_insn * when assigning from an rtx local to a
8071 hwloop_info's "last_insn" field.
8072
8073 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8074
8075 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8076 (add_delay_dependencies): Strengthen local "pro" from rtx to
8077 rtx_insn *.
8078 (recompute_todo_spec): Likewise.
8079 (dep_cost_1): Likewise for locals "insn", "used".
8080 (schedule_insn): Likewise for local "dbg".
8081 (schedule_insn): Likewise for locals "pro", "next".
8082 (unschedule_insns_until): Likewise for local "con".
8083 (restore_pattern): Likewise for local "next".
8084 (estimate_insn_tick): Likewise for local "pro".
8085 (resolve_dependencies): Likewise for local "next".
8086 (fix_inter_tick): Likewise.
8087 (fix_tick_ready): Likewise for local "pro".
8088 (add_to_speculative_block): Likewise for locals "check", "twin",
8089 "pro".
8090 (sched_extend_bb): Likewise for locals "end", "insn".
8091 (init_before_recovery): Likewise for local "x".
8092 (sched_create_recovery_block): Likewise for local "barrier".
8093 (create_check_block_twin): Likewise for local "pro".
8094 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8095 "consumer".
8096 (unlink_bb_notes): Update for change to type of bb_header.
8097 Strengthen locals "prev", "label", "note", "next" from rtx to
8098 rtx_insn *.
8099 (clear_priorities): Likewise for local "pro".
8100
8101 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8102
8103 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8104 rtx_insn *.
8105 (test_insn): Likewise for this global.
8106 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8107 const rtx_insn *.
8108 (oprs_anticipatable_p): Likewise.
8109 (oprs_available_p): Likewise.
8110 (insert_expr_in_table): Strengthen param "insn" from rtx to
8111 rtx_insn *.
8112 (hash_scan_set): Likewise.
8113 (hash_scan_clobber): Likewise.
8114 (hash_scan_call): Likewise.
8115 (hash_scan_insn): Likewise.
8116 (compute_hash_table_work): Likewise for local "insn".
8117 (process_insert_insn): Likewise for return type and local "pat".
8118 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8119 "pat", "pat_end", "maybe_cc0_setter".
8120 (pre_edge_insert): Likewise for local "insn".
8121 (pre_insert_copy_insn): Likewise for param "insn".
8122 (pre_insert_copies): Likewise for local "insn".
8123 (struct set_data): Likewise for field "insn".
8124 (single_set_gcse): Likewise for param "insn".
8125 (gcse_emit_move_after): Likewise.
8126 (pre_delete): Likewise for local "insn".
8127 (update_bb_reg_pressure): Likewise for param "from" and local
8128 "insn".
8129 (should_hoist_expr_to_dom): Likewise for param "from".
8130 (hoist_code): Likewise for local "insn".
8131 (get_pressure_class_and_nregs): Likewise for param "insn".
8132 (calculate_bb_reg_pressure): Likewise for local "insn".
8133 (compute_ld_motion_mems): Likewise.
8134
8135 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8136
8137 * genpeep.c (main): Rename param back from "uncast_ins1" to
8138 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8139 checked cast.
8140
8141 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8142
8143 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8144
8145 PR target/62195
8146 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8147 documentation to state it is only for VSX operations.
8148
8149 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8150 constraint only active if VSX.
8151
8152 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8153 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8154 (lfiwzx): Likewise.
8155
8156 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8157
8158 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8159 Strengthen local "insn" from rtx to rtx_insn *.
8160 (use_killed_between): Likewise for param "target_insn".
8161 (all_uses_available_at): Likewise for param "target_insn" and
8162 local "next".
8163 (update_df_init): Likewise for params "def_insn", "insn".
8164 (update_df): Likewise for param "insn".
8165 (try_fwprop_subst): Likewise for param "def_insn" and local
8166 "insn".
8167 (free_load_extend): Likewise for param "insn".
8168 (forward_propagate_subreg): Likewise for param "def_insn" and
8169 local "use_insn".
8170 (forward_propagate_asm): Likewise for param "def_insn" and local
8171 "use_insn".
8172 (forward_propagate_and_simplify): Likewise for param "def_insn"
8173 and local "use_insn".
8174 (forward_propagate_into): Likewise for locals "def_insn" and
8175 "use_insn".
8176
8177 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8178
8179 * function.c (emit_initial_value_sets): Strengthen local "seq"
8180 from rtx to rtx_insn *.
8181 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8182 local "seq".
8183 (instantiate_virtual_regs): Likewise for local "insn".
8184 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8185 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8186 (expand_function_end): Likewise for locals "insn" and "seq".
8187 (epilogue_done): Likewise for local "insn".
8188 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8189 "last", "trial".
8190 (reposition_prologue_and_epilogue_notes): Likewise for locals
8191 "insn", "last", "note", "first".
8192 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8193 (pass_match_asm_constraints::execute): Likewise for local "insn".
8194
8195 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8196
8197 * output.h (final_scan_insn): Strengthen return type from rtx to
8198 rtx_insn *.
8199 (final_forward_branch_p): Likewise for param.
8200 (current_output_insn): Likewise for this global.
8201
8202 * final.c (rtx debug_insn): Likewise for this variable.
8203 (current_output_insn): Likewise.
8204 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8205 adding "insn" back in as an rtx_insn * with a checked cast, so
8206 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8207 first param.
8208 (compute_alignments): Strengthen local "label" from rtx to
8209 rtx_insn *.
8210 (shorten_branches): Rename param from "first" to "uncast_first",
8211 introducing a new local rtx_insn * "first" using a checked cast to
8212 effectively strengthen "first" from rtx to rtx_insn * without
8213 affecting the type signature. Strengthen locals "insn", "seq",
8214 "next", "label" from rtx to rtx_insn *.
8215 (change_scope): Strengthen param "orig_insn" and local "insn" from
8216 rtx to rtx_insn *.
8217 (final_start_function): Rename param from "first" to "uncast_first",
8218 introducing a new local rtx_insn * "first" using a checked cast to
8219 effectively strengthen "first" from rtx to rtx_insn * without
8220 affecting the type signature. Strengthen local "insn" from rtx to
8221 rtx_insn *.
8222 (dump_basic_block_info): Strengthen param "insn" from rtx to
8223 rtx_insn *.
8224 (final): Rename param from "first" to "uncast_first",
8225 introducing a new local rtx_insn * "first" using a checked cast to
8226 effectively strengthen "first" from rtx to rtx_insn * without
8227 affecting the type signature. Strengthen locals "insn", "next"
8228 from rtx to rtx_insn *.
8229 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8230 rtx_insn *.
8231 (call_from_call_insn): Strengthen param "insn" from rtx to
8232 rtx_call_insn *.
8233 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8234 introducing a new local rtx_insn * "insn" using a checked cast to
8235 effectively strengthen "insn" from rtx to rtx_insn * without
8236 affecting the type signature. Strengthen return type and locals
8237 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8238 now-redundant checked cast to rtx_insn * from both invocations of
8239 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8240 introducing a local "call_insn" for use when invoking
8241 call_from_call_insn.
8242 (notice_source_line): Strengthen param "insn" from rtx to
8243 rtx_insn *.
8244 (leaf_function_p): Likewise for local "insn".
8245 (final_forward_branch_p): Likewise.
8246 (leaf_renumber_regs): Likewise for param "first".
8247 (rest_of_clean_state): Likewise for locals "insn" and "next".
8248 (self_recursive_call_p): Likewise for param "insn".
8249 (collect_fn_hard_reg_usage): Likewise for local "insn".
8250 (get_call_fndecl): Likewise for param "insn".
8251 (get_call_cgraph_rtl_info): Likewise.
8252 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8253 introducing a new local rtx_insn * "insn" using a checked cast to
8254 effectively strengthen "insn" from rtx to rtx_insn * without
8255 affecting the type signature.
8256
8257 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8258 cast when assigning from param "insn" to current_output_insn.
8259 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8260 so that we can assign it back to current_output_insn.
8261
8262 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8263
8264 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8265 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8266 atmxt540s and atmxt540sreva devices.
8267 * config/avr/avr-tables.opt: Regenerate.
8268 * config/avr/t-multilib: Regenerate.
8269 * doc/avr-mmcu.texi: Regenerate.
8270
8271 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8272
8273 * expr.c (convert_move): Strengthen local "insns" from rtx to
8274 rtx_insn *.
8275 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8276 "top_label" from rtx to rtx_code_label *.
8277 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8278 rtx_insn *.
8279 (emit_single_push_insn): Likewise for locals "prev", "last".
8280 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8281 to rtx_code_label *.
8282 (store_constructor): Likewise for locals "loop_start", "loop_end".
8283 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8284 rtx_insn *.
8285 (expand_expr_real_2): Likewise.
8286 (expand_expr_real_1): Strengthen local "label" from rtx to
8287 rtx_code_label *.
8288
8289 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8290
8291 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8292 from rtx to rtx_insn *.
8293 (store_bit_field_1): Likewise.
8294 (extract_bit_field_1): Likewise.
8295 (expand_mult_const): Likewise for local "insns".
8296 (expmed_mult_highpart): Strengthen local "label" from rtx to
8297 rtx_code_label *.
8298 (expand_smod_pow2): Likewise.
8299 (expand_sdiv_pow2): Likewise.
8300 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8301 rtx_insn *. Strengthen locals "label", "label1", "label2",
8302 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8303 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8304 (emit_store_flag): Likewise.
8305 (emit_store_flag_force): Strengthen local "label" from rtx to
8306 rtx_code_label *.
8307 (do_cmp_and_jump): Likewise for param "label".
8308
8309 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8310
8311 * explow.c (force_reg): Strengthen local "insn" from rtx to
8312 rtx_insn *.
8313 (adjust_stack_1): Likewise.
8314 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8315 "final_label", "available_label", "space_available" from rtx to
8316 rtx_code_label *.
8317 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8318 (anti_adjust_stack_and_probe): Likewise.
8319
8320 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8321
8322 * except.h (sjlj_emit_function_exit_after): Strengthen param
8323 "after" from rtx to rtx_insn *. This is only called with
8324 result of get_last_insn (in function.c) so type-change should be
8325 self-contained.
8326
8327 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8328 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8329 to rtx_insn *. These fields are only used from except.c so this
8330 type-change should be self-contained to this patch.
8331
8332 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8333 local "last" from rtx to rtx_insn *.
8334 (dw2_build_landing_pads): Likewise for local "seq".
8335 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8336 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8337 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8338 rtx to rtx_insn *.
8339 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8340 to rtx_insn *.
8341 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8342 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8343 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8344 referring to an insn. Strengthen local "dispatch_label" from
8345 rtx to rtx_code_label *.
8346 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8347 rtx_insn *.
8348 (expand_eh_return): Strengthen local "around_label" from
8349 rtx to rtx_code_label *.
8350 (convert_to_eh_region_ranges): Strengthen locals "iter",
8351 "last_action_insn", "first_no_action_insn",
8352 "first_no_action_insn_before_switch",
8353 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8354
8355 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8356
8357 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8358 from rtx to rtx_insn *.
8359 (cached_next_real_insn): Likewise.
8360 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8361 working with insns.
8362 (dwarf2out_var_location): Strengthen locals "next_real",
8363 "next_note", "expected_next_loc_note", "last_start", "insn" from
8364 rtx to rtx_insn *.
8365
8366 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8367
8368 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8369 from rtx to rtx_insn *.
8370 (create_pseudo_cfg): Likewise for local "insn".
8371
8372 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8373
8374 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8375 from rtx to rtx_insn *.
8376 (df_bb_regno_last_def_find): Likewise.
8377
8378 * df-problems.c (df_rd_bb_local_compute): Likewise.
8379 (df_lr_bb_local_compute): Likewise.
8380 (df_live_bb_local_compute): Likewise.
8381 (df_chain_remove_problem): Likewise.
8382 (df_chain_create_bb): Likewise.
8383 (df_word_lr_bb_local_compute): Likewise.
8384 (df_remove_dead_eq_notes): Likewise for param "insn".
8385 (df_note_bb_compute): Likewise for local "insn".
8386 (simulate_backwards_to_point): Likewise.
8387 (df_md_bb_local_compute): Likewise.
8388
8389 * df-scan.c (df_scan_free_bb_info): Likewise.
8390 (df_scan_start_dump): Likewise.
8391 (df_scan_start_block): Likewise.
8392 (df_install_ref_incremental): Likewise for local "insn".
8393 (df_insn_rescan_all): Likewise.
8394 (df_reorganize_refs_by_reg_by_insn): Likewise.
8395 (df_reorganize_refs_by_insn_bb): Likewise.
8396 (df_recompute_luids): Likewise.
8397 (df_bb_refs_record): Likewise.
8398 (df_update_entry_exit_and_calls): Likewise.
8399 (df_bb_verify): Likewise.
8400
8401 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8402
8403 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8404 "first_note" from rtx to rtx_insn *.
8405 (get_node_of_insn): Likewise for param 2 "insn".
8406 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8407
8408 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8409 rtx_insn *.
8410 (mem_write_insn_p): Likewise.
8411 (mem_access_insn_p): Likewise.
8412 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8413 (def_has_ccmode_p): Likewise for param "insn".
8414 (add_cross_iteration_register_deps): Likewise for locals
8415 "def_insn" and "use_insn".
8416 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8417 (build_intra_loop_deps): Likewise for local "src_insn".
8418 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8419 to rtx_insn *.
8420 (get_node_of_insn): Likewise for param "insn".
8421
8422 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8423
8424 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8425 (deletable_insn_p): Strengthen param "insn" from rtx to
8426 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8427 find_call_stack_args, since this is guarded by CALL_P (insn).
8428 (marked_insn_p): Strengthen param "insn" from rtx to
8429 rtx_insn *.
8430 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8431 invoking find_call_stack_args, since this is guarded by
8432 CALL_P (insn).
8433 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8434 rtx_insn *; we know this is an insn since this was called by
8435 mark_nonreg_stores.
8436 (mark_nonreg_stores_2): Likewise.
8437 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8438 rtx_insn *.
8439 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8440 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8441 to rtx_insn *.
8442 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8443 from rtx to rtx_insn *.
8444 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8445 "next", "ref_insn".
8446 (delete_unmarked_insns): Likewise for locals "insn", "next".
8447 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8448 (mark_reg_dependencies): Likewise for param "insn".
8449 (rest_of_handle_ud_dce): Likewise for local "insn".
8450 (word_dce_process_block): Likewise.
8451 (dce_process_block): Likewise.
8452
8453 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8454
8455 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8456 from rtx to rtx_insn *.
8457 (struct change_cc_mode_args): Likewise for field "insn".
8458 (this_insn): Strengthen from rtx to rtx_insn *.
8459 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8460 with insn.
8461 (validate_canon_reg): Strengthen param "insn" from rtx to
8462 rtx_insn *.
8463 (canon_reg): Likewise.
8464 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8465 dealing with insn.
8466 (record_jump_equiv): Strengthen param "insn" from rtx to
8467 rtx_insn *.
8468 (try_back_substitute_reg): Likewise, also for locals "prev",
8469 "bb_head".
8470 (find_sets_in_insn): Likewise for param "insn".
8471 (canonicalize_insn): Likewise.
8472 (cse_insn): Likewise. Add a checked cast.
8473 (invalidate_from_clobbers): Likewise for param "insn".
8474 (invalidate_from_sets_and_clobbers): Likewise.
8475 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8476 dealing with insn.
8477 (cse_prescan_path): Strengthen local "insn" from rtx to
8478 rtx_insn *.
8479 (cse_extended_basic_block): Likewise for locals "insn" and
8480 "prev_insn".
8481 (cse_main): Likewise for param "f".
8482 (check_for_label_ref): Likewise for local "insn".
8483 (set_live_p): Likewise for second param ("insn").
8484 (insn_live_p): Likewise for first param ("insn") and for local
8485 "next".
8486 (cse_change_cc_mode_insn): Likewise for first param "insn".
8487 (cse_change_cc_mode_insns): Likewise for first and second params
8488 "start" and "end".
8489 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8490 and "end".
8491 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8492 "cc_src_insn".
8493
8494 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8495 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8496 Anna Tikhonova <anna.tikhonova@intel.com>
8497 Ilya Tocar <ilya.tocar@intel.com>
8498 Andrey Turetskiy <andrey.turetskiy@intel.com>
8499 Ilya Verbin <ilya.verbin@intel.com>
8500 Kirill Yukhin <kirill.yukhin@intel.com>
8501 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8502
8503 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8504 New.
8505 * config/i386/sse.md
8506 (define_mode_iterator VI248_AVX2): Delete.
8507 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8508 (define_mode_iterator VI48_AVX2): Ditto.
8509 (define_insn <shift_insn><mode>3): Delete.
8510 (define_insn "<shift_insn><mode>3<mask_name>" with
8511 VI2_AVX2_AVX512BW): New.
8512 (define_insn "<shift_insn><mode>3<mask_name>" with
8513 VI48_AVX2): Ditto.
8514
8515 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8516 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8517 Anna Tikhonova <anna.tikhonova@intel.com>
8518 Ilya Tocar <ilya.tocar@intel.com>
8519 Andrey Turetskiy <andrey.turetskiy@intel.com>
8520 Ilya Verbin <ilya.verbin@intel.com>
8521 Kirill Yukhin <kirill.yukhin@intel.com>
8522 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8523
8524 * config/i386/sse.md
8525 (define_mode_iterator VI4F_BRCST32x2): New.
8526 (define_mode_attr 64x2_mode): Ditto.
8527 (define_mode_attr 32x2mode): Ditto.
8528 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8529 with VI4F_BRCST32x2): Ditto.
8530 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8531 with V16FI mode iterator): Ditto.
8532 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8533 with V16FI): Ditto.
8534 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8535 with VI8F_BRCST64x2): Ditto.
8536
8537 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8538 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8539 Anna Tikhonova <anna.tikhonova@intel.com>
8540 Ilya Tocar <ilya.tocar@intel.com>
8541 Andrey Turetskiy <andrey.turetskiy@intel.com>
8542 Ilya Verbin <ilya.verbin@intel.com>
8543 Kirill Yukhin <kirill.yukhin@intel.com>
8544 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8545
8546 * config/i386/sse.md
8547 (define_mode_iterator VI8_AVX512VL): New.
8548 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8549
8550 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8551
8552 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8553 (define_mode_iterator V48_AVX512VL): New.
8554 (define_mode_iterator V12_AVX512VL): Ditto.
8555 (define_insn <avx512>_load<mode>_mask): Split into two similar
8556 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8557 Refactor output template.
8558 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8559
8560 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8561
8562 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8563 rtx_insn *.
8564 (reg_available_p): Likewise for param "insn".
8565 (insert_set_in_table): Likewise.
8566 (hash_scan_set): Likewise.
8567 (hash_scan_insn): Likewise.
8568 (make_set_regs_unavailable): Likewise.
8569 (compute_hash_table_work): Likewise for local "insn".
8570 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8571 const rtx_insn *.
8572 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8573 (try_replace_reg): Likewise.
8574 (find_avail_set): Likewise.
8575 (cprop_jump): Likewise for params "setcc", "jump".
8576 (constprop_register): Likewise for param "insn".
8577 (cprop_insn): Likewise.
8578 (do_local_cprop): Likewise.
8579 (local_cprop_pass): Likewise for local "insn".
8580 (bypass_block): Likewise for params "setcc" and "jump".
8581 (bypass_conditional_jumps): Likewise for locals "setcc" and
8582 "insn".
8583 (one_cprop_pass): Likewise for local "insn".
8584
8585 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8586
8587 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8588 from rtx to rtx_insn *.
8589 (struct comparison): Likewise, also for field "prev_clobber".
8590 (conforming_compare): Likewise for param "insn".
8591 (arithmetic_flags_clobber_p): Likewise.
8592 (find_flags_uses_in_insn): Likewise.
8593 (find_comparison_dom_walker::before_dom_children): Likewise for
8594 locals "insn", "next", "last_clobber".
8595 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8596
8597 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8598
8599 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8600 "insn" from rtx to rtx_insn *.
8601 (single_set_for_csa): Likewise for param "insn".
8602 (record_one_stack_ref): Likewise.
8603 (try_apply_stack_adjustment): Likewise.
8604 (struct record_stack_refs_data): Likewise for field "insn".
8605 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8606 (prev_active_insn_bb): Likewise for return type and param "insn".
8607 (next_active_insn_bb): Likewise.
8608 (force_move_args_size_note): Likewise for params "prev" and "last"
8609 and locals "test", "next_candidate", "prev_candidate".
8610 (combine_stack_adjustments_for_block): Strengthen locals
8611 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8612 rtx_insn *.
8613
8614 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8615
8616 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8617 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8618 (subst_insn): Likewise for this variable.
8619 (added_links_insn): Likewise.
8620 (struct insn_link): Likewise for field "insn".
8621 (alloc_insn_link): Likewise for param "insn".
8622 (struct undobuf): Likewise for field "other_insn".
8623 (find_single_use): Likewise for param "insn" and local "next".
8624 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8625 (delete_noop_moves): Likewise for locals "insn", "next".
8626 (create_log_links): Likewise for locals "insn", "use_insn".
8627 Strengthen local "next_use" from rtx * to rtx_insn **.
8628 (insn_a_feeds_b): Likewise for params "a", "b".
8629 (combine_instructions): Likewise for param "f" and locals "insn",
8630 "next", "prev", "first", "last_combined_insn", "link", "link1",
8631 "temp". Replace use of NULL_RTX with NULL when referring to
8632 insns.
8633 (setup_incoming_promotions): Likewise for param "first"
8634 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8635 (can_combine_p): Likewise for params "insn", "i3", "pred",
8636 "pred2", "succ", "succ2" and for local "p".
8637 (combinable_i3pat): Likewise for param "i3".
8638 (cant_combine_insn_p): Likewise for param "insn".
8639 (likely_spilled_retval_p): Likewise.
8640 (adjust_for_new_dest): Likewise.
8641 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8642 (try_combine): Likewise for return type and for params "i3", "i2",
8643 "i1", "i0", "last_combined_insn", and for locals "insn",
8644 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8645 "i0_insn". Eliminate local "tem" in favor of new locals
8646 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8647 checked cast for now to rtx_insn * on the return type of
8648 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8649 insns.
8650 (find_split_point): Strengthen param "insn" from rtx to
8651 rtx_insn *.
8652 (simplify_set): Likewise for local "other_insn".
8653 (recog_for_combine): Likewise for param "insn".
8654 (record_value_for_reg): Likewise.
8655 (record_dead_and_set_regs_1): Likewise for local
8656 "record_dead_insn".
8657 (record_dead_and_set_regs): Likewise for param "insn".
8658 (record_promoted_value): Likewise.
8659 (check_promoted_subreg): Likewise.
8660 (get_last_value_validate): Likewise.
8661 (reg_dead_at_p): Likewise.
8662 (move_deaths): Likewise for param "to_insn".
8663 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8664 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8665 in favor of new locals "tem_note" and "tem_insn", the latter being
8666 an rtx_insn *.
8667 (distribute_links): Strengthen locals "place", "insn" from rtx to
8668 rtx_insn *.
8669
8670 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8671
8672 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8673 than a const_rtx.
8674 (can_delete_label_p): Require a const rtx_code_label * rather than
8675 a const_rtx.
8676 (delete_insn): Add checked cast to rtx_code_label * when we know
8677 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8678 rtx to rtx_insn *.
8679 (delete_insn_chain): Strengthen locals "prev" and "current" from
8680 rtx to rtx_insn *. Add a checked cast when assigning from
8681 "finish" (strengthening the params will come later). Add a
8682 checked cast to rtx_note * in region where we know
8683 NOTE_P (current).
8684 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8685 rtx_insn *.
8686 (compute_bb_for_insn): Likewise.
8687 (free_bb_for_insn): Likewise for local "insn".
8688 (compute_bb_for_insn): Likewise.
8689 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8690 local "insn" from rtx to rtx_insn *
8691 (flow_active_insn_p): Require a const rtx_insn * rather than a
8692 const_rtx.
8693 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8694 rtx_insn *.
8695 (can_fallthru): Likewise for locals "insn" and "insn2".
8696 (bb_note): Likewise for local "note".
8697 (first_insn_after_basic_block_note): Likewise for local "note" and
8698 for return type.
8699 (rtl_split_block): Likewise for locals "insn" and "next".
8700 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8701 "end".
8702 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8703 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8704 "prev", "tmp".
8705 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8706 them), "kill_from", "barrier", "new_insn".
8707 (patch_jump_insn): Likewise for params "insn", "old_label".
8708 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8709 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8710 "old_label", "new_label".
8711 (rtl_tidy_fallthru_edge): Likewise for local "q".
8712 (rtl_split_edge): Likewise for locals "before", "last".
8713 (commit_one_edge_insertion): Likewise for locals "before",
8714 "after", "insns", "tmp", "last", adding a checked cast where
8715 currently necessary.
8716 (commit_edge_insertions): Likewise.
8717 (rtl_dump_bb): Likewise for locals "insn", "last".
8718 (print_rtl_with_bb): Likewise for local "x".
8719 (rtl_verify_bb_insns): Likewise for local "x".
8720 (rtl_verify_bb_pointers): Likewise for local "insn".
8721 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8722 "head", "end".
8723 (rtl_verify_fallthru): Likewise for local "insn".
8724 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8725 (purge_dead_edges): Likewise for local "insn".
8726 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8727 (skip_insns_after_block): Likewise for return type and for locals
8728 "insn", "last_insn", "next_head", "prev".
8729 (record_effective_endpoints): Likewise for locals "next_insn",
8730 "insn", "end".
8731 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8732 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8733 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8734 (duplicate_insn_chain): For now, add checked cast from rtx to
8735 rtx_insn * when returning insn.
8736 (cfg_layout_duplicate_bb): Likewise for local "insn".
8737 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8738 "prev", "remaints".
8739 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8740 (rtl_block_empty_p): Likewise.
8741 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8742 "split_point", "last".
8743 (rtl_block_ends_with_call_p): Likewise for local "insn".
8744 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8745 const rtx_insn *.
8746 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8747 "split_at_insn" from rtx to rtx_insn *.
8748 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8749 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8750 to const rtx_insn *.
8751 (rtl_account_profile_record): Likewise.
8752
8753 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8754
8755 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8756 rtx to rtx_insn *.
8757 (average_num_loop_insns): Likewise.
8758 (init_set_costs): Likewise for local "seq".
8759 (seq_cost): Likewise for param "seq", from const_rtx to const
8760 rtx_insn *.
8761
8762 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8763
8764 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8765 rtx to rtx_insn *.
8766
8767 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8768
8769 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8770 "f1" and "f2" from rtx * to rtx_insn **.
8771 (flow_find_head_matching_sequence): Likewise.
8772
8773 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8774 "cbranch_insn" from rtx to rtx_insn *.
8775 (thread_jump): Likewise for local "insn".
8776 (try_forward_edges): Likewise for local "last".
8777 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8778 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8779 "real_b_end".
8780 (can_replace_by): Likewise for params "i1", "i2".
8781 (old_insns_match_p): Likewise.
8782 (merge_notes): Likewise.
8783 (walk_to_nondebug_insn): Likewise for param "i1".
8784 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8785 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8786 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8787 (flow_find_head_matching_sequence): Strengthen params "f1" and
8788 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8789 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8790 rtx_insn *.
8791 (outgoing_edges_match): Likewise for locals "last1", "last2".
8792 (try_crossjump_to_edge): Likewise for local "insn".
8793 Replace call to for_each_rtx with for_each_rtx_in_insn.
8794
8795 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8796 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8797 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8798 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8799 (try_optimize_cfg): Strengthen local "last" from rtx to
8800 rtx_insn *.
8801 (delete_dead_jumptables): Likewise for locals "insn", "next",
8802 "label".
8803
8804 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8805 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8806 "rtx else_first_tail", to reflect the basic-block.h changes above.
8807
8808 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8809
8810 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8811 rtx_insn *.
8812 (purge_dead_tablejump_edges): Likewise.
8813 (find_bb_boundaries): Likewise for locals "insn", "end",
8814 "flow_transfer_insn".
8815
8816 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8817
8818 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8819 "ins" and "prev" from rtx to rtx_insn *.
8820
8821 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8822
8823 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8824 rtx_insn *.
8825 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8826 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8827 "scan_start".
8828 (load_register_parameters): Likewise for local "before_arg".
8829 (check_sibcall_argument_overlap): Likewise for param "insn".
8830 (expand_call): Likewise for locals "normal_call_insns",
8831 "tail_call_insns", "insns", "before_call", "after_args",
8832 "before_arg", "last", "prev". Strengthen one of the "last" from
8833 rtx to rtx_call_insn *.
8834 (fixup_tail_calls): Strengthen local "insn" from rtx to
8835 rtx_insn *.
8836 (emit_library_call_value_1): Likewise for locals "before_call" and
8837 "last".
8838
8839 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8840
8841 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8842 and "last" from rtx to rtx_insn *.
8843 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8844 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8845 rtx_call_insn *.
8846 (expand_errno_check): Strengthen local "lab" from rtx to
8847 rtx_code_label *.
8848 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8849 rtx_insn *.
8850 (expand_builtin_mathfn_2): Likewise.
8851 (expand_builtin_mathfn_ternary): Likewise.
8852 (expand_builtin_mathfn_3): Likewise.
8853 (expand_builtin_interclass_mathfn): Likewise for local "last".
8854 (expand_builtin_int_roundingfn): Likewise for local "insns".
8855 (expand_builtin_int_roundingfn_2): Likewise.
8856 (expand_builtin_strlen): Likewise for local "before_strlen".
8857 (expand_builtin_strncmp): Likewise for local "seq".
8858 (expand_builtin_signbit): Likewise for local "last".
8859 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8860 from rtx to rtx_code_label *.
8861 (expand_stack_restore): Strengthen local "prev" from rtx to
8862 rtx_insn *.
8863
8864 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8865
8866 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8867 to rtx_insn *.
8868 (struct btr_def_s): Likewise.
8869 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8870 const rtx_insn *.
8871 (add_btr_def): Likewise.
8872 (new_btr_user): Likewise.
8873 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8874 rtx to rtx_insn *.
8875 (link_btr_uses): Likewise.
8876 (move_btr_def): Likewise for locals "insp", "old_insn",
8877 "new_insn". Add checked cast to rtx_insn * for now on result of
8878 gen_move_insn.
8879 (can_move_up): Strengthen param "insn" from const_rtx to
8880 const rtx_insn *.
8881
8882 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8883
8884 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8885 rtx_insn *.
8886 (get_uncond_jump_length): Likewise for locals "label", "jump".
8887 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8888 "jump", "insn".
8889 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8890 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8891 (find_jump_block): Likewise for local "insn".
8892 (fix_crossing_conditional_branches): Likewise for locals
8893 "old_jump", "new_jump".
8894 (fix_crossing_unconditional_branches): Likewise for locals
8895 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8896 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8897
8898 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8899
8900 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8901 rtx to rtx_insn *.
8902 (struct mem_insn): Likewise for field "insn".
8903 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8904 (reg_next_inc_use): Likewise.
8905 (reg_next_def): Likewise.
8906 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8907 from rtx to rtx_insn *.
8908 (move_insn_before): Likewise for param "next_insn" and local "insns".
8909 (attempt_change): Likewise for local "mov_insn".
8910 (try_merge): Likewise for param "last_insn".
8911 (get_next_ref): Likewise for return type and local "insn".
8912 Strengthen param "next_array" from rtx * to rtx_insn **.
8913 (parse_add_or_inc): Strengthen param "insn" from rtx to
8914 rtx_insn *.
8915 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8916 the latter).
8917 (merge_in_block): Likewise for locals "insn", "curr",
8918 "other_insn".
8919 (pass_inc_dec::execute): Update allocations of the arrays to
8920 reflect the stronger types.
8921
8922 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8923
8924 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8925 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8926 from rtx to rtx_code_label *.
8927
8928 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8929
8930 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8931 to rtx_insn *.
8932
8933 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8934
8935 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8936 generated a warning and prevented bootstrapping the compiler.
8937
8938 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8939
8940 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8941 rtx_insn *.
8942
8943 * jump.c (delete_related_insns): Likewise, also for locals "next"
8944 and "prev".
8945
8946 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8947
8948 * genautomata.c (output_internal_insn_latency_func): When writing
8949 the function "internal_insn_latency" to insn-automata.c,
8950 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8951 allowing the optional guard function of (define_bypass) clauses to
8952 expect a pair of rtx_insn *, rather than a pair of rtx.
8953 (output_insn_latency_func): When writing the function
8954 "insn_latency", add an "uncast_" prefix to params "insn" and
8955 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8956 using checked casts from the params, thus enabling the above
8957 change to the generated "internal_insn_latency" function.
8958
8959 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8960
8961 PR tree-optimization/62091
8962 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8963 handle correctly arrays.
8964 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8965 inheritance binfos.
8966 (record_known_type): Walk into inner type.
8967 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8968 condition on no type changes.
8969
8970 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8971
8972 * genattrtab.c (write_attr_get): Within the generated get_attr_
8973 functions, rename param "insn" to "uncast_insn" and reintroduce
8974 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8975 is an rtx_insn * within insn-attrtab.c
8976
8977 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8978
8979 * output.h (peephole): Strengthen return type from rtx to
8980 rtx_insn *.
8981 * rtl.h (delete_for_peephole): Likewise for both params.
8982 * genpeep.c (main): In generated "peephole" function, strengthen
8983 return type and local "insn" from rtx to rtx_insn *. For now,
8984 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8985 rtx_insn *, with a checked cast.
8986 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8987 locals "insn", "next", "prev" from rtx to rtx_insn *.
8988
8989 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8990
8991 PR tree-optimization/62112
8992 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8993 * gimple-iterator.h (gsi_replace): Return bool.
8994 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8995 moved from ref_may_alias_global_p.
8996 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8997 New overloads.
8998 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8999 (stmt_kills_ref_p_1): Rename...
9000 (stmt_kills_ref_p): ... to this.
9001 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9002 stmt_kills_ref_p): Declare.
9003 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9004 Move the self-assignment case...
9005 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9006
9007 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9008
9009 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9010
9011 * emit-rtl.c (try_split): Likewise, also for locals "before" and
9012 "after". For now, don't strengthen param "trial", which requires
9013 adding checked casts when returning it.
9014
9015 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9016
9017 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9018 "label" from rtx to rtx_code_label *. Strengthen param 1 of
9019 "var_location" hook from rtx to rtx_insn *.
9020 (debug_nothing_rtx): Delete in favor of...
9021 (debug_nothing_rtx_code_label): New prototype.
9022 (debug_nothing_rtx_rtx): Delete unused prototype.
9023 (debug_nothing_rtx_insn): New prototype.
9024
9025 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9026 invoking debug_hooks->var_location (in two places, one in a NOTE
9027 case of a switch statement, the other guarded by a CALL_P
9028 conditional. Add checked cast to rtx_code_label * when invoking
9029 debug_hooks->label (within CODE_LABEL case of switch statement).
9030
9031 * dbxout.c (dbx_debug_hooks): Update "label" hook from
9032 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9033 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9034 (xcoff_debug_hooks): Likewise.
9035 * debug.c (do_nothing_debug_hooks): Likewise.
9036 (debug_nothing_rtx): Delete in favor of...
9037 (debug_nothing_rtx_insn): New function.
9038 (debug_nothing_rtx_rtx): Delete unused function.
9039 (debug_nothing_rtx_code_label): New function.
9040 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9041 debug_nothing_rtx to debug_nothing_rtx_code_label.
9042 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9043 to rtx_insn *.
9044 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9045 debug_nothing_rtx to debug_nothing_rtx_insn.
9046 (sdbout_label): Strengthen param "insn" from rtx to
9047 rtx_code_label *.
9048 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9049 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9050 "var_location" hook from debug_nothing_rtx to
9051 debug_nothing_rtx_insn.
9052
9053 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9054
9055 * recog.h (insn_output_fn): Update this function typedef to match
9056 the changes below to the generated output functions, strengthening
9057 the 2nd param from rtx to rtx_insn *.
9058
9059 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9060 insn when invoking an output function, to match the new signature
9061 of insn_output_fn with a stronger second param.
9062
9063 * genconditions.c (write_header): In the generated code for
9064 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9065 to match the other changes in this patch.
9066
9067 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9068 the generated "gen_" functions from rtx to rtx_insn * within their
9069 implementations.
9070
9071 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9072 the subfunctions within the generated "recog_", "split", "peephole2"
9073 function trees from rtx to rtx_insn *. For now, the top-level
9074 generated functions ("recog", "split", "peephole2") continue to
9075 take a plain rtx for "insn", to avoid introducing dependencies on
9076 other patches. Rename this 2nd param from "insn" to
9077 "uncast_insn", and reintroduce "insn" as a local variable of type
9078 rtx_insn *, initialized at the top of the generated function with
9079 a checked cast on "uncast_insn".
9080 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9081 the generated "gen_" functions from rtx to rtx_insn * within their
9082 prototypes.
9083
9084 * genoutput.c (process_template): Strengthen the 2nd param within
9085 the generated "output_" functions "insn" from rtx to rtx_insn *.
9086
9087 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9088
9089 * tree-profile.c (tree_profiling): Skip external functions
9090 when doing coverage instrumentation.
9091 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9092
9093 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9094
9095 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9096 (vec_mergee): Likewise.
9097 (vec_mergeo): Likewise.
9098 (vec_cntlz): Likewise.
9099 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9100 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9101 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9102 VMRGEW, and VMRGOW.
9103 * doc/extend.texi: Document various forms of vec_cpsgn,
9104 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9105 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9106 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9107 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9108 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9109
9110 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9111
9112 * config/rs6000/rs6000.c (context.h): New include.
9113 (tree-pass.h): Likewise.
9114 (make_pass_analyze_swaps): New decl.
9115 (rs6000_option_override): Register pass_analyze_swaps.
9116 (swap_web_entry): New subsclass of web_entry_base (df.h).
9117 (special_handling_values): New enum.
9118 (union_defs): New function.
9119 (union_uses): Likewise.
9120 (insn_is_load_p): Likewise.
9121 (insn_is_store_p): Likewise.
9122 (insn_is_swap_p): Likewise.
9123 (rtx_is_swappable_p): Likewise.
9124 (insn_is_swappable_p): Likewise.
9125 (chain_purpose): New enum.
9126 (chain_contains_only_swaps): New function.
9127 (mark_swaps_for_removal): Likewise.
9128 (swap_const_vector_halves): Likewise.
9129 (adjust_subreg_index): Likewise.
9130 (permute_load): Likewise.
9131 (permute_store): Likewise.
9132 (handle_special_swappables): Likewise.
9133 (replace_swap_with_copy): Likewise.
9134 (dump_swap_insn_table): Likewise.
9135 (rs6000_analyze_swaps): Likewise.
9136 (pass_data_analyze_swaps): New pass_data.
9137 (pass_analyze_swaps): New rtl_opt_pass.
9138 (make_pass_analyze_swaps): New function.
9139 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9140
9141 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9142
9143 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9144 type from rtx to rtx_insn *.
9145 (create_copy_of_insn_rtx): Likewise.
9146 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9147 (create_copy_of_insn_rtx): Likewise, also for local "res".
9148
9149 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9150
9151 * rtl.h (find_first_parameter_load): Strengthen return type from
9152 rtx to rtx_insn *.
9153 * rtlanal.c (find_first_parameter_load): Strengthen return type
9154 from rtx to rtx_insn *. Add checked cast for now, to postpone
9155 strengthening the params.
9156
9157 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9158
9159 PR fortran/44054
9160 * diagnostic.c: Set default caret.
9161 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9162 line is needed.
9163 * diagnostic.h (struct diagnostic_context):
9164
9165 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9166
9167 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9168 (sel_bb_head): Strengthen return type insn_t (currently just an
9169 rtx) to rtx_insn *.
9170 (sel_bb_end): Likewise.
9171
9172 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9173 (sel_bb_head): Strengthen return type and local "head" from
9174 insn_t (currently just an rtx) to rtx_insn *.
9175 (sel_bb_end): Likewise for return type.
9176 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9177 working with insn.
9178
9179 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9180
9181 * basic-block.h (get_last_bb_insn): Strengthen return type from
9182 rtx to rtx_insn *.
9183 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9184 end".
9185
9186 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9187
9188 PR fortran/44054
9189 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9190 to here ...
9191 (diagnostic_report_diagnostic): ... from here.
9192 * toplev.c (general_init): Move code to c-family.
9193
9194 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9195
9196 * df.h (web_entry_base): Replace existing struct web_entry with a
9197 new class web_entry_base with only the predecessor member.
9198 (unionfind_root): Remove declaration and move to class member.
9199 (unionfind_union): Remove declaration and move to friend
9200 function.
9201 (union_defs): Remove declaration.
9202 * web.c (web_entry_base::unionfind_root): Modify to be member
9203 function and adjust accessors.
9204 (unionfind_union): Modify to be friend function and adjust
9205 accessors.
9206 (web_entry): New subclass of web_entry_base containing the reg
9207 member.
9208 (union_match_dups): Modify for struct -> class changes.
9209 (union_defs): Likewise.
9210 (entry_register): Likewise.
9211 (pass_web::execute): Likewise.
9212
9213 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9214
9215 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9216 builtin define __VEC_ELEMENT_REG_ORDER__.
9217
9218 2014-08-20 Martin Jambor <mjambor@suse.cz>
9219 Wei Mi <wmi@google.com>
9220
9221 PR ipa/60449
9222 PR middle-end/61776
9223 * tree-ssa-operands.c (update_stmt_operands): Remove
9224 MODIFIED_NORETURN_CALLS.
9225 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9226 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9227 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9228 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9229 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9230 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9231 (gimple_call_set_ctrl_altering): New func.
9232 (gimple_call_ctrl_altering_p): Ditto.
9233 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9234 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9235 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9236 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9237 remove MODIFIED_NORETURN_CALLS.
9238
9239 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9240
9241 * coverage.c (coverage_compute_profile_id): Return non-0;
9242 also handle symbols with unique name.
9243 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9244
9245 2014-08-20 Steve Ellcey <sellcey@mips.com>
9246
9247 PR middle-end/49191
9248 * doc/sourcebuild.texi (non_strict_align): New.
9249
9250 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9251
9252 * cgraphunit.c (ipa_passes, compile): Reshedule
9253 symtab_remove_unreachable_nodes passes; update comments.
9254 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9255 TODO_remove_functions before the pass; the functions ought to be
9256 already removed.
9257 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9258 TODO_remove_functions.
9259 * passes.c (pass_data_early_local_passes): Do not schedule function
9260 removal.
9261 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9262
9263 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9264
9265 PR c/59304
9266 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9267 before setting the option.
9268 * diagnostic.c (diagnostic_classify_diagnostic): Record
9269 command-line status.
9270
9271 2014-08-20 Richard Biener <rguenther@suse.de>
9272
9273 PR lto/62190
9274 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9275 to build uint{16,32,64}_type_node.
9276
9277 2014-08-20 Terry Guo <terry.guo@arm.com>
9278
9279 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9280 with immediate_operand.
9281
9282 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9283
9284 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9285 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9286 NULL.
9287
9288 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9289
9290 PR preprocessor/51303
9291 * incpath.c (remove_duplicates): Use cpp_warning.
9292
9293 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9294
9295 PR c/60975
9296 PR c/53063
9297 * doc/options.texi (CPP): Document it.
9298 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9299 * optc-gen.awk: Handle CPP.
9300 * opth-gen.awk: Likewise.
9301
9302 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9303
9304 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9305 rtx_insn *.
9306 (duplicate_insn_chain): Likewise.
9307 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9308 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9309 checked cast for now (until we can strengthen the params in the
9310 same way).
9311 (duplicate_insn_chain): Likewise.
9312
9313 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9314
9315 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9316 rtx_insn *.
9317 (prev_cc0_setter): Likewise.
9318
9319 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9320 rtx_insn *, adding checked casts for now as necessary.
9321 (prev_cc0_setter): Likewise.
9322
9323 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9324
9325 * expr.h (emit_move_insn): Strengthen return type from rtx to
9326 rtx_insn *.
9327 (emit_move_insn_1): Likewise.
9328 (emit_move_complex_push): Likewise.
9329 (emit_move_complex_parts): Likewise.
9330
9331 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9332 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9333 with insns.
9334 (emit_move_complex_push): Strengthen return type from rtx to
9335 rtx_insn *.
9336 (emit_move_complex): Likewise, also for local "ret".
9337 (emit_move_ccmode): Likewise.
9338 (emit_move_multi_word): Likewise for return type and locals
9339 "last_insn", "seq".
9340 (emit_move_insn_1): Likewise for return type and locals "result",
9341 "ret".
9342 (emit_move_insn): Likewise for return type and local "last_insn".
9343 (compress_float_constant): Likewise.
9344
9345 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9346
9347 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9348 from rtx to rtx_insn *.
9349
9350 * rtl.h (emit_insn_before): Likewise.
9351 (emit_insn_before_noloc): Likewise.
9352 (emit_insn_before_setloc): Likewise.
9353 (emit_jump_insn_before): Likewise.
9354 (emit_jump_insn_before_noloc): Likewise.
9355 (emit_jump_insn_before_setloc): Likewise.
9356 (emit_call_insn_before): Likewise.
9357 (emit_call_insn_before_noloc): Likewise.
9358 (emit_call_insn_before_setloc): Likewise.
9359 (emit_debug_insn_before): Likewise.
9360 (emit_debug_insn_before_noloc): Likewise.
9361 (emit_debug_insn_before_setloc): Likewise.
9362 (emit_label_before): Likewise.
9363 (emit_insn_after): Likewise.
9364 (emit_insn_after_noloc): Likewise.
9365 (emit_insn_after_setloc): Likewise.
9366 (emit_jump_insn_after): Likewise.
9367 (emit_jump_insn_after_noloc): Likewise.
9368 (emit_jump_insn_after_setloc): Likewise.
9369 (emit_call_insn_after): Likewise.
9370 (emit_call_insn_after_noloc): Likewise.
9371 (emit_call_insn_after_setloc): Likewise.
9372 (emit_debug_insn_after): Likewise.
9373 (emit_debug_insn_after_noloc): Likewise.
9374 (emit_debug_insn_after_setloc): Likewise.
9375 (emit_label_after): Likewise.
9376 (emit_insn): Likewise.
9377 (emit_debug_insn): Likewise.
9378 (emit_jump_insn): Likewise.
9379 (emit_call_insn): Likewise.
9380 (emit_label): Likewise.
9381 (gen_clobber): Likewise.
9382 (emit_clobber): Likewise.
9383 (gen_use): Likewise.
9384 (emit_use): Likewise.
9385 (emit): Likewise.
9386
9387 (emit_barrier_before): Strengthen return type from rtx to
9388 rtx_barrier *.
9389 (emit_barrier_after): Likewise.
9390 (emit_barrier): Likewise.
9391
9392 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9393 from rtx to rtx_insn *. Add checked casts for now when converting
9394 "last" from rtx to rtx_insn *.
9395 (emit_insn_before_noloc): Likewise for return type.
9396 (emit_jump_insn_before_noloc): Likewise.
9397 (emit_call_insn_before_noloc): Likewise.
9398 (emit_debug_insn_before_noloc): Likewise.
9399 (emit_barrier_before): Strengthen return type and local "insn"
9400 from rtx to rtx_barrier *.
9401 (emit_label_before): Strengthen return type from rtx to
9402 rtx_insn *. Add checked cast for now when returning param
9403 (emit_pattern_after_noloc): Strengthen return type from rtx to
9404 rtx_insn *. Add checked casts for now when converting "last" from
9405 rtx to rtx_insn *.
9406 (emit_insn_after_noloc): Strengthen return type from rtx to
9407 rtx_insn *.
9408 (emit_jump_insn_after_noloc): Likewise.
9409 (emit_call_insn_after_noloc): Likewise.
9410 (emit_debug_insn_after_noloc): Likewise.
9411 (emit_barrier_after): Strengthen return type from rtx to
9412 rtx_barrier *.
9413 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9414 Add checked cast for now when converting "label" from rtx to
9415 rtx_insn *.
9416 (emit_pattern_after_setloc): Strengthen return type from rtx to
9417 rtx_insn *. Add checked casts for now when converting "last" from
9418 rtx to rtx_insn *.
9419 (emit_pattern_after): Strengthen return type from rtx to
9420 rtx_insn *.
9421 (emit_insn_after_setloc): Likewise.
9422 (emit_insn_after): Likewise.
9423 (emit_jump_insn_after_setloc): Likewise.
9424 (emit_jump_insn_after): Likewise.
9425 (emit_call_insn_after_setloc): Likewise.
9426 (emit_call_insn_after): Likewise.
9427 (emit_debug_insn_after_setloc): Likewise.
9428 (emit_debug_insn_after): Likewise.
9429 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9430 when converting "last" from rtx to rtx_insn *.
9431 (emit_pattern_before): Strengthen return type from rtx to
9432 rtx_insn *.
9433 (emit_insn_before_setloc): Likewise.
9434 (emit_insn_before): Likewise.
9435 (emit_jump_insn_before_setloc): Likewise.
9436 (emit_jump_insn_before): Likewise.
9437 (emit_call_insn_before_setloc): Likewise.
9438 (emit_call_insn_before): Likewise.
9439 (emit_debug_insn_before_setloc): Likewise.
9440 (emit_debug_insn_before): Likewise.
9441 (emit_insn): Strengthen return type and locals "last", "insn",
9442 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9443 within cases where we know we have an insn.
9444 (emit_debug_insn): Likewise.
9445 (emit_jump_insn): Likewise.
9446 (emit_call_insn): Strengthen return type and local "insn" from rtx
9447 to rtx_insn *.
9448 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9449 a checked cast to rtx_insn * for now on "label".
9450 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9451 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9452 (emit_use): Likewise.
9453 (gen_use): Likewise, also for local "seq".
9454 (emit): Likewise for return type and local "insn".
9455 (rtx_insn): Likewise for return type and local "new_rtx".
9456
9457 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9458 from rtx to rtx_barrier *.
9459
9460 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9461 changed return type from rtx to rtx_insn *, we must update
9462 "emit_fn" type, and this in turn means updating...
9463 (frame_insn): ...this. Strengthen return type from rtx to
9464 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9465
9466 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9467
9468 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9469 rtx to rtx_jump_table_data *. Also for local.
9470 * rtl.h (emit_jump_table_data): Likewise.
9471
9472 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9473
9474 * basic-block.h (create_basic_block_structure): Strengthen third
9475 param "bb_note" from rtx to rtx_note *.
9476 * rtl.h (emit_note_before): Strengthen return type from rtx to
9477 rtx_note *.
9478 (emit_note_after): Likewise.
9479 (emit_note): Likewise.
9480 (emit_note_copy): Likewise. Also, strengthen param similarly.
9481 * function.h (struct rtl_data): Strengthen field
9482 "x_stack_check_probe_note" from rtx to rtx_note *.
9483
9484 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9485 from rtx to rtx_note *.
9486 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9487 "bb_note" from rtx to rtx_note *.
9488 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9489 when calling emit_note_copy.
9490 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9491 rtx_note *.
9492 (emit_note_after): Likewise.
9493 (emit_note_before): Likewise.
9494 (emit_note_copy): Likewise. Also, strengthen param similarly.
9495 (emit_note): Likewise.
9496 * except.c (emit_note_eh_region_end): Likewise for return type.
9497 Strengthen local "next" from rtx to rtx_insn *.
9498 (convert_to_eh_region_ranges): Strengthen local "note"
9499 from rtx to rtx_note *.
9500 * final.c (change_scope): Likewise.
9501 (reemit_insn_block_notes): Likewise, for both locals named "note".
9502 Also, strengthen local "insn" from rtx to rtx_insn *.
9503 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9504 rtx to rtx_note *.
9505 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9506 strengthen local "seq" from rtx to rtx_insn *.
9507 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9508 to rtx_note *.
9509 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9510 vec<rtx_note *>.
9511 (get_bb_note_from_pool): Strengthen return type from rtx to
9512 rtx_note *.
9513 (sel_create_basic_block): Strengthen local "new_bb_note" from
9514 insn_t to rtx_note *.
9515 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9516 "note" from rtx to rtx_note *.
9517 (emit_notes_in_bb): Likewise.
9518
9519 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9520
9521 * function.h (struct rtl_data): Strengthen field
9522 "x_parm_birth_insn" from rtx to rtx_insn *.
9523 * function.c (struct assign_parm_data_all): Strengthen fields
9524 "first_conversion_insn" and "last_conversion_insn" from rtx to
9525 rtx_insn *.
9526
9527 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9528
9529 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9530 to rtx_insn *; also for local "var_end_seq".
9531 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9532 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9533 "insn".
9534 (expand_gimple_cond): Likewise for locals "last2" and "last".
9535 (mark_transaction_restart_calls): Likewise for local "insn".
9536 (expand_gimple_stmt): Likewise for return type and locals "last"
9537 and "insn".
9538 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9539 (avoid_complex_debug_insns): Likewise for param "insn".
9540 (expand_debug_locations): Likewise for locals "insn", "last",
9541 "prev_insn" and "insn2".
9542 (expand_gimple_basic_block): Likewise for local "last".
9543 (construct_exit_block): Likewise for locals "head", "end",
9544 "orig_end".
9545 (pass_expand::execute): Likewise for locals "var_seq",
9546 "var_ret_seq", "next".
9547
9548 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9549
9550 * asan.h (asan_emit_stack_protection): Strengthen return type from
9551 rtx to rtx_insn *.
9552 * asan.c (asan_emit_stack_protection): Likewise. Add local
9553 "insns" to hold the return value.
9554
9555 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9556
9557 * basic-block.h (bb_note): Strengthen return type from rtx to
9558 rtx_note *.
9559 * sched-int.h (bb_note): Likewise.
9560 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9561
9562 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9563
9564 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9565 rtx_insn *.
9566
9567 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9568 "insn" from rtx to rtx_insn *.
9569 (make_debug_insn_raw): Strengthen return type from rtx to
9570 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9571 (make_jump_insn_raw): Strengthen return type from rtx to
9572 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9573 (make_call_insn_raw): Strengthen return type from rtx to
9574 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9575 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9576 callback from rtx to rtx_insn *; likewise for local "insn" and
9577 "next", adding a checked cast to rtx_insn in the relevant cases of
9578 the switch statement.
9579 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9580 callback from rtx to rtx_insn *.
9581 (emit_pattern_after_setloc): Likewise.
9582 (emit_pattern_after): Likewise.
9583 (emit_pattern_before_setloc): Likewise.
9584 (emit_pattern_before): Likewise.
9585
9586 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9587
9588 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9589 rtx_call_insn *.
9590 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9591 accepting an rtx_insn *.
9592 (last_call_insn): Strengthen return type from rtx to
9593 rtx_call_insn *.
9594
9595 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9596
9597 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9598 "insns" from rtx to rtx_insn *.
9599 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9600 locals "insn" and "prev".
9601
9602 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9603
9604 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9605 rtx_jump_table_data **.
9606
9607 * cfgbuild.c (make_edges): Introduce local "table", using it in
9608 place of "tmp" for jump table data.
9609 (find_bb_boundaries): Strengthen local "table" from rtx to
9610 rtx_jump_table_data *.
9611 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9612 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9613 (try_crossjump_to_edge): Likewise.
9614 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9615 "table".
9616 (patch_jump_insn): Introduce local "table", using it in place of
9617 "tmp" for jump table data.
9618 (force_nonfallthru_and_redirect): Introduce local "table", so that
9619 call to tablejump_p can receive an rtx_jump_table_data **. Update
9620 logic around the call to overwrite "note" appropriately if
9621 tablejump_p returns non-zero.
9622 (get_last_bb_insn): Introduce local "table", using it in place of
9623 "tmp" for jump table data.
9624 * dwarf2cfi.c (create_trace_edges): Likewise.
9625
9626 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9627 from rtx to rtx_jump_table_data *.
9628 (create_fix_barrier): Strengthen local "tmp" from rtx to
9629 rtx_jump_table_data *.
9630 (arm_reorg): Likewise for local "table".
9631
9632 * config/s390/s390.c (s390_chunkify_start): Likewise.
9633
9634 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9635
9636 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9637 rtx to rtx_jump_table_data *.
9638
9639 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9640 rtx_jump_table_data **. Add a checked cast when writing through
9641 the pointer: we know there that local "table" is non-NULL and that
9642 JUMP_TABLE_DATA_P (table) holds.
9643 (label_is_jump_target_p): Introduce local "table", using it in
9644 place of "tmp" for jump table data.
9645
9646 2014-08-19 Marek Polacek <polacek@redhat.com>
9647
9648 PR c++/62153
9649 * doc/invoke.texi: Document -Wbool-compare.
9650
9651 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9652
9653 * rtl.h (entry_of_function): Strengthen return type from rtx to
9654 rtx_insn *.
9655 * cfgrtl.c (entry_of_function): Likewise.
9656
9657 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9658
9659 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9660 rtx_insn *, adding a checked cast for now.
9661 (get_last_insn): Likewise.
9662
9663 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9664
9665 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9666 rtx_code_label *.
9667
9668 * emit-rtl.c (gen_label_rtx): Likewise.
9669
9670 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9671
9672 * rtl.h (previous_insn): Strengthen return type from rtx to
9673 rtx_insn *.
9674 (next_insn): Likewise.
9675 (prev_nonnote_insn): Likewise.
9676 (prev_nonnote_insn_bb): Likewise.
9677 (next_nonnote_insn): Likewise.
9678 (next_nonnote_insn_bb): Likewise.
9679 (prev_nondebug_insn): Likewise.
9680 (next_nondebug_insn): Likewise.
9681 (prev_nonnote_nondebug_insn): Likewise.
9682 (next_nonnote_nondebug_insn): Likewise.
9683 (prev_real_insn): Likewise.
9684 (next_real_insn): Likewise.
9685 (prev_active_insn): Likewise.
9686 (next_active_insn): Likewise.
9687
9688 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9689 rtx_insn *, adding a checked cast.
9690 (previous_insn): Likewise.
9691 (next_nonnote_insn): Likewise.
9692 (next_nonnote_insn_bb): Likewise.
9693 (prev_nonnote_insn): Likewise.
9694 (prev_nonnote_insn_bb): Likewise.
9695 (next_nondebug_insn): Likewise.
9696 (prev_nondebug_insn): Likewise.
9697 (next_nonnote_nondebug_insn): Likewise.
9698 (prev_nonnote_nondebug_insn): Likewise.
9699 (next_real_insn): Likewise.
9700 (prev_real_insn): Likewise.
9701 (next_active_insn): Likewise.
9702 (prev_active_insn): Likewise.
9703
9704 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9705 param "stepfunc" so that it returns an rtx_insn * rather than an
9706 rtx, to track the change to prev_nonnote_insn_bb, which is the
9707 only function this is called with.
9708 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9709
9710 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9711
9712 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9713 assert.
9714
9715 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9716
9717 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9718 (class rtx_nonjump_insn): Likewise.
9719 (class rtx_jump_insn): Likewise.
9720 (class rtx_call_insn): Likewise.
9721 (class rtx_jump_table_data): Likewise.
9722 (class rtx_barrier): Likewise.
9723 (class rtx_code_label): Likewise.
9724 (class rtx_note): Likewise.
9725
9726 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9727 adding the invariant DEBUG_INSN_P (X).
9728 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9729 the invariant NONJUMP_INSN_P (X).
9730 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9731 the invariant JUMP_P (X).
9732 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9733 the invariant CALL_P (X).
9734 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9735 invariant JUMP_TABLE_DATA_P (X).
9736 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9737 invariant BARRIER_P (X).
9738 (class rtx_code_label): New, a subclass of rtx_insn, adding
9739 the invariant LABEL_P (X).
9740 (class rtx_note): New, a subclass of rtx_insn, adding
9741 the invariant NOTE_P(X).
9742 (is_a_helper <rtx_debug_insn *>::test): New.
9743 (is_a_helper <rtx_nonjump_insn *>::test): New.
9744 (is_a_helper <rtx_jump_insn *>::test): New.
9745 (is_a_helper <rtx_call_insn *>::test): New.
9746 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9747 overloaded for both rtx and rtx_insn *.
9748 (is_a_helper <rtx_barrier *>::test): New.
9749 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9750 for both rtx and rtx_insn *.
9751 (is_a_helper <rtx_note *>::test): New.
9752
9753 2014-08-19 Marek Polacek <polacek@redhat.com>
9754
9755 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9756 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9757 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9758 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9759
9760 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9761
9762 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9763 rtx_insn *. To help with transition, for now, convert from an
9764 access macro into a pair of functions: BND_TO, returning an
9765 rtx_insn *, and...
9766 (SET_BND_TO): New function, for use where BND_TO is used as an
9767 lvalue.
9768
9769 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9770 SET_BND_TO.
9771 (BND_TO): New function, adding a checked cast.
9772 (SET_BND_TO): New function.
9773
9774 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9775 SET_BND_TO.
9776 (compute_av_set_on_boundaries): Likewise.
9777
9778 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9779
9780 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9781 destination if it is used in source.
9782 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9783 (*popcount<mode>2_falsedep_1): Likewise.
9784
9785 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9786
9787 PR other/62168
9788 * configure.ac: Set install_gold_as_default to no first.
9789 * configure: Regenerated.
9790
9791 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9792
9793 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9794 "note_list" field will eventually be an rtx_insn *. To help with
9795 transition, for now, convert from an access macro into a pair of
9796 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9797 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9798 used as an lvalue.
9799
9800 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9801 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9802
9803 * sel-sched-ir.c (init_bb): Likewise.
9804 (sel_restore_notes): Likewise.
9805 (move_bb_info): Likewise.
9806 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9807 (SET_BB_NOTE_LIST): New function.
9808
9809 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9810
9811 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9812 field will eventually be an rtx_insn *. To help with transition,
9813 for now, convert from an access macro into a pair of functions:
9814 VINSN_INSN_RTX, returning an rtx_insn *, and...
9815 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9816 is used as an lvalue.
9817
9818 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9819 SET_VINSN_INSN_RTX where it's used as an lvalue.
9820 (VINSN_INSN_RTX): New function.
9821 (SET_VINSN_INSN_RTX): New function.
9822
9823 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9824
9825 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9826 eventually be rtx_insn *, but to help with transition, for now,
9827 convert from an access macro into a pair of functions: DEP_PRO
9828 returning an rtx_insn * and...
9829 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9830 lvalue, returning an rtx&.
9831 (DEP_CON): Analogous changes to DEP_PRO above.
9832 (SET_DEP_CON): Likewise.
9833
9834 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9835 an lvalue to SET_DEP_CON.
9836 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9837 (sd_copy_back_deps): Likewise for DEP_CON.
9838 (DEP_PRO): New function, adding a checked cast for now.
9839 (DEP_CON): Likewise.
9840 (SET_DEP_PRO): New function.
9841 (SET_DEP_CON): Likewise.
9842
9843 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9844
9845 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9846 (extra_options): Add i386/cygwin.opt.
9847 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9848 (CPP_SPEC): Accept -pthread.
9849 (LINK_SPEC): Ditto.
9850 (GOMP_SELF_SPECS): Update comment.
9851 * config/i386/cygwin.opt: New file for -pthread flag.
9852
9853 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9854
9855 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9856 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9857 that we can return an rtx_insn *.
9858
9859 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9860
9861 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9862 when building executables, not DLLs. Add --large-address-aware
9863 under the same conditions.
9864 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9865 when building executables, not DLLs. Add --large-address-aware
9866 under the same conditions when using -m32.
9867
9868 * config/i386/cygwin-stdint.h: Throughout, make type
9869 definitions dependent on target architecture, not host.
9870
9871 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9872
9873 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9874 the return type from rtx to rtx_insn *, which will enable various
9875 conversions in followup patches. For now this is is done by a
9876 checked cast.
9877 (NEXT_INSN): Likewise.
9878 (SET_PREV_INSN): Convert to an inline function. This is intended
9879 for use as an lvalue, and so returns an rtx& to allow in-place
9880 modification.
9881 (SET_NEXT_INSN): Likewise.
9882
9883 2014-07-08 Mark Wielaard <mjw@redhat.com>
9884
9885 PR debug/59051
9886 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9887
9888 2014-08-19 Marek Polacek <polacek@redhat.com>
9889
9890 PR c/61271
9891 * cgraphunit.c (handle_alias_pairs): Fix condition.
9892
9893 2014-08-19 Richard Biener <rguenther@suse.de>
9894
9895 * gimple-fold.c (fold_gimple_assign): Properly build a
9896 null-pointer constant when devirtualizing addresses.
9897
9898 2014-07-07 Mark Wielaard <mjw@redhat.com>
9899
9900 * dwarf2out.c (decl_quals): New function.
9901 (modified_type_die): Take one cv_quals argument instead of two,
9902 one for const and one for volatile.
9903 (add_type_attribute): Likewise.
9904 (generic_parameter_die): Call add_type_attribute with one modifier
9905 argument.
9906 (base_type_for_mode): Likewise.
9907 (add_bounds_info): Likewise.
9908 (add_subscript_info): Likewise.
9909 (gen_array_type_die): Likewise.
9910 (gen_descr_array_type_die): Likewise.
9911 (gen_entry_point_die): Likewise.
9912 (gen_enumeration_type_die): Likewise.
9913 (gen_formal_parameter_die): Likewise.
9914 (gen_subprogram_die): Likewise.
9915 (gen_variable_die): Likewise.
9916 (gen_const_die): Likewise.
9917 (gen_field_die): Likewise.
9918 (gen_pointer_type_die): Likewise.
9919 (gen_reference_type_die): Likewise.
9920 (gen_ptr_to_mbr_type_die): Likewise.
9921 (gen_inheritance_die): Likewise.
9922 (gen_subroutine_type_die): Likewise.
9923 (gen_typedef_die): Likewise.
9924 (force_type_die): Likewise.
9925
9926 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9927
9928 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9929 if unset.
9930 * configure: Regenerate.
9931
9932 2014-08-19 Richard Biener <rguenther@suse.de>
9933
9934 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9935 DECL_EXTERNALs in BLOCKs as non-references.
9936 * tree-streamer-out.c (streamer_write_chain): Likewise.
9937
9938 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9939 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9940 Anna Tikhonova <anna.tikhonova@intel.com>
9941 Ilya Tocar <ilya.tocar@intel.com>
9942 Andrey Turetskiy <andrey.turetskiy@intel.com>
9943 Ilya Verbin <ilya.verbin@intel.com>
9944 Kirill Yukhin <kirill.yukhin@intel.com>
9945 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9946
9947 * config/i386/sse.md
9948 (define_mode_iterator VI48_AVX512F): Delete.
9949 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9950 (define_mode_iterator VI2_AVX512VL): Ditto.
9951 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9952 Delete.
9953 (define_insn
9954 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9955 New.
9956 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9957 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9958 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9959 with VI48_AVX512F_AVX512VL): New.
9960 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9961 with VI2_AVX512VL): Ditto.
9962
9963 2014-08-19 Marek Polacek <polacek@redhat.com>
9964
9965 * doc/invoke.texi: Document -Wc99-c11-compat.
9966
9967 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9968
9969 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9970 for rvalues, and...
9971 (SET_PREV_INSN): New macro, for use as an lvalue.
9972 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9973
9974 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9975 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9976 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9977 (fixup_abnormal_edges): Likewise.
9978 (unlink_insn_chain): Likewise.
9979 (fixup_reorder_chain): Likewise.
9980 (cfg_layout_delete_block): Likewise.
9981 (cfg_layout_merge_blocks): Likewise.
9982 * combine.c (update_cfg_for_uncondjump): Likewise.
9983 * emit-rtl.c (link_insn_into_chain): Likewise.
9984 (remove_insn): Likewise.
9985 (delete_insns_since): Likewise.
9986 (reorder_insns_nobb): Likewise.
9987 (emit_insn_after_1): Likewise.
9988 * final.c (rest_of_clean_state): Likewise.
9989 (final_scan_insn): Likewise.
9990 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9991 * haifa-sched.c (concat_note_lists): Likewise.
9992 (remove_notes): Likewise.
9993 (restore_other_notes): Likewise.
9994 (move_insn): Likewise.
9995 (unlink_bb_notes): Likewise.
9996 (restore_bb_notes): Likewise.
9997 * jump.c (delete_for_peephole): Likewise.
9998 * optabs.c (emit_libcall_block_1): Likewise.
9999 * reorg.c (emit_delay_sequence): Likewise.
10000 (fill_simple_delay_slots): Likewise.
10001 * sel-sched-ir.c (sel_move_insn): Likewise.
10002 (sel_remove_insn): Likewise.
10003 (get_bb_note_from_pool): Likewise.
10004 * sel-sched.c (move_nop_to_previous_block): Likewise.
10005
10006 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10007 * config/c6x/c6x.c (gen_one_bundle): Likewise.
10008 (c6x_gen_bundles): Likewise.
10009 (hwloop_optimize): Likewise.
10010 * config/frv/frv.c (frv_function_prologue): Likewise.
10011 (frv_register_nop): Likewise.
10012 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10013 (ia64_reorg): Likewise.
10014 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10015 (mep_make_bundle): Likewise.
10016 (mep_bundle_insns): Likewise.
10017 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10018 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10019 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10020
10021 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10022
10023 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
10024 return type from rtx to rtx_insn *.
10025 (BB_END): Likewise.
10026 (BB_HEADER): Likewise.
10027 (BB_FOOTER): Likewise.
10028 (SET_BB_HEAD): Convert to a function.
10029 (SET_BB_END): Likewise.
10030 (SET_BB_HEADER): Likewise.
10031 (SET_BB_FOOTER): Likewise.
10032
10033 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10034 Strengthen the return type from rtx to rtx_insn *. For now, this
10035 is done by adding a checked cast, but this will eventually
10036 become a field lookup.
10037 (BB_END): Likewise.
10038 (BB_HEADER): Likewise.
10039 (BB_FOOTER): Likewise.
10040 (SET_BB_HEAD): New function, from macro of same name. This is
10041 intended for use as an lvalue, and so returns an rtx& to allow
10042 in-place modification.
10043 (SET_BB_END): Likewise.
10044 (SET_BB_HEADER): Likewise.
10045 (SET_BB_FOOTER): Likewise.
10046
10047 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10048
10049 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10050 for rvalues, and...
10051 (SET_BB_HEAD): New macro, for use as a lvalue.
10052 (BB_END, SET_BB_END): Likewise.
10053 (BB_HEADER, SET_BB_HEADER): Likewise.
10054 (BB_FOOTER, SET_BB_FOOTER): Likewise.
10055
10056 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10057 of BB_* macros into SET_BB_* macros.
10058 (fix_crossing_unconditional_branches): Likewise.
10059 * caller-save.c (save_call_clobbered_regs): Likewise.
10060 (insert_one_insn): Likewise.
10061 * cfgbuild.c (find_bb_boundaries): Likewise.
10062 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10063 (outgoing_edges_match): Likewise.
10064 (try_optimize_cfg): Likewise.
10065 * cfgexpand.c (expand_gimple_cond): Likewise.
10066 (expand_gimple_tailcall): Likewise.
10067 (expand_gimple_basic_block): Likewise.
10068 (construct_exit_block): Likewise.
10069 * cfgrtl.c (delete_insn): Likewise.
10070 (create_basic_block_structure): Likewise.
10071 (rtl_delete_block): Likewise.
10072 (rtl_split_block): Likewise.
10073 (emit_nop_for_unique_locus_between): Likewise.
10074 (rtl_merge_blocks): Likewise.
10075 (block_label): Likewise.
10076 (try_redirect_by_replacing_jump): Likewise.
10077 (emit_barrier_after_bb): Likewise.
10078 (fixup_abnormal_edges): Likewise.
10079 (record_effective_endpoints): Likewise.
10080 (relink_block_chain): Likewise.
10081 (fixup_reorder_chain): Likewise.
10082 (fixup_fallthru_exit_predecessor): Likewise.
10083 (cfg_layout_duplicate_bb): Likewise.
10084 (cfg_layout_split_block): Likewise.
10085 (cfg_layout_delete_block): Likewise.
10086 (cfg_layout_merge_blocks): Likewise.
10087 * combine.c (update_cfg_for_uncondjump): Likewise.
10088 * emit-rtl.c (add_insn_after): Likewise.
10089 (remove_insn): Likewise.
10090 (reorder_insns): Likewise.
10091 (emit_insn_after_1): Likewise.
10092 * haifa-sched.c (get_ebb_head_tail): Likewise.
10093 (restore_other_notes): Likewise.
10094 (move_insn): Likewise.
10095 (sched_extend_bb): Likewise.
10096 (fix_jump_move): Likewise.
10097 * ifcvt.c (noce_process_if_block): Likewise.
10098 (dead_or_predicable): Likewise.
10099 * ira.c (update_equiv_regs): Likewise.
10100 * reg-stack.c (change_stack): Likewise.
10101 * sel-sched-ir.c (sel_move_insn): Likewise.
10102 * sel-sched.c (move_nop_to_previous_block): Likewise.
10103
10104 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10105 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10106
10107 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10108
10109 * rtl.h (for_each_rtx_in_insn): New function.
10110 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10111
10112 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10113
10114 * coretypes.h (class rtx_insn): Add forward declaration.
10115
10116 * rtl.h: Include is-a.h.
10117 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10118 workaround to ensure gengtype knows inheritance is occurring,
10119 whilst continuing to use the pre-existing special-casing for
10120 rtx_def.
10121 (class rtx_insn): New subclass of rtx_def, adding the
10122 invariant that we're dealing with something we can sanely use
10123 INSN_UID, NEXT_INSN, PREV_INSN on.
10124 (is_a_helper <rtx_insn *>::test): New.
10125 (is_a_helper <const rtx_insn *>::test): New.
10126
10127 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10128
10129 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10130
10131 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10132
10133 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10134 comdats as extern.
10135
10136 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10137
10138 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10139 to BUILT_IN_UNREACHABLE.
10140
10141 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10142
10143 PR target/62011
10144 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10145 New tune flag.
10146 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10147 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10148 (ffs<mode>2): Do not expand with tzcnt for
10149 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10150 (ffssi2_no_cmove): Ditto.
10151 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10152 (ctz<mode>2): New expander.
10153 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10154 (*ctz<mode>2_falsedep): New insn.
10155 (*ctz<mode>2): Rename from ctz<mode>2.
10156 (clz<mode>2_lzcnt): New expander.
10157 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10158 (*clz<mode>2_lzcnt_falsedep): New insn.
10159 (*clz<mode>2): Rename from ctz<mode>2.
10160 (popcount<mode>2): New expander.
10161 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10162 (*popcount<mode>2_falsedep): New insn.
10163 (*popcount<mode>2): Rename from ctz<mode>2.
10164 (*popcount<mode>2_cmp): Remove.
10165 (*popcountsi2_cmp_zext): Ditto.
10166
10167 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10168
10169 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10170 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10171 * config/microblaze/microblaze.h
10172 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10173
10174 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10175
10176 PR other/62168
10177 * configure.ac: Set install_gold_as_default to no for
10178 --enable-gold=no.
10179 * configure: Regenerated.
10180
10181 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10182
10183 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10184 * config.in: Add undef of HAVE_isl.
10185 * configure: Regenerate.
10186 * configure.ac: Add definition of HAVE_isl.
10187 * graphite-blocking.c: Add checking of HAVE_isl.
10188 * graphite-dependences.c: Likewise.
10189 * graphite-interchange.c: Likewise.
10190 * graphite-isl-ast-to-gimple.c: Likewise.
10191 * graphite-optimize-isl.c: Likewise.
10192 * graphite-poly.c: Likewise.
10193 * graphite-scop-detection.c: Likewise.
10194 * graphite-sese-to-poly.c: Likewise.
10195 * graphite.c: Likewise.
10196 * toplev.c: Replace the checking of HAVE_cloog with the checking
10197 of HAVE_isl.
10198
10199 2014-08-18 Richard Biener <rguenther@suse.de>
10200
10201 PR tree-optimization/62090
10202 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10203 (fold_builtin_3): Do not fold snprintf.
10204 (fold_builtin_4): Likewise.
10205 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10206 moved from builtins.c.
10207 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10208 (gimple_fold_builtin): Do not fold sprintf here.
10209
10210 2014-08-18 Richard Biener <rguenther@suse.de>
10211
10212 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10213 code to ...
10214 (maybe_canonicalize_mem_ref_addr): ... this function.
10215 (fold_stmt_1): Apply it here before all simplification.
10216
10217 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10218
10219 PR ipa/61800
10220 * cgraph.h (cgraph_node::create_indirect_edge): Add
10221 compute_indirect_info param.
10222 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10223 indirect_info only when it is required.
10224 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10225 indirect_info fore cloned indirect edge.
10226
10227 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10228 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10229 Anna Tikhonova <anna.tikhonova@intel.com>
10230 Ilya Tocar <ilya.tocar@intel.com>
10231 Andrey Turetskiy <andrey.turetskiy@intel.com>
10232 Ilya Verbin <ilya.verbin@intel.com>
10233 Kirill Yukhin <kirill.yukhin@intel.com>
10234 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10235
10236 * config/i386/sse.md
10237 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10238 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10239
10240 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10241 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10242 Anna Tikhonova <anna.tikhonova@intel.com>
10243 Ilya Tocar <ilya.tocar@intel.com>
10244 Andrey Turetskiy <andrey.turetskiy@intel.com>
10245 Ilya Verbin <ilya.verbin@intel.com>
10246 Kirill Yukhin <kirill.yukhin@intel.com>
10247 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10248
10249 * config/i386/sse.md
10250 (define_mode_iterator VF1_AVX512VL): New.
10251 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10252 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10253 New.
10254
10255 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10256 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10257 Anna Tikhonova <anna.tikhonova@intel.com>
10258 Ilya Tocar <ilya.tocar@intel.com>
10259 Andrey Turetskiy <andrey.turetskiy@intel.com>
10260 Ilya Verbin <ilya.verbin@intel.com>
10261 Kirill Yukhin <kirill.yukhin@intel.com>
10262 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10263
10264 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10265 * config/i386/i386.md
10266 (define_code_iterator any_float): New.
10267 (define_code_attr floatsuffix): New.
10268 * config/i386/sse.md
10269 (define_mode_iterator VF1_128_256VL): New.
10270 (define_mode_iterator VF2_512_256VL): New.
10271 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10272 TARGET check.
10273 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10274 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10275 New.
10276 (define_mode_attr qq2pssuff): New.
10277 (define_mode_attr sselongvecmode): New.
10278 (define_mode_attr sselongvecmodelower): New.
10279 (define_mode_attr sseintvecmode3): New.
10280 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10281 New.
10282 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10283 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10284 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10285 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10286
10287 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10288 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10289 Anna Tikhonova <anna.tikhonova@intel.com>
10290 Ilya Tocar <ilya.tocar@intel.com>
10291 Andrey Turetskiy <andrey.turetskiy@intel.com>
10292 Ilya Verbin <ilya.verbin@intel.com>
10293 Kirill Yukhin <kirill.yukhin@intel.com>
10294 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10295
10296 * config/i386/sse.md
10297 (define_mode_iterator VF2_AVX512VL): New.
10298 (define_mode_attr sseintvecmode2): New.
10299 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10300 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10301 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10302 (define_insn
10303 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10304 Ditto.
10305 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10306 Ditto.
10307 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10308 Ditto.
10309
10310 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10311 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10312 Anna Tikhonova <anna.tikhonova@intel.com>
10313 Ilya Tocar <ilya.tocar@intel.com>
10314 Andrey Turetskiy <andrey.turetskiy@intel.com>
10315 Ilya Verbin <ilya.verbin@intel.com>
10316 Kirill Yukhin <kirill.yukhin@intel.com>
10317 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10318
10319 * config/i386/i386.md
10320 (define_insn "*movoi_internal_avx"): Add evex version.
10321 (define_insn "*movti_internal"): Ditto.
10322
10323 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10324 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10325 Anna Tikhonova <anna.tikhonova@intel.com>
10326 Ilya Tocar <ilya.tocar@intel.com>
10327 Andrey Turetskiy <andrey.turetskiy@intel.com>
10328 Ilya Verbin <ilya.verbin@intel.com>
10329 Kirill Yukhin <kirill.yukhin@intel.com>
10330 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10331
10332 * config/i386/i386.md
10333 (define_attr "isa"): Add avx512dq, noavx512dq.
10334 (define_attr "enabled"): Ditto.
10335 * config/i386/sse.md
10336 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10337
10338 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10339 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10340 Anna Tikhonova <anna.tikhonova@intel.com>
10341 Ilya Tocar <ilya.tocar@intel.com>
10342 Andrey Turetskiy <andrey.turetskiy@intel.com>
10343 Ilya Verbin <ilya.verbin@intel.com>
10344 Kirill Yukhin <kirill.yukhin@intel.com>
10345 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10346
10347 * config/i386/i386.c
10348 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10349 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10350 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10351 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10352 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10353 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10354 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10355 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10356 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10357 * config/i386/sse.md
10358 (define_mode_iterator VMOVE): Allow V4TI mode.
10359 (define_mode_iterator V_AVX512VL): New.
10360 (define_mode_iterator V): New handling for AVX512VL.
10361 (define_insn "avx512f_load<mode>_mask"): Delete.
10362 (define_insn "<avx512>_load<mode>_mask"): New.
10363 (define_insn "avx512f_store<mode>_mask"): Delete.
10364 (define_insn "<avx512>_store<mode>_mask"): New.
10365
10366
10367 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10368
10369 PR sanitizer/62089
10370 * asan.c (instrument_derefs): Fix bitfield check.
10371
10372 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10373
10374 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10375 * config/rs6000/htm.md (ttest): Remove clobber.
10376 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10377 (and_operand): Reformat.
10378 (and_2rld_operand): New predicate.
10379 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10380 parameter.
10381 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10382 parameter. Handle AND directly.
10383 (rs6000_split_logical_di): Remove last parameter.
10384 (rs6000_split_logical): Remove last parameter. Remove obsolete
10385 comment.
10386 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10387 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10388 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10389 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10390 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10391 and 5 anonymous splitters): Delete.
10392 (and<mode>3): New expander.
10393 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10394 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10395 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10396 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10397 (floatdisf2_internal1): Remove clobbers.
10398 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10399 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10400 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10401 (and<mode>3 for BOOL_128): Remove clobber.
10402 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10403 rs6000_split_logical.
10404 (*bool<mode>3_internal for BOOL_128): Adjust call of
10405 rs6000_split_logical.
10406 (*boolc<mode>3_internal1 for BOOL_128,
10407 *boolc<mode>3_internal2 for BOOL_128,
10408 *boolcc<mode>3_internal1 for BOOL_128,
10409 *boolcc<mode>3_internal2 for BOOL_128,
10410 *eqv<mode>3_internal1 for BOOL_128,
10411 *eqv<mode>3_internal2 for BOOL_128,
10412 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10413 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10414 clobber.
10415 (*vec_reload_and_reg_<mptrsize>): Delete.
10416
10417 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10418
10419 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10420 and split, *boolccsi3_internal3 and split): Delete.
10421 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10422 *boolccdi3_internal3 and split): Delete.
10423 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10424 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10425
10426 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10427
10428 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10429 and split, *boolcsi3_internal3 and split): Delete.
10430 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10431 *boolcdi3_internal3 and split): Delete.
10432 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10433
10434 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10435
10436 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10437 <'u'>: Also support printing the low-order 16 bits.
10438 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10439 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10440 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10441 *booldi3_internal3 and split): Delete.
10442 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10443 *bool<mode>3_dot2): New.
10444 (two anonymous define_splits for non_logical_cint_operand): Merge.
10445
10446 2014-08-17 Marek Polacek <polacek@redhat.com>
10447 Manuel López-Ibáñez <manu@gcc.gnu.org>
10448
10449 PR c/62059
10450 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10451 (diagnostic_show_locus): Don't print caret diagnostic
10452 if a column is larger than the line_width.
10453
10454 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10455
10456 * common.opt: Make the ISL AST generator to be the main code generator
10457 of Graphite.
10458
10459 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10460
10461 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10462
10463 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10464
10465 PR target/61641
10466 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10467 Declare.
10468 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10469 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10470 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10471 Define.
10472 * config/pa/pa.md (begin_brtab): Delete insn.
10473 (end_brtab): Likewise.
10474
10475 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10476
10477 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10478
10479 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10480
10481 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10482 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10483 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10484 (get_dynamic_type): Remove.
10485 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10486 (clear_speculation): Bring to ipa-deivrt.h
10487 (get_class_context): Rename to ...
10488 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10489 (contains_type_p): Update.
10490 (get_dynamic_type): Rename to ...
10491 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10492 (possible_polymorphic_call_targets): UPdate.
10493 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10494 * ipa-prop.c (ipa_analyze_call_uses): Update.
10495
10496 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10497
10498 * doc/invoke.texi (SH options): Document missing processor variant
10499 options. Remove references to Hitachi. Undocument deprecated mspace
10500 option.
10501
10502 2014-08-15 Jason Merrill <jason@redhat.com>
10503
10504 * tree.c (type_hash_canon): Uncomment assert.
10505
10506 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10507
10508 * input.h (in_system_header_at): Add comment.
10509
10510 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10511
10512 PR fortran/44054
10513 * diagnostic.c (build_message_string): Make it extern.
10514 * diagnostic.h (build_message_string): Make it extern.
10515
10516 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10517
10518 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10519 load/store from/to non-floating class pseudo.
10520
10521 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10522
10523 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10524
10525 2014-08-15 Richard Biener <rguenther@suse.de>
10526
10527 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10528 (get_constraint_for_ssa_var): Remove dead code.
10529 (get_constraint_for_1): Adjust.
10530 (find_what_var_points_to): Likewise.
10531 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10532
10533 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10534
10535 PR target/61878
10536 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10537 (_mm512_mask_cmpge_epu32_mask): Ditto.
10538 (_mm512_cmpge_epu32_mask): Ditto.
10539 (_mm512_mask_cmpge_epi64_mask): Ditto.
10540 (_mm512_cmpge_epi64_mask): Ditto.
10541 (_mm512_mask_cmpge_epu64_mask): Ditto.
10542 (_mm512_cmpge_epu64_mask): Ditto.
10543 (_mm512_mask_cmple_epi32_mask): Ditto.
10544 (_mm512_cmple_epi32_mask): Ditto.
10545 (_mm512_mask_cmple_epu32_mask): Ditto.
10546 (_mm512_cmple_epu32_mask): Ditto.
10547 (_mm512_mask_cmple_epi64_mask): Ditto.
10548 (_mm512_cmple_epi64_mask): Ditto.
10549 (_mm512_mask_cmple_epu64_mask): Ditto.
10550 (_mm512_cmple_epu64_mask): Ditto.
10551 (_mm512_mask_cmplt_epi32_mask): Ditto.
10552 (_mm512_cmplt_epi32_mask): Ditto.
10553 (_mm512_mask_cmplt_epu32_mask): Ditto.
10554 (_mm512_cmplt_epu32_mask): Ditto.
10555 (_mm512_mask_cmplt_epi64_mask): Ditto.
10556 (_mm512_cmplt_epi64_mask): Ditto.
10557 (_mm512_mask_cmplt_epu64_mask): Ditto.
10558 (_mm512_cmplt_epu64_mask): Ditto.
10559 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10560 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10561 (_mm512_cmpneq_epu32_mask): Ditto.
10562 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10563 (_mm512_cmpneq_epi64_mask): Ditto.
10564 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10565 (_mm512_cmpneq_epu64_mask): Ditto.
10566 (_mm512_castpd_ps): Ditto.
10567 (_mm512_castpd_si512): Ditto.
10568 (_mm512_castps_pd): Ditto.
10569 (_mm512_castps_si512): Ditto.
10570 (_mm512_castsi512_ps): Ditto.
10571 (_mm512_castsi512_pd): Ditto.
10572 (_mm512_castpd512_pd128): Ditto.
10573 (_mm512_castps512_ps128): Ditto.
10574 (_mm512_castsi512_si128): Ditto.
10575 (_mm512_castpd512_pd256): Ditto.
10576 (_mm512_castps512_ps256): Ditto.
10577 (_mm512_castsi512_si256): Ditto.
10578 (_mm512_castpd128_pd512): Ditto.
10579 (_mm512_castps128_ps512): Ditto.
10580 (_mm512_castsi128_si512): Ditto.
10581 (_mm512_castpd256_pd512): Ditto.
10582 (_mm512_castps256_ps512): Ditto.
10583 (_mm512_castsi256_si512): Ditto.
10584 (_mm512_cmpeq_epu32_mask): Ditto.
10585 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10586 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10587 (_mm512_cmpeq_epu64_mask): Ditto.
10588 (_mm512_cmpgt_epu32_mask): Ditto.
10589 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10590 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10591 (_mm512_cmpgt_epu64_mask): Ditto.
10592 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10593 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10594 * config/i386/i386.c (enum ix86_builtins): Add
10595 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10596 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10597 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10598 (bdesc_args): Add __builtin_ia32_si512_256si,
10599 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10600 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10601 __builtin_ia32_pd512_pd.
10602 (ix86_expand_args_builtin): Handle new FTYPEs.
10603 * config/i386/sse.md (castmode): Add 512-bit modes.
10604 (AVX512MODE2P): New.
10605 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10606 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10607
10608 2014-08-15 Richard Biener <rguenther@suse.de>
10609
10610 * fold-const.c (tree_swap_operands_p): Put all constants
10611 last, also strip sign-changing NOPs when considering further
10612 canonicalization. Canonicalize also when optimizing for size.
10613
10614 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10615
10616 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10617 one_match > zero_match case to just before simple_sequence.
10618
10619 2014-08-15 Richard Biener <rguenther@suse.de>
10620
10621 * data-streamer.h (streamer_string_index, string_for_index):
10622 Remove.
10623 * data-streamer-out.c (streamer_string_index): Make static.
10624 * data-streamer-in.c (string_for_index): Likewise.
10625 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10626 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10627
10628 2014-08-15 Richard Biener <rguenther@suse.de>
10629
10630 PR tree-optimization/62031
10631 * tree-data-ref.c (dr_analyze_indices): Do not set
10632 DR_UNCONSTRAINED_BASE.
10633 (dr_may_alias_p): All indirect accesses have to go the
10634 formerly DR_UNCONSTRAINED_BASE path.
10635 * tree-data-ref.h (struct indices): Remove
10636 unconstrained_base member.
10637 (DR_UNCONSTRAINED_BASE): Remove.
10638
10639 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10640
10641 PR middle-end/62092
10642 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10643 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10644 in OMP_CLAUSE_MAP in some outer target region.
10645
10646 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10647
10648 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10649 name_expansion_cache.
10650 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10651 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10652 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10653 (difference_cannot_overflow_p): New parameter. Use affine
10654 expansion for equality check.
10655 (iv_elimination_compare_lt): Pass new argument.
10656
10657 2014-08-14 DJ Delorie <dj@redhat.com>
10658
10659 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10660 variables to the accumulator.
10661
10662 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10663 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10664 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10665 with far-far moves.
10666
10667 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10668 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10669 (umulqihi3_virt): Likewise.
10670 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10671 (umulqihi3_real): Likewise.
10672
10673 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10674
10675 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10676
10677 PR tree-optimization/62091
10678 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10679 function_entry_reached.
10680 (walk_aliased_vdefs): Clear it here.
10681 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10682
10683 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10684
10685 * ipa-utils.h (compare_virtual_tables): Declare.
10686 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10687
10688 2014-08-14 Marek Polacek <polacek@redhat.com>
10689
10690 DR 458
10691 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10692 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10693
10694 2014-08-14 Tom de Vries <tom@codesourcery.com>
10695
10696 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10697
10698 2014-08-14 Tom de Vries <tom@codesourcery.com>
10699
10700 PR rtl-optimization/62004
10701 PR rtl-optimization/62030
10702 * ifcvt.c (rtx_interchangeable_p): New function.
10703 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10704 * emit-rtl.h (mem_attrs_eq_p): Declare.
10705
10706 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10707
10708 * graphite-scop-detection.c:
10709 Add inclusion of cp-tree.h.
10710 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10711 in case they are pointers to object types
10712
10713 2014-08-14 Richard Biener <rguenther@suse.de>
10714
10715 * BASE-VER: Change to 5.0.0
10716
10717 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10718 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10719 Anna Tikhonova <anna.tikhonova@intel.com>
10720 Ilya Tocar <ilya.tocar@intel.com>
10721 Andrey Turetskiy <andrey.turetskiy@intel.com>
10722 Ilya Verbin <ilya.verbin@intel.com>
10723 Kirill Yukhin <kirill.yukhin@intel.com>
10724 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10725
10726 * config/i386/sse.md (define_mode_attr avx512): New.
10727 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10728 V4DI modes.
10729 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10730 (define_mode_attr ssse3_avx2): Ditto.
10731 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10732 (define_mode_attr avx2_avx512bw): New.
10733 (define_mode_attr ssedoublemodelower): New.
10734 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10735 V32HI, V64QI modes.
10736 (define_mode_attr ssebytemode): Allow V8DI modes.
10737 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10738 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10739 (define_mode_attr ssePSmode2): New.
10740 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10741 V16HI, V32HI modes.
10742 (define_mode_attr dbpsadbwmode): New.
10743 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10744 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10745 (vi8_sse4_1_avx2_avx512): New.
10746 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10747 mode attribute.
10748 (define_mode_attr blendbits): Move before its immediate use.
10749
10750 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10751 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10752 Anna Tikhonova <anna.tikhonova@intel.com>
10753 Ilya Tocar <ilya.tocar@intel.com>
10754 Andrey Turetskiy <andrey.turetskiy@intel.com>
10755 Ilya Verbin <ilya.verbin@intel.com>
10756 Kirill Yukhin <kirill.yukhin@intel.com>
10757 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10758
10759 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10760 * config/i386/subst.md
10761 (define_mode_iterator SUBST_V): Update.
10762 (define_mode_iterator SUBST_A): Ditto.
10763 (define_subst_attr "mask_operand7"): New.
10764 (define_subst_attr "mask_operand10"): New.
10765 (define_subst_attr "mask_operand_arg34") : New.
10766 (define_subst_attr "mask_expand_op3"): New.
10767 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10768 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10769 (define_subst_attr "mask_avx512vl_condition"): New.
10770 (define_subst_attr "round_mask_operand4"): Ditto.
10771 (define_subst_attr "round_mask_scalar_op3"): Delete.
10772 (define_subst_attr "round_mask_op4"): New.
10773 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10774 V16SImode.
10775 (define_subst_attr "round_modev8sf_condition"): New.
10776 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10777 <MODE>mode.
10778 (define_subst_attr "round_saeonly_mask_operand4"): New.
10779 (define_subst_attr "round_saeonly_mask_op4"): New.
10780 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10781 V8DImode, V16SImode.
10782 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10783 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10784 (define_subst_attr "mask_expand4_args"): New.
10785 (define_subst "mask_expand4"): New.
10786
10787 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10788 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10789 Anna Tikhonova <anna.tikhonova@intel.com>
10790 Ilya Tocar <ilya.tocar@intel.com>
10791 Andrey Turetskiy <andrey.turetskiy@intel.com>
10792 Ilya Verbin <ilya.verbin@intel.com>
10793 Kirill Yukhin <kirill.yukhin@intel.com>
10794 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10795
10796 * config/i386/i386.md
10797 (define_attr "isa"): Add avx512bw,noavx512bw.
10798 (define_attr "enabled"): Ditto.
10799 (define_split): Add 32/64-bit mask logic.
10800 (define_insn "*k<logic>qi"): New.
10801 (define_insn "*k<logic>hi"): New.
10802 (define_insn "*anddi_1"): Add mask version.
10803 (define_insn "*andsi_1"): Ditto.
10804 (define_insn "*<code><mode>_1"): Ditto.
10805 (define_insn "*<code>hi_1"): Ditto.
10806 (define_insn "kxnor<mode>"): New.
10807 (define_insn "kunpcksi"): New.
10808 (define_insn "kunpckdi"): New.
10809 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10810 (define_insn "*one_cmplhi2_1"): Ditto.
10811
10812 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10813 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10814 Anna Tikhonova <anna.tikhonova@intel.com>
10815 Ilya Tocar <ilya.tocar@intel.com>
10816 Andrey Turetskiy <andrey.turetskiy@intel.com>
10817 Ilya Verbin <ilya.verbin@intel.com>
10818 Kirill Yukhin <kirill.yukhin@intel.com>
10819 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10820
10821 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10822 V32HImode.
10823
10824 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10825 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10826 Anna Tikhonova <anna.tikhonova@intel.com>
10827 Ilya Tocar <ilya.tocar@intel.com>
10828 Andrey Turetskiy <andrey.turetskiy@intel.com>
10829 Ilya Verbin <ilya.verbin@intel.com>
10830 Kirill Yukhin <kirill.yukhin@intel.com>
10831 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10832
10833 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10834 registers.
10835 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10836 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10837 xmm/ymm16+ when availble.
10838 * config/i386/i386.h
10839 (HARD_REGNO_NREGS): Add mask regs.
10840 (VALID_AVX512F_REG_MODE): Ditto.
10841 (VALID_AVX512F_REG_MODE) : Define.
10842 (VALID_MASK_AVX512BW_MODE): Ditto.
10843 (reg_class) (MASK_REG_P(X)): Define.
10844 * config/i386/i386.md: Do not split long moves with mask register,
10845 use kmovb if avx512bw is availible.
10846 (movdi_internal): Handle mask registers.
10847
10848 2014-08-14 Richard Biener <rguenther@suse.de>
10849
10850 PR tree-optimization/62081
10851 * tree-ssa-loop.c (pass_fix_loops): New pass.
10852 (pass_tree_loop::gate): Do not fixup loops here.
10853 * tree-pass.h (make_pass_fix_loops): Declare.
10854 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10855
10856 2014-08-14 Richard Biener <rguenther@suse.de>
10857
10858 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10859 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10860
10861 2014-08-14 Richard Biener <rguenther@suse.de>
10862
10863 PR tree-optimization/62090
10864 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10865 (fold_builtin_2): Do not fold sprintf.
10866 (fold_builtin_3): Likewise.
10867 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10868 moved from builtins.c.
10869 (gimple_fold_builtin): Fold sprintf.
10870
10871 2014-08-14 Richard Biener <rguenther@suse.de>
10872
10873 PR rtl-optimization/62079
10874 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10875 run cleanup_cfg.
10876
10877 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10878
10879 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10880 current_function_decl.
10881
10882 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10883
10884 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10885 cgraph_function_node to cgraph_node::function_symbol
10886 refactoring.
10887
10888 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10889
10890 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10891 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10892
10893 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10894
10895 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10896 warning.
10897
10898 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10899
10900 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10901 generator.
10902
10903 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10904
10905 PR target/62025
10906 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10907 any registers that are used in mem_insn.
10908
10909 2014-08-12 Steve Ellcey <sellcey@mips.com>
10910
10911 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10912
10913 2014-08-12 Steve Ellcey <sellcey@mips.com>
10914
10915 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10916 (MULTILIB_DIRNAMES): Ditto.
10917 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10918 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10919 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10920 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10921 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10922 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10923
10924 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10925
10926 PR target/61413
10927 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10928 of __ARM_SIZEOF_WCHAR_T.
10929
10930 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10931
10932 PR target/62098
10933 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10934 Remove unnecessary attributes.
10935
10936 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10937
10938 * internal-fn.c (init_internal_fns): Fix off-by-one.
10939
10940 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10941 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10942 Anna Tikhonova <anna.tikhonova@intel.com>
10943 Ilya Tocar <ilya.tocar@intel.com>
10944 Andrey Turetskiy <andrey.turetskiy@intel.com>
10945 Ilya Verbin <ilya.verbin@intel.com>
10946 Kirill Yukhin <kirill.yukhin@intel.com>
10947 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10948
10949 * config/i386/i386.c (standard_sse_constant_opcode): Use
10950 vpxord/vpternlog if avx512 is availible.
10951
10952 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10953
10954 PR middle-end/62103
10955 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10956 bitfields, that is when size doesn't match the size of type or the
10957 size of the constructor.
10958
10959 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10960
10961 * config/rs6000/constraints.md (wh constraint): New constraint,
10962 for FP registers if direct move is available.
10963 (wi constraint): New constraint, for VSX/FP registers that can
10964 handle 64-bit integers.
10965 (wj constraint): New constraint for VSX/FP registers that can
10966 handle 64-bit integers for direct moves.
10967 (wk constraint): New constraint for VSX/FP registers that can
10968 handle 64-bit doubles for direct moves.
10969 (wy constraint): Make documentation match implementation.
10970
10971 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10972 scalar_in_vmx_p field to simplify tests of whether SFmode or
10973 DFmode can go in the Altivec registers.
10974 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10975 (rs6000_setup_reg_addr_masks): Likewise.
10976 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10977 field, and wh/wi/wj/wk constraints.
10978 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10979 the wh/wi/wj/wk constraints.
10980 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10981 upper registers, prefer VSX registers unless the operation is a
10982 memory operation with REG+OFFSET addressing.
10983
10984 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10985 DImode. Change SFmode to use ww constraint instead of d to allow
10986 SF registers in the upper registers.
10987 (VSr2): Likewise.
10988 (VSr3): Likewise.
10989 (VSr5): Fix thinko in comment.
10990 (VSa): New mode attribute that is an alternative to wa, that
10991 returns the VSX register class that a mode can go in, but may not
10992 be the preferred register class.
10993 (VS_64dm): New mode attribute for appropriate register classes for
10994 referencing 64-bit elements of vectors for direct moves and normal
10995 moves.
10996 (VS_64reg): Likewise.
10997 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10998 register allocator to only registers the data type can handle.
10999 (vsx_le_perm_load_<mode>): Likewise.
11000 (vsx_le_perm_store_<mode>): Likewise.
11001 (vsx_xxpermdi2_le_<mode>): Likewise.
11002 (vsx_xxpermdi4_le_<mode>): Likewise.
11003 (vsx_lxvd2x2_le_<mode>): Likewise.
11004 (vsx_lxvd2x4_le_<mode>): Likewise.
11005 (vsx_stxvd2x2_le_<mode>): Likewise.
11006 (vsx_add<mode>3): Likewise.
11007 (vsx_sub<mode>3): Likewise.
11008 (vsx_mul<mode>3): Likewise.
11009 (vsx_div<mode>3): Likewise.
11010 (vsx_tdiv<mode>3_internal): Likewise.
11011 (vsx_fre<mode>2): Likewise.
11012 (vsx_neg<mode>2): Likewise.
11013 (vsx_abs<mode>2): Likewise.
11014 (vsx_nabs<mode>2): Likewise.
11015 (vsx_smax<mode>3): Likewise.
11016 (vsx_smin<mode>3): Likewise.
11017 (vsx_sqrt<mode>2): Likewise.
11018 (vsx_rsqrte<mode>2): Likewise.
11019 (vsx_tsqrt<mode>2_internal): Likewise.
11020 (vsx_fms<mode>4): Likewise.
11021 (vsx_nfma<mode>4): Likewise.
11022 (vsx_eq<mode>): Likewise.
11023 (vsx_gt<mode>): Likewise.
11024 (vsx_ge<mode>): Likewise.
11025 (vsx_eq<mode>_p): Likewise.
11026 (vsx_gt<mode>_p): Likewise.
11027 (vsx_ge<mode>_p): Likewise.
11028 (vsx_xxsel<mode>): Likewise.
11029 (vsx_xxsel<mode>_uns): Likewise.
11030 (vsx_copysign<mode>3): Likewise.
11031 (vsx_float<VSi><mode>2): Likewise.
11032 (vsx_floatuns<VSi><mode>2): Likewise.
11033 (vsx_fix_trunc<mode><VSi>2): Likewise.
11034 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11035 (vsx_x<VSv>r<VSs>i): Likewise.
11036 (vsx_x<VSv>r<VSs>ic): Likewise.
11037 (vsx_btrunc<mode>2): Likewise.
11038 (vsx_b2trunc<mode>2): Likewise.
11039 (vsx_floor<mode>2): Likewise.
11040 (vsx_ceil<mode>2): Likewise.
11041 (vsx_<VS_spdp_insn>): Likewise.
11042 (vsx_xscvspdp): Likewise.
11043 (vsx_xvcvspuxds): Likewise.
11044 (vsx_float_fix_<mode>2): Likewise.
11045 (vsx_set_<mode>): Likewise.
11046 (vsx_extract_<mode>_internal1): Likewise.
11047 (vsx_extract_<mode>_internal2): Likewise.
11048 (vsx_extract_<mode>_load): Likewise.
11049 (vsx_extract_<mode>_store): Likewise.
11050 (vsx_splat_<mode>): Likewise.
11051 (vsx_xxspltw_<mode>): Likewise.
11052 (vsx_xxspltw_<mode>_direct): Likewise.
11053 (vsx_xxmrghw_<mode>): Likewise.
11054 (vsx_xxmrglw_<mode>): Likewise.
11055 (vsx_xxsldwi_<mode>): Likewise.
11056 (vsx_xscvdpspn): Tighten constraints to only use register classes
11057 the types use.
11058 (vsx_xscvspdpn): Likewise.
11059 (vsx_xscvdpspn_scalar): Likewise.
11060
11061 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11062 wj, and wk constraints.
11063 (GPR_REG_CLASS_P): New helper macro for register classes targeting
11064 general purpose registers.
11065
11066 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11067 direct moves.
11068 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11069 DImode instead of wm. Use wk constraint for direct move of DFmode
11070 instead of wm.
11071 (extendsidi2_lfiwax): Likewise.
11072 (lfiwax): Likewise.
11073 (lfiwzx): Likewise.
11074 (movdi_internal64): Likewise.
11075
11076 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11077 wk constraints. Make the wy constraint documentation match them
11078 implementation.
11079
11080 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11081
11082 Replacement of isl_int by isl_val
11083 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11084 (compute_bounds_for_param): use isl_val instead of isl_int
11085 (compute_bounds_for_loop): likewise
11086 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11087 (build_linearized_memory_access): use isl_val instead of isl_int
11088 (pdr_stride_in_loop): likewise
11089 * graphite-optimize-isl.c:
11090 (getPrevectorMap): use isl_val instead of isl_int
11091 * graphite-poly.c:
11092 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11093 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11094 (extern the_isl_ctx): declare
11095 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11096 (extract_affine_gmp): likewise
11097 (wrap): likewise
11098 (build_loop_iteration_domains): likewise
11099 (add_param_constraints): likewise
11100
11101 2014-08-11 Richard Biener <rguenther@suse.de>
11102
11103 PR tree-optimization/62075
11104 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11105 handle uses in patterns.
11106
11107 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11108 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11109 Anna Tikhonova <anna.tikhonova@intel.com>
11110 Ilya Tocar <ilya.tocar@intel.com>
11111 Andrey Turetskiy <andrey.turetskiy@intel.com>
11112 Ilya Verbin <ilya.verbin@intel.com>
11113 Kirill Yukhin <kirill.yukhin@intel.com>
11114 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11115
11116 * common/config/i386/i386-common.c
11117 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11118 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11119 (ix86_handle_option): Handle OPT_mavx512vl.
11120 * config/i386/cpuid.h (bit_AVX512VL): Define.
11121 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11122 set -mavx512vl accordingly.
11123 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11124 OPTION_MASK_ISA_AVX512VL.
11125 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11126 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11127 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11128 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11129 * config/i386/i386.h (TARGET_AVX512VL): Define.
11130 (TARGET_AVX512VL_P(x)): Ditto.
11131 * config/i386/i386.opt: Add mavx512vl.
11132
11133 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11134
11135 PR tree-optimization/62073
11136 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11137 a basic block.
11138
11139 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11140 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11141 Anna Tikhonova <anna.tikhonova@intel.com>
11142 Ilya Tocar <ilya.tocar@intel.com>
11143 Andrey Turetskiy <andrey.turetskiy@intel.com>
11144 Ilya Verbin <ilya.verbin@intel.com>
11145 Kirill Yukhin <kirill.yukhin@intel.com>
11146 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11147
11148 * common/config/i386/i386-common.c
11149 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11150 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11151 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11152 (ix86_handle_option): Handle OPT_mavx512bw.
11153 * config/i386/cpuid.h (bit_AVX512BW): Define.
11154 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11155 set -mavx512bw accordingly.
11156 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11157 OPTION_MASK_ISA_AVX512BW.
11158 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11159 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11160 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11161 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11162 * config/i386/i386.h (TARGET_AVX512BW): Define.
11163 (TARGET_AVX512BW_P(x)): Ditto.
11164 * config/i386/i386.opt: Add mavx512bw.
11165
11166 2014-08-11 Richard Biener <rguenther@suse.de>
11167
11168 PR tree-optimization/62070
11169 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11170 Remove SSA checking.
11171
11172 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11173
11174 * asan.c (asan_check_flags): New enum.
11175 (build_check_stmt_with_calls): Removed function.
11176 (build_check_stmt): Split inlining logic to
11177 asan_expand_check_ifn.
11178 (instrument_derefs): Rename parameter.
11179 (instrument_mem_region_access): Rename parameter.
11180 (instrument_strlen_call): Likewise.
11181 (asan_expand_check_ifn): New function.
11182 (asan_instrument): Remove old code.
11183 (pass_sanopt::execute): Change handling of
11184 asan-instrumentation-with-call-threshold.
11185 (asan_clear_shadow): Fix formatting.
11186 (asan_function_start): Likewise.
11187 (asan_emit_stack_protection): Likewise.
11188 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11189 Update description.
11190 * internal-fn.c (expand_ASAN_CHECK): New function.
11191 * internal-fn.def (ASAN_CHECK): New internal function.
11192 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11193 Update description.
11194 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11195 * tree.c: Small comment fix.
11196
11197 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11198
11199 * gimple.c (gimple_call_fnspec): Support internal functions.
11200 (gimple_call_return_flags): Use const.
11201 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11202 * internal-fn.def: Add fnspec information.
11203 * internal-fn.h (internal_fn_fnspec): New function.
11204 (init_internal_fns): Declare new function.
11205 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11206 (init_internal_fns): New function.
11207 * tree-core.h: Update macro call.
11208 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11209
11210 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11211
11212 * lto-streamer.h (struct output_block::symbol): Change from
11213 struct symtab_node to plain symtab_node.
11214 (referenced_from_this_partition_p): Change first parameter
11215 from struct symtab_node to plain symtab_node.
11216
11217 2014-08-10 Marek Polacek <polacek@redhat.com>
11218
11219 PR c/51849
11220 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11221
11222 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11223
11224 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11225 DECL correctly; do not give up on types in static storage.
11226
11227 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11228
11229 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11230
11231 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11232
11233 * graphite-isl-ast-to-gimple.c:
11234 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11235
11236 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11237
11238 2014-08-08 Guozhi Wei <carrot@google.com>
11239
11240 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11241
11242 2014-08-08 Cary Coutant <ccoutant@google.com>
11243
11244 * dwarf2out.c (get_skeleton_type_unit): Remove.
11245 (output_skeleton_debug_sections): Remove skeleton type units.
11246 (output_comdat_type_unit): Likewise.
11247 (dwarf2out_finish): Likewise.
11248
11249 2014-08-07 Yi Yang <ahyangyi@google.com>
11250
11251 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11252
11253 2014-08-08 Richard Biener <rguenther@suse.de>
11254
11255 * lto-streamer.h (struct lto_input_block): Make it a class
11256 with a constructor.
11257 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11258 (struct lto_function_header, struct lto_simple_header,
11259 struct lto_simple_header_with_strings,
11260 struct lto_decl_header, struct lto_function_header): Make
11261 a simple inheritance hieararchy. Remove unused fields.
11262 (struct lto_asm_header): Remove.
11263 * lto-streamer-out.c (produce_asm): Adjust.
11264 (lto_output_toplevel_asms): Likewise.
11265 (produce_asm_for_decls): Likewise.
11266 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11267 * data-streamer-in.c (string_for_index): Likewise.
11268 * ipa-inline-analysis.c (inline_read_section): Likewise.
11269 * ipa-prop.c (ipa_prop_read_section): Likewise.
11270 (read_replacements_section): Likewise.
11271 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11272 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11273 (lto_destroy_simple_input_block): Likewise.
11274 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11275 (lto_input_toplevel_asms): Likewise.
11276
11277 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11278 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11279 Anna Tikhonova <anna.tikhonova@intel.com>
11280 Ilya Tocar <ilya.tocar@intel.com>
11281 Andrey Turetskiy <andrey.turetskiy@intel.com>
11282 Ilya Verbin <ilya.verbin@intel.com>
11283 Kirill Yukhin <kirill.yukhin@intel.com>
11284 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11285
11286 * common/config/i386/i386-common.c
11287 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11288 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11289 (ix86_handle_option): Handle OPT_mavx512dq.
11290 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11291 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11292 set -mavx512dq accordingly.
11293 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11294 OPTION_MASK_ISA_AVX512DQ.
11295 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11296 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11297 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11298 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11299 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11300 (TARGET_AVX512DQ_P(x)): Ditto.
11301 * config/i386/i386.opt: Add mavx512dq.
11302
11303 2014-08-08 Richard Biener <rguenther@suse.de>
11304
11305 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11306 target_percent, target_percent_s): Export.
11307 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11308 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11309 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11310 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11311 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11312 Move to gimple-fold.c.
11313 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11314 strcat and strcpy.
11315 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11316 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11317 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11318 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11319 (rewrite_call_expr_array): Remove.
11320 (fold_builtin_sprintf_chk): Likewise.
11321 (fold_builtin_snprintf_chk): Likewise.
11322 (fold_builtin_varargs): Remove handling of sprintf_chk,
11323 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11324 (gimple_fold_builtin_sprintf_chk): Remove.
11325 (gimple_fold_builtin_snprintf_chk): Likewise.
11326 (gimple_fold_builtin_varargs): Likewise.
11327 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11328 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11329 * gimple.c (gimple_seq_add_seq_without_update): New function.
11330 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11331 * gimple-fold.c: Include output.h.
11332 (gsi_replace_with_seq_vops): New function, split out from ...
11333 (gimplify_and_update_call_from_tree): ... here.
11334 (replace_call_with_value): New function.
11335 (replace_call_with_call_and_fold): Likewise.
11336 (var_decl_component_p): Moved from builtins.c.
11337 (gimple_fold_builtin_memory_op): Moved from builtins.c
11338 fold_builtin_memory_op and rewritten to GIMPLE.
11339 (gimple_fold_builtin_memset): Likewise.
11340 (gimple_fold_builtin_strcpy): Likewise.
11341 (gimple_fold_builtin_strncpy): Likewise.
11342 (gimple_fold_builtin_strcat): Likewise.
11343 (gimple_fold_builtin_fputs): Likewise.
11344 (gimple_fold_builtin_memory_chk): Likewise.
11345 (gimple_fold_builtin_stxcpy_chk): Likewise.
11346 (gimple_fold_builtin_stxncpy_chk): Likewise.
11347 (gimple_fold_builtin_snprintf_chk): Likewise.
11348 (gimple_fold_builtin_sprintf_chk): Likewise.
11349 (gimple_fold_builtin_strlen): New function.
11350 (gimple_fold_builtin_with_strlen): New function split out from
11351 gimple_fold_builtin.
11352 (gimple_fold_builtin): Change signature and handle
11353 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11354 here. Call gimple_fold_builtin_with_strlen.
11355 (gimple_fold_call): Adjust.
11356
11357 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11358
11359 * calls.c (precompute_arguments): Check
11360 promoted_for_signed_and_unsigned_p and set the promoted mode.
11361 (promoted_for_signed_and_unsigned_p): New function.
11362 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11363 and set the promoted mode.
11364 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11365 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11366 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11367
11368
11369 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11370
11371 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11372 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11373 (expand_call): Likewise.
11374 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11375 to get promoted mode.
11376 * combine.c (record_promoted_value): Skip > 0 comparison with
11377 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11378 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11379 of SUBREG_PROMOTED_UNSIGNED_P.
11380 (convert_modes): Likewise.
11381 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11382 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11383 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11384 SUBREG_PROMOTED_UNSIGNED_SET.
11385 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11386 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11387 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11388 SUBREG_PROMOTED_SET.
11389 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11390 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11391 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11392 of SUBREG_PROMOTED_UNSIGNED_P.
11393 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11394 (SUBREG_PROMOTED_SET): New define.
11395 (SUBREG_PROMOTED_GET): Likewise.
11396 (SUBREG_PROMOTED_SIGN): Likewise.
11397 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11398 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11399 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11400 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11401 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11402 (nonzero_bits1): Skip > 0 comparison with the results as
11403 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11404 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11405 of !SUBREG_PROMOTED_UNSIGNED_P.
11406 * simplify-rtx.c (simplify_unary_operation_1): Use new
11407 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11408 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11409 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11410 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11411
11412 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11413
11414 * ipa-devirt.c: Include gimple-pretty-print.h
11415 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11416 further tests.
11417 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11418 (get_polymorphic_call_info): Fix return value
11419 (type_change_info): New sturcture based on ipa-prop
11420 variant.
11421 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11422 based on ipa-prop variant.
11423 (extr_type_from_vtbl_ptr_store): New function
11424 based on ipa-prop variant.
11425 (record_known_type): New function.
11426 (check_stmt_for_type_change): New function.
11427 (get_dynamic_type): New function.
11428 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11429 * tree-ssa-pre.c: ipa-utils.h
11430 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11431 machinery; sanity check with ipa-prop devirtualization.
11432 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11433 polymorphic flag.
11434
11435 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11436
11437 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11438 * alias.c, cfgexpand.c, cgraphbuild.c,
11439 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11440 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11441 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11442 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11443 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11444 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11445 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11446 dse.c, except.c, gengtype.c, gimple-expr.c,
11447 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11448 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11449 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11450 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11451 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11452 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11453 pointer-set.h.
11454 * pointer-set.c: Remove file.
11455 * pointer-set.h: Remove file.
11456
11457 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11458
11459 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11460 * config/arm/types.md (f_sels, f_seld): Delete.
11461
11462 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11463
11464 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11465 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11466 (aarch64_movdi_<mode>high): Likewise.
11467 (aarch64_mov<mode>high_di): Likewise.
11468 (aarch64_movdi_<mode>low): Likewise.
11469 (aarch64_mov<mode>low_di): Likewise.
11470 (aarch64_movtilow_tilow): Likewise.
11471 Add comment explaining usage of fp,simd attributes and of
11472 TARGET_FLOAT and TARGET_SIMD.
11473
11474 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11475 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11476
11477 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11478 Use MOVN when one of the half-words is 0xffff.
11479
11480 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11481
11482 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11483
11484 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11485
11486 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11487 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11488 (rfs_str): String corresponding to RFS_* constants.
11489 (rank_for_schedule_stats_t): New typedef.
11490 (rank_for_schedule_stats): New static variable.
11491 (rfs_result): New static function.
11492 (rank_for_schedule): Track statistics for deciding heuristics.
11493 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11494 static functions.
11495 (ready_sort): Use them for debug printouts.
11496 (schedule_block): Init statistics state. Print statistics on
11497 rank_for_schedule decisions.
11498
11499 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11500
11501 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11502
11503 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11504
11505 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11506 constraint.
11507
11508 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11509
11510 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11511 function to not conflict.
11512 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11513 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11514 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11515 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11516 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11517 of pointer_map.
11518
11519 2014-08-07 Marek Polacek <polacek@redhat.com>
11520
11521 * fold-const.c (fold_binary_loc): Add folding of
11522 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11523
11524 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11525
11526 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11527 instead of type size.
11528 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11529
11530 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11531
11532 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11533 (*thumb1_movqi_insn): Likewise.
11534 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11535
11536 2014-08-07 Tom de Vries <tom@codesourcery.com>
11537
11538 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11539 (glibc_2_11_or_earlier): Remove effective-target keywords.
11540
11541 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11542
11543 * config/arm/arm.c (bdesc_2arg): Fix typo.
11544 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11545
11546 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11547
11548 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11549
11550 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11551
11552 PR debug/61923
11553 * haifa-sched.c (advance_one_cycle): Fix dump.
11554 (schedule_block): Don't advance cycle if we are already at the
11555 beginning of the cycle.
11556
11557 2014-08-06 Martin Jambor <mjambor@suse.cz>
11558
11559 PR ipa/61393
11560 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11561
11562 2014-08-06 Richard Biener <rguenther@suse.de>
11563
11564 PR lto/62034
11565 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11566 SCCs here.
11567 (lto_input_tree): Pop SCCs here.
11568
11569 2014-08-06 Richard Biener <rguenther@suse.de>
11570
11571 PR tree-optimization/61320
11572 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11573 handle misaligned loads.
11574
11575 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11576
11577 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11578 (aarch64_expand_vec_perm_const): Check for dup before zip.
11579
11580 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11581
11582 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11583 CONST_INT_P instead of GET_CODE and compare.
11584 (aarch64_select_cc_mode): Likewise.
11585 (aarch64_print_operand): Likewise.
11586 (aarch64_rtx_costs): Likewise.
11587 (aarch64_simd_valid_immediate): Likewise.
11588 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11589 (aarch64_simd_emit_pair_result_insn): Likewise.
11590
11591 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11592
11593 * gdbhooks.py (find_gcc_source_dir): New helper function.
11594 (class PassNames): New class, locating and parsing passes.def.
11595 (class BreakOnPass): New command "break-on-pass".
11596
11597 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11598
11599 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11600 getting olde.
11601
11602 2014-08-05 Richard Biener <rguenther@suse.de>
11603
11604 PR rtl-optimization/61672
11605 * emit-rtl.h (mem_attrs_eq_p): Declare.
11606 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11607 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11608 * cfgcleanup.c (merge_memattrs): Likewise.
11609 Include emit-rtl.h.
11610
11611 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11612
11613 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11614 rather than singleton vectors.
11615 (vqdmlsls_lane_s32): Likewise.
11616
11617 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11618
11619 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11620 Use VSDQ_HSI mode iterator.
11621 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11622 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11623 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11624 Use BUILTIN_VDQHS macro.
11625 (sqrdmulh_laneq): Likewise.
11626 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11627 (vqdmlals_laneq_s32): Likewise.
11628 (vqdmlslh_laneq_s16): Likewise.
11629 (vqdmlsls_laneq_s32): Likewise.
11630 (vqdmulhh_laneq_s16): Likewise.
11631 (vqdmulhs_laneq_s32): Likewise.
11632 (vqrdmulhh_laneq_s16): Likewise.
11633 (vqrdmulhs_laneq_s32): Likewise.
11634
11635 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11636
11637 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11638 (vmuld_laneq_f64): Likewise.
11639 (vmuls_laneq_f32): Likewise.
11640 (vmul_n_f64): Likewise.
11641 (vmuld_lane_f64): Reimplement in C.
11642 (vmuls_lane_f32): Likewise.
11643
11644 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11645
11646 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11647 to reservation.
11648 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11649
11650 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11651
11652 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11653 (rbitsi2): Likewise.
11654 (*arm_rev): Set predicable and predicable_short_it attributes.
11655
11656 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11657
11658 * convert.c (convert_to_integer): Guard transformation to lrint by
11659 -fno-math-errno.
11660
11661 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11662
11663 * config/aarch64/aarch64-builtins.c
11664 (aarch64_simd_builtin_type_mode): Delete.
11665 (v8qi_UP): Remap to V8QImode.
11666 (v4hi_UP): Remap to V4HImode.
11667 (v2si_UP): Remap to V2SImode.
11668 (v2sf_UP): Remap to V2SFmode.
11669 (v1df_UP): Remap to V1DFmode.
11670 (di_UP): Remap to DImode.
11671 (df_UP): Remap to DFmode.
11672 (v16qi_UP):V16QImode.
11673 (v8hi_UP): Remap to V8HImode.
11674 (v4si_UP): Remap to V4SImode.
11675 (v4sf_UP): Remap to V4SFmode.
11676 (v2di_UP): Remap to V2DImode.
11677 (v2df_UP): Remap to V2DFmode.
11678 (ti_UP): Remap to TImode.
11679 (ei_UP): Remap to EImode.
11680 (oi_UP): Remap to OImode.
11681 (ci_UP): Map to CImode.
11682 (xi_UP): Remap to XImode.
11683 (si_UP): Remap to SImode.
11684 (sf_UP): Remap to SFmode.
11685 (hi_UP): Remap to HImode.
11686 (qi_UP): Remap to QImode.
11687 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11688 (VAR1): Build builtin name.
11689 (aarch64_init_simd_builtins): Remove dead code.
11690
11691 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11692
11693 * graphite-isl-ast-to-gimple.c:
11694 (set_options): New function.
11695 (scop_to_isl_ast): Add calling of set_options.
11696
11697 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11698
11699 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11700 (analyze_iv_to_split_insn): Don't initialize them.
11701 (get_ivts_expr): Removed.
11702 (allocate_basic_variable, insert_base_initialization): Use
11703 SET_SRC instead of *get_ivts_expr.
11704 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11705
11706 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11707
11708 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11709 (translate_isl_ast_for_loop): Add checking of the
11710 flag_loop_parallelize_all.
11711 (ast_build_before_for): New function.
11712 (scop_to_isl_ast): Add checking of the
11713 flag_loop_parallelize_all.
11714 * graphite-dependences.c: Move the defenition of the
11715 scop_get_dependences from graphite-optimize-isl.c to this file.
11716 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11717 (carries_deps): Add checking of the x's value.
11718 * graphite-optimize-isl.c: Move the defenition of the
11719 scop_get_dependences to graphite-dependences.c.
11720 * graphite-poly.h: Add declarations of scop_get_dependences
11721 and carries_deps.
11722
11723 2014-08-04 Rohit <rohitarulraj@freescale.com>
11724
11725 PR target/60102
11726 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11727 names.
11728 (alt_reg_names): Likewise.
11729 (rs6000_dwarf_register_span): For SPE high registers, replace
11730 dwarf register numbers with GCC hard register numbers.
11731 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11732 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11733 register number for the corresponding GCC hard register number.
11734 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11735 newly added GCC hard register numbers for SPE high registers.
11736 (DWARF_FRAME_REGISTERS): Likewise.
11737 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11738 (DWARF_FRAME_REGNUM): Likewise.
11739 (FIXED_REGISTERS): Likewise.
11740 (CALL_USED_REGISTERS): Likewise.
11741 (CALL_REALLY_USED_REGISTERS): Likewise.
11742 (REG_ALLOC_ORDER): Likewise.
11743 (enum reg_class): Likewise.
11744 (REG_CLASS_NAMES): Likewise.
11745 (REG_CLASS_CONTENTS): Likewise.
11746 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11747
11748 2014-08-04 Richard Biener <rguenther@suse.de>
11749
11750 * gimple-fold.h (gimple_fold_builtin): Remove.
11751 * gimple-fold.c (gimple_fold_builtin): Make static.
11752 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11753 fold_stmt, not gimple_fold_builtin.
11754
11755 2014-08-04 Martin Liska <mliska@suse.cz>
11756
11757 * cgraph.h (csi_end_p): Removed.
11758 (csi_next): Likewise.
11759 (csi_node): Likewise.
11760 (csi_start): Likewise.
11761 (cgraph_node_in_set_p): Likewise.
11762 (cgraph_node_set_size): Likewise.
11763 (vsi_end_p): Likewise.
11764 (vsi_next): Likewise.
11765 (vsi_node): Likewise.
11766 (vsi_start): Likewise.
11767 (varpool_node_set_size): Likewise.
11768 (cgraph_node_set_nonempty_p): Likewise.
11769 (varpool_node_set_nonempty_p): Likewise.
11770 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11771 cgraph_node_set.
11772 * ipa-inline-transform.c: Likewise.
11773 * ipa-utils.c (cgraph_node_set_new): Removed.
11774 (cgraph_node_set_add): Likewise.
11775 (cgraph_node_set_remove): Likewise.
11776 (cgraph_node_set_find): Likewise.
11777 (dump_cgraph_node_set): Likewise.
11778 (debug_cgraph_node_set): Likewise.
11779 (free_cgraph_node_set): Likewise.
11780 (varpool_node_set_new): Likewise.
11781 (varpool_node_set_add): Likewise.
11782 (varpool_node_set_remove): Likewise.
11783 (varpool_node_set_find): Likewise.
11784 (dump_varpool_node_set): Likewise.
11785 (free_varpool_node_set): Likewise.
11786 (debug_varpool_node_set): Likewise.
11787 * tree-emutls.c (struct tls_var_data):
11788 (emutls_index): Removed.
11789 (emutls_decl): Likewise.
11790 (gen_emutls_addr): Function implementation uses newly added
11791 hash_map<varpool_node *, tls_var_data>.
11792 (clear_access_vars): Likewise.
11793 (create_emultls_var): Likewise.
11794 (ipa_lower_emutls): Likewise.
11795 (reset_access): New function.
11796
11797 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11798
11799 * config/i386/i386.c (ix86_option_override_internal): Add
11800 PTA_RDRND and PTA_MOVBE for bdver4.
11801
11802 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11803 James Greenhalgh <james.greenhalgh@arm.com>
11804
11805 * doc/md.texi (clrsb): Document.
11806 (clz): Change reference to x into operand 1.
11807 (ctz): Likewise.
11808 (popcount): Likewise.
11809
11810 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11811
11812 PR target/61713
11813 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11814 move to subtarget in serial version if result is ignored.
11815
11816 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11817 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11818
11819 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11820 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11821 (sched_analyze_insn): Update use of try_group_insn to
11822 sched_macro_fuse_insns.
11823 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11824 arguments that are not conditional jumps.
11825
11826 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11827
11828 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11829 family information. Handle BTVER2 cpu with cpuid family value.
11830
11831 2014-08-04 Tom de Vries <tom@codesourcery.com>
11832
11833 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11834 (glibc_2_11_or_earlier): Document effective-target keywords.
11835
11836 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11837
11838 * ipa-devirt.c (odr_type_warn_count): Add type.
11839 (possible_polymorphic_call_targets): Set it.
11840 (ipa_devirt): Use it.
11841
11842 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11843
11844 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11845 Document.
11846 * ipa-devirt.c: Include hash-map.h
11847 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11848 (clear_speculation): Break out of ...
11849 (get_class_context): ... here; speed up handling obviously useless
11850 speculations.
11851 (odr_type_warn_count, decl_warn_count): New structures.
11852 (final_warning_record): New structure.
11853 (final_warning_records): New static variable.
11854 (possible_polymorphic_call_targets): Cleanup handling of
11855 speculative info; do not build speculation when user do not care;
11856 record info about warnings when asked for.
11857 (add_decl_warning): New function.
11858 (type_warning_cmp): New function.
11859 (decl_warning_cmp): New function.
11860 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11861 (gate): Enable pass when warnings are requested.
11862 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11863 options.
11864
11865 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11866
11867 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11868 Fix cast.
11869 (hash_map::remove): New method.
11870 (hash_map::traverse): New method.
11871 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11872 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11873 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11874 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11875 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11876 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11877 pointer_map.
11878
11879 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11880
11881 * hash-set.h: new File.
11882 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11883 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11884 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11885 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11886 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11887 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11888 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11889 varpool.c: Use hash_set instead of pointer_set.
11890
11891 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11892
11893 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11894
11895 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11896
11897 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11898 for frame access when strict_p is false.
11899
11900 2014-08-01 Renlin Li <renlin.li@arm.com>
11901 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11902
11903 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11904 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11905 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11906 Declaration.
11907 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11908 predicate.
11909 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11910 aarch64_mem_pair_offset.
11911
11912 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11913
11914 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11915 offset.
11916 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11917 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11918
11919 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11920
11921 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11922
11923 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11924
11925 PR regression/61510
11926 * cgraphunit.c (analyze_functions): Use get_create rather than get
11927 for decls which are clones of abstract functions.
11928
11929 2014-08-01 Martin Liska <mliska@suse.cz>
11930
11931 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11932 * ipa-prop.h (count_formal_params): Global function created from static.
11933 * ipa-prop.c (count_formal_params): Likewise.
11934 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11935 profiles for semantically equivalent functions.
11936 * passes.c (do_per_function): If we load body of a function
11937 during WPA, this condition should behave same.
11938 * varpool.c (ctor_for_folding): More tolerant assert for variable
11939 aliases created during WPA.
11940
11941 2014-08-01 Martin Liska <mliska@suse.cz>
11942
11943 * doc/invoke.texi (Options That Control Optimization): Documentation
11944 for -foptimize-strlen introduced. Optimization levels default options
11945 fixed.
11946
11947 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11948
11949 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11950 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11951 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11952 type to bool.
11953 * stor-layout.h (min_align_of_type): New prototype.
11954 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11955 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11956 check.
11957 * ubsan.c: Include builtins.h.
11958 (ubsan_expand_bounds_ifn): Change return type to bool,
11959 always return true.
11960 (ubsan_expand_null_ifn): Change return type to bool, change
11961 argument to gimple_stmt_iterator *. Handle both null and alignment
11962 sanitization, take type from ckind argument's type rather than
11963 first argument.
11964 (instrument_member_call): Removed.
11965 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11966 Handle both null and alignment sanitization, don't say whole
11967 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11968 call instead of 2 argument.
11969 (instrument_null): Adjust instrument_mem_ref caller. Don't
11970 instrument calls here.
11971 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11972 like SANITIZE_NULL.
11973 * stor-layout.c (min_align_of_type): New function.
11974 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11975 Or it into SANITIZE_UNDEFINED.
11976 * doc/invoke.texi (-fsanitize=alignment): Document.
11977
11978 2014-07-31 Andi Kleen <ak@linux.intel.com>
11979
11980 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11981
11982 2014-07-31 Andi Kleen <ak@linux.intel.com>
11983
11984 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11985 inchash.
11986 (vn_reference_compute_hash): Dito.
11987 (vn_nary_op_compute_hash): Dito.
11988 (vn_phi_compute_hash): Dito.
11989 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11990
11991 2014-07-31 Andi Kleen <ak@linux.intel.com>
11992
11993 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11994 Rename to inchash:add_expr_commutative. Convert to inchash.
11995 (iterative_hash_hashable_expr): Rename to
11996 inchash:add_hashable_expr. Convert to inchash.
11997 (avail_expr_hash): Dito.
11998
11999 2014-07-31 Andi Kleen <ak@linux.intel.com>
12000
12001 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12002 Convert to inchash.
12003
12004 2014-07-31 Andi Kleen <ak@linux.intel.com>
12005
12006 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12007
12008 2014-07-31 Andi Kleen <ak@linux.intel.com>
12009
12010 * Makefile.in (OBJS): Add rtlhash.o
12011 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12012 (loc_checksum): Dito.
12013 (loc_checksum_ordered): Dito.
12014 (hash_loc_operands): Dito.
12015 (hash_locs): Dito.
12016 (hash_loc_list): Dito.
12017 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12018 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12019 * rtlhash.c: New file.
12020 * rtlhash.h: New file.
12021
12022 2014-07-31 Andi Kleen <ak@linux.intel.com>
12023
12024 * inchash.h (inchash): Change inchash class to namespace.
12025 (class hash): ... Rename from inchash.
12026 (add_object): Move from macro to class template.
12027 * lto-streamer-out.c (hash_tree): Change inchash
12028 to inchash::hash.
12029 * tree.c (build_type_attribute_qual_variant): Dito.
12030 (type_hash_list): Dito.
12031 (attribute_hash_list): Dito.
12032 (iterative_hstate_expr): Rename to inchash::add_expr
12033 (build_range_type_1): Change inchash to inchash::hash
12034 and use hash::add_expr.
12035 (build_array_type_1): Dito.
12036 (build_function_type): Dito
12037 (build_method_type_directly): Dito.
12038 (build_offset_type): Dito.
12039 (build_complex_type): Dito.
12040 (make_vector_type): Dito.
12041 * tree.h (iterative_hash_expr): Dito.
12042
12043 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
12044
12045 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12046
12047 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12048
12049 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12050 correct alphabetical position.
12051 (vpaddd_f64): Rewrite using builtins.
12052 (vpaddd_s64): Move to correct alphabetical position.
12053 (vpaddd_u64): New.
12054
12055 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
12056
12057 PR target/61844
12058 * config/sh/sh.c (sh_legitimate_address_p,
12059 sh_legitimize_reload_address): Handle reg+reg address modes when
12060 ALLOW_INDEXED_ADDRESS is false.
12061 * config/sh/predicates.md (general_movsrc_operand,
12062 general_movdst_operand): Likewise.
12063
12064 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12065
12066 * config/aarch64/aarch64-builtins.c
12067 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12068 BYTES_BIG_ENDIAN.
12069
12070 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12071
12072 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12073 the generated mask based on BYTES_BIG_ENDIAN.
12074 (aarch64_simd_check_vect_par_cnst_half): New.
12075 * config/aarch64/aarch64-protos.h
12076 (aarch64_simd_check_vect_par_cnst_half): New.
12077 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12078 the check out to aarch64_simd_check_vect_par_cnst_half.
12079 (vect_par_cnst_lo_half): Likewise.
12080 * config/aarch64/aarch64-simd.md
12081 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12082 (move_hi_quad_<mode>): Always generate a low mask.
12083
12084 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12085
12086 * doc/invoke.texi (AVR Options): Add documentation about
12087 __AVR_DEVICE_NAME__ built-in macro.
12088
12089 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12090
12091 PR target/61948
12092 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12093 constraints are satisfied.
12094 (<shift>di3_neon): Likewise.
12095
12096 2014-07-31 Richard Biener <rguenther@suse.de>
12097
12098 PR tree-optimization/61964
12099 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12100 by structural equality.
12101
12102 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12103
12104 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12105 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12106 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12107 New enums.
12108 * gcc.c (sanitize_spec_function): Support new option.
12109 (SANITIZER_SPEC): Remove now redundant check.
12110 * opts.c (common_handle_option): Support new option.
12111 (finish_options): Check for incompatibilities.
12112 * toplev.c (process_options): Split userspace-specific checks.
12113
12114 2014-07-31 Richard Biener <rguenther@suse.de>
12115
12116 * lto-streamer.h (struct output_block): Remove global.
12117 (struct data_in): Remove labels, num_named_labels and
12118 num_unnamed_labels.
12119 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12120 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12121
12122 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12123
12124 PR c++/60517
12125 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12126 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12127 (isolate_path): New argument to avoid inserting a trap.
12128 (find_implicit_erroneous_behaviour): Handle returning the address
12129 of a local variable.
12130 (find_explicit_erroneous_behaviour): Likewise.
12131
12132 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12133
12134 PR lto/61868
12135 * toplev.c (init_random_seed): Move piece of code never called to
12136 set_random_seed.
12137 (set_random_seed): see above.
12138
12139 2014-07-31 Tom de Vries <tom@codesourcery.com>
12140
12141 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12142
12143 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12144
12145 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12146 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12147
12148 2014-07-31 Richard Biener <rguenther@suse.de>
12149
12150 * data-streamer.h (streamer_write_data_stream): Declare here,
12151 renamed from ...
12152 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12153 * lto-cgraph.c (lto_output_node): Adjust.
12154 (lto_output_varpool_node): Likewise.
12155 * data-streamer-out.c (streamer_string_index): Likewise.
12156 (streamer_write_data_stream, lto_append_block): Move from ...
12157 * lto-section-out.c (lto_output_data_stream,
12158 lto_append_block): ... here.
12159
12160 2014-07-30 Mike Stump <mikestump@comcast.net>
12161
12162 * configure.ac: Also check for popen.
12163 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12164 * configure: Regenerate.
12165 * config.in: Regenerate.
12166
12167 2014-07-30 Martin Jambor <mjambor@suse.cz>
12168
12169 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12170 parameter to gimple.
12171
12172 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12173
12174 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12175 address as second parameter to __tpf_eh_return routine.
12176
12177 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12178
12179 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12180 Thumb2.
12181
12182 2014-07-30 Tom Tromey <tromey@redhat.com>
12183
12184 PR c/59855
12185 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12186 * doc/extend.texi (Type Attributes): Document designated_init
12187 attribute.
12188
12189 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12190
12191 * graphite-isl-ast-to-gimple.c:
12192 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12193 (gcc_expression_from_isl_expression): Pass type to
12194 gcc_expression_from_isl_ast_expr_id.
12195
12196 2014-07-30 Richard Biener <rguenther@suse.de>
12197
12198 * lto-streamer.h (lto_write_data): New function.
12199 * langhooks.c (lhd_append_data): Do not free block.
12200 * lto-section-out.c (lto_write_data): New function writing
12201 raw data to the current section.
12202 (lto_write_stream): Adjust for langhook semantic change.
12203 (lto_destroy_simple_output_block): Write header directly.
12204 * lto-opts.c (lto_write_options): Write options directly.
12205 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12206 (lto_output_toplevel_asms): Likewise.
12207 (copy_function_or_variable): Copy data directly.
12208 (write_global_references): Output index table directly.
12209 (lto_output_decl_state_refs): Likewise.
12210 (write_symbol): Write data directly.
12211 (produce_symtab): Adjust.
12212 (produce_asm_for_decls): Output header and refs directly.
12213
12214 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12215
12216 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12217 to speculative_targets
12218 (get_class_context): Fix handling of contextes without outer type;
12219 avoid matching non-polymorphic types in LTO.
12220 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12221 parameter to speculative_targetsp; handle speculation.
12222 (dump_possible_polymorphic_call_targets): Update dumping.
12223
12224 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12225
12226 * common.opt (Wodr): Enable by default.
12227
12228 2014-07-29 Olivier Hainque <hainque@adacore.com>
12229
12230 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12231
12232 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12233
12234 PR bootstrap/61914
12235 * gengtype.c (strtoken): New function.
12236 (create_user_defined_type): Replace strtok with strtoken.
12237
12238 2014-07-29 Nathan Sidwell <nathan@acm.org>
12239
12240 * gcov-io.c (gcov_var): Make hidden.
12241 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12242 (gcov_do_dump): Declare.
12243 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12244
12245 2014-07-29 Martin Jambor <mjambor@suse.cz>
12246
12247 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12248 parameter to gimple.
12249 (sra_modify_assign): Likewise.
12250
12251 2014-07-29 Richard Biener <rguenther@suse.de>
12252
12253 PR middle-end/52478
12254 * expr.c (expand_expr_real_2): Revert last change.
12255
12256 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12257
12258 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12259 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12260 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12261 call.
12262 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12263 (contains_type_p): Forward declare.
12264 (polymorphic_call_target_hasher::hash): Hash speculative info.
12265 (polymorphic_call_target_hasher::equal): Compare speculative info.
12266 (get_class_context): Handle speuclation.
12267 (contains_type_p): Update.
12268 (get_polymorphic_call_info_for_decl): Update.
12269 (walk_ssa_copies): Break out from ...
12270 (get_polymorphic_call_info): ... here; set speculative context
12271 before giving up.
12272 * ipa-prop.c (ipa_write_indirect_edge_info,
12273 ipa_read_indirect_edge_info): Stream speculative context.
12274 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12275 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12276 SPECULATIVE_MAYBE_DERIVED_TYPE).
12277 (possible_polymorphic_call_targets overriders): Update.
12278 (dump_possible_polymorphic_call_targets overriders): Update.
12279 (dump_possible_polymorphic_call_target_p overriders): Update.
12280
12281 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12282
12283 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12284 ipa-devirt path; fix thinko there.
12285
12286 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12287
12288 * config/i386/i386.c (ix86_return_in_memory): Replace one
12289 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12290
12291 2014-07-28 Marek Polacek <polacek@redhat.com>
12292
12293 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12294
12295 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12296
12297 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12298 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12299 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12300 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12301 (USE_LD_AS_NEEDED): Likewise.
12302 (ASM_APP_ON): Likewise.
12303 (ASM_APP_OFF): Likewise.
12304 (TARGET_POSIX_IO): Likewise.
12305 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12306 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12307 (USE_LD_AS_NEEDED): Likewise.
12308 (ASM_APP_ON): Likewise.
12309 (ASM_APP_OFF): Likewise.
12310 (TARGET_POSIX_IO): Likewise.
12311
12312 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12313
12314 PR middle-end/61734
12315 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12316 operators other than the equality operators.
12317
12318 2014-07-28 Richard Biener <rguenther@suse.de>
12319
12320 PR middle-end/52478
12321 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12322 sure to register SImode ones, not only >= word_mode ones.
12323 * expr.c (expand_expr_real_2): When expanding -ftrapv
12324 binops do not use OPTAB_LIB_WIDEN.
12325
12326 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12327
12328 PR middle-end/61919
12329 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12330 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12331 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12332 inserting them in the insn stream.
12333
12334 2014-07-28 Marek Polacek <polacek@redhat.com>
12335
12336 PR middle-end/61913
12337 * common.opt (Wodr): Add Var.
12338
12339 2014-07-28 Richard Biener <rguenther@suse.de>
12340
12341 PR tree-optimization/61921
12342 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12343 if there is a varpool node before dereferencing it.
12344
12345 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12346
12347 * graphite-sese-to-poly.c:
12348 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12349 id of the pbb), which contains pointer to the pbb1.
12350
12351 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12352
12353 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12354
12355 * graphite-isl-ast-to-gimple.c:
12356 (graphite_create_new_guard): New function.
12357 (translate_isl_ast_node_if): New function.
12358 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12359
12360 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12361
12362 2014-07-27 Anthony Green <green@moxielogic.com>
12363
12364 * config.gcc: Add moxie-*-moxiebox* configuration.
12365 * config/moxie/moxiebox.h: New file.
12366
12367 2014-07-26 Andrew Pinski <apinski@cavium.com>
12368
12369 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12370 from the read only register.
12371
12372 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12373
12374 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12375 as the allocation class if it isn't likely to be spilled.
12376
12377 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12378
12379 * rtl.h (tls_referenced_p): Declare.
12380 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12381 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12382 (mips_cannot_force_const_mem): Use tls_referenced_p.
12383 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12384 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12385 instead of pa_tls_referenced_p.
12386 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12387 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12388 (pa_legitimate_constant_p): Likewise.
12389 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12390 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12391 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12392 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12393 rs6000_tls_referenced_p.
12394 (rs6000_tls_symbol_ref_1): Delete.
12395
12396 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12397
12398 PR target/44551
12399 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12400 Optimize inverse of a VEC_CONCAT.
12401
12402 2014-07-25 Xinliang David Li <davidxl@google.com>
12403
12404 * params.def: New parameter.
12405 * coverage.c (get_coverage_counts): Check new flag.
12406 (coverage_compute_profile_id): Check new flag.
12407 (coverage_begin_function): Check new flag.
12408 (coverage_end_function): Check new flag.
12409 * value-prof.c (coverage_node_map_initialized_p): New function.
12410 (init_node_map): Populate map with all functions.
12411 * doc/invoke.texi: Document new parameter.
12412
12413 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12414 Richard Biener <rguenther@suse.de>
12415
12416 * lto-streamer-out.c (struct sccs): Turn to ...
12417 (class DFS): ... this one; refactor the DFS walk so it can
12418 be re-done on per-SCC basis.
12419 (DFS::DFS): New constructor.
12420 (DFS::~DFS): New destructor.
12421 (hash_tree): Add new MAP argument holding in-SCC hash values;
12422 remove POINTER_TYPE hashing hack.
12423 (scc_entry_compare): Rename to ...
12424 (DFS::scc_entry_compare): ... this one.
12425 (hash_scc): Rename to ...
12426 (DFS::hash_scc): ... this one; pass output_block instead
12427 of streamer_cache; work harder to get unique and stable SCC
12428 hashes.
12429 (DFS_write_tree): Rename to ...
12430 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12431 (lto_output_tree): Update.
12432
12433 2014-07-25 Andi Kleen <ak@linux.intel.com>
12434
12435 * lto-streamer-out.c (hash_tree): Convert to inchash.
12436
12437 2014-07-25 Andi Kleen <ak@linux.intel.com>
12438
12439 * tree.c (build_type_attribute_qual_variant): Use inchash.
12440 (type_hash_list): Dito.
12441 (attribute_hash_list): Dito
12442 (iterative_hstate_expr): Dito.
12443 (iterative_hash_expr): Dito.
12444 (build_range_type_1): Dito.
12445 (build_array_type_1): Dito.
12446 (build_function_type): Dito.
12447 (build_method_type_directly): Dito.
12448 (build_offset_type): Dito.
12449 (build_complex_type): Dito.
12450 (make_vector_type): Dito.
12451 * tree.h (iterative_hash_expr): Add compat wrapper.
12452 (iterative_hstate_expr): Add.
12453
12454 2014-07-25 Andi Kleen <ak@linux.intel.com>
12455
12456 * Makefile.in (OBJS): Add inchash.o.
12457 (PLUGIN_HEADERS): Add inchash.h.
12458 * ipa-devirt.c: Include inchash.h.
12459 * lto-streamer-out.c: Dito.
12460 * tree-ssa-dom.c: Dito.
12461 * tree-ssa-pre.c: Dito.
12462 * tree-ssa-sccvn.c: Dito.
12463 * tree-ssa-tail-merge.c: Dito.
12464 * asan.c: Dito.
12465 * tree.c (iterative_hash_hashval_t): Move to ...
12466 (iterative_hash_host_wide_int): Move to ...
12467 * inchash.c: Here. New file.
12468 * tree.h (iterative_hash_hashval_t): Move to ...
12469 (iterative_hash_host_wide_int): Move to ...
12470 * inchash.h: Here. New file.
12471
12472 2014-07-25 Richard Biener <rguenther@suse.de>
12473
12474 PR middle-end/61762
12475 PR middle-end/61894
12476 * fold-const.c (native_encode_int): Add and handle offset
12477 parameter to do partial encodings of expr.
12478 (native_encode_fixed): Likewise.
12479 (native_encode_real): Likewise.
12480 (native_encode_complex): Likewise.
12481 (native_encode_vector): Likewise.
12482 (native_encode_string): Likewise.
12483 (native_encode_expr): Likewise.
12484 * fold-const.c (native_encode_expr): Add offset parameter
12485 defaulting to -1.
12486 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12487 (fold_ctor_reference): Handle all reads from tcc_constant
12488 ctors.
12489
12490 2014-07-25 Richard Biener <rguenther@suse.de>
12491
12492 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12493 as possibly unused.
12494
12495 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12496
12497 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12498
12499 2014-07-24 Kyle McMartin <kyle@redhat.com>
12500
12501 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12502
12503 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12504
12505 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12506 Add prototype.
12507 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12508 function.
12509 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12510 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12511 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12512
12513 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12514
12515 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12516 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12517 aggregate types. Instead, *all* aggregate types, except for single-
12518 element or homogeneous float/vector aggregates, are quadword-aligned
12519 if required by their type alignment. Issue -Wpsabi note when a type
12520 is now treated differently than before.
12521
12522 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12523
12524 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12525 does not fit fully into floating-point registers, and there is still
12526 space in the register parameter area, use GPRs to pass those parts
12527 of the argument. Issue -Wpsabi note if any parameter is now treated
12528 differently than before.
12529 (rs6000_arg_partial_bytes): Update.
12530
12531 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12532
12533 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12534
12535 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12536
12537 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12538 * toplev.c (initialize_rtl): Don't use it. Move previously
12539 "language-dependent" calls to...
12540 (backend_init): ...here.
12541 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12542 Assert that RTL initialization hasn't happend yet.
12543
12544 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12545
12546 PR rtl-optimization/61629
12547 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12548 they have already been initialized.
12549
12550 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12551
12552 PR middle-end/61268
12553 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12554 DECL_INCOMING_RTL and entry_parm.
12555 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12556 * calls.c (load_register_parameters): Likewise argument values.
12557 (emit_library_call_value_1, store_one_arg): Likewise argument
12558 save areas.
12559 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12560 stack slot.
12561 * explow.c (validize_mem): Modify the argument in-place.
12562
12563 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12564
12565 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12566 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12567
12568 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12569
12570 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12571 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12572
12573 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12574
12575 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12576 (aarch64_save_callee_saves): New parameter "skip_wb".
12577 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12578
12579 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12580
12581 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12582 "wb_candidate2".
12583 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12584
12585 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12586
12587 * graphite-isl-ast-to-gimple.c:
12588 (graphite_create_new_loop): Add calling of isl_id_free to properly
12589 decrement reference counts.
12590
12591 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12592
12593 2014-07-24 Martin Liska <mliska@suse.cz>
12594 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12595 function used.
12596 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12597 (rs6000_code_end): Likewise.
12598
12599 2014-07-24 Martin Liska <mliska@suse.cz>
12600
12601 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12602 symtab_node funtion used.
12603 (rs6000_xcoff_declare_object_name): Likewise.
12604
12605 2014-07-24 Martin Liska <mliska@suse.cz>
12606
12607 * cgraphunit.c (compile): Correct function used.
12608
12609 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12610
12611 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12612 as non-indexable.
12613
12614 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12615
12616 PR lto/61802
12617 * varasm.c (bss_initializer_p): Handle offlined ctors.
12618 (align_variable, get_variable_align): Likewise.
12619 (make_decl_one_only): Likewise.
12620 (default_binds_local_p_1): Likewise.
12621 (decl_binds_to_current_def_p): Likewise.
12622 (get_variable_section): Get constructor if it is offlined.
12623 (assemble_variable_contents): Sanity check that the caller
12624 streamed in the ctor in LTO.
12625
12626 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12627
12628 * graphite-isl-ast-to-gimple.c:
12629 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12630 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12631 isl_ast_op_pdiv_r to the different case.
12632
12633 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12634
12635 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12636
12637 PR middle-end/61876
12638 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12639 when flag_errno_math is on.
12640
12641 2014-07-24 Martin Liska <mliska@suse.cz>
12642
12643 * cgraph.h (varpool_node):
12644 (availability get_availability (void)):
12645 created from cgraph_variable_initializer_availability
12646 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12647 created from: cgraph_variable_initializer_availability
12648 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12649 (void finalize_named_section_flags (void)):
12650 created from varpool_finalize_named_section_flags
12651 (bool assemble_decl (void)): created from varpool_assemble_decl
12652 (void analyze (void)): created from varpool_analyze_node
12653 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12654 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12655 (void remove_initializer (void)): created from varpool_remove_initializer
12656 (tree get_constructor (void)): created from varpool_get_constructor
12657 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12658 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12659 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12660 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12661 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12662 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12663 (static bool output_variables (void)): created from varpool_output_variables
12664 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12665 created from varpool_extra_name_alias
12666 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12667 (static void dump_varpool (FILE *f)): created from dump_varpool
12668 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12669 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12670 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12671 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12672 (void assemble_aliases (void)): created from assemble_aliases
12673
12674 2014-07-24 Martin Liska <mliska@suse.cz>
12675
12676 * cgraph.h (symtab_node):
12677 (void register_symbol (void)): created from symtab_register_node
12678 (void remove (void)): created from symtab_remove_node
12679 (void dump (FILE *f)): created from dump_symtab_node
12680 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12681 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12682 (struct ipa_ref *add_reference (symtab_node *referred_node,
12683 enum ipa_ref_use use_type)): created from add_reference
12684 (struct ipa_ref *add_reference (symtab_node *referred_node,
12685 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12686 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12687 gimple stmt)): created from maybe_add_reference
12688 (bool semantically_equivalent_p (symtab_node *target)): created from
12689 symtab_semantically_equivalent_p
12690 (void remove_from_same_comdat_group (void)): created from
12691 remove_from_same_comdat_group
12692 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12693 symtab_add_to_same_comdat_group
12694 (void dissolve_same_comdat_group_list (void)): created from
12695 symtab_dissolve_same_comdat_group_list
12696 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12697 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12698 created from symtab_alias_ultimate_target
12699 (inline symtab_node *next_defined_symbol (void)): created from
12700 symtab_next_defined_symbol
12701 (bool resolve_alias (symtab_node *target)): created from
12702 symtab_resolve_alias
12703 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12704 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12705 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12706 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12707 (void set_section (const char *section)): created from set_section_1
12708 (enum availability get_availability (void)): created from symtab_node_availability
12709 (void make_decl_local (void)): created from symtab_make_decl_local
12710 (bool real_symbol_p (void)): created from symtab_read_node
12711 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12712 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12713 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12714 symtab_in_same_comdat_p;
12715 (bool address_taken_from_non_vtable_p (void)): created from
12716 address_taken_from_non_vtable_p
12717 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12718 (static void dump_table (FILE *)): created from dump_symtab
12719 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12720 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12721 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12722 symtab_used_from_object_file_p
12723 (void dump_base (FILE *)): created from dump_symtab_base
12724 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12725 (void unregister (void)): created from symtab_unregister_node
12726 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12727 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12728 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12729 symtab_nonoverwritable_alias_1
12730 * cgraph.h (cgraph_node):
12731 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12732 created from cgraph_remove_node_and_inline_clones
12733 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12734 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12735 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12736 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12737 created from cgraph_function_node
12738 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12739 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12740 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12741 created from cgraph_create_clone
12742 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12743 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12744 created from cgraph_create_virtual_clone
12745 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12746 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12747 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12748 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12749 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12750 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12751 created from cgraph_function_version_info
12752 (struct cgraph_function_version_info *insert_new_function_version (void)):
12753 created from insert_new_cgraph_node_version
12754 (struct cgraph_function_version_info *function_version (void)): created from
12755 get_cgraph_node_version
12756 (void analyze (void)): created from analyze_function
12757 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12758 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12759 tree real_alias) cgraph_add_thunk
12760 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12761 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12762 created from cgraph_function_or_thunk_node
12763 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12764 created from expand_thunk
12765 (void reset (void)): created from cgraph_reset_node
12766 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12767 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12768 (void remove (void)): created from cgraph_remove_node
12769 (void dump (FILE *f)): created from dump_cgraph_node
12770 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12771 (bool get_body (void)): created from cgraph_get_body
12772 (void release_body (void)): created from cgraph_release_function_body
12773 (void unnest (void)): created from cgraph_unnest_node
12774 (void make_local (void)): created from cgraph_make_node_local
12775 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12776 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12777 gcov_type count, int freq)): created from cgraph_create_edge
12778 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12779 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12780 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12781 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12782 created from cgraph_create_edge_including_clones
12783 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12784 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12785 (void remove_callers (void)): created from cgraph_node_remove_callers
12786 (void remove_callees (void)): created from cgraph_node_remove_callees
12787 (enum availability get_availability (void)): created from cgraph_function_body_availability
12788 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12789 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12790 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12791 (void call_duplication_hooks (cgraph_node *node2)): created from
12792 cgraph_call_node_duplication_hooks
12793 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12794 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12795 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12796 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12797 (void call_function_insertion_hooks (void)):
12798 created from cgraph_call_function_insertion_hooks
12799 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12800 (bool local_p (void)): created from cgraph_local_node
12801 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12802 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12803 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12804 (inline bool only_called_directly_or_aliased_p (void)):
12805 created from cgraph_only_called_directly_or_aliased_p
12806 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12807 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12808 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12809 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12810 (bool can_remove_if_no_direct_calls_p (void)):
12811 created from cgraph_can_remove_if_no_direct_calls_p
12812 (inline bool has_gimple_body_p (void)):
12813 created from cgraph_function_with_gimple_body_p
12814 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12815 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12816 (static inline void debug_cgraph (void)): created from debug_cgraph
12817 (static void record_function_versions (tree decl1, tree decl2)):
12818 created from record_function_versions
12819 (static void delete_function_version (tree decl)):
12820 created from delete_function_version
12821 (static void add_new_function (tree fndecl, bool lowered)):
12822 created from cgraph_add_new_function
12823 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12824 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12825 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12826 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12827 (static cgraph_node *get_for_asmname (tree asmname)):
12828 created from cgraph_node_for_asm
12829 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12830 created from cgraph_same_body_alias
12831 (static bool used_from_object_file_p_worker (cgraph_node *node,
12832 void *): new function
12833 (static bool non_local_p (cgraph_node *node, void *)):
12834 created from cgraph_non_local_node_p_1
12835 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12836 created from verify_cgraph
12837 (static bool make_local (cgraph_node *node, void *)):
12838 created from cgraph_make_node_local
12839 (static cgraph_node *create_alias (tree alias, tree target)):
12840 created from cgraph_create_function_alias
12841 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12842 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12843 created from cgraph_create_edge_1
12844 * cgraph.h (varpool_node):
12845 (void remove (void)): created from varpool_remove_node
12846 (void dump (FILE *f)): created from dump_varpool_node
12847
12848 2014-07-24 Richard Biener <rguenther@suse.de>
12849
12850 PR ipa/61823
12851 * tree-ssa-structalias.c (create_variable_info_for_1):
12852 Use varpool_get_constructor.
12853 (create_variable_info_for): Likewise.
12854
12855 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12856
12857 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12858 subtract outgoing area size when restoring stack_pointer_rtx.
12859
12860 2014-07-24 Nick Clifton <nickc@redhat.com>
12861
12862 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12863 that operations are taking place in parallel.
12864 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12865
12866 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12867
12868 * omp-low.c (extract_omp_for_data): Add missing break statement.
12869
12870 2014-07-24 Richard Biener <rguenther@suse.de>
12871
12872 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12873 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12874 and adjust MOVE_RATIO query accordingly.
12875 (estimate_num_insns): Adjust callers.
12876 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12877 * ipa-cp.c (gather_context_independent_values,
12878 estimate_local_effects): Likewise.
12879 * ipa-split.c (consider_split): Likewise.
12880
12881 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12882
12883 * config/i386/driver-i386.c: Remove names of unused arguments and
12884 unnecessary unused attributes.
12885 * config/i386/host-mingw32.c: Likewise.
12886 * config/i386/i386.c: Likewise.
12887 * config/i386/winnt-stubs.c: Likewise.
12888 * config/i386/winnt.c: Likewise.
12889
12890 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12891
12892 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12893 (aarch64_gen_loadwb_pair): New helper function.
12894 (aarch64_expand_epilogue): Simplify code using new helper functions.
12895 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12896
12897 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12898
12899 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12900 (aarch64_gen_storewb_pair): New helper function.
12901 (aarch64_expand_prologue): Simplify code using new helper functions.
12902 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12903
12904 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12905
12906 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12907 Rename to aarch64_save_callee_saves, remove restore code.
12908 (aarch64_restore_callee_saves): New function.
12909
12910 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12911
12912 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12913 (aarch64_save_callee_saves): New function to handle reg save
12914 for both core and vectore regs.
12915
12916 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12917
12918 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12919 (aarch64_gen_store_pair): New helper function.
12920 (aarch64_save_or_restore_callee_save_registers)
12921 (aarch64_save_or_restore_fprs): Use new helper functions.
12922
12923 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12924
12925 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12926 (aarch64_save_or_restore_callee_save_registers)
12927 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12928
12929 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12930
12931 * config/aarch64/aarch64.c
12932 (aarch64_save_or_restore_callee_save_registers)
12933 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12934
12935 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12936
12937 * config/aarch64/aarch64.c
12938 (aarch64_save_or_restore_callee_save_registers)
12939 (aarch64_save_or_restore_fprs): Remove 'increment'.
12940
12941 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12942
12943 * config/aarch64/aarch64.c
12944 (aarch64_save_or_restore_callee_save_registers)
12945 (aarch64_save_or_restore_fprs): Use register offset in
12946 cfun->machine->frame.reg_offset.
12947
12948 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12949
12950 * config/aarch64/aarch64.c
12951 (aarch64_save_or_restore_callee_save_registers)
12952 (aarch64_save_or_restore_fprs): Remove base_rtx.
12953
12954 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12955
12956 * config/aarch64/aarch64.c
12957 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12958 to 'start_offset'. Remove local variable 'start_offset'.
12959
12960 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12961
12962 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12963 type to HOST_WIDE_INT.
12964
12965 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12966
12967 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12968 (aarch64_save_or_restore_fprs)
12969 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12970
12971 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12972
12973 * config/arm/t-rtems-eabi: Add
12974 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12975 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12976 mbig-endian/mthumb/march=armv7-r, and
12977 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12978 multilibs.
12979
12980 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12981 Chris Johns <chrisj@rtems.org>
12982 Joel Sherrill <joel.sherrill@oarcorp.com>
12983
12984 * config.gcc: Add nios2-*-rtems*.
12985 * config/nios2/rtems.h: New file.
12986 * gcc/config/nios2/t-rtems: New file.
12987
12988 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12989
12990 PR target/61396
12991 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12992 constant numbers, not general constants.
12993 (rs6000_expand_vector_init): Ditto.
12994
12995 2014-07-23 Nathan Sidwell <nathan@acm.org>
12996
12997 * gcov-tool.c (gcov_list): Declare here.
12998 (set_gcov_list): Remove.
12999 (gcov_output_files): Set gcov_list directly.
13000
13001 2014-07-23 Host Schirmeier <horst@schirmeier.com>
13002
13003 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13004
13005 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13006
13007 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13008 callee-saved registers are available for padding purpose
13009 and r3 is not mandatory, then prefer use those callee-saved
13010 instead of r3.
13011
13012 2014-07-23 Richard Biener <rguenther@suse.de>
13013
13014 * params.def (PARAM_MAX_COMBINE_INSNS): New.
13015 * combine.c: Include statistics.h and params.h.
13016 (combine_instructions): Guard three and four insn combines
13017 with max-combine-insns value. Record statistics for combines
13018 performed.
13019 * doc/invoke.texi (max-combine-insns): Document new param.
13020
13021 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13022
13023 * graphite-isl-ast-to-gimple.c:
13024 (translate_isl_ast_node_block): New function.
13025 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13026
13027 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13028 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13029
13030 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13031
13032 * graphite-isl-ast-to-gimple.c:
13033 (get_max_schedule_dimensions): New function.
13034 (extend_schedule): Likewise.
13035 (generate_isl_schedule): Add calling of extend_schedule and
13036 get_max_schedule_dimensions.
13037
13038 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13039
13040 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13041 (case UNSPEC): Handle UNSPEC_RBIT.
13042
13043 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13044
13045 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13046 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13047
13048 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13049
13050 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13051
13052 2014-07-22 Roman Gareev <gareevroman@gmail.com>
13053
13054 * graphite-isl-ast-to-gimple.c:
13055 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13056 (ivs_params_clear):
13057 (build_iv_mapping): New function.
13058 (translate_isl_ast_node_user): Likewise.
13059 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13060
13061 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13062 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13063 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13064
13065 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13066
13067 PR target/55701
13068 * config/arm/arm.md (setmem): New pattern.
13069 * config/arm/arm-protos.h (struct tune_params): New fields.
13070 (arm_gen_setmem): New prototype.
13071 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13072 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13073 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13074 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13075 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13076 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13077 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13078 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13079 (arm_const_inline_cost): New function.
13080 (arm_block_set_max_insns): New function.
13081 (arm_block_set_non_vect_profit_p): New function.
13082 (arm_block_set_vect_profit_p): New function.
13083 (arm_block_set_unaligned_vect): New function.
13084 (arm_block_set_aligned_vect): New function.
13085 (arm_block_set_unaligned_non_vect): New function.
13086 (arm_block_set_aligned_non_vect): New function.
13087 (arm_block_set_vect, arm_gen_setmem): New functions.
13088
13089 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13090
13091 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13092
13093 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13094
13095 PR target/61855
13096 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13097 out of #ifdef __OPTIMIZE__.
13098
13099 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13100
13101 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13102 different trapping status if -fnon-call-exceptions is enabled.
13103
13104 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13105
13106 * expr.c (store_field): Handle VOIDmode for calls that return values
13107 in multiple locations.
13108
13109 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13110
13111 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13112 (altivec_vsldoi_<mode>): Likewise.
13113
13114 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13115
13116 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13117 to the number of characters in the line.
13118
13119 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13120
13121 * graphite-isl-ast-to-gimple.c: Add using of
13122 build_nonstandard_integer_type instead of int128_integer_type_node.
13123
13124 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13125
13126 * toplev.c (output_stack_usage): Adjust the location of the warning.
13127
13128 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13129
13130 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13131 (*membar_storeload): Disable for LEON3.
13132
13133 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13134
13135 PR rtl-optimization/61461
13136 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13137
13138 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13139
13140 PR target/61794
13141 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13142 Fix instruction constraint.
13143 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13144
13145 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13146
13147 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13148
13149 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13150
13151 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13152 GNU coding standards.
13153 (nds32_register_move_cost): Likewise.
13154 (nds32_memory_move_cost): Likewise.
13155 (nds32_address_cost): Likewise.
13156
13157 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13158
13159 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13160
13161 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13162
13163 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13164 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13165 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13166 (HAVE_sync_compare_and_swapqi): Define.
13167 (HAVE_sync_compare_and_swaphi): Likewise.
13168 (HAVE_sync_compare_and_swapsi): Likewise.
13169
13170 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13171
13172 * config/mips/p5600.md: Add missing cpu tests.
13173
13174 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13175
13176 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13177 (vmla_f64): Likewise.
13178 (vfms_f64): Likewise.
13179 (vmls_f64): Likewise.
13180
13181 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13182
13183 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13184 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13185
13186 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13187
13188 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13189 (vmlal_high_lane_s32): Likewise.
13190 (vmlal_high_lane_u16): Likewise.
13191 (vmlal_high_lane_u32): Likewise.
13192 (vmlsl_high_lane_s16): Likewise.
13193 (vmlsl_high_lane_s32): Likewise.
13194 (vmlsl_high_lane_u16): Likewise.
13195 (vmlsl_high_lane_u32): Likewise.
13196
13197 2014-07-17 Terry Guo <terry.guo@arm.com>
13198
13199 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13200 (alus_reg): Renamed to alus_sreg.
13201 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13202 from alu_reg to alu_sreg. Change type of dsp instructions from
13203 alu_reg to alu_dsp_reg.
13204 * config/arm/thumb1.md: Likewise.
13205 * config/arm/thumb2.md: Likewise.
13206 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13207 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13208 with alu_sreg and alus_sreg.
13209 * config/arm/arm1026ejs.md (alu_op): Likewise.
13210 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13211 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13212 * config/arm/fa526.md (526_alu_op): Likewise.
13213 * config/arm/fa606te.md (606te_alu_op): Likewise.
13214 * config/arm/fa626te.md (626te_alu_op): Likewise.
13215 * config/arm/fa726te.md (726te_alu_op): Likewise.
13216 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13217 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13218 alu_sreg, alu_dsp_reg and alus_sreg.
13219 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13220 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13221 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13222 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13223 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13224 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13225 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13226 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13227 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13228 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13229 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13230 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13231 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13232 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13233 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13234 alus_reg to alus_sreg.
13235
13236 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13237
13238 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13239 infinity format.
13240
13241 2014-07-17 Richard Biener <rguenther@suse.de>
13242
13243 PR rtl-optimization/61801
13244 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13245 don't set reg_pending_barrier if it appears in a debug-insn.
13246
13247 2014-07-16 DJ Delorie <dj@redhat.com>
13248
13249 * config/rx/rx.c (rx_option_override): Fix alignment values.
13250 (rx_align_for_label): Likewise.
13251
13252 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13253
13254 PR target/61737.
13255 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13256 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13257 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13258 functions.
13259 (cris_print_index, cris_print_operand, cris_constant_index_p)
13260 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13261 (cris_address_cost): Ditto last CONSTANT_P.
13262 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13263 callers changed. Yield cris_offsettable_symbol for non-PIC
13264 constant symbolic expressions including labels. Yield cris_unspec
13265 for all unspecs.
13266 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13267 target to pic_offset_table_rtx for calls that will likely go
13268 through PLT, const0_rtx when they can't. All callers changed.
13269 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13270 symbolic expressions to be PICified. Remove second, redundant,
13271 assert on can_create_pseudo_p returning non-zero. Use
13272 replace_equiv_address_nv, not replace_equiv_address, for final
13273 operand update.
13274 * config/cris/cris.md ("movsi"): Move variable t to pattern
13275 toplevel. Adjust assert for new cris_symbol_type member. Use
13276 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13277 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13278 for lapc stricter.
13279 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13280 ("call", "call_value"): Use second incoming operand as a marker
13281 for pic-offset-table-register being used.
13282 ("*expanded_call_non_v32", "*expanded_call_v32")
13283 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13284 second incoming operand to CALL, match cris_call_type_marker.
13285 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13286 ("*expanded_call_side"): Ditto. Fix typo in comment.
13287 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13288 CONSTANT_P.
13289 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13290 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13291 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13292 users changed. Add members cris_offsettable_symbol and cris_unspec.
13293 (cris_symbol_type): Rename from cris_pic_symbol_type.
13294 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13295 just CONSTANT_P.
13296 * config/cris/cris-protos.h (cris_symbol_type_of,
13297 cris_expand_pic_call_address): Adjust prototypes.
13298 (cris_legitimate_constant_p): New prototype.
13299
13300 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13301 an existing tmake_file. Don't add t-slibgcc and t-linux.
13302
13303 2014-07-17 Jason Merrill <jason@redhat.com>
13304
13305 PR c++/61623
13306 * symtab.c (symtab_remove_from_same_comdat_group): Also
13307 set_comdat_group to NULL_TREE.
13308 (verify_symtab): Fix diagnostic.
13309
13310 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13311
13312 PR target/61662
13313 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13314
13315 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13316
13317 Support location tracking for built-in macro tokens
13318 * input.h (is_location_from_builtin_token): New function declaration.
13319 * input.c (is_location_from_builtin_token): New function definition.
13320 * toplev.c (general_init): Tell libcpp what the pre-defined
13321 spelling location for built-in tokens is.
13322
13323 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13324
13325 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13326 on the FUNCTION_DECL.
13327
13328 2014-07-16 Richard Biener <rguenther@suse.de>
13329
13330 PR other/61782
13331 * doc/extend.texi (always_inline): Clarify.
13332
13333 2014-07-15 Eric Christopher <echristo@gmail.com>
13334
13335 * doc/invoke.texi (Link Options): Document -z option.
13336
13337 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13338
13339 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13340 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13341
13342 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13343
13344 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13345
13346 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13347
13348 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13349 varpool_assemble_decl.
13350 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13351 true.
13352
13353 2014-07-15 Michael Matz <matz@suse.de>
13354
13355 PR rtl-optimization/61772
13356 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13357
13358 2014-07-15 Richard Biener <rguenther@suse.de>
13359
13360 * opts.c (default_options_table): Disable bit-ccp at -Og.
13361
13362 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13363
13364 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13365
13366 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13367
13368 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13369 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13370 call langhook for unknown declaration.
13371 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13372 * tree.h (DECL_ARGUMENTS): Update.
13373 * print-tree.c (print_node): Update.
13374 * tree-core.h (tree_decl_non_common): Remove arguments.
13375 (tree_function_decl): Add arguments.
13376
13377 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13378
13379 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13380
13381 2014-07-14 Richard Biener <rguenther@suse.de>
13382
13383 PR tree-optimization/61779
13384 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13385 simplifying a condition.
13386
13387 2014-07-14 Richard Biener <rguenther@suse.de>
13388
13389 * builtins.c (c_strlen): Make only_value == 2 really only
13390 affect warning generation.
13391
13392 2014-07-14 Richard Biener <rguenther@suse.de>
13393
13394 PR tree-optimization/61757
13395 PR tree-optimization/61783
13396 PR tree-optimization/61787
13397 * tree-ssa-dom.c (record_equality): Revert canonicalization
13398 change and add comment.
13399 (propagate_rhs_into_lhs): Revert previous fix, removing
13400 loop depth restriction again.
13401
13402 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13403
13404 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13405 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13406 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13407 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13408 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13409 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13410 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13411
13412 2014-07-14 Richard Biener <rguenther@suse.de>
13413
13414 * cgraph.h (decl_in_symtab_p): Make inline.
13415
13416 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13417
13418 PR middle-end/61294
13419 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13420
13421 PR target/61656
13422 * config/i386/i386.c (classify_argument): Don't merge classes above
13423 number of words.
13424
13425 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13426
13427 * cgraph.h (symtab_node): Add nonzero_address.
13428 (decl_in_symtab_p): Break out from ...
13429 (symtab_get_node): ... here.
13430 * fold-const.c: Include cgraph.h
13431 (tree_single_nonzero_warnv_p): Use symtab to determine
13432 if symbol is non-zero.
13433 * symtab.c (symtab_node::nonzero_address): New method.
13434
13435 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13436
13437 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13438 forgotten in previous commit.
13439
13440 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13441
13442 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13443 on builtin types.
13444 * ipa-devirt.c: Include stor-layout.h and intl.h
13445 (odr_subtypes_equivalent_p): New function.
13446 (warn_odr): New function.
13447 (warn_type_mismatch): New function.
13448 (odr_types_equivalent_p): New function.
13449 (add_type_duplicate): Use it.
13450 * common.opt (Wodr): New flag.
13451 * doc/invoke.texi (Wodr): Document new warning.
13452
13453 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13454
13455 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13456 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13457 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13458 (varpool_get_constructor): Push CTORS_IN timevar.
13459 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13460
13461 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13462
13463 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13464 Remove VOID_FTYPE_PUSHORT.
13465 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13466 Change code to USHORT_FTYPE_VOID.
13467 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13468 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13469 (ix86_atomic_assign_expand_fenv): Update for
13470 __builtin_ia32_fnstsw changes.
13471 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13472 (fnstsw): Change operand 0 to nonimmediate operand.
13473
13474 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13475
13476 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13477 (varpool_get_constructor): New function.
13478 (varpool_ctor_useable_for_folding_p): Break out from ...
13479 (ctor_for_folding): ... here; use varpool_get_constructor.
13480 (varpool_assemble_decl): Likewise.
13481 * lto-streamer.h (struct output_block): Turn cgraph_node
13482 to symbol filed.
13483 (lto_input_variable_constructor): Declare.
13484 * ipa-visibility.c (function_and_variable_visibility): Use
13485 varpool_get_constructor.
13486 * cgraph.h (varpool_get_constructor): Declare.
13487 (varpool_ctor_useable_for_folding_p): New function.
13488 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13489 parameter; return error_mark_node for non-trivial constructors.
13490 (lto_write_tree_1, DFS_write_tree): Update use of
13491 get_symbol_initial_value.
13492 (output_function): Update initialization of symbol.
13493 (output_constructor): New function.
13494 (copy_function): Rename to ..
13495 (copy_function_or_variable): ... this one; handle vars too.
13496 (lto_output): Output variable sections.
13497 * lto-streamer-in.c (input_constructor): New function.
13498 (lto_read_body): Rename from ...
13499 (lto_read_body_or_constructor): ... this one; handle vars too.
13500 (lto_input_variable_constructor): New function.
13501 * ipa-prop.c (ipa_prop_write_jump_functions,
13502 ipa_prop_write_all_agg_replacement): Update.
13503 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13504 (output_cgraph_opt_summary): Set symbol to NULL.
13505
13506 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13507
13508 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13509 non-polymorphic types.
13510 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13511 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13512 of types is not polymorphic.
13513
13514 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13515
13516 * lra-constraints.c (remove_inheritance_pseudos): Process
13517 destination pseudo too.
13518
13519 2014-07-11 Rong Xu <xur@google.com>
13520
13521 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13522 commit r212448.
13523
13524 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13525
13526 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13527 * config/avr/avr-devices.c (AVR_MCU): Same.
13528 (avr_mcu_types): add text start value to end of device list.
13529 * config/avr/avr-mcus.def: Add text section start for all devices.
13530 (ata5782): Add new avr5 device.
13531 (ata5831): Same.
13532 * config/avr/avr-tables.opt: Regenerate.
13533 * config/avr/avr.h: Add declaration for text section start handler.
13534 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13535 SPEC functions.
13536 (LINK_SPEC): Include text section start handler to linker spec.
13537 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13538 pass -Ttext option to linker if the text section start for the device
13539 is not zero.
13540 * config/avr/t-multilib: Regenerate.
13541 * doc/avr-mmcu.texi: Regenerate.
13542
13543 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13544
13545 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13546 * config/rs6000/aix52.h (LINK_SPEC): Same.
13547 * config/rs6000/aix53.h (LINK_SPEC): Same.
13548 * config/rs6000/aix61.h (LINK_SPEC): Same.
13549 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13550
13551 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13552
13553 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13554 (graphite_verify): New function.
13555 (ivs_params_clear): New function.
13556 (gcc_expression_from_isl_ast_expr_id): New function.
13557 (gcc_expression_from_isl_expr_int): New function.
13558 (binary_op_to_tree): New function.
13559 (ternary_op_to_tree): New function.
13560 (unary_op_to_tree): New function.
13561 (nary_op_to_tree): New function.
13562 (gcc_expression_from_isl_expr_op): New function.
13563 (gcc_expression_from_isl_expression): New function.
13564 (graphite_create_new_loop): New function.
13565 (translate_isl_ast_for_loop): New function.
13566 (get_upper_bound): New function.
13567 (graphite_create_new_loop_guard): New function.
13568 (translate_isl_ast_node_for): New function.
13569 (translate_isl_ast): New function.
13570 (add_parameters_to_ivs_params): New function.
13571 (scop_to_isl_ast): New parameter ip.
13572 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13573
13574 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13575
13576 * config/xtensa/predicates.md (call expander): Update for
13577 DECL_SECTION_NAME being string.
13578
13579 2014-07-11 Richard Biener <rguenther@suse.de>
13580
13581 PR middle-end/61473
13582 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13583 can be implemented with a single load followed by a single store.
13584 (c_strlen): Only warn when only_value is not 2.
13585
13586 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13587
13588 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13589
13590 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13591
13592 PR target/61561
13593 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13594 (*movhi_bytes): Likewise.
13595 (*arm_movqi_insn): Likewise.
13596
13597 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13598
13599 PR target/56858
13600 * config/alpha/alpha.c: Include tree-pass.h, context.h
13601 and pass_manager.h.
13602 (pass_data_handle_trap_shadows): New pass.
13603 (pass_handle_trap_shadows::gate): New pass gate function.
13604 (make_pass_handle_trap_shadows): New function.
13605 (rest_of_handle_trap_shadows): Ditto.
13606
13607 (alpha_align_insns_1): Rename from alpha_align_insns.
13608 (pass_data_align_insns): New pass.
13609 (pass_align_insns::gate): New pass gate function.
13610 (make_pass_aling_insns): New function.
13611 (rest_of_align_insns): Ditto.
13612 (alpha_align_insns): Ditto.
13613
13614 (alpha_option_override): Declare handle_trap_shadows info
13615 and align_insns_info. Register handle_trap_shadows and align_insns
13616 passes here.
13617 (alpha_reorg): Do not call alpha_trap_shadows and
13618 alpha_align_insn from here.
13619
13620 (alpha_pad_function_end): Do not skip BARRIERs.
13621
13622 2014-07-10 Rong Xu <xur@google.com>
13623
13624 Add gcov-tool: an offline gcda profile processing tool support.
13625 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13626 (gcov_is_error): Ditto.
13627 (gcov_read_string): Ditto.
13628 (gcov_read_sync): Ditto.
13629 * gcov-io.h: Move counter defines to gcov-counter.def.
13630 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13631 * coverage.c: Ditto.
13632 * gcov-tool.c: Offline gcda profile processing tool.
13633 (unlink_gcda_file): Remove one gcda file.
13634 (unlink_profile_dir): Remove gcda files from the profile path.
13635 (gcov_output_files): Output gcda files to an output dir.
13636 (profile_merge): Merge two profiles in directory.
13637 (print_merge_usage_message): Print merge usage.
13638 (merge_usage): Print merge usage and exit.
13639 (do_merge): Driver for profile merge sub-command.
13640 (profile_rewrite): Rewrite profile.
13641 (print_rewrite_usage_message): Print rewrite usage.
13642 (rewrite_usage): Print rewrite usage and exit.
13643 (do_rewrite): Driver for profile rewrite sub-command.
13644 (print_usage): Print gcov-info usage and exit.
13645 (print_version): Print gcov-info version.
13646 (process_args): Process arguments.
13647 (main): Main routine for gcov-tool.
13648 * Makefile.in: Build and install gcov-tool.
13649 * gcov-counter.def: New file split from gcov-io.h.
13650 * doc/gcc.texi: Include gcov-tool.texi.
13651 * doc/gcov-tool.texi: Document for gcov-tool.
13652
13653 2014-07-10 Richard Biener <rguenther@suse.de>
13654
13655 PR tree-optimization/61757
13656 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13657 (propagate_rhs_into_lhs): Revert part of last change.
13658
13659 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13660
13661 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13662 FUNCTION_DECLs.
13663
13664 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13665
13666 PR middle-end/53590
13667 * function.c (allocate_struct_function): Revert r188667 change.
13668
13669 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13670
13671 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13672
13673 * doc/install.texi: Remove links to defunct package providers for
13674 Solaris.
13675
13676 2014-07-09 Tom de Vries <tom@codesourcery.com>
13677
13678 * final.c (get_call_fndecl): Declare.
13679 (self_recursive_call_p): New function.
13680 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13681
13682 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13683
13684 * ipa-devirt.c (record_node): Walk through aliases.
13685
13686 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13687
13688 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13689
13690 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13691
13692 Revert:
13693 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13694
13695 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13696
13697 * ipa-visibility.c (function_and_variable_visibility): Remove
13698 temporary hack disabling local aliases on AIX.
13699
13700 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13701
13702 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13703 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13704
13705 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13706
13707 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13708 * rs6000/rs6000.c: Inline output of .set instruction.
13709 (declare_alias_data): New struct.
13710 (rs6000_declare_alias): New function.
13711 (rs6000_xcoff_declare_function_name): Use it.
13712 (rs6000_xcoff_declare_object_name): New function.
13713 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13714 (ASM_OUTPUT_DEF): Turn to empty definition.
13715
13716 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13717
13718 PR bootstrap/61679
13719 * hash-table.h: use hash_table::value_type instead of
13720 Descriptor::value_type in the return types of several methods.
13721
13722 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13723
13724 * tree-pass.h (pass_data): Remove has_execute member.
13725 * passes.c (execute_one_pass): Don't check pass->has_execute.
13726 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13727 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13728 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13729 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13730 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13731 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13732 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13733 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13734 gimple-low.c, gimple-ssa-isolate-paths.c,
13735 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13736 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13737 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13738 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13739 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13740 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13741 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13742 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13743 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13744 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13745 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13746 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13747 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13748 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13749 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13750 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13751 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13752 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13753 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13754 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13755 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13756 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13757 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13758 web.c: Remove initializer for pass_data::has_execute.
13759
13760 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13761
13762 * graphite-htab.h: Use hash_map instead of hash_table.
13763 * graphite-clast-to-gimple.c: Adjust.
13764 * passes.c: Use hash_map instead of hash_table.
13765 * sese.c: Likewise.
13766 * sese.h: Remove now unused code.
13767
13768 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13769
13770 PR target/61599
13771 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13772 than zero.
13773
13774 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13775
13776 PR rtl-optimization/61673
13777 * combine.c (simplify_comparison): Test just mode's sign bit
13778 in tmode rather than the sign bit and any bits above it.
13779
13780 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13781
13782 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13783 Add __isl_give to the declaration.
13784 (generate_isl_schedule): Likewise.
13785 (scop_to_isl_ast): Likewise.
13786
13787 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13788
13789 * config/arm/arm.c (cortexa5_extra_costs): New table.
13790 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13791
13792 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13793
13794 PR tree-optimization/61725
13795 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13796 range, use range_includes_zerop_p instead of integer_zerop on
13797 vr0->min, only use log2 of max if min is not negative.
13798
13799 2014-07-08 Richard Biener <rguenther@suse.de>
13800
13801 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13802 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13803 restriction on loop depth difference.
13804 (record_equality): Likewise.
13805 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13806 (loop_depth_of_name): Remove.
13807 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13808 restriction on loop depth difference.
13809 (init_copy_prop): Likewise.
13810
13811 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13812
13813 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13814 parameter.
13815 (walk_aliased_vdefs): Likewise.
13816 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13817 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13818 (detect_type_change_from_memory_writes): Check if entry was reached.
13819
13820 2014-07-08 Richard Biener <rguenther@suse.de>
13821
13822 PR tree-optimization/61681
13823 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13824 NONLOCAL inside ESCAPED.
13825
13826 2014-07-08 Richard Biener <rguenther@suse.de>
13827
13828 PR tree-optimization/61680
13829 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13830 Handle properly all read-write dependences with group accesses.
13831
13832 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13833
13834 PR tree-optimization/61576
13835 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13836 block containing reduction statement is predecessor of phi basi block.
13837
13838 2014-07-08 Marek Polacek <polacek@redhat.com>
13839
13840 PR c/60226
13841 * fold-const.c (round_up_loc): Change the parameter type.
13842 Remove assert.
13843 * fold-const.h (round_up_loc): Adjust declaration.
13844 * stor-layout.c (finalize_record_size): Check for too large types.
13845
13846 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13847
13848 * symtab.c: Include calls.h.
13849 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13850
13851 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13852
13853 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13854 little-endian code generation.
13855 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13856 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13857 (spe_evmergehilo): Rename to...
13858 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13859 (spe_evmergelo): Rename to...
13860 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13861 (spe_evmergelohi): Rename to...
13862 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13863 (spe_evmergehi, spe_evmergehilo): New expanders.
13864 (spe_evmergelo, spe_evmergelohi): Likewise.
13865 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13866 (*frob_tf_ti): Likewise.
13867 (*frob_<mode>_di_2): Likewise.
13868 (*frob_tf_di_8_2): Likewise.
13869 (*frob_di_<mode>): Likewise.
13870 (*frob_ti_tf): Likewise.
13871 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13872 (*frob_ti_<mode>_8_2): Likewise.
13873 (*frob_ti_tf_2): Likewise.
13874 (mov_si<mode>_e500_subreg0): Rename to...
13875 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13876 endianness only.
13877 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13878 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13879 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13880 the big endianness only.
13881 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13882 (*mov_si<mode>_e500_subreg0_2): Rename to...
13883 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13884 big big endianness only.
13885 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13886 (*mov_si<mode>_e500_subreg4): Rename to...
13887 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13888 endianness only.
13889 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13890 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13891 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13892 the big endianness only.
13893 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13894 pattern.
13895 (*mov_si<mode>_e500_subreg4_2): Rename to...
13896 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13897 endianness only.
13898 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13899 (*mov_sitf_e500_subreg8): Rename to...
13900 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13901 endianness only.
13902 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13903 (*mov_sitf_e500_subreg8_2): Rename to...
13904 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13905 endianness only.
13906 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13907 (*mov_sitf_e500_subreg12): Rename to...
13908 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13909 endianness only.
13910 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13911 (*mov_sitf_e500_subreg12_2): Rename to...
13912 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13913 endianness only.
13914 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13915
13916 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13917
13918 * asan.c (instrument_strlen_call): Do not instrument first byte
13919 in strlen if already instrumented.
13920
13921 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13922
13923 * config/arm/arm.opt (mwords-little-endian): Delete.
13924 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13925 of TARGET_LITTLE_WORDS.
13926 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13927 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13928 warning.
13929 * doc/invoke.texi: Remove references to -mwords-little-endian.
13930
13931 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13932
13933 * expmed.c (struct init_expmed_rtl): Change all fields but
13934 pow2 and cint from struct rtx_def to rtx.
13935 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13936 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13937 at the end again.
13938
13939 2014-07-06 Marek Polacek <polacek@redhat.com>
13940
13941 PR c/6940
13942 * doc/invoke.texi: Document -Wsizeof-array-argument.
13943
13944 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13945
13946 * wide-int.h (wide_int_storage): Change declaration from struct
13947 to class.
13948
13949 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13950
13951 * cgraph.c (cgraph_create_indirect_edge): Update call of
13952 get_polymorphic_call_info.
13953 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13954 (possible_polymorphic_call_targets): Add parameter call.
13955 (decl_maybe_in_construction_p): New predicate.
13956 (get_polymorphic_call_info): Add parameter call;
13957 use decl_maybe_in_construction_p.
13958 * gimple-fold.c (fold_gimple_assign): Update use of
13959 possible_polymorphic_call_targets.
13960 (gimple_fold_call): Likewise.
13961 * ipa-prop.c: Inlcude calls.h
13962 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13963 (param_type_may_change_p): New predicate.
13964 (detect_type_change_from_memory_writes): Break out from ...
13965 (detect_type_change): ... this one; use param_type_may_change_p.
13966 (detect_type_change_ssa): Use param_type_may_change_p.
13967 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13968
13969 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13970
13971 PR target/49423
13972 * config/arm/arm-protos.h (arm_legitimate_address_p,
13973 arm_is_constant_pool_ref): Add prototypes.
13974 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13975 (arm_is_constant_pool_ref) New function.
13976 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13977 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13978 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13979 operand. Remove pool_range and neg_pool_range attributes.
13980 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13981 pool_range and neg_pool_range attributes.
13982 * config/arm/constraints.md (Uh): New constraint.
13983 (Uq): Don't allow constant pool references.
13984
13985 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13986
13987 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13988 (move_lo_quad_internal_be_<mode>): Likewise.
13989 (move_lo_quad_<mode>): Convert to define_expand.
13990 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13991 (aarch64_simd_move_hi_quad_be_<mode>): New.
13992 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13993 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13994 (aarch64_combinez_be<mode>): New.
13995 (aarch64_combine<mode>): Convert to define_expand.
13996 (aarch64_combine_internal<mode>): New.
13997 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13998
13999 2014-07-04 Tom de Vries <tom@codesourcery.com>
14000
14001 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14002 combination of earlyclobber and read/write modifiers.
14003
14004 2014-07-04 Tom de Vries <tom@codesourcery.com>
14005
14006 * config/aarch64/aarch64-simd.md
14007 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14008
14009 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
14010
14011 PR target/61714
14012 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14013
14014 2014-07-04 Jakub Jelinek <jakub@redhat.com>
14015
14016 PR middle-end/61654
14017 * cgraphunit.c (expand_thunk): Call free_dominance_info.
14018
14019 PR tree-optimization/61684
14020 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14021 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14022
14023 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14024 Kito Cheng <kito@0xlab.org>
14025 Monk Chiang <sh.chiang04@gmail.com>
14026
14027 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14028 (nds32_symbol_load_store_p): Move to ...
14029 (nds32_fp_as_gp_check_available): Move to ...
14030 * config/nds32/nds32-fp-as-gp.c: ... here.
14031 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14032 extern declaration.
14033
14034 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14035 Kito Cheng <kito@0xlab.org>
14036 Monk Chiang <sh.chiang04@gmail.com>
14037
14038 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14039 (nds32_expand_store_multiple): Move to ...
14040 (nds32_expand_movmemqi): Move to ...
14041 * config/nds32/nds32-memory-manipulation.c: ... here.
14042
14043 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14044 Kito Cheng <kito@0xlab.org>
14045 Monk Chiang <sh.chiang04@gmail.com>
14046
14047 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14048 (nds32_output_casesi_pc_relative): Move to ...
14049 (nds32_output_casesi): Move to ...
14050 (nds32_mem_format): Move to ...
14051 (nds32_output_16bit_store): Move to ...
14052 (nds32_output_16bit_load): Move to ...
14053 (nds32_output_32bit_store): Move to ...
14054 (nds32_output_32bit_load): Move to ...
14055 (nds32_output_32bit_load_s): Move to ...
14056 (nds32_output_stack_push): Move to ...
14057 (nds32_output_stack_pop): Move to ...
14058 * config/nds32/nds32-md-auxiliary.c: ... here.
14059
14060 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14061 Ling-Hua Tseng <uranus@tinlans.org>
14062
14063 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14064 the purpose of this file.
14065
14066 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14067 Kito Cheng <kito@0xlab.org>
14068 Monk Chiang <sh.chiang04@gmail.com>
14069
14070 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14071 (nds32_address_cost): Move implementation to ...
14072 * config/nds32/nds32-cost.c: ... here.
14073 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14074 (nds32_address_cost_impl): Declare.
14075
14076 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14077 Kito Cheng <kito@0xlab.org>
14078 Monk Chiang <sh.chiang04@gmail.com>
14079
14080 * config/nds32/nds32.c
14081 (nds32_consecutive_registers_load_store_p): Move to ...
14082 (nds32_valid_multiple_load_store): Move to ...
14083 (nds32_valid_stack_push_pop): Move to ...
14084 (nds32_can_use_bclr_p): Move to ...
14085 (nds32_can_use_bset_p): Move to ...
14086 (nds32_can_use_btgl_p): Move to ...
14087 (nds32_can_use_bitci_p): Move to ...
14088 * config/nds32/nds32-predicates.c: ... here.
14089
14090 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14091 Kito Cheng <kito@0xlab.org>
14092 Monk Chiang <sh.chiang04@gmail.com>
14093
14094 * config/nds32/nds32.c
14095 (nds32_expand_builtin_null_ftype_reg): Move to ...
14096 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14097 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14098 (nds32_init_builtins): Move implementation to ...
14099 (nds32_expand_builtin): Move implementation to ...
14100 * config/nds32/nds32-intrinsic.c: ... here.
14101 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14102 (nds32_expand_builtin_impl): Declare.
14103
14104 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14105 Kito Cheng <kito@0xlab.org>
14106 Monk Chiang <sh.chiang04@gmail.com>
14107
14108 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14109 (nds32_emit_section_tail_template): Move to ...
14110 (nds32_emit_isr_jmptbl_section): Move to ...
14111 (nds32_emit_isr_vector_section): Move to ...
14112 (nds32_emit_isr_reset_conten): Move to ...
14113 (nds32_check_isr_attrs_conflict): Move to ...
14114 (nds32_construct_isr_vectors_information): Move to ...
14115 (nds32_asm_file_start): Move implementation to ...
14116 (nds32_asm_file_end): Move implementation to ...
14117 * config/nds32/nds32-isr.c: ... here.
14118 * config/nds32/nds32-protos.h
14119 (nds32_check_isr_attrs_conflict): Declare.
14120 (nds32_construct_isr_vectors_information): Declare.
14121 (nds32_asm_file_start_for_isr): Declare.
14122 (nds32_asm_file_end_for_isr): Declare.
14123
14124 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14125 Kito Cheng <kito@0xlab.org>
14126 Monk Chiang <sh.chiang04@gmail.com>
14127
14128 * config.gcc (nds32*): Add new modules to extra_objs.
14129 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14130 (nds32be-*-*): Likewise.
14131 * config/nds32/nds32-cost.c: New file.
14132 * config/nds32/nds32-fp-as-gp.c: New file.
14133 * config/nds32/nds32-intrinsic.c: New file.
14134 * config/nds32/nds32-isr.c: New file.
14135 * config/nds32/nds32-md-auxiliary.c: New file.
14136 * config/nds32/nds32-memory-manipulation.c: New file.
14137 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14138 * config/nds32/nds32-predicates.c: New file.
14139 * config/nds32/t-nds32: New file.
14140
14141 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14142
14143 PR tree-optimization/61682
14144 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14145 using cases and when one of the operands is equal to 1.
14146
14147 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14148
14149 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14150 ashr<mode>3): Correct mode of operands[2].
14151 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14152 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14153 Correct mode of operands[2]. Fix split condition.
14154
14155 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14156
14157 * arm.md (arch): Add armv6_or_vfpv3.
14158 (arch_enabled): Add test for the above.
14159 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14160 on VFP9.
14161 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14162
14163 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14164
14165 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14166 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14167 HWI 1 and negate the unsigned value.
14168 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14169 use AND instead of shift.
14170 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14171
14172 2014-07-03 Marek Polacek <polacek@redhat.com>
14173
14174 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14175 (-fsanitize=float-divide-by-zero): Move to the table with
14176 -fsanitize=undefined suboptions.
14177 (-fsanitize=float-cast-overflow): Likewise.
14178
14179 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14180
14181 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14182 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14183 endianness.
14184
14185 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14186
14187 * loop-invariant.c (struct invariant): Add a new member: eqno;
14188 (find_identical_invariants): Update eqno;
14189 (create_new_invariant): Init eqno;
14190 (get_inv_cost): Compute comp_cost with eqno;
14191
14192 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14193
14194 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14195 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14196 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14197 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14198 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14199
14200 2014-07-02 Christian Bruel <christian.bruel@st.com>
14201
14202 PR target/29349
14203 PR target/53513
14204 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14205 (make_preds_opaque): Delete.
14206 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14207 (commit_mode_sets): New function.
14208 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14209 Process all modes at once.
14210 * basic-block.h (pre_edge_lcm_avs): Declare.
14211 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14212 Call clear_aux_for_edges. Fix comments.
14213 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14214 (pre_edge_rev_lcm): Idem.
14215 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14216 parameter.
14217 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14218 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14219 Idem.
14220 * config/i386/i386.c (x96_emit_mode_set): Idem.
14221 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14222 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14223 (fpscr_toggle) Disallow from delay slot.
14224 * target.def (emit_mode_set): Add prev_mode parameter.
14225 * doc/tm.texi: Regenerate.
14226
14227 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14228
14229 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14230 variable i.
14231
14232 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14233
14234 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14235 vtable_pointer_value_to_vtable): Constify.
14236 (contains_polymorphic_type_p): Declare.
14237 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14238 vtable_pointer_value_to_vtable): Constify.
14239 (contains_polymorphic_type_p): New predicate.
14240 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14241 polymorphic types.
14242 (ipa_set_ancestor_jf): Likewise.
14243 (detect_type_change): Return false in easy cases.
14244 (compute_complex_assign_jump_func): Require type to contain
14245 polymorphic type.
14246 (compute_known_type_jump_func): Likewise.
14247
14248 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14249
14250 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14251 Remove.
14252 (type_in_anonymous_namespace_p): Constify argument.
14253 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14254 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14255 (main_odr_variant): New function.
14256 (hash_type_name): Make static; update assert; do not ICE on
14257 non-records.
14258 (types_same_for_odr): Bring here from tree.c; simplify and remove
14259 old structural comparing code that doesn't work for templates.
14260 (odr_hasher::equal): Update assert.
14261 (add_type_duplicate): Return true when bases should be computed;
14262 replace incomplete loader by complete; do not output duplicated
14263 warnings; do not ICE on non-records; set odr_violated flag.
14264 (get_odr_type): Be ready to replace incomplete type by complete
14265 one; work on ODR variants instead of main variants; reorder item
14266 in array so bases have still smaller indexes.
14267 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14268 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14269
14270 2014-07-01 Cary Coutant <ccoutant@google.com>
14271
14272 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14273 lookup.
14274 (resolve_addr_in_expr): When replacing the rtx in a location list
14275 entry, get a new address table entry.
14276 (dwarf2out_finish): Call index_location_lists even if there are no
14277 addr_index_table entries yet.
14278
14279 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14280
14281 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14282 change for not being obvious.
14283
14284 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14285
14286 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14287 unused argument.
14288
14289 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14290
14291 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14292 (vcagt_f64): Likewise.
14293 (vcale_f64): Likewise.
14294 (vcaled_f64): Likewise.
14295 (vcales_f32): Likewise.
14296 (vcalt_f64): Likewise.
14297 (vcaltd_f64): Likewise.
14298 (vcalts_f32): Likewise.
14299
14300 2014-07-01 Marek Polacek <polacek@redhat.com>
14301
14302 * doc/invoke.texi: Document -Wint-conversion.
14303
14304 2014-07-01 Marek Polacek <polacek@redhat.com>
14305
14306 PR c/58286
14307 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14308
14309 2014-07-01 Martin Liska <mliska@suse.cz>
14310
14311 IPA REF alias refactoring
14312 * cgraph.h (iterate_direct_aliases): New function.
14313 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14314 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14315 FOR_EACH_ALIAS added.
14316 (cgraph_for_node_and_aliases): Likewise.
14317 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14318 * ipa-inline.c (reset_edge_caches): Likewise.
14319 (update_caller_keys): Likewise.
14320 * trans-mem.c (ipa_tm_execute): Likewise.
14321 *varpool.c (varpool_analyze_node): Likewise.
14322 (varpool_for_node_and_aliases): Likewise.
14323 * ipa-ref.h (first_alias): New function.
14324 (last_alias): Likewise.
14325 (has_aliases_p): Likewise.
14326 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14327 is sensitive to IPA_REF_ALIASes.
14328 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14329 are put at the beginning of the list.
14330 (symtab_node::iterate_direct_aliases): New function.
14331
14332 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14333
14334 Revert:
14335 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14336 type is complete.
14337 (write_ts_type_common_tree_pointers): Do not stream fields not set
14338 for incomplete types; do not stream duplicated fields for variants;
14339 sanity check that variant and type match.
14340 (write_ts_type_non_common_tree_pointers): Likewise.
14341 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14342 TYPE_SIZE whether type is complete.
14343 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14344 write_ts_type_common_tree_pointers
14345 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14346
14347 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14348
14349 * var-tracking.c (add_stores): Return instead of asserting if old
14350 and new values for conditional store are the same.
14351
14352 2014-06-30 Richard Henderson <rth@redhat.com>
14353
14354 PR rtl-opt/61608
14355 PR target/39284
14356 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14357 the cfg if there were any changes.
14358 * passes.def: Revert move of peephole2 after reorder_blocks;
14359 move duplicate_computed_gotos before peephole2.
14360
14361 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14362
14363 * except.c (emit_note_eh_region_end): New helper function.
14364 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14365 emit EH_REGION_END note.
14366 * jump.c (cleanup_barriers): Do not split a call and its
14367 corresponding CALL_ARG_LOCATION note.
14368
14369 2014-06-30 Jeff Law <law@redhat.com>
14370
14371 PR tree-optimization/61607
14372 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14373 deeper into the SSA_NAME_VALUE chain.
14374
14375 2014-06-30 Marek Polacek <polacek@redhat.com>
14376
14377 * convert.c (convert_to_integer): Don't instrument conversions if the
14378 function has no_sanitize_undefined attribute.
14379 * ubsan.c: Don't run the ubsan pass if the function has
14380 no_sanitize_undefined attribute.
14381
14382 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14383
14384 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14385 -fsanitize=undefined suboptions.
14386
14387 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14388
14389 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14390 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14391 against bigendian and adjust indices.
14392
14393 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14394
14395 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14396
14397 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14398
14399 PR target/61633
14400 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14401 Add alternative; make early clobber. Adjust both split patterns
14402 to use operand 0 as the working register.
14403
14404 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14405
14406 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14407 as ira_object_id_map might be NULL, or 1.
14408
14409 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14410
14411 * loop-invariant.c (get_inv_cost): Handle register class.
14412 (gain_for_invariant): Check the register pressure of the inv
14413 and its overlapped register class, other than all.
14414
14415 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14416
14417 * doc/invoke.texi (Optimize Options): Fix descriptions of
14418 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14419
14420 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14421
14422 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14423 documentation.
14424
14425 2014-06-29 Tobias Grosser <tobias@grosser.es>
14426
14427 PR bootstrap/61650
14428 * graphite-isl-ast-to-gimple.c: Add missing guards.
14429
14430 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14431
14432 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14433 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14434 * flag-types.h: Add new enum fgraphite_generator.
14435 * graphite-isl-ast-to-gimple.c: New.
14436 * graphite-isl-ast-to-gimple.h: New.
14437 * graphite.c (graphite_transform_loops): Add choice of Graphite
14438 code generator, which depends on flag_graphite_code_gen.
14439
14440 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14441
14442 * graphite-dependences.c (subtract_commutative_associative_deps):
14443 Add NULL checking of the following variables: must_raw_no_source,
14444 may_raw_no_source, must_war_no_source, may_war_no_source,
14445 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14446 must_war, may_war, must_waw, may_waw.
14447
14448 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14449
14450 * graphite-clast-to-gimple.c: gloog is renamed to
14451 graphite_regenerate_ast_cloog. gloog_error is renamed to
14452 graphite_regenerate_error.
14453 * graphite-clast-to-gimple.h: The definition of the struct
14454 bb_pbb_def is moved to graphite-htab.h.
14455 Add inclusion of the hash-table.h.
14456 * graphite-htab.h: The declaration of the function gloog is moved
14457 to graphite-clast-to-gimple.h and renamed to
14458 graphite_regenerate_ast_cloog.
14459 * graphite.c (graphite_transform_loops): gloog is renamed
14460 to graphite_regenerate_ast_cloog.
14461
14462 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14463
14464 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14465 type is complete.
14466 (write_ts_type_common_tree_pointers): Do not stream fields not set
14467 for incomplete types; do not stream duplicated fields for variants;
14468 sanity check that variant and type match.
14469 (write_ts_type_non_common_tree_pointers): Likewise.
14470 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14471 TYPE_SIZE whether type is complete.
14472 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14473 write_ts_type_common_tree_pointers
14474 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14475
14476 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14477
14478 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14479
14480 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14481
14482 * tree-inline.c (remap_type_1): Do not duplicate fields
14483 that are shared in between type and its main variant.
14484
14485 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14486
14487 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14488 of the type.
14489 (ipa_set_ancestor_jf) Likewise.
14490 (check_stmt_for_type_change): Check that we work on main variant.
14491 (detect_type_change): Look into main variant.
14492 (compute_known_type_jump_func): Check that main variant has BINFO.
14493
14494 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14495
14496 * ipa-devirt.c (set_type_binfo): New function.
14497 (add_type_duplicate): Use it.
14498 (get_odr_type): Sanity check that binfos points to main variants.
14499 (get_class_context): Be sure the context's outer_type is main variant.
14500 (contains_type_p): Walk main variant.
14501 (get_polymorphic_call_info_for_decl): Set outer_type to be
14502 main variant.
14503 (get_polymorphic_call_info): Likewise.
14504 (possible_polymorphic_call_targets): Sanity check that we operate
14505 on main variant.
14506
14507 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14508
14509 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14510
14511 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14512
14513 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14514 accidental change due to wide-int branch merge.
14515
14516 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14517
14518 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14519 compressed debug support.
14520 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14521 * configure: Regenerate.
14522 * config.in: Regenerate.
14523 * common.opt (compressed_debug_sections): New enum.
14524 (gz, gz=): New options.
14525 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14526 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14527 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14528 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14529 LINK_COMPRESS_DEBUG_SPEC.
14530 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14531 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14532 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14533 (Debugging Options): Document -gz[=type].
14534
14535 2014-06-27 Martin Jambor <mjambor@suse.cz>
14536
14537 PR ipa/61160
14538 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14539 args_to_skip, use those from node instead. Copy args_to_skip and
14540 combined_args_to_skip from node to the new thunk.
14541 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14542 (cgraph_create_virtual_clone): Moved computation of
14543 combined_args_to_skip...
14544 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14545
14546 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14547
14548 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14549 redundant diagnostic machinary.
14550
14551 2014-06-27 Richard Biener <rguenther@suse.de>
14552
14553 * tree-ssa-math-opts.c (bswap_replace): Fix
14554 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14555
14556 2014-06-27 Martin Liska <mliska@suse.cz>
14557
14558 * gimple.h (gimple_location_safe): New function introduced.
14559 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14560 of gimple_location_safe replaces gimple_location.
14561 (gimple_fold_call): Likewise.
14562 * ipa-devirt.c (ipa_devirt): Likewise.
14563 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14564 * ipa.c (walk_polymorphic_call_targets): Likewise.
14565 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14566
14567 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14568
14569 PR tree-optimization/57233
14570 PR tree-optimization/61299
14571 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14572 functions.
14573 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14574 would be lowered to scalar shifts, check if corresponding
14575 shifts and vector BIT_IOR_EXPR are supported and don't lower
14576 or lower just to narrower vector type in that case.
14577 * expmed.c (expand_shift_1): Fix up handling of vector
14578 shifts and rotates.
14579
14580 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14581
14582 PR target/61586
14583 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14584
14585 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14586
14587 * doc/invoke.texi (-fsemantic-interposition): Document.
14588 * common.opt (fsemantic-interposition): New flag.
14589 * varasm.c (decl_replaceable_p): Use it.
14590
14591 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14592
14593 PR target/61542
14594 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14595 extraction other than index 3.
14596
14597 2014-06-26 Teresa Johnson <tejohnson@google.com>
14598
14599 * doc/invoke.texi: Fix typo.
14600 * dumpfile.c: Add support for documented -fdump-* options
14601 optimized/missed/note/optall.
14602
14603 2014-06-26 Martin Jambor <mjambor@suse.cz>
14604
14605 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14606 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14607 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14608 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14609 * opts.c (default_options_optimization): Set
14610 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14611 * doc/invoke.texi (allow-load-data-races)
14612 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14613 (allow-store-data-races): Document the new default.
14614
14615 2014-06-26 Martin Jambor <mjambor@suse.cz>
14616
14617 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14618 renamed to ipa_impossible_devirt_target. Fix typo.
14619 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14620 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14621 ipa_impossible_devirt_target.
14622
14623 2014-06-26 Richard Biener <rguenther@suse.de>
14624
14625 PR tree-optimization/61607
14626 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14627 explaining why we restrict copies on loop depth.
14628 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14629 on loop depth.
14630 (record_equivalences_from_phis): Instead add it here.
14631
14632 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14633
14634 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14635 (LTO_WRAPPER_OBJS): New variable.
14636 (lto-wrapper$(exeext)): Use it.
14637 * collect2.c: Include "collect-utils.h".
14638 (verbose, debug): Remove variables.
14639 (at_file_supplied): No longer static.
14640 (tool_name): New variable.
14641 (do_wait, fork_execute, maybe_unlink): Don't declare.
14642 (tool_cleanup): No longer static.
14643 (notice): Remove function.
14644 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14645 fork_execute calls.
14646 (collect_wait, do_wait, collect_execute): Remove functions.
14647 (maybe_unlink): No longer static.
14648 * collect2.h (verbose, debug): Don't declare.
14649 (at_file_supplied): Declare.
14650 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14651 changed.
14652 (collect_execute): Replace with implementation from collect2, plus a
14653 new arg use_atfile. All callers changed.
14654 (collect_wait): Replace with implementation from collect2.
14655 (maybe_unlink_file): Remove function.
14656 (fork_execute): Replace with implementation from collect2, plus a
14657 new arg use_atfile. All callers changed.
14658 (do_wait): Add call to utils_cleanup to the error path.
14659 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14660 (tool_cleanup): Adjust declarations.
14661 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14662 * tlink.c: Include "collect-utils.h".
14663 (tlink_execute): New arg use_atfile. All callers changed.
14664 (tlink_init, tlink_execute): Remove declarations.
14665
14666 * collect-utils.c (save_temps): New variable.
14667 (do_wait): Use it instead of debug. Use fatal_error.
14668 * collect-utils.h (save_temps): Declare.
14669 * collect2.c (verbose): Rename from vflag. All uses changed.
14670 (tool_cleanup): New function, copied from collect_atexit.
14671 (collect_atexit, handler): Just call it.
14672 * collect2.h (verbose): Declaration renamed from vflag.
14673 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14674 debug.
14675
14676 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14677 (lto-wrapper$(exeext)): Link with collect-utils.o.
14678 * collect-utils.c: New file.
14679 * collect-utils.h: New file.
14680 * lto-wrapper.c: Include "collect-utils.h".
14681 (args_name): Delete variable.
14682 (tool_name): New variable.
14683 (tool_cleanup): New function.
14684 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14685 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14686 (fork_execute): Remove functions.
14687
14688 2014-06-26 Nick Clifton <nickc@redhat.com>
14689
14690 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14691
14692 * doc/extend.texi (Function Attributes): Fix typo in description
14693 of RX vector attribute.
14694
14695 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14696
14697 * config.gcc (supported_defaults): Error when passing either
14698 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14699
14700 2014-06-26 Richard Biener <rguenther@suse.de>
14701
14702 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14703 propagating volatile pointers.
14704
14705 2014-06-26 Richard Biener <rguenther@suse.de>
14706
14707 PR tree-optimization/61607
14708 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14709 loop if we redirected its latch edge.
14710 (thread_block_1): Do not cancel loops prematurely.
14711
14712 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14713
14714 * toplev.c (backend_init_target): Move init_emit_regs and
14715 init_regs to...
14716 (backend_init) ... here; skip ira_init_once and backend_init_target.
14717 (target_reinit) ... and here; clear
14718 this_target_rtl->lang_dependent_initialized.
14719 (lang_dependent_init_target): Clear
14720 this_target_rtl->lang_dependent_initialized;
14721 break out rtl initialization to ...
14722 (initialize_rtl): ... here; call also backend_init_target
14723 and ira_init_once.
14724 * toplev.h (initialize_rtl): New function.
14725 * function.c: Include toplev.h
14726 (init_function_start): Call initialize_rtl.
14727 * rtl.h (target_rtl): Add target_specific_initialized,
14728 lang_dependent_initialized.
14729
14730 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14731 Jakub Jelinek <jakub@redhat.com>
14732
14733 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14734
14735 2014-06-25 Tom de Vries <tom@codesourcery.com>
14736
14737 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14738
14739 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14740
14741 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14742 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14743 Issue a strict overflow warning if appropriate.
14744
14745 2014-06-25 Martin Liska <mliska@suse.cz>
14746
14747 IPA REF refactoring
14748 * Makefile.in: Removed header file (ipa-ref-inline.h).
14749 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14750 called.
14751 (cgraph_speculative_call_info): Likewise.
14752 (cgraph_for_node_thunks_and_aliases): Likewise.
14753 (cgraph_for_node_and_aliases): Likewise.
14754 (verify_cgraph_node): Likewise.
14755 * cgraph.h: Batch of IPA REF functions become member functions of
14756 symtab_node: add_reference, maybe_add_reference, clone_references,
14757 clone_referring, clone_reference, find_reference,
14758 remove_stmt_references, remove_all_references,
14759 remove_all_referring, dump_references, dump_referring,
14760 has_alias_p, iterate_reference, iterate_referring.
14761 * cgraphbuild.c (record_reference): New IPA REF function used.
14762 (record_type_list): Likewise.
14763 (record_eh_tables): Likewise.
14764 (mark_address): Likewise.
14765 (mark_load): Likewise.
14766 (mark_store): Likewise.
14767 (pass_build_cgraph_edges): Likewise.
14768 (rebuild_cgraph_edge): Likewise.
14769 (cgraph_rebuild_references): Likewise.
14770 (pass_remove_cgraph_callee_edges): Likewise.
14771 * cgraphclones.c (cgraph_clone_node): Likewise.
14772 (cgraph_create_virtual_clone): Likewise.
14773 (cgraph_materialize_clone): Likewise.
14774 (cgraph_materialize_all_clones): Likewise.
14775 * cgraphunit.c (cgraph_reset_node): Likewise.
14776 (cgraph_reset_node): Likewise.
14777 (analyze_function): Likewise.
14778 (assemble_thunks_and_aliases): Likewise.
14779 (expand_function): Likewise.
14780 * ipa-comdats.c (propagate_comdat_group): Likewise.
14781 (enqueue_references): Likewise.
14782 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14783 (create_specialized_node): Likewise.
14784 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14785 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14786 * ipa-inline.c (reset_edge_caches): Likewise.
14787 (update_caller_keys): Likewise.
14788 (execute): Likewise.
14789 * ipa-prop.c (remove_described_reference): Likewise.
14790 (propagate_controlled_uses): Likewise.
14791 (ipa_edge_duplication_hook): Likewise.
14792 (ipa_modify_call_arguments): Likewise.
14793 * ipa-pure-const.c (propagate_pure_const): Likewise.
14794 * ipa-ref-inline.h: Header file removed, functions moved
14795 to symtab_node class.
14796 * ipa-ref.c (remove_reference): New class member function.
14797 (cannot_lead_to_return): New class member function.
14798 (referring_ref_list): Likewise.
14799 (referred_ref_list): Likewise.
14800 Rest of functions moved to symtab_node class.
14801 * ipa-ref.h: New member functions remove_reference,
14802 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14803 to ipa_ref class.
14804 ipa_ref_list class has new member functions: first_reference,
14805 first_referring, clear, nreferences.
14806 * ipa-reference.c (analyze_function): New IPA REF function used.
14807 (write_node_summary_p): Likewise.
14808 (ipa_reference_write_optimization_summary): Likewise.
14809 * ipa-split.c (split_function): Likewise.
14810 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14811 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14812 (function_and_variable_visibility): Likewise.
14813 * ipa.c (has_addr_references_p): Likewise.
14814 (process_references): Argument type changed.
14815 (symtab_remove_unreachable_nodes): New IPA REF function used.
14816 (process_references): Likewise.
14817 (set_writeonly_bit): Likewise.
14818 * lto-cgraph.c: Implementation of new symtab_node member functions
14819 that uses new IPA REF functions.
14820 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14821 function used.
14822 * lto-streamer-out.c (output_symbol_p): Likewise.
14823 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14824 changed.
14825 * symtab.c: Implementation of new IPA REF API.
14826 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14827 (ipa_tm_create_version): Likewise.
14828 (ipa_tm_execute): Likewise.
14829 * tree-emutls.c (gen_emutls_addr): Likewise.
14830 * tree-inline.c (copy_bb): Likewise.
14831 (delete_unreachable_blocks_update_callgraph): Likewise.
14832 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14833 (varpool_for_node_and_aliases): Likewise.
14834
14835 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14836
14837 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14838
14839 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14840
14841 PR bootstrap/61598
14842 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14843 tree_node * instead of tree_node *.
14844 (fold): Adjust.
14845 (print_fold_checksum): Likewise.
14846 (fold_check_failed): Likewise.
14847 (debug_fold_checksum): Likewise.
14848 (fold_build1_stat_loc): Likewise.
14849 (fold_build2_stat_loc): Likewise.
14850 (fold_build3_stat_loc): Likewise.
14851 (fold_build_call_array_loc): Likewise.
14852
14853 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14854
14855 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14856 implementation with call to...
14857 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14858 function.
14859 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14860 Declare.
14861
14862 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14863
14864 PR tree-optimization/57742
14865 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14866 after replacing the statement.
14867
14868 2014-06-25 Nick Clifton <nickc@redhat.com>
14869
14870 * config/v850/v850.c (GHS_default_section_names): Change to const
14871 char * type.
14872 (GHS_current_section_names): Likewise.
14873 (v850_insert_attributes): Do not build strings, just assign the
14874 names directly. Change the type of 'chosen_section' to const
14875 char*.
14876 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14877 directly to the array entry.
14878 * config/v850/v850.h (GHS_default_section_names): Change to const
14879 char * type.
14880 (GHS_current_section_names): Likewise.
14881
14882 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14883
14884 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14885 (LANG_HOOKS_DECLS): Add it.
14886 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14887 has correct type.
14888 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14889 * langhooks.h (struct lang_hooks_for_decls): Add
14890 omp_clause_linear_ctor hook.
14891 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14892 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14893 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14894 combined simd loop use omp_clause_linear_ctor hook.
14895
14896 2014-06-24 Cong Hou <congh@google.com>
14897
14898 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14899 pattern recognition.
14900 (type_conversion_p): PROMOTION is true if it's a type promotion
14901 conversion, and false otherwise. Return true if the given expression
14902 is a type conversion one.
14903 * tree-vectorizer.h: Adjust the number of patterns.
14904 * tree.def: Add SAD_EXPR.
14905 * optabs.def: Add sad_optab.
14906 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14907 * expr.c (expand_expr_real_2): Likewise.
14908 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14909 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14910 * optabs.c (optab_for_tree_code): Likewise.
14911 * tree-cfg.c (estimate_operator_cost): Likewise.
14912 * tree-ssa-operands.c (get_expr_operands): Likewise.
14913 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14914 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14915 * doc/generic.texi: Add document for SAD_EXPR.
14916 * doc/md.texi: Add document for ssad and usad.
14917
14918 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14919
14920 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14921 qualification in cast.
14922
14923 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14924
14925 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14926 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14927 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14928 (tree_function_decl): ... here.
14929 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14930 streaming of vindex to ...
14931 (write_ts_function_decl_tree_pointers): ... here.
14932 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14933 Do not stream DECL_VINDEX.
14934 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14935
14936 2014-06-24 Catherine Moore <clm@codesourcery.com>
14937 Sandra Loosemore <sandra@codesourcery.com>
14938
14939 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14940 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14941 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14942
14943 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14944
14945 * doc/invoke.texi (Warning Options): Remove duplicated
14946 -Wmaybe-uninitialized.
14947
14948 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14949
14950 PR tree-optimization/57742
14951 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14952 (handle_builtin_malloc, handle_builtin_memset): New functions.
14953 (strlen_optimize_stmt): Call them.
14954 * passes.def: Move strlen after loop+dom but before vrp.
14955
14956 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14957
14958 PR target/61570
14959 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14960 model family 6 CPU with has_longmode never use a CPU without
14961 64-bit support.
14962
14963 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14964
14965 PR target/61570
14966 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14967 the last change.
14968
14969 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14970
14971 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14972 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14973 pointer_map.
14974 * hash-map.h: New file.
14975 * ipa-comdats.c: Use hash_map instead of pointer_map.
14976 * ipa.c: Likewise.
14977 * lto-section-out.c: Adjust.
14978 * lto-streamer.h: Replace pointer_map with hash_map.
14979 * symtab.c (verify_symtab): Likewise.
14980 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14981 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14982 * tree-streamer.h: Likewise.
14983 * tree-streamer.c: Adjust.
14984 * pointer-set.h: Remove pointer_map.
14985
14986 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14987
14988 * hash-table.h: Add a template arg to choose between storing values
14989 and storing pointers to values, and then provide partial
14990 specializations for both.
14991 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14992 should store, not the type values should point to.
14993 * tree-into-ssa.c (var_info_hasher): Likewise.
14994 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14995 * tree-complex.c: Adjust.
14996 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14997 table instead of int_tree_map *.
14998 * tree-parloops.c: Adjust.
14999 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15000 type is being stored.
15001 * tree-vectorizer.c: Adjust.
15002
15003 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15004
15005 * hash-table.h: Remove a layer of indirection from hash_table so that
15006 it contains the hash table's data instead of a pointer to the data.
15007 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15008 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15009 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15010 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15011 fold-const.c, gcse.c, ggc-common.c,
15012 gimple-ssa-strength-reduction.c, gimplify.c,
15013 graphite-clast-to-gimple.c, graphite-dependences.c,
15014 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15015 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15016 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15017 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15018 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15019 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15020 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15021 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15022 tree-ssa-live.c, tree-ssa-loop-im.c,
15023 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15024 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15025 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15026 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15027 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15028 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15029 vtable-verify.c, vtable-verify.h: Adjust.
15030
15031 2014-06-24 Richard Biener <rguenther@suse.de>
15032
15033 PR tree-optimization/61572
15034 * tree-ssa-sink.c (statement_sink_location): Do not sink
15035 loads from hard registers.
15036
15037 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15038
15039 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15040 not mentioned in clauses use private clause if the iterator is
15041 declared in #pragma omp for simd, and when adding lastprivate
15042 instead, add it to the outer #pragma omp for too. Diagnose
15043 if the variable is private in outer context. For simd collapse > 1
15044 loops, replace all iterators with temporaries.
15045 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15046 same even in collapse > 1 loops.
15047
15048 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15049 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15050 non-NULL.
15051 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15052 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15053 non-NULL.
15054 (gimplify_adjust_omp_clauses): Likewise.
15055 * omp-low.c (lower_rec_simd_input_clauses,
15056 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15057 safelen the same as safelen(1).
15058 * tree-nested.c (convert_nonlocal_omp_clauses,
15059 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
15060 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15061 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15062 Fixup handling of GIMPLE_OMP_TARGET.
15063 (convert_tramp_reference_stmt, convert_gimple_call): Handle
15064 GIMPLE_OMP_TARGET.
15065
15066 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15067
15068 PR tree-optimization/61554
15069 * tree-ssa-propagate.c: Include "bitmap.h".
15070 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15071 properly update constructor/destructor.
15072 (substitute_and_fold_dom_walker::before_dom_children):
15073 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15074 need_eh_cleaup instead.
15075 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15076 need_eh_cleanup.
15077
15078 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15079
15080 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15081 * tree-pass.h (make_pass_ipa_single_use): New pass.
15082 * cgraph.h (used_by_single_function): New flag.
15083 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15084 Stream it.
15085 * passes.def (pass_ipa_single_use): Scedule.
15086 * ipa.c (BOTTOM): New macro.
15087 (meet): New function
15088 (propagate_single_user): New function.
15089 (ipa_single_use): New function.
15090 (pass_data_ipa_single_use): New pass.
15091 (pass_ipa_single_use): New pass.
15092 (pass_ipa_single_use::gate): New gate.
15093 (make_pass_ipa_single_use): New function.
15094
15095 2014-06-23 Kai Tietz <ktietz@redhat.com>
15096
15097 PR target/39284
15098 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15099 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15100
15101 2014-06-23 Richard Biener <rguenther@suse.de>
15102
15103 * tree-ssa-loop.c (gate_loop): New function.
15104 (pass_tree_loop::gate): Call it.
15105 (pass_data_tree_no_loop, pass_tree_no_loop,
15106 make_pass_tree_no_loop): New.
15107 * tree-vectorizer.c: Include tree-scalar-evolution.c
15108 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15109 required.
15110 (pass_slp_vectorize::clone): New method.
15111 * timevar.def (TV_TREE_NOLOOP): New.
15112 * tree-pass.h (make_pass_tree_no_loop): Declare.
15113 * passes.def (pass_tree_no_loop): New pass group with
15114 SLP vectorizer.
15115
15116 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15117
15118 PR target/61570
15119 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15120 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15121
15122 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15123
15124 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15125 "yes" where needed.
15126
15127 2014-06-23 Alan Modra <amodra@gmail.com>
15128
15129 PR bootstrap/61583
15130 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15131 to zero on debug statements.
15132
15133 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15134
15135 PR target/60825
15136 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15137 Ignore third operand if present by marking qualifier_internal.
15138
15139 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15140
15141 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15142 vector extension.
15143 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15144 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15145 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15146 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15147 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15148 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15149 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15150 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15151 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15152 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15153 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15154 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15155 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15156 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15157 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15158 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15159 logic in GCC vector extensions
15160
15161 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15162 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15163 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15164 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15165 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15166 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15167 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15168 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15169 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15170 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15171
15172 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15173
15174 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15175 extensions.
15176
15177 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15178 (vget_low_s64): Use __GET_LOW macro.
15179 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15180 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15181 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15182 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15183 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15184
15185 (vcombine_s64): Use GCC vector extensions; remove cast.
15186 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15187 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15188 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15189 Fix type signature; remove cast.
15190
15191 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15192
15193 PR target/60825
15194 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15195 V1DFmode.
15196 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15197 add V1DFmode
15198 (BUILTIN_VD1): New.
15199 (BUILTIN_VD_RE): Remove.
15200 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15201 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15202 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15203 variant but not df.
15204 (vreinterpretv1df*, vreinterpret*v1df): New.
15205 (vreinterpretdf*, vreinterpret*df): Remove.
15206 * config/aarch64/aarch64-simd.md (aarch64_create,
15207 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15208 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15209 (VD1): New.
15210 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15211 (vcreate_f64): Remove cast, use v1df builtin.
15212 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15213 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15214 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15215 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15216 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15217 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15218 add range check using __builtin_aarch64_im_lane_boundsi.
15219 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15220 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15221 type signature, use gcc vector extensions.
15222 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15223 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15224 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15225 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15226 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15227 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15228 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15229 vreinterpret_u64_f64): Use v1df builtin not df.
15230
15231 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15232
15233 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15234 vector registers.
15235
15236 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15237
15238 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15239 priority directly.
15240
15241 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15242
15243 * loop-invariant.c (pre_check_invariant_p): New function.
15244 (find_invariant_insn): Call pre_check_invariant_p.
15245
15246 2014-06-22 Richard Henderson <rth@redhat.com>
15247
15248 PR target/61565
15249 * compare-elim.c (struct comparison): Add eh_note.
15250 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15251 a redundant comparison in a different EH region. Purge EH edges if
15252 necessary.
15253
15254 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15255
15256 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15257 (var_shift): Use it.
15258 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15259 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15260 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15261 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15262 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15263 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15264 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15265 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15266 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15267 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15268 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15269 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15270 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15271 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15272 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15273 *rotldi3_internal15be): Use the new attribute. Merge register and
15274 integer alternatives.
15275
15276 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15277
15278 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15279 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15280 split, *ashrdi3_internal3 and split): Delete, merge into...
15281 (ashr<mode>3): New expander.
15282 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15283 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15284
15285 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15286
15287 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15288 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15289 *rotldi3_internal3 and split): Delete, merge into...
15290 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15291 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15292 Use "rotlw" extended mnemonic.
15293
15294 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15295
15296 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15297 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15298 and split, *ashldi3_internal3 and split): Delete, merge into...
15299 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15300 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15301
15302 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15303
15304 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15305 (lshrsi3, two anonymous define_insns and define_splits,
15306 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15307 *lshrdi3_internal3 and split): Delete, merge into...
15308 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15309 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15310
15311 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15312
15313 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15314 Remove "O" alternative.
15315
15316 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15317
15318 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15319 (mips_move_from_gpr_cost): Likewise.
15320 (mips_register_move_cost): Update accordingly.
15321 (mips_secondary_reload_class): Remove name of in_p.
15322
15323 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15324
15325 PR target/61503
15326 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15327 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15328
15329 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15330
15331 * config/nios2/nios2.c: Include "builtins.h".
15332
15333 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15334
15335 * cgraph.h (tls_model_names): New variable.
15336 * print-tree.c (print_node): Simplify.
15337 * varpool.c (tls_model_names): New variable.
15338 (dump_varpool_node): Output tls model.
15339
15340 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15341
15342 * ipa-visibility.c (function_and_variable_visibility): Disable
15343 temporarily local aliases for some targets.
15344
15345 2014-06-20 Marek Polacek <polacek@redhat.com>
15346
15347 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15348 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15349 into SANITIZE_UNDEFINED.
15350 * doc/invoke.texi: Describe -fsanitize=bounds.
15351 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15352 functions created in the FEs.
15353 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15354 (expand_UBSAN_BOUNDS): New function.
15355 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15356 * internal-fn.h: Don't define internal functions here.
15357 * opts.c (common_handle_option): Add -fsanitize=bounds.
15358 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15359 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15360 * tree-core.h: Define internal functions here.
15361 (struct tree_base): Add ifn field.
15362 * tree-pretty-print.c: Include "internal-fn.h".
15363 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15364 * tree.c (get_callee_fndecl): Likewise.
15365 (build_call_expr_internal_loc): New function.
15366 * tree.def (CALL_EXPR): Update description.
15367 * tree.h (CALL_EXPR_IFN): Define.
15368 (build_call_expr_internal_loc): Declare.
15369 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15370 types.
15371 (ubsan_type_descriptor): Change bool parameter to enum
15372 ubsan_print_style. Adjust the code. Add handling of
15373 UBSAN_PRINT_ARRAY.
15374 (ubsan_expand_bounds_ifn): New function.
15375 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15376 (ubsan_build_overflow_builtin): Likewise.
15377 (instrument_bool_enum_load): Likewise.
15378 (ubsan_instrument_float_cast): Likewise.
15379 * ubsan.h (enum ubsan_print_style): New enum.
15380 (ubsan_expand_bounds_ifn): Declare.
15381 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15382
15383 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15384
15385 * config/rs6000/rs6000.md: Append `DONE' to preparation
15386 statements of `bswap' pattern splitters.
15387
15388 2014-06-20 Tom de Vries <tom@codesourcery.com>
15389
15390 * target.def (call_fusage_contains_non_callee_clobbers): Update
15391 definition.
15392 * doc/tm.texi: Regenerate.
15393
15394 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15395 Max Ostapenko <m.ostapenko@partner.samsung.com>
15396
15397 PR sanitizer/61547
15398 * asan.c (instrument_strlen_call): Fixed instrumentation of
15399 trailing byte.
15400
15401 2014-06-20 Martin Jambor <mjambor@suse.cz>
15402
15403 PR ipa/61540
15404 * ipa-prop.c (impossible_devirt_target): New function.
15405 (try_make_edge_direct_virtual_call): Use it, also instead of
15406 asserting.
15407
15408 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15409 Max Ostapenko <m.ostapenko@partner.samsung.com>
15410
15411 PR sanitizer/61530
15412 * asan.c (build_check_stmt): Add condition.
15413
15414 2014-06-20 Martin Jambor <mjambor@suse.cz>
15415
15416 PR ipa/61211
15417 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15418 expanded clones.
15419
15420 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15421
15422 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15423 Update comments.
15424 (VCONQ): Make comment more helpful.
15425 (VCON): Delete.
15426 * config/aarch64/aarch64-simd.md
15427 (aarch64_sqdmulh_lane<mode>):
15428 Use VCOND for operands 2. Update lane checking and flipping logic.
15429 (aarch64_sqrdmulh_lane<mode>): Likewise.
15430 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15431 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15432 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15433 attribute of operand 3 to VCOND.
15434 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15435 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15436 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15437 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15438 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15439 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15440 define_insn.
15441 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15442 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15443 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15444 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15445 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15446 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15447 operand to VCOND. Update lane flipping and bounds checking logic.
15448 (aarch64_sqdmlal2_lane<mode>): Likewise.
15449 (aarch64_sqdmlsl_lane<mode>): Likewise.
15450 (aarch64_sqdmull_lane<mode>): Likewise.
15451 (aarch64_sqdmull2_lane<mode>): Likewise.
15452 (aarch64_sqdmlal_laneq<mode>):
15453 Replace VCON usage with VCONQ.
15454 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15455 (aarch64_sqdmlal2_laneq<mode>): Emit
15456 aarch64_sqdmlal2_laneq<mode>_internal insn.
15457 Replace VCON with VCONQ.
15458 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15459 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15460 (aarch64_sqdmull_laneq<mode>): Emit
15461 aarch64_sqdmull_laneq<mode>_internal insn.
15462 Replace VCON with VCONQ.
15463 (aarch64_sqdmull2_laneq<mode>): Emit
15464 aarch64_sqdmull2_laneq<mode>_internal insn.
15465 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15466 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15467 of 3rd argument to int16x4_t.
15468 (vqdmlalh_lane_s16): Likewise.
15469 (vqdmlslh_lane_s16): Likewise.
15470 (vqdmull_high_lane_s16): Likewise.
15471 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15472 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15473 (vqdmlsl_lane_s16): Likewise.
15474 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15475 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15476 (vqdmlals_lane_s32): Likewise.
15477 (vqdmlsls_lane_s32): Likewise.
15478 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15479 (vqdmulls_lane_s32): Likewise.
15480 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15481 (vqdmlsl_lane_s32): Likewise.
15482 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15483 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15484 (vqrdmulhh_lane_s16): Likewise.
15485 (vqdmlsl_high_lane_s16): Likewise.
15486 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15487 (vqdmlsl_high_lane_s32): Likewise.
15488 (vqrdmulhs_lane_s32): Likewise.
15489
15490 2014-06-20 Tom de Vries <tom@codesourcery.com>
15491
15492 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15493 get_call_reg_set_usage.
15494
15495 2014-06-20 Tom de Vries <tom@codesourcery.com>
15496
15497 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15498 it contains all call_used_regs.
15499
15500 2014-06-20 Tom de Vries <tom@codesourcery.com>
15501
15502 * final.c (collect_fn_hard_reg_usage): Add and use variable
15503 function_used_regs.
15504
15505 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15506
15507 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15508 (set_init_priority, get_init_priority, set_fini_priority,
15509 get_fini_priority): New methods.
15510 * tree.c (init_priority_for_decl): Remove.
15511 (init_ttree): Do not initialize init priority.
15512 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15513 (decl_priority_info): Remove.
15514 (decl_init_priority_insert): Rewrite.
15515 (decl_fini_priority_insert): Rewrite.
15516 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15517 tree_priority_map_marked_p): Remove.
15518 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15519 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15520 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15521 not output priorities.
15522 (pack_ts_function_decl_value_fields): Likewise.
15523 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15524 not input priorities.
15525 (unpack_ts_function_decl_value_fields): Likewise.
15526 * symtab.c (symbol_priority_map): Declare.
15527 (init_priority_hash): Declare.
15528 (symtab_unregister_node): Unregister from priority hash, too.
15529 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15530 New methods.
15531 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15532 (symbol_priority_info): New function.
15533 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15534 New methods.
15535 * tree-core.h (tree_priority_map): Remove.
15536
15537 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15538
15539 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15540 0xff to uint64_t before shifting it up.
15541
15542 2014-06-20 Julian Brown <julian@codesourcery.com>
15543 Chung-Lin Tang <cltang@codesourcery.com>
15544
15545 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15546 TARGET_THUMB1_ONLY. Add comments.
15547
15548 2014-06-19 Tom de Vries <tom@codesourcery.com>
15549
15550 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15551 return type to void.
15552 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15553
15554 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15555
15556 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15557 as "move", from depends_on.
15558
15559 2014-06-19 Terry Guo <terry.guo@arm.com>
15560
15561 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15562 stage.
15563
15564 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15565
15566 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15567 Remove cr5.
15568 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15569
15570 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15571
15572 PR target/61550
15573 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15574 addresses here if reload in progress or completed.
15575
15576 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15577
15578 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15579 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15580 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15581 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15582 (mips_register_priority): New function that implements the target
15583 hook TARGET_REGISTER_PRIORITY.
15584 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15585 (mips_lra_p): Likewise for TARGET_LRA_P.
15586 (TARGET_REGISTER_PRIORITY): Define macro.
15587 (TARGET_SPILL_CLASS): Likewise.
15588 (TARGET_LRA_P): Likewise.
15589 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15590 classes.
15591 (REG_CLASS_NAMES): Likewise.
15592 (REG_CLASS_CONTENTS): Likewise.
15593 (BASE_REG_CLASS): Use M16_SP_REGS.
15594 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15595 New set attribute to enable alternatives depending on the register
15596 allocator used.
15597 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15598 (*lea64): Disable pattern for MIPS16.
15599 * config/mips/mips.opt (mlra): New option.
15600
15601 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15602
15603 * lra-constraints.c (base_to_reg): New function.
15604 (process_address): Use new function.
15605
15606 2014-06-18 Tom de Vries <tom@codesourcery.com>
15607
15608 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15609 * config/aarch64/aarch64.c
15610 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15611 (aarch64_emit_call_insn): New function.
15612 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15613 of emit_call_insn.
15614 * config/aarch64/aarch64.md (define_expand "call_internal")
15615 (define_expand "call_value_internal", define_expand "sibcall_internal")
15616 (define_expand "sibcall_value_internal"): New.
15617 (define_expand "call", define_expand "call_value")
15618 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15619 expand variant and aarch64_emit_call_insn.
15620
15621 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15622 Tom de Vries <tom@codesourcery.com>
15623
15624 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15625 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15626 Redefine to true.
15627 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15628 clobbers to CALL_INSN_FUNCTION_USAGE.
15629 (define_expand "sibcall_internal")
15630 (define_expand "sibcall_value_internal"): New.
15631 (define_expand "call", define_expand "call_value"): Add argument to
15632 arm_emit_call_insn.
15633 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15634 (define_expand "sibcall_value"): Use sibcall_value_internal and
15635 arm_emit_call_insn.
15636
15637 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15638
15639 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15640
15641 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15642
15643 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15644 __udivmoddi4.
15645
15646 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15647
15648 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15649 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15650 annotations. Fix DWARF information.
15651
15652 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15653
15654 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15655 __udivmoddi4, and fixups for negative operands.
15656
15657 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15658
15659 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15660
15661 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15662
15663 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15664 to __udivmoddi4.
15665
15666 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15667
15668 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15669 manipulation.
15670
15671 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15672
15673 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15674 describing register usage on function entry and exit.
15675
15676 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15677
15678 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15679 (__aeabi_ldivmod): Fix whitespace.
15680
15681 2014-06-18 Andreas Schwab <schwab@suse.de>
15682
15683 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15684 Remove blank line after @item.
15685
15686 2014-06-18 Richard Henderson <rth@redhat.com>
15687
15688 PR target/61545
15689 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15690
15691 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15692
15693 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15694 POST_MODIFY for neon loads and stores.
15695 (arm_print_operand): Output post-index register for neon loads and
15696 stores.
15697
15698 2014-06-18 Richard Biener <rguenther@suse.de>
15699
15700 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15701
15702 2014-06-18 Richard Biener <rguenther@suse.de>
15703
15704 * tree-pass.h (make_pass_dce_loop): Remove.
15705 * passes.def: Replace pass_dce_loop with pass_dce.
15706 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15707 changed free niter estimates and reset the scev cache.
15708 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15709 make_pass_dce_loop): Remove.
15710 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15711 (fini_copy_prop): Return whether something changed. Always
15712 let substitute_and_fold perform DCE and free niter estimates
15713 and reset the scev cache if so.
15714 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15715 (pass_data_copy_prop): Do not unconditionally schedule
15716 cleanup-cfg or update-ssa.
15717
15718 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15719
15720 PR tree-optimization/61518
15721 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15722 reduction var is used in reduction stmt or phi-function only.
15723
15724 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15725
15726 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15727
15728 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15729
15730 PR tree-optimization/61517
15731 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15732 whose rhs's first tree is the source expression instead of the
15733 expression itself.
15734 (find_bswap_or_nop): Likewise.
15735 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15736 gimple stmt whose rhs's first tree is the source. In the memory source
15737 case, move the stmt to be replaced close to one of the original load to
15738 avoid the problem of a store between the load and the stmt's original
15739 location.
15740 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15741 signature.
15742
15743 2014-06-18 Andreas Schwab <schwab@suse.de>
15744
15745 PR rtl-optimization/54555
15746 * postreload.c (move2add_use_add2_insn): Substitute
15747 STRICT_LOW_PART only if it is cheaper.
15748
15749 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15750
15751 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15752 Do not use unspec as call operand. Use memory_operand instead of
15753 memory_nox32_operand and add "m" operand constraint. Disable
15754 pattern for TARGET_X32.
15755 (*sibcall_pop_memory): Ditto.
15756 (*sibcall_value_memory): Ditto.
15757 (*sibcall_value_pop_memory): Ditto.
15758 (sibcall peepholes): Merge SImode and DImode patterns using
15759 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15760 Disable pattern for TARGET_X32. Check if eliminated register is
15761 really dead after call insn. Generate call RTX without unspec operand.
15762 (sibcall_value peepholes): Ditto.
15763 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15764 instead of memory_nox32_operand. Check if eliminated register is
15765 really dead after call insn. Generate call RTX without unspec operand.
15766 (sibcall_value_pop peepholes): Ditto.
15767 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15768
15769 2014-06-18 Terry Guo <terry.guo@arm.com>
15770
15771 PR target/61544
15772 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15773 reach the head.
15774
15775 2014-06-18 Olivier Hainque <hainque@adacore.com>
15776
15777 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15778 memorization of the end of block source location.
15779 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15780 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15781 end source location info we have on the block entry/exit code we
15782 generate.
15783
15784 2014-06-18 Richard Biener <rguenther@suse.de>
15785
15786 * common.opt (fssa-phiopt): New option.
15787 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15788 but not with -Og.
15789 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15790 * doc/invoke.texi (-fssa-phiopt): Document.
15791
15792 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15793
15794 * genattrtab.c (n_bypassed): New variable.
15795 (process_bypasses): Initialise n_bypassed.
15796 Count number of bypassed reservations.
15797 (make_automaton_attrs): Allocate space for bypassed reservations
15798 rather than number of bypasses.
15799
15800 2014-06-18 Richard Biener <rguenther@suse.de>
15801
15802 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15803 we propagated anything.
15804 (substitute_and_fold_dom_walker::before_dom_children): Something
15805 changed if we propagated into PHI arguments.
15806 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15807 we removed a stmt.
15808
15809 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15810
15811 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15812 vector case.
15813 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15814 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15815 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15816 Introduces alternative way of loads group permutaions.
15817 (vect_transform_grouped_load): Try alternative way of permutations.
15818
15819 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15820
15821 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15822 changed in ORT_TARGET region, don't jump to do_outer.
15823 (struct gimplify_adjust_omp_clauses_data): New type.
15824 (gimplify_adjust_omp_clauses_1): Adjust for data being
15825 a struct gimplify_adjust_omp_clauses_data pointer instead
15826 of tree *. Pass pre_p as a new argument to
15827 lang_hooks.decls.omp_finish_clause hook.
15828 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15829 splay_tree_foreach to pass both list_p and pre_p.
15830 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15831 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15832 gimplify_adjust_omp_clauses callers.
15833 * langhooks.c (lhd_omp_finish_clause): New function.
15834 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15835 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15836 * langhooks.h (struct lang_hooks_for_decls): Add a new
15837 gimple_seq * argument to omp_finish_clause hook.
15838 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15839 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15840 (scan_omp_parallel, lower_omp_for): When adding
15841 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15842 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15843 * tree-nested.c (convert_nonlocal_omp_clauses,
15844 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15845 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15846
15847 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15848
15849 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15850 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15851
15852 2014-06-17 Xinliang David Li <davidxl@google.com>
15853
15854 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15855 * passes.c (pass_init_dump_file): Do not set initialize
15856 flag to false unconditionally.
15857
15858 2014-06-17 Richard Biener <rguenther@suse.de>
15859
15860 * genopinit.c (main): Use vec<>::qsort method.
15861 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15862 Likewise.
15863 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15864
15865 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15866
15867 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15868 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15869 (mips_move_to_gpr_cost): Remove ST_REGS case.
15870 (mips_move_from_gpr_cost): Likewise.
15871 (mips_register_move_cost): Likewise.
15872 (mips_secondary_reload_class): Likewise.
15873
15874 2014-06-17 Richard Biener <rguenther@suse.de>
15875
15876 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15877 (pass_all_optimizations): Move 3rd copy-prop pass from after
15878 fre to before ifcombine/phiopt.
15879
15880 2014-06-17 Richard Biener <rguenther@suse.de>
15881
15882 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15883 and allow all blocks to be forwarders.
15884
15885 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15886
15887 PR target/61483
15888 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15889 variable 'size'; calculate 'size' right in the front; use
15890 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15891 pcum->aapcs_stack_words.
15892
15893 2014-06-17 Nick Clifton <nickc@redhat.com>
15894
15895 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15896 (umulhi3, mulsidi3, umulsidi3): Likewise.
15897
15898 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15899
15900 PR middle-end/61508
15901 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15902 check for section name.
15903
15904 2014-06-17 Richard Biener <rguenther@suse.de>
15905
15906 * tree-ssa-propagate.c: Include domwalk.h.
15907 (substitute_and_fold): Outline main worker into a domwalker ...
15908 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15909 Schedule stmts we can fully propagate for removal. Remove
15910 poor-mans DCE.
15911 (substitute_and_fold): Apply a dominator walk to perform
15912 substitution. Process stmts scheduled for removal here.
15913
15914 2014-06-17 Richard Biener <rguenther@suse.de>
15915
15916 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15917 of PHI node moving.
15918
15919 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15920
15921 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15922 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15923 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15924 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15925 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15926 TARGET_HARD_FLOAT.
15927 (get_fpscr) : Likewise.
15928
15929 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15930
15931 PR rtl-optimization/61325
15932 * lra-constraints.c (valid_address_p): Add forward declaration.
15933 (simplify_operand_subreg): Check address validity before and after
15934 alter_reg of memory subreg.
15935
15936 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15937
15938 * config/i386/i386.c (decide_alg): Correctly handle
15939 maximum size of stringop algorithm.
15940
15941 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15942
15943 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15944
15945 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15946
15947 PR rtl-optimization/61522
15948 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15949
15950 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15951
15952 Revert:
15953 * symtab.c (symtab_node::reset_section): New method.
15954 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15955 for localization.
15956 * cgraph.h (reset_section): Declare.
15957 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15958 do not consider comdat locals.
15959 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15960 for new symbol.
15961 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15962 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15963 reset sections of symbols dragged out of the comdats.
15964 (function_and_variable_visibility): Reset sections of
15965 localized symbols.
15966
15967 2014-06-16 Richard Biener <rguenther@suse.de>
15968
15969 PR tree-optimization/61482
15970 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15971 [-INF(OVF), +INF(OVF)] range.
15972
15973 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15974
15975 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15976 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15977 handling 32-bit multiplication.
15978
15979 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15980
15981 PR middle-end/61430
15982 * lra-lives.c (process_bb_lives): Skip creating copy during
15983 insn scan when src/dest has constrained to same regno.
15984
15985 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15986
15987 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15988 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15989
15990 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15991
15992 * asan.c (check_func): New function.
15993 (maybe_create_ssa_name): Likewise.
15994 (build_check_stmt_with_calls): Likewise.
15995 (use_calls_p): Likewise.
15996 (report_error_func): Change interface.
15997 (build_check_stmt): Allow non-integer lengths; add support
15998 for new parameter.
15999 (asan_instrument): Likewise.
16000 (instrument_mem_region_access): Moved code to build_check_stmt.
16001 (instrument_derefs): Likewise.
16002 (instrument_strlen_call): Likewise.
16003 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16004 * doc/invoke.texi: Describe new parameter.
16005 * params.def: Define new parameter.
16006 * params.h: Likewise.
16007 * sanitizer.def: Describe new builtins.
16008
16009 2014-06-16 Richard Biener <rguenther@suse.de>
16010
16011 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16012 Make all defs available at the end.
16013 (eliminate): If we remove a PHI node schedule cfg-cleanup.
16014
16015 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16016
16017 PR plugins/45078
16018 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16019
16020 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
16021
16022 PR bootstrap/61516
16023 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16024 initialization. Replace remaining use of uid.
16025
16026 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16027
16028 * c-family/c-common.c (handle_tls_model_attribute): Use
16029 set_decl_tls_model.
16030 * c-family/c-common.c (handle_tls_model_attribute): Use
16031 set_decl_tls_model.
16032 * cgraph.h (struct varpool_node): Add tls_model.
16033 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16034 * tree.h (DECL_TLS_MODEL): Update.
16035 (DECL_THREAD_LOCAL_P): Check that variable is static.
16036 (decl_tls_model): Declare.
16037 (set_decl_tls_model): Declare.
16038 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16039 set symbol prorperties.
16040 (get_emutls_init_templ_addr): Cleanup.
16041 (new_emutls_decl): Update.
16042 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16043 (lto_input_varpool_node): Likewise.
16044 * lto-streamer-out.c (hash_tree): Likewise.
16045 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16046 not stream DECL_TLS_MODEL.
16047 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16048 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16049
16050 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16051
16052 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16053
16054 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16055
16056 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16057 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16058 lists.
16059 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16060 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16061 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16062 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16063 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16064 (df_get_artificial_defs, df_get_artificial_uses)
16065 (df_single_def, df_single_use): Update accordingly.
16066 (df_refs_chain_dump): Take the first element in a linked list as
16067 parameter, rather than a pointer to an array of pointers.
16068 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16069 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16070 (df_chain_create_bb_process_use): Likewise.
16071 (df_md_bb_local_compute_process_def): Likewise.
16072 * fwprop.c (process_defs, process_uses): Likewise.
16073 (register_active_defs, update_uses): Likewise.
16074 (forward_propagate_asm): Update for new df_ref linking.
16075 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16076 (df_null_ref_rec, df_null_mw_rec): Likewise.
16077 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16078 explicitly.
16079 (df_scan_free_bb_info): Remove check for null artificial_defs.
16080 (df_install_ref_incremental): Adjust for new df_ref linking.
16081 Use a single-element insertion rather than a full sort.
16082 (df_ref_chain_delete_du_chain): Take the first element
16083 in a linked list as parameter, rather than a pointer to an array of
16084 pointers.
16085 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16086 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16087 (df_insn_info_delete): Remove check for null defs and call to
16088 df_scan_free_mws_vec.
16089 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16090 null rather than df_null_*_rec.
16091 (df_insn_rescan_debug_internal): Likewise, and update null
16092 checks in the same way. Remove check for null defs.
16093 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16094 Move a single element rather doing a full sort.
16095 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16096 linking.
16097 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16098 Initialize df_ref and df_mw_hardreg lists to null rather than
16099 df_null_*_rec.
16100 (df_ref_compare): Take df_refs as parameter, transferring the
16101 old interface to...
16102 (df_ref_ptr_compare): ...this new function.
16103 (df_sort_and_compress_refs): Update accordingly.
16104 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16105 old interface to...
16106 (df_mw_ptr_compare): ...this new function.
16107 (df_sort_and_compress_mws): Update accordingly.
16108 (df_install_refs, df_install_mws): Return a linked list rather than
16109 an array of pointers.
16110 (df_refs_add_to_chains): Assert that old lists are empty rather
16111 than freeing them.
16112 (df_insn_refs_verify): Don't handle null defs speciailly.
16113 * web.c (union_match_dups): Update for new df_ref linking.
16114
16115 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16116
16117 * df.h (df_ref_create, df_ref_remove): Delete.
16118 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16119 (df_ref_remove): Likewise.
16120
16121 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16122
16123 * df.h (df_single_def, df_single_use): New functions.
16124 * ira.c (find_moveable_pseudos): Use them.
16125
16126 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16127
16128 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16129 * df-problems.c (df_note_bb_compute): Use it.
16130 * regstat.c (regstat_bb_compute_ri): Likewise.
16131
16132 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16133
16134 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16135 * cse.c (cse_extended_basic_block): Use them.
16136 * dce.c (mark_artificial_use): Likewise.
16137 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16138 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16139 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16140 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16141 (df_simulate_initialize_backwards): Likewise.
16142 (df_simulate_finalize_backwards): Likewise.
16143 (df_simulate_initialize_forwards): Likewise.
16144 (df_md_simulate_artificial_defs_at_top): Likewise.
16145 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16146 * regrename.c (init_rename_info): Likewise.
16147 * regstat.c (regstat_bb_compute_ri): Likewise.
16148 (regstat_bb_compute_calls_crossed): Likewise.
16149
16150 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16151
16152 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16153 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16154 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16155 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16156 * combine.c (create_log_links): Likewise.
16157 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16158 (try_eliminate_compare): Likewise.
16159 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16160 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16161 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16162 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16163 (word_dce_process_block, dce_process_block): Likewise.
16164 * ddg.c (def_has_ccmode_p): Likewise.
16165 * df-core.c (df_bb_regno_first_def_find): Likewise.
16166 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16167 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16168 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16169 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16170 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16171 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16172 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16173 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16174 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16175 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16176 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16177 * fwprop.c (local_ref_killed_between_p): Likewise.
16178 (all_uses_available_at, free_load_extend): Likewise.
16179 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16180 * hw-doloop.c (scan_loop): Likewise.
16181 * ifcvt.c (dead_or_predicable): Likewise.
16182 * init-regs.c (initialize_uninitialized_regs): Likewise.
16183 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16184 (process_bb_node_lives): Likewise.
16185 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16186 (find_moveable_pseudos): Likewise.
16187 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16188 * recog.c (peep2_find_free_register): Likewise.
16189 * ree.c (get_defs): Likewise.
16190 * regstat.c (regstat_bb_compute_ri): Likewise.
16191 (regstat_bb_compute_calls_crossed): Likewise.
16192 * sched-deps.c (find_inc, find_mem): Likewise.
16193 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16194 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16195 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16196 (prepare_shrink_wrap): Likewise.
16197 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16198 * web.c (union_defs, pass_web::execute): Likewise.
16199 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16200 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16201
16202 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16203
16204 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16205 to inheritance pseudos.
16206 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16207
16208 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16209
16210 PR target/61415
16211 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16212 (BU_MISC_2): Rename to ...
16213 (BU_LDBL128_2): ... this.
16214 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16215 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16216 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16217 RS6000_BTM_LDBL128.
16218 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16219 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16220 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16221 (unpacktf_1): Likewise.
16222 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16223 (__builtin_longdouble_dw1): Likewise.
16224 * doc/sourcebuild.texi (longdouble128): Document.
16225
16226 2014-06-13 Jeff Law <law@redhat.com>
16227
16228 PR rtl-optimization/61094
16229 PR rtl-optimization/61446
16230 * ree.c (combine_reaching_defs): Get the mode for the copy from
16231 the extension insn rather than the defining insn.
16232
16233 2014-06-13 Dehao Chen <dehao@google.com>
16234
16235 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16236
16237 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16238
16239 * doc/install.texi (--enable-linker-plugin-configure-flags)
16240 (--enable-linker-plugin-flags): Document new flags.
16241
16242 2014-06-13 Martin Jambor <mjambor@suse.cz>
16243
16244 PR ipa/61186
16245 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16246 cache_token if returning early.
16247
16248 2014-06-13 Nick Clifton <nickc@redhat.com>
16249
16250 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16251 requested alignment is active.
16252 (LABEL_ALIGN): Likewise.
16253 (LOOP_ALIGN): Likewise.
16254
16255 2014-06-13 Richard Biener <rguenther@suse.de>
16256
16257 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16258 Rewrite to propagate the VN result into all uses where
16259 possible and to remove stmts becoming dead because of that.
16260 (eliminate): Generalize stmt removal handling, remove in
16261 reverse dominator order to support proper debug stmt
16262 generation. Update stmts before removing stmts.
16263 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16264
16265 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16266
16267 PR tree-optimization/61375
16268 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16269 symbolic number cannot be represented in an uint64_t.
16270 (find_bswap_or_nop_1): Likewise.
16271
16272 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16273
16274 * symtab.c (symtab_node::reset_section): New method.
16275 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16276 for localization.
16277 * cgraph.h (reset_section): Declare.
16278 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16279 do not consider comdat locals.
16280 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16281 for new symbol.
16282 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16283 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16284 reset sections of symbols dragged out of the comdats.
16285 (function_and_variable_visibility): Reset sections of
16286 localized symbols.
16287
16288 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16289
16290 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16291 to use symtab and decl_binds_to_current_def_p
16292 * tree-vectorizer.c (increase_alignment): Increase alignment
16293 of alias target, too.
16294
16295 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16296
16297 PR middle-end/61486
16298 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16299 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16300 if outer combined construct is distribute.
16301 (gimplify_omp_for): For OMP_DISTRIBUTE set
16302 gimplify_omp_ctxp->distribute.
16303 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16304 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16305 mapping into decl map.
16306
16307 2014-06-12 Jason Merrill <jason@redhat.com>
16308
16309 * common.opt (fabi-version): Change default to 0.
16310
16311 2014-06-12 Jason Merrill <jason@redhat.com>
16312
16313 * toplev.c (process_options): Reject -fabi-version=1.
16314
16315 2014-06-12 Jeff Law <law@redhat.com>
16316
16317 PR tree-optimization/61009
16318 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16319 value when we stop processing a block due to problematic PHIs.
16320
16321 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16322
16323 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16324 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16325 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16326 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16327 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16328 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16329 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16330 are not in the spec.
16331
16332 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16333
16334 PR target/59843
16335 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16336 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16337 Support V1DFmode.
16338
16339 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16340
16341 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16342
16343 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16344
16345 PR target/61443
16346 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16347 loading from address spaces.
16348
16349 2014-06-12 Martin Liska <mliska@suse.cz>
16350
16351 PR ipa/61462
16352 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16353 statement is reachable.
16354
16355 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16356
16357 * symtab.c (section_hash): New hash.
16358 (symtab_unregister_node): Clear section before freeing.
16359 (hash_section_hash_entry): New haser.
16360 (eq_sections): New function.
16361 (symtab_node::set_section_for_node): New method.
16362 (set_section_1): Update.
16363 (symtab_node::set_section): Take string instead of tree as parameter.
16364 (symtab_resolve_alias): Update.
16365 * cgraph.h (section_hash_entry_d): New structure.
16366 (section_hash_entry): New typedef.
16367 (cgraph_node): Change comdat_group_ to x_comdat_group,
16368 change section_ to x_section and turn into section_hash_entry;
16369 update accestors; put set_section_for_node offline.
16370 * tree.c (decl_section_name): Turn into string.
16371 (set_decl_section_name): Change parameter to be string.
16372 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16373 * sdbout.c (sdbout_one_type): Update.
16374 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16375 * varasm.c (IN_NAMED_SECTION, get_named_section,
16376 resolve_unique_section, hot_function_section, get_named_text_section,
16377 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16378 make_decl_rtl, default_unique_section): Update.
16379 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16380 (c6x_elf_unique_section): Update.
16381 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16382 * config/pa/pa.c (pa_function_section): Update.
16383 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16384 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16385 * config/arc/arc.c (arc_in_small_data_p): Update.
16386 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16387 * config/mcore/mcore.c (mcore_unique_section): Update.
16388 * config/mips/mips.c (mips16_build_function_stub): Update.
16389 (mips16_build_call_stub): Update.
16390 (mips_function_rodata_section): Update.
16391 (mips_in_small_data_p): Update.
16392 * config/score/score.c (score_in_small_data_p): Update.
16393 * config/rx/rx.c (rx_in_small_data): Update.
16394 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16395 (rs6000_xcoff_asm_named_section): Update.
16396 (rs6000_xcoff_unique_section): Update.
16397 * config/frv/frv.c (frv_string_begins_with): Update.
16398 (frv_in_small_data_p): Update.
16399 * config/v850/v850.c (v850_encode_data_area): Update.
16400 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16401 (bfin_handle_l1_data_attribute): Update.
16402 (bfin_handle_l2_attribute): Update.
16403 * config/mep/mep.c (mep_unique_section): Update.
16404 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16405 Update.
16406 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16407 (h8300_handle_tiny_data_attribute): Update.
16408 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16409 (m32r_in_small_data_p): Update.
16410 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16411 * config/i386/i386.c (ix86_in_large_data_p): Update.
16412 * config/i386/winnt.c (i386_pe_unique_section): Update.
16413 * config/darwin.c (darwin_function_section): Update.
16414 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16415 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16416 (new_emutls_decl): Update.
16417 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16418 input_varpool_node): Update.
16419 (ead_string_cst): Turn to ...
16420 (read_string): ... this one.
16421 * dwarf2out.c (secname_for_decl): Update.
16422 * asan.c (asan_protect_global): Update.
16423
16424 2014-06-11 DJ Delorie <dj@redhat.com>
16425
16426 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16427 cache lines.
16428 * config/rx/rx.c (rx_option_override): Likewise.
16429 (rx_align_for_label): Likewise.
16430
16431 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16432
16433 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16434
16435 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16436 prototype.
16437
16438 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16439
16440 * common.md: New file.
16441 * doc/md.texi: Update description of generic, machine-independent
16442 constraints.
16443 * config/s390/constraints.md (e): Delete.
16444 * Makefile.in (md_file): Include common.md.
16445 * config/m32c/t-m32c (md_file): Likewise.
16446 * genpreds.c (general_mem): New array.
16447 (generic_constraint_letters): Remove constraints now defined by
16448 common.md.
16449 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16450 Allow the first character to be '<' or '>' as well.
16451 * genoutput.c (general_mem): New array.
16452 (indep_constraints): Remove constraints now defined by common.md.
16453 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16454 Remove special handling of 'm'.
16455 * ira-costs.c (record_reg_classes): Remove special handling of
16456 constraints now defined by common.md.
16457 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16458 * ira-lives.c (single_reg_class): Likewise.
16459 (ira_implicitly_set_insn_hard_regs): Likewise.
16460 * lra-constraints.c (reg_class_from_constraints): Likewise.
16461 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16462 * postreload.c (reload_cse_simplify_operands): Likewise.
16463 * reload.c (push_secondary_reload, scratch_reload_class)
16464 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16465 * reload1.c (maybe_fix_stack_asms): Likewise.
16466 * targhooks.c (default_secondary_reload): Likewise.
16467 * stmt.c (parse_output_constraint): Likewise.
16468 * recog.c (preprocess_constraints): Likewise.
16469 (constrain_operands, peep2_find_free_register): Likewise.
16470 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16471 must be handled specially.
16472
16473 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16474
16475 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16476 * genpreds.c (have_const_dbl_constraints): Delete.
16477 (add_constraint): Don't set it.
16478 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16479 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16480 constraints using the lookup_constraint logic.
16481 * ira-lives.c (single_reg_class): Likewise.
16482 * ira.c (ira_setup_alts): Likewise.
16483 * lra-constraints.c (process_alt_operands): Likewise.
16484 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16485 * reload.c (find_reloads): Likewise.
16486
16487 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16488
16489 * genpreds.c (const_int_start, const_int_end): New variables.
16490 (choose_enum_order): Output CONST_INT constraints before memory
16491 constraints.
16492 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16493 Add CT_CONST_INT.
16494 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16495 * ira.c (ira_setup_alts): Likewise.
16496 * lra-constraints.c (process_alt_operands): Likewise.
16497 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16498 * reload.c (find_reloads): Likewise.
16499
16500 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16501
16502 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16503 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16504 * recog.c (preprocess_constraints): Update accordingly.
16505
16506 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16507
16508 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16509 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16510 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16511 * genpreds.c (print_type_tree): New function.
16512 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16513 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16514 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16515 Write out enum constraint_type and get_constraint_type.
16516 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16517 constraint_num rather than a constraint string.
16518 (satisfies_address_constraint_p): Likewise.
16519 (reg_class_from_constraints): Avoid old constraint macros.
16520 (process_alt_operands, process_address_1): Likewise.
16521 (curr_insn_transform): Likewise.
16522 * ira-costs.c (record_reg_classes): Likewise.
16523 (record_operand_costs): Likewise.
16524 * ira-lives.c (single_reg_class): Likewise.
16525 (ira_implicitly_set_insn_hard_regs): Likewise.
16526 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16527 * postreload.c (reload_cse_simplify_operands): Likewise.
16528 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16529 (constrain_operands, peep2_find_free_register): Likewise.
16530 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16531 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16532 * reload1.c (maybe_fix_stack_asms): Likewise.
16533 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16534 * targhooks.c (default_secondary_reload): Likewise.
16535 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16536 to EXTRA_CONSTRAINT_STR.
16537 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16538
16539 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16540
16541 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16542 (write_constraint_satisfied_p_array): ...this new function.
16543 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16544 an array.
16545 (write_insn_preds_c): Update accordingly.
16546
16547 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16548
16549 * genpreds.c (write_lookup_constraint): Rename to...
16550 (write_lookup_constraint_1): ...this.
16551 (write_lookup_constraint_array): New function.
16552 (write_tm_preds_h): Define lookup_constraint as an inline function
16553 that uses write_lookup_constraint_array where possible.
16554 (write_insn_preds_c): Update for the changes above.
16555
16556 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16557
16558 * doc/md.texi (regclass_for_constraint): Rename to...
16559 (reg_class_for_constraint): ...this.
16560 * genpreds.c (num_constraints, enum_order, register_start)
16561 (register_end, satisfied_start, memory_start, memory_end)
16562 (address_start, address_end): New variables.
16563 (add_constraint): Count the number of constraints.
16564 (choose_enum_order): New function.
16565 (write_enum_constraint_num): Iterate over enum_order.
16566 (write_regclass_for_constraint): Rename to...
16567 (write_reg_class_for_constraint_1): ...this and update output
16568 accordingly.
16569 (write_constraint_satisfied_p): Rename to...
16570 (write_constraint_satisfied_p_1): ...this and update output
16571 accordingly. Do nothing if all extra constraints are register
16572 constraints.
16573 (write_insn_extra_memory_constraint): Delete.
16574 (write_insn_extra_address_constraint): Delete.
16575 (write_range_function): New function.
16576 (write_tm_preds_h): Define constraint_satisfied_p and
16577 reg_class_for_constraint as inline functions that do a range check
16578 before calling the out-of-line function. Use write_range_function
16579 to implement insn_extra_{register,memory,address}_constraint,
16580 the first of which is new.
16581 (write_insn_preds_c): Update after above changes to write_* functions.
16582 (main): Call choose_enum_order.
16583
16584 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16585
16586 PR tree-optimization/61306
16587 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16588 expression instead of its size.
16589 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16590 false to prevent optimization when the result is unpredictable due to
16591 arithmetic right shift of signed type with highest byte is set.
16592 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16593 (init_symbolic_number): Likewise.
16594 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16595 when the result is unpredictable due to sign extension.
16596
16597 2014-06-11 Terry Guo <terry.guo@arm.com>
16598
16599 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16600 (*thumb1_addsi3): Ditto.
16601 (*thumb_subdi3): Ditto.
16602 (thumb1_subsi3_insn): Ditto.
16603 (*thumb_mulsi3): Ditto.
16604 (*thumb_mulsi3_v6): Ditto.
16605 (*thumb1_andsi3_insn): Ditto.
16606 (thumb1_bicsi3): Ditto.
16607 (*thumb1_iorsi3_insn): Ditto.
16608 (*thumb1_xorsi3_insn): Ditto.
16609 (*thumb1_ashlsi3): Ditto.
16610 (*thumb1_ashrsi3): Ditto.
16611 (*thumb1_lshrsi3): Ditto.
16612 (*thumb1_rotrsi3): Ditto.
16613 (*thumb1_negdi2): Ditto.
16614 (*thumb1_negsi2): Ditto.
16615 (*thumb1_abssi2): Ditto.
16616 (*thumb1_neg_abssi2): Ditto.
16617 (*thumb1_one_cmplsi2): Ditto.
16618 (*thumb1_zero_extendhisi2): Ditto.
16619 (*thumb1_zero_extendqisi2): Ditto.
16620 (*thumb1_zero_extendqisi2_v6): Ditto.
16621 (thumb1_extendhisi2): Ditto.
16622 (thumb1_extendqisi2): Ditto.
16623 (*thumb1_movdi_insn): Ditto.
16624 (*thumb1_movsi_insn): Ditto.
16625 (*thumb1_movhi_insn): Ditto.
16626 (thumb_movhi_clobber): Ditto.
16627 (*thumb1_movqi_insn): Ditto.
16628 (*thumb1_movhf): Ditto.
16629 (*thumb1_movsf_insn): Ditto.
16630 (*thumb_movdf_insn): Ditto.
16631 (movmem12b): Ditto.
16632 (movmem8b): Ditto.
16633 (cbranchqi4): Ditto.
16634 (cbranchsi4_insn): Ditto.
16635 (cbranchsi4_scratch): Ditto.
16636 (*negated_cbranchsi4): Ditto.
16637 (*tbit_cbranch): Ditto.
16638 (*tlobits_cbranch): Ditto.
16639 (*tstsi3_cbranch): Ditto.
16640 (*cbranchne_decr1): Ditto.
16641 (*addsi3_cbranch): Ditto.
16642 (*addsi3_cbranch_scratch): Ditto.
16643 (*thumb_cmpdi_zero): Ditto.
16644 (cstoresi_eq0_thumb1): Ditto.
16645 (cstoresi_ne0_thumb1): Ditto.
16646 (*cstoresi_eq0_thumb1_insn): Ditto.
16647 (*cstoresi_ne0_thumb1_insn): Ditto.
16648 (cstoresi_nltu_thumb1): Ditto.
16649 (cstoresi_ltu_thumb1): Ditto.
16650 (thumb1_addsi3_addgeu): Ditto.
16651 (*thumb_jump): Ditto.
16652 (*call_reg_thumb1_v5): Ditto.
16653 (*call_reg_thumb1): Ditto.
16654 (*call_value_reg_thumb1_v5): Ditto.
16655 (*call_value_reg_thumb1): Ditto.
16656 (*call_insn): Ditto.
16657 (*call_value_insn): Ditto.
16658 (thumb1_casesi_internal_pic): Ditto.
16659 (thumb1_casesi_dispatch): Ditto.
16660 (*thumb1_indirect_jump): Ditto.
16661 (prologue_thumb1_interwork): Ditto.
16662 (*epilogue_insns): Ditto.
16663 (consttable_1): Ditto.
16664 (consttable_2): Ditto.
16665 (tablejump): Ditto.
16666 (*thumb1_tablejump): Ditto.
16667 (thumb_eh_return): Ditto.
16668 (define_peephole2): Two of them are thumb1 only and got moved into
16669 new file thumb1.md.
16670 (define_split): Six of them are thumb1 only and got moved into new
16671 file thumb1.md.
16672 * config/arm/thumb1.md: New file comprised of above thumb1 only
16673 patterns.
16674
16675 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16676
16677 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16678 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16679 dependencies.
16680 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16681 (aarch64_crc_builtin_datum): New struct.
16682 (aarch64_crc_builtin_data): New.
16683 (aarch64_init_crc32_builtins): New function.
16684 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16685 (aarch64_crc32_expand_builtin): New.
16686 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16687 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16688 __ARM_FEATURE_CRC32 when appropriate.
16689 (TARGET_CRC32): Define.
16690 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16691 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16692 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16693 (aarch64_<crc_variant>): New pattern.
16694 * config/aarch64/arm_acle.h: New file.
16695 * config/aarch64/iterators.md (CRC): New int iterator.
16696 (crc_variant, crc_mode): New int attributes.
16697 * doc/aarch64-acle-intrinsics.texi: New file.
16698 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16699 Include aarch64-acle-intrinsics.texi.
16700
16701 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16702
16703 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16704 check for stores group of length 3.
16705 (vect_permute_store_chain): New permutations for stores group of
16706 length 3.
16707 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16708 of vec_perm_shuffle for the new permutations.
16709
16710 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16711
16712 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16713 table rewriting temporarily on targets not supporting ONE_ONLY.
16714
16715 2014-06-11 Richard Biener <rguenther@suse.de>
16716
16717 PR middle-end/61437
16718 Revert
16719 2014-06-04 Richard Biener <rguenther@suse.de>
16720
16721 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16722 TREE_PUBLIC and DECL_EXTERNAL decls.
16723
16724 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16725
16726 * varasm.c (set_implicit_section): New function.
16727 (resolve_unique_section): Use it to set implicit section
16728 for aliases, too.
16729 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16730 (default_function_section): Likewise.
16731 (decl_binds_to_current_def_p): Constify argument.
16732 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16733 * asan.c (asan_protect_global): Use
16734 symtab_get_node (decl)->implicit_section.
16735 * symtab.c (dump_symtab_base): Dump implicit sections.
16736 (verify_symtab_base): Verify sanity of sectoins and comdats.
16737 (symtab_resolve_alias): Alias share the section of its target.
16738 (set_section_1): New function.
16739 (symtab_node::set_section): Move here, recurse to aliases.
16740 (verify_symtab): Check for duplicated symtab lists.
16741 * tree-core.h (implicit_section_name_p): Remove.
16742 * tree-vect-data-refs.c: Include varasm.h.
16743 (vect_can_force_dr_alignment_p): Fix conditional on when
16744 decl bints to current definition; use
16745 symtab_get_node (decl)->implicit_section.
16746 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16747 * cgraph.h (struct symtab_node): Add implicit_section.
16748 (set_section): Rename to ...
16749 (set_section_for_node): ... this one.
16750 (set_section): Declare.
16751 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16752 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16753 input_overwrite_node, input_varpool_node): Stream implicit_section.
16754 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16755 removal; it will fail in LTO.
16756
16757 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16758
16759 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16760 Change second alternative type to f_mcr.
16761 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16762 and 12th alternatives' types to f_mcr and f_mrc.
16763 (*movdi_aarch64): Same for 12th and 13th alternatives.
16764 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16765 (aarch64_movtilow_tilow): Change type to fmov.
16766
16767 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16768
16769 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16770 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16771
16772 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16773
16774 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16775 New expander.
16776 (aarch64_sqrdmulh_lane<mode>): Likewise.
16777 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16778 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16779 (aarch64_sqdmulh_laneq<mode>): New expander.
16780 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16781 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16782 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16783 (aarch64_sqdmulh_lane<mode>): New expander.
16784 (aarch64_sqrdmulh_lane<mode>): Likewise.
16785 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16786 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16787 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16788 (aarch64_sqdmlal_laneq<mode>): Likewise.
16789 (aarch64_sqdmlsl_lane<mode>): Likewise.
16790 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16791 (aarch64_sqdmlal2_lane<mode>): Likewise.
16792 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16793 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16794 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16795 (aarch64_sqdmull_lane<mode>): Likewise.
16796 (aarch64_sqdmull_laneq<mode>): Likewise.
16797 (aarch64_sqdmull2_lane<mode>): Likewise.
16798 (aarch64_sqdmull2_laneq<mode>): Likewise.
16799
16800 2014-06-10 Richard Biener <rguenther@suse.de>
16801
16802 PR tree-optimization/61438
16803 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16804 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16805 insertion of IVs if running PRE.
16806 (eliminate): Adjust.
16807 (pass_pre::execute): Likewise.
16808 (pass_fre::execute): Likewise.
16809
16810 2014-06-10 Richard Biener <rguenther@suse.de>
16811
16812 PR middle-end/61456
16813 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16814 Do not use the main variant for the type comparison.
16815 (ncr_compar): Likewise.
16816 (nonoverlapping_component_refs_p): Likewise.
16817
16818 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16819
16820 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16821 REG_CFA_RESTORE mode.
16822
16823 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16824
16825 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16826 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16827 expand_vec_perm_pblendv.
16828
16829 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16830
16831 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16832 available.
16833 Simplify description of __crc32d and __crc32cd intrinsics.
16834 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16835 availability.
16836
16837 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16838
16839 PR lto/61334
16840 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16841 * config.in: Regenerate.
16842 * configure: Likewise.
16843
16844 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16845
16846 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16847 and public vars.
16848 (intersect_static_var_sets): Remove.
16849 (propagate): Do not prune local statics.
16850
16851 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16852
16853 PR fortran/60928
16854 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16855 Set lastprivate_firstprivate even if omp_private_outer_ref
16856 langhook returns true.
16857 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16858 langhook, call unshare_expr on new_var and call
16859 build_outer_var_ref to get the last argument.
16860
16861 2014-06-10 Marek Polacek <polacek@redhat.com>
16862
16863 PR c/60988
16864 * doc/extend.texi: Add cindex for transparent_union.
16865
16866 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16867
16868 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16869 init_symbolic_number ().
16870
16871 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16872
16873 PR middle-end/61141
16874 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16875 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16876 (verify_rtl_sharing): Likewise.
16877
16878 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16879
16880 PR c++/54442
16881 * tree.c (build_qualified_type): Use a canonical type for
16882 TYPE_CANONICAL.
16883
16884 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16885
16886 * config/arm/arm-modes.def: Remove XFmode.
16887
16888 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16889
16890 PR target/61062
16891 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16892 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16893 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16894 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16895 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16896 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16897 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16898 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16899 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16900
16901 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16902
16903 * tree-core.h (tree_decl_with_vis): Remove section_name.
16904
16905 2014-06-09 Kito Cheng <kito@0xlab.org>
16906
16907 * ira.c (ira): Don't call init_caller_save if LRA enabled
16908 since LRA use its own infrastructure to handle that.
16909
16910 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16911
16912 * symtab.c (dump_symtab_base): Update dumping.
16913 (symtab_make_decl_local): Clear only DECL_COMDAT.
16914 * tree-vect-data-refs.c (Check that variable is static before
16915 tampering with sections.
16916 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16917 (cgraph_create_virtual_clone): Likewise.
16918 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16919 (decl_section_name, set_decl_section_name): New accessors.
16920 (find_decls_types_r): Do not walk section name
16921 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16922 (decl_comdat_group, decl_comdat_group_id): Constify.
16923 (decl_section_name, set_decl_section_name): Update.
16924 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16925 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16926 (cgraph_make_node_local_1): Clear section and comdat group.
16927 * cgraph.h (set_comdat_group): Sanity check.
16928 (get_section, set_section): New.
16929 * ipa-comdats.c (ipa_comdats): Use get_section.
16930 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16931 * lto-streamer-out.c: Do not follow section names.
16932 * c-family/c-common.c (handle_section_attribute): Update.
16933 * lto-cgraph.c (lto_output_node): Output section.
16934 (lto_output_varpool_node): Likewise.
16935 (read_comdat_group): Rename to ...
16936 (read_identifier): ... this one.
16937 (read_string_cst): New function.
16938 (input_node, input_varpool_node): Input section names.
16939 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16940 (new_emutls_decl): Update.
16941 (secname_for_decl): Check section names only of static vars.
16942 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16943 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16944 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16945 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16946 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16947 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16948 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16949 * config/v850/v850.c (v850_insert_attributes): Likewise.
16950 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16951 Likewise.
16952 (h8300_handle_tiny_data_attribute): Likewise.
16953 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16954 (bfin_handle_l2_attribute): Likewise.
16955
16956 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16957
16958 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16959 remove static initializer.
16960
16961 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16962
16963 * varasm.c (use_blocks_for_decl_p): Check symbol table
16964 instead of alias attribute.
16965 (place_block_symbol): Recurse on aliases.
16966
16967 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16968
16969 * ipa-visibility.c: Include varasm.h
16970 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16971
16972 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16973
16974 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16975 outputting aliases.
16976
16977 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16978
16979 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16980 from test_insn into GGC space escape via SET_SRC.
16981
16982 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16983
16984 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16985 call statement, if any.
16986 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16987 statements, if any. Tidy up.
16988
16989 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16990
16991 PR target/61431
16992 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16993 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16994 handles swapping the two 64-bit double words on little endian
16995 systems. Include V1TImode and optionally TImode in VSX_LE so that
16996 these types are properly swapped. Change all of the insns and
16997 splits that do the 64-bit swaps to use VSX_LE.
16998 (vsx_le_perm_load_<mode>): Likewise.
16999 (vsx_le_perm_store_<mode>): Likewise.
17000 (splitters for little endian memory operations): Likewise.
17001 (vsx_xxpermdi2_le_<mode>): Likewise.
17002 (vsx_lxvd2x2_le_<mode>): Likewise.
17003 (vsx_stxvd2x2_le_<mode>): Likewise.
17004
17005 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
17006
17007 PR target/61423
17008 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17009 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17010 and corresponding splitters. Zero extend general register
17011 or memory input operand to XMM temporary. Enable for
17012 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17013 (floatunssi<mode>2): Update expander predicate.
17014
17015 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
17016
17017 PR rtl-optimization/61325
17018 * lra-constraints.c (process_address_1): Check scale equal to one
17019 to prevent transformation: base + scale * index => base + new_reg.
17020
17021 2014-06-06 Richard Biener <rguenther@suse.de>
17022
17023 PR tree-optimization/59299
17024 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17025 a def operand.
17026 (nearest_common_dominator_of_uses): Likewise.
17027 (statement_sink_location): Adjust. Support sinking loads.
17028
17029 2014-06-06 Martin Jambor <mjambor@suse.cz>
17030
17031 * ipa-prop.c (get_place_in_agg_contents_list): New function.
17032 (build_agg_jump_func_from_list): Likewise.
17033 (determine_known_aggregate_parts): Renamed to
17034 determine_locally_known_aggregate_parts. Moved some functionality
17035 to the two functions above, removed bound checks.
17036
17037 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
17038
17039 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17040 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17041 (aarch64_progress_pointer): Likewise.
17042 (aarch64_copy_one_part_and_move_pointers): Likewise.
17043 (aarch64_expand_movmen): Likewise.
17044 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17045 * config/aarch64/aarch64.md (movmem<mode>): New.
17046
17047 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
17048
17049 * targhooks.c (default_add_stmt_cost): Call target specific
17050 hook instead of default one.
17051
17052 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17053
17054 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17055 endianness instead of host endianness.
17056 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17057 comments.
17058
17059 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17060
17061 PR debug/53927
17062 * function.c (instantiate_decls): Process the saved static chain.
17063 (expand_function_start): If not optimizing, save the static chain
17064 onto the stack.
17065 * tree-nested.c (convert_all_function_calls): Always create the static
17066 chain for nested functions if not optimizing.
17067
17068 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17069
17070 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17071
17072 2014-06-06 Richard Biener <rguenther@suse.de>
17073
17074 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17075 (construct_init_block): Likewise.
17076 (construct_exit_block): Likewise.
17077 (pass_expand::execute): Likewise.
17078 * graphite.c (graphite_transforms): Replace check for current_loops
17079 with a check for > 1 loops.
17080 (pass_graphite_transforms::execute): Adjust.
17081 * ipa-split.c (split_function): Remove check for current_loops.
17082 * omp-low.c (expand_parallel_call): Likewise.
17083 (expand_omp_for_init_counts): Likewise.
17084 (extract_omp_for_update_vars): Likewise.
17085 (expand_omp_for_generic): Likewise.
17086 (expand_omp_sections): Likewise.
17087 (expand_omp_target): Likewise.
17088 * tracer.c (tail_duplicate): Likewise.
17089 (pass_tracer::execute): Likewise.
17090 * trans-mem.c (expand_transaction): Likewise.
17091 * tree-complex.c (expand_complex_div_wide): Likewise.
17092 * tree-eh.c (lower_resx): Likewise.
17093 (cleanup_empty_eh_merge_phis): Likewise.
17094 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17095 current_loops with a check for > 1 loops.
17096 (pass_predcom::execute): Adjust.
17097 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17098 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17099 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17100 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17101 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17102 * tree-switch-conversion.c (process_switch): Likewise.
17103 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17104 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17105 (execute_vrp): Likewise.
17106 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17107
17108 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17109
17110 * rtl.h (insn_location): Declare.
17111 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17112 with UNKNOWN_LOCATION.
17113 * emit-rtl.c (insn_location): New function.
17114 * final.c (notice_source_line): Check that the instruction has a
17115 location before retrieving it and use insn_location.
17116 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17117 * print-rtl.c (print_rtx): Likewise.
17118
17119 2014-06-06 Richard Biener <rguenther@suse.de>
17120
17121 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17122
17123 2014-06-06 Christian Bruel <christian.bruel@st.com>
17124
17125 PR tree-optimization/43934
17126 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17127 cost.
17128
17129 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17130
17131 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17132 return NO_REGS for extra address and memory constraints. Handle
17133 operands that match (or are equivalent to something that matches)
17134 extra constant constraints. Ignore other non-register operands.
17135
17136 2014-06-06 Alan Modra <amodra@gmail.com>
17137
17138 PR target/61300
17139 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17140 * doc/tm.texi: Regenerate.
17141 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17142 Use throughout in place of REG_PARM_STACK_SPACE.
17143 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17144 "incoming" param. Pass to rs6000_function_parms_need_stack.
17145 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17146 prototype_p when incoming. Use function decl when incoming
17147 to handle K&R style functions.
17148 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17149 (INCOMING_REG_PARM_STACK_SPACE): Define.
17150
17151 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17152
17153 PR target/52472
17154 * cfgexpand.c (expand_debug_expr): Use address space of nested
17155 TREE_TYPE for ADDR_EXPR and MEM_REF.
17156
17157 2014-06-05 Jeff Law <law@redhat.com>
17158
17159 PR tree-optimization/61289
17160 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17161 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17162 looking for those which match LHS. All callers changed.
17163 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17164 parameters and code which manipulated them. All callers changed.
17165 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17166 and DST_MAP parameters. Simplify invalidation code by just calling
17167 invalidate_equivalences. All callers changed.
17168 (thread_across_edge): Simplify now that we don't need to maintain
17169 the map of equivalences to invalidate.
17170
17171 2014-06-05 Kai Tietz <ktietz@redhat.com>
17172 Richard Henderson <rth@redhat.com>
17173
17174 PR target/46219
17175 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17176 checking for !TARGET_X32.
17177 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17178 (sibcall_intern): New define_insn, plus required peepholes.
17179 (sibcall_pop_intern): Likewise.
17180 (sibcall_value_intern): Likewise.
17181 (sibcall_value_pop_intern): Likewise.
17182
17183 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17184
17185 * tree-inline.c (tree_function_versioning): Check DF info existence
17186 before accessing it.
17187
17188 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17189
17190 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17191 frame_size.
17192 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17193 aarch64_frame hard_fp_offset and frame_size.
17194 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17195 frame_size; remove original_frame_size.
17196 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17197 (aarch64_initial_elimination_offset): Remove frame_size and
17198 offset. Use aarch64_frame frame_size.
17199
17200 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17201 Jiong Wang <jiong.wang@arm.com>
17202 Renlin <renlin.li@arm.com>
17203
17204 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17205 initialization of R30 offset. Update offset. Iterate core
17206 regisers upto X30. Remove X29, X30 specific code.
17207
17208 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17209 Jiong Wang <jiong.wang@arm.com>
17210
17211 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17212 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17213 (aarch64_register_saved_on_entry): Adjust test.
17214
17215 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17216
17217 * config/aarch64/aarch64.h (machine_function): Move
17218 saved_varargs_size from here...
17219 (aarch64_frame): ... to here.
17220
17221 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17222 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17223 (aarch64_initial_elimination_offset)
17224 (aarch64_setup_incoming_varargs): Adjust location of
17225 saved_varargs_size.
17226
17227 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17228
17229 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17230 layout comment.
17231
17232 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17233 Prachi Godbole <Prachi.Godbole@imgtec.com>
17234
17235 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17236 mips32r5 entry to use PROCESSOR_P5600.
17237 * config/mips/mips-tables.opt: Regenerate.
17238 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17239 * config/mips/mips.c (mips_fmadd_bypass): New function.
17240 (mips_rtx_cost_data): Add costs for p5600.
17241 (mips_issue_rate): Add support for p5600.
17242 (mips_multipass_dfa_lookahead): Likewise.
17243 * config/mips/mips.h (TUNE_P5600): New define.
17244 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17245 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17246 * config/mips/mips.md: Include p5600.md.
17247 (processor): Add p5600.
17248 * config/mips/p5600.md: New file.
17249
17250 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17251
17252 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17253 * config/i386/predicates.md (palignr_operand): New.
17254 Indicates if permutation is suitable for palignr instruction.
17255
17256 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17257
17258 PR tree-optimization/61319
17259 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17260 stmt belongs to loop.
17261
17262 2014-06-05 Richard Biener <rguenther@suse.de>
17263
17264 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17265 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17266 (lookup_tmp_var): Adjust.
17267 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17268
17269 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17270
17271 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17272
17273 2014-06-05 Marek Polacek <polacek@redhat.com>
17274
17275 PR c/49706
17276 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17277
17278 2014-06-04 Tom de Vries <tom@codesourcery.com>
17279
17280 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17281 CONST_INT.
17282
17283 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17284
17285 PR tree-optimization/61385
17286 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17287
17288 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17289
17290 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17291 changed to use fatal_error.
17292 (main): Ensure lto_wrapper_cleanup is run atexit.
17293
17294 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17295
17296 * lra-constraints.c (valid_address_p): Move earlier in file.
17297 (address_eliminator): New structure.
17298 (satisfies_memory_constraint_p): New function.
17299 (satisfies_address_constraint_p): Likewise.
17300 (process_alt_operands, process_address, curr_insn_transform): Use them.
17301
17302 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17303
17304 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17305 const pointer.
17306 (target_lra_int, default_target_lra_int, this_target_lra_int)
17307 (op_alt_data): Delete.
17308 * lra.h (lra_init): Delete.
17309 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17310 (init_insn_code_data_once): Remove op_alt_data handling.
17311 (finish_insn_code_data_once): Likewise.
17312 (init_op_alt_data): Delete.
17313 (get_static_insn_data): Initialize operand_alternative to null.
17314 (free_insn_recog_data): Cast operand_alternative before freeing it.
17315 (setup_operand_alternative): Take the operand_alternative as
17316 parameter and assume it isn't already cached in the static
17317 insn data.
17318 (lra_set_insn_recog_data): Update accordingly.
17319 (lra_init): Delete.
17320 * ira.c (ira_init): Don't call lra_init.
17321 * target-globals.h (this_target_lra_int): Declare.
17322 (target_globals): Remove lra_int.
17323 (restore_target_globals): Update accordingly.
17324 * target-globals.c: Don't include lra-int.h.
17325 (default_target_globals, save_target_globals): Remove lra_int.
17326
17327 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17328
17329 * recog.h (operand_alternative): Convert reg_class, reject,
17330 matched and matches into bitfields.
17331 (preprocess_constraints): New overload.
17332 (preprocess_insn_constraints): New function.
17333 (preprocess_constraints): Take the insn as parameter.
17334 (recog_op_alt): Change into a pointer.
17335 (target_recog): Add x_op_alt.
17336 * recog.c (asm_op_alt): New variable.
17337 (recog_op_alt): Change into a pointer.
17338 (preprocess_constraints): New overload, replacing the old function
17339 definition with one that doesn't use global state.
17340 (preprocess_insn_constraints): New function.
17341 (preprocess_constraints): Use them. Take the insn as parameter.
17342 Use asm_op_alt for asms.
17343 (recog_init): Free existing x_op_alt entries.
17344 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17345 pointer const.
17346 (make_early_clobber_and_input_conflicts): Likewise.
17347 (process_bb_node_lives): Pass the insn to process_constraints.
17348 * reg-stack.c (check_asm_stack_operands): Likewise.
17349 (subst_asm_stack_regs): Likewise.
17350 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17351 * regrename.c (build_def_use): Likewise.
17352 * sched-deps.c (sched_analyze_insn): Likewise.
17353 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17354 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17355 (note_invalid_constants): Likewise.
17356 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17357 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17358 const.
17359
17360 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17361
17362 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17363 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17364 alternatives.
17365 (make_early_clobber_and_input_conflicts): Likewise.
17366 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17367
17368 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17369
17370 * recog.h (alternative_class): New function.
17371 (which_op_alt): Return a const recog_op_alt.
17372 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17373 (subst_asm_stack_regs): Likewise.
17374 * config/arm/arm.c (note_invalid_constants): Likewise.
17375 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17376 the operand_alternative; use alternative class instead.
17377 * sel-sched.c (get_reg_class): Likewise.
17378 * regrename.c (build_def_use): Likewise.
17379 (hide_operands, restore_operands, record_out_operands): Update type
17380 accordingly.
17381
17382 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17383
17384 * recog.h (recog_op_alt): Convert to a flat array.
17385 (which_op_alt): New function.
17386 * recog.c (recog_op_alt): Convert to a flat array.
17387 (preprocess_constraints): Update accordingly, grouping all
17388 operands of the same alternative together, rather than the
17389 other way around.
17390 * ira-lives.c (check_and_make_def_conflict): Likewise.
17391 (make_early_clobber_and_input_conflicts): Likewise.
17392 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17393 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17394 (subst_asm_stack_regs): Likewise.
17395 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17396 * regrename.c (hide_operands, record_out_operands): Likewise.
17397 (build_def_use): Likewise.
17398 * sel-sched.c (get_reg_class): Likewise.
17399 * config/arm/arm.c (note_invalid_constants): Likewise.
17400
17401 2014-06-04 Jason Merrill <jason@redhat.com>
17402
17403 PR c++/51253
17404 PR c++/61382
17405 * gimplify.c (gimplify_arg): Non-static.
17406 * gimplify.h: Declare it.
17407
17408 2014-06-04 Richard Biener <rguenther@suse.de>
17409
17410 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17411 TREE_PUBLIC and DECL_EXTERNAL decls.
17412
17413 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17414
17415 * regcprop.c (copyprop_hardreg_forward_1): Account for
17416 HARD_REGNO_CALL_PART_CLOBBERED.
17417
17418 2014-06-04 Richard Biener <rguenther@suse.de>
17419
17420 * configure.ac: Check whether the underlying type of int64_t
17421 is long or long long.
17422 * configure: Regenerate.
17423 * config.in: Likewise.
17424 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17425 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17426
17427 2014-06-04 Richard Biener <rguenther@suse.de>
17428
17429 PR tree-optimization/60098
17430 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17431 we hit a kill.
17432 (dse_optimize_stmt): Simplify, now that we found a kill
17433 earlier.
17434
17435 2014-06-04 Richard Biener <rguenther@suse.de>
17436
17437 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17438 of accesses with non-invariant address.
17439
17440 2014-06-04 Martin Liska <mliska@suse.cz>
17441
17442 * cgraph.h (cgraph_make_wrapper): New function introduced.
17443 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17444 * ipa-inline.h (inline_analyze_function): The function is global.
17445 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17446
17447 2014-06-04 Martin Liska <mliska@suse.cz>
17448
17449 * tree.h (private_lookup_attribute_starting): New function.
17450 (lookup_attribute_starting): Likewise.
17451 * tree.c (private_lookup_attribute_starting): Likewise.
17452
17453 2014-06-04 Martin Liska <mliska@suse.cz>
17454
17455 * cgraph.h (expand_thunk): New argument added.
17456 (address_taken_from_non_vtable_p): New global function.
17457 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17458 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17459 * cgraphunit.c (analyze_function): Likewise.
17460 (assemble_thunks_and_aliases): Argument added to call.
17461 (expand_thunk): New argument forces to produce GIMPLE thunk.
17462
17463 2014-06-04 Martin Liska <mliska@suse.cz>
17464
17465 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17466 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17467 * profile.c (branch_prob): Likewise.
17468
17469 2014-06-04 Martin Jambor <mjambor@suse.cz>
17470
17471 PR ipa/61340
17472 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17473 handler for switch on an ipa_ref_use enum.
17474 * ipa-reference.c (analyze_function): Likewise.
17475
17476 2014-06-04 Kai Tietz <ktietz@redhat.com>
17477
17478 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17479 from old call-instruction.
17480
17481 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17482
17483 * config/aarch64/aarch64.c (aarch64_classify_address)
17484 (aarch64_legitimize_reload_address): Support full addressing modes
17485 for vector modes.
17486 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17487 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17488
17489 2014-06-03 Andrew Pinski <apinski@cavium.com>
17490
17491 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17492 for OP0.
17493
17494 2014-06-03 Andrew Pinski <apinski@cavium.com>
17495
17496 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17497 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17498
17499 2014-06-03 Kai Tietz <ktietz@redhat.com>
17500
17501 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17502 for 64-bit ms-abi.
17503
17504 2014-06-03 Dehao Chen <dehao@google.com>
17505
17506 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17507 the same loop.
17508
17509 2014-06-03 Marek Polacek <polacek@redhat.com>
17510
17511 PR c/60439
17512 * doc/invoke.texi: Document -Wswitch-bool.
17513 * function.c (stack_protect_epilogue): Cast controlling expression of
17514 the switch to int.
17515 * gengtype.c (walk_type): Generate switch expression with its
17516 controlling expression cast to int.
17517
17518 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17519
17520 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17521 and attiny841.
17522 * config/avr/avr-tables.opt: Regenerate.
17523 * config/avr/t-multilib: Regenerate.
17524 * doc/avr-mmcu.texi: Regenerate.
17525
17526 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17527 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17528
17529 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17530 (ata6617c, ata664251): Add new avr35 devices.
17531 (ata6612c): Add new avr4 device.
17532 (ata6613c, ata6614q): Add new avr5 devices.
17533 * config/avr/avr-tables.opt: Regenerate.
17534 * config/avr/t-multilib: Regenerate.
17535 * doc/avr-mmcu.texi: Regenerate.
17536
17537 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17538
17539 * gcc/config/aarch64/aarch64-builtins.c
17540 (aarch64_types_binop_ssu_qualifiers): New static data.
17541 (TYPES_BINOP_SSU): Define.
17542 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17543 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17544 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17545 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17546 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17547 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17548 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17549 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17550 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17551 suffix to builtin function name, remove cast.
17552 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17553 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17554 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17555
17556 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17557
17558 * gcc/config/aarch64/aarch64-builtins.c
17559 (aarch64_types_binop_uus_qualifiers,
17560 aarch64_types_shift_to_unsigned_qualifiers,
17561 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17562 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17563 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17564 sqshlu_n, uqshl_n): Update qualifiers.
17565 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17566 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17567 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17568 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17569 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17570 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17571 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17572 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17573 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17574 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17575 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17576 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17577 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17578 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17579 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17580 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17581 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17582 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17583 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17584 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17585 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17586 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17587 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17588 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17589 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17590 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17591 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17592
17593 2014-06-03 Teresa Johnson <tejohnson@google.com>
17594
17595 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17596
17597 2014-06-02 Jason Merrill <jason@redhat.com>
17598
17599 PR c++/61020
17600 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17601
17602 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17603
17604 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17605 location == 0.
17606
17607 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17608
17609 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17610 New pattern.
17611 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17612 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17613 * config/aarch64/iterators.md (REVERSE): New iterator.
17614 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17615 (rev_op): New int_attribute.
17616 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17617 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17618 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17619 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17620 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17621 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17622 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17623 Replace temporary __asm__ with __builtin_shuffle.
17624
17625 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17626
17627 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17628 mips64r5.
17629 * config/mips/mips-tables.opt: Regenerate.
17630 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17631 to use mips_isa_rev rather than ISA_MIPS32R2.
17632 * config/mips/mips.h (ISA_MIPS32R3): New define.
17633 (ISA_MIPS32R5): New define.
17634 (ISA_MIPS64R3): New define.
17635 (ISA_MIPS64R5): New define.
17636 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17637 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17638 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17639 and mips64r5.
17640 (MIPS_ISA_SYNCI_SPEC): Likewise.
17641 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17642 (LINK_SPEC): Added mips32r3 and mips32r5.
17643 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17644 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17645 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17646 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17647 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17648 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17649 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17650
17651 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17652
17653 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17654 options.
17655 * config/mips/mips.opt (mxpa): New option.
17656 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17657 assembler.
17658
17659 2014-06-03 Martin Jambor <mjambor@suse.cz>
17660
17661 PR ipa/61160
17662 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17663 thunks.
17664
17665 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17666
17667 PR tree-optimization/61328
17668 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17669 initialization from find_bswap_or_nop_1.
17670 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17671 in source_expr2 before using the size value the function sets. Also
17672 make use of init_symbolic_number () in both the old place and
17673 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17674 doing recursion in the GIMPLE_BINARY_RHS case.
17675
17676 2014-06-03 Richard Biener <rguenther@suse.de>
17677
17678 PR tree-optimization/61383
17679 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17680 stmts can't trap.
17681
17682 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17683
17684 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17685 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17686 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17687 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17688 in this file.
17689 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17690 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17691 * system.h: ...here and make it unconditional.
17692 * target.def (conditional_register_usage): Mention
17693 define_register_constraint instead of old-style constraint macros.
17694 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17695 * doc/tm.texi: Regenerate.
17696 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17697 protected by !USE_MD_CONSTRAINTS.
17698 * config/frv/frv.md: Remove quote from old version of documentation.
17699 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17700 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17701 CONST_DOUBLE_OK_FOR_LETTER.
17702 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17703
17704 2014-06-02 Andrew Pinski <apinski@cavium.com>
17705
17706 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17707 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17708 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17709 file whose name depends on -mabi= and -mbig-endian.
17710 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17711 Handle LP64 better and handle ilp32 too.
17712 (MULTILIB_OPTIONS): Delete.
17713 (MULTILIB_DIRNAMES): Delete.
17714
17715 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17716
17717 * expr.h: Remove prototypes of functions defined in builtins.c.
17718 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17719 Remove prototypes of functions defined in builtins.c.
17720 * builtins.h: Update prototype list to include all exported functions.
17721 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17722 no_c99_libc_has_function): Move to targhooks.c
17723 (build_string_literal, build_call_expr_loc_array,
17724 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17725 to tree.c.
17726 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17727 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17728 no_c99_libc_has_function): Relocate from builtins.c.
17729 * tree.c: Include builtins.h.
17730 (build_call_expr_loc_array, build_call_expr_loc_vec,
17731 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17732 from builtins.c.
17733 * fold-const.h (fold_fma): Move prototype to builtins.h.
17734 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17735 * asan.c: Include builtins.h.
17736 * cfgexpand.c: Likewise.
17737 * convert.c: Likewise.
17738 * emit-rtl.c: Likewise.
17739 * except.c: Likewise.
17740 * expr.c: Likewise.
17741 * fold-const.c: Likewise.
17742 * gimple-fold.c: Likewise.
17743 * gimple-ssa-strength-reduction.c: Likewise.
17744 * gimplify.c: Likewise.
17745 * ipa-inline.c: Likewise.
17746 * ipa-prop.c: Likewise.
17747 * lto-streamer-out.c: Likewise.
17748 * stmt.c: Likewise.
17749 * tree-inline.c: Likewise.
17750 * tree-object-size.c: Likewise.
17751 * tree-sra.c: Likewise.
17752 * tree-ssa-ccp.c: Likewise.
17753 * tree-ssa-forwprop.c: Likewise.
17754 * tree-ssa-loop-ivcanon.c: Likewise.
17755 * tree-ssa-loop-ivopts.c: Likewise.
17756 * tree-ssa-math-opts.c: Likewise.
17757 * tree-ssa-reassoc.c: Likewise.
17758 * tree-ssa-threadedge.c: Likewise.
17759 * tree-streamer-in.c: Likewise.
17760 * tree-vect-data-refs.c: Likewise.
17761 * tree-vect-patterns.c: Likewise.
17762 * tree-vect-stmts.c: Likewise.
17763 * config/aarch64/aarch64.c: Likewise.
17764 * config/alpha/alpha.c: Likewise.
17765 * config/arc/arc.c: Likewise.
17766 * config/arm/arm.c: Likewise.
17767 * config/avr/avr.c: Likewise.
17768 * config/bfin/bfin.c: Likewise.
17769 * config/c6x/c6x.c: Likewise.
17770 * config/cr16/cr16.c: Likewise.
17771 * config/cris/cris.c: Likewise.
17772 * config/epiphany/epiphany.c: Likewise.
17773 * config/fr30/fr30.c: Likewise.
17774 * config/frv/frv.c: Likewise.
17775 * config/h8300/h8300.c: Likewise.
17776 * config/i386/i386.c: Likewise.
17777 * config/i386/winnt.c: Likewise.
17778 * config/ia64/ia64.c: Likewise.
17779 * config/iq2000/iq2000.c: Likewise.
17780 * config/lm32/lm32.c: Likewise.
17781 * config/m32c/m32c.c: Likewise.
17782 * config/m32r/m32r.c: Likewise.
17783 * config/m68k/m68k.c: Likewise.
17784 * config/mcore/mcore.c: Likewise.
17785 * config/mep/mep.c: Likewise.
17786 * config/microblaze/microblaze.c: Likewise.
17787 * config/mips/mips.c: Likewise.
17788 * config/mmix/mmix.c: Likewise.
17789 * config/mn10300/mn10300.c: Likewise.
17790 * config/moxie/moxie.c: Likewise.
17791 * config/msp430/msp430.c: Likewise.
17792 * config/nds32/nds32.c: Likewise.
17793 * config/pa/pa.c: Likewise.
17794 * config/pdp11/pdp11.c: Likewise.
17795 * config/picochip/picochip.c: Likewise.
17796 * config/rl78/rl78.c: Likewise.
17797 * config/rs6000/rs6000.c: Likewise.
17798 * config/rx/rx.c: Likewise.
17799 * config/s390/s390.c: Likewise.
17800 * config/score/score.c: Likewise.
17801 * config/sh/sh.c: Likewise.
17802 * config/sparc/sparc.c: Likewise.
17803 * config/spu/spu.c: Likewise.
17804 * config/stormy16/stormy16.c: Likewise.
17805 * config/tilegx/tilegx.c: Likewise.
17806 * config/tilepro/tilepro.c: Likewise.
17807 * config/v850/v850.c: Likewise.
17808 * config/vax/vax.c: Likewise.
17809 * config/xtensa/xtensa.c: Likewise.
17810
17811 2014-06-02 Jeff Law <law@redhat.com>
17812
17813 PR rtl-optimization/61094
17814 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17815 was marked as do_no_reextend. If a copy is needed to eliminate
17816 an extension, then mark it as do_not_reextend.
17817
17818 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17819
17820 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17821
17822 2014-06-02 Richard Henderson <rth@redhat.com>
17823
17824 PR target/61336
17825 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17826 addresses inside asms. Use output_operand_lossage instead of
17827 gcc_unreachable.
17828
17829 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17830
17831 PR target/61239
17832 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17833 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17834
17835 2014-06-02 Tom de Vries <tom@codesourcery.com>
17836
17837 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17838 case that x has VOIDmode.
17839
17840 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17841
17842 * varasm.c (copy_constant): Delete function.
17843 (build_constant_desc): Don't call it.
17844
17845 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17846
17847 PR target/61154
17848 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17849 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17850 with immediate_operand.
17851
17852 2014-06-02 Andreas Schwab <schwab@suse.de>
17853
17854 * config/ia64/ia64.c
17855 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17856 pending_data_specs first.
17857
17858 2014-06-02 Richard Biener <rguenther@suse.de>
17859
17860 PR tree-optimization/61378
17861 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17862 valueized_anything.
17863
17864 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17865
17866 * config/i386/constraints.md (Bw): Rename from 'w'.
17867 (Bz): Rename from 'z'.
17868 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17869
17870 2014-06-01 Kai Tietz <ktietz@redhat.com>
17871
17872 PR target/61377
17873 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17874 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17875 instead of m constraint.
17876
17877 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17878
17879 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17880 a separate alternative where the scratch operand 2 is marked as
17881 early clobber.
17882
17883 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17884
17885 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17886 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17887 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17888 and __builtins_arm_get_fpscr.
17889 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17890 __builtins_arm_get_fpscr.
17891 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17892 __builtins_arm_ldfpscr.
17893 (arm_atomic_assign_expand_fenv): New function.
17894 * config/arm/vfp.md (set_fpscr): New pattern.
17895 (get_fpscr) : Likewise.
17896 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17897 VUNSPEC_SET_FPSCR.
17898 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17899 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17900
17901 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17902
17903 * asan.c (report_error_func): Add SLOW_P argument, use
17904 BUILT_IN_ASAN_*_N if set.
17905 (build_check_stmt): Likewise.
17906 (instrument_derefs): If T has insufficient alignment,
17907 force same handling as for odd sizes.
17908
17909 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17910 BUILT_IN_ASAN_REPORT_STORE_N): New.
17911 * asan.c (struct asan_mem_ref): Change access_size type to
17912 HOST_WIDE_INT.
17913 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17914 update_mem_ref_hash_table): Likewise.
17915 (asan_mem_ref_hasher::hash): Hash in a HWI.
17916 (report_error_func): Change size_in_bytes argument to HWI.
17917 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17918 two.
17919 (build_shadow_mem_access): New function.
17920 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17921 Handle size_in_bytes not power of two or larger than 16.
17922 (instrument_derefs): Don't give up if size_in_bytes is not
17923 power of two or is larger than 16.
17924
17925 2014-05-30 Kai Tietz <ktietz@redhat.com>
17926
17927 PR target/60104
17928 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17929 for sibling-tail-calls.
17930 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17931 to its use.
17932 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17933 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17934
17935 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17936
17937 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17938 * config/avr/avr-tables.opt: Regenerate.
17939 * config/avr/t-multilib: Regenerate.
17940 * doc/avr-mmcu.texi: Regenerate.
17941
17942 2014-05-30 Ian Lance Taylor <iant@google.com>
17943
17944 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17945 target("sse").
17946
17947 2014-05-30 Tom de Vries <tom@codesourcery.com>
17948
17949 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17950 Redefine as true.
17951
17952 2014-05-30 Tom de Vries <tom@codesourcery.com>
17953
17954 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17955 * lra.c (initialize_lra_reg_info_element): Add init of
17956 actual_call_used_reg_set field.
17957 (lra): Call lra_create_live_ranges before lra_inheritance for
17958 -fuse-caller-save.
17959 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17960 -fuse-caller-save.
17961 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17962 instead of call_used_reg_set for -fuse-caller-save.
17963 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17964
17965 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17966
17967 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17968 to mov_imm.
17969 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17970
17971 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17972
17973 * ira.c (ira_get_dup_out_num): Check for output operands at
17974 the start of the loop. Handle cases where an included alternative
17975 follows an excluded one.
17976
17977 2014-05-29 Mike Stump <mikestump@comcast.net>
17978
17979 PR debug/61352
17980 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17981 post ld passes when lto is used.
17982
17983 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17984
17985 PR rtl-optimization/61325
17986 * lra-constraints.c (process_address): Rename to process_address_1.
17987 (process_address): New function.
17988
17989 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17990
17991 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17992 TYPES_BINOPV): New static data.
17993 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17994 New builtin.
17995 * config/aarch64/aarch64-simd.md (aarch64_ext,
17996 aarch64_im_lane_boundsi): New patterns.
17997 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17998 patterns for EXT.
17999 (aarch64_evpc_ext): New function.
18000
18001 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18002
18003 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18004 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18005 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18006 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18007 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18008
18009 2014-05-29 Tom de Vries <tom@codesourcery.com>
18010
18011 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18012
18013 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
18014 Richard Sandiford <rdsandiford@googlemail.com>
18015
18016 * arm/iterators.md (shiftable_ops): New code iterator.
18017 (t2_binop0, arith_shift_insn): New code attributes.
18018 * arm/predicates.md (shift_nomul_operator): New predicate.
18019 * arm/arm.md (insn_enabled): Delete.
18020 (enabled): Remove insn_enabled test.
18021 (*arith_shiftsi): Delete. Replace with ...
18022 (*<arith_shift_insn>_multsi): ... new pattern.
18023 (*<arith_shift_insn>_shiftsi): ... new pattern.
18024 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18025
18026 2014-05-29 Radovan Obradovic <robradovic@mips.com>
18027 Tom de Vries <tom@codesourcery.com>
18028
18029 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18030 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18031 clobber.
18032 (mips_split_call): Use POST_CALL_TMP_REG.
18033 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18034
18035 2014-05-29 Tom de Vries <tom@codesourcery.com>
18036
18037 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18038 with #ifdef STACK_REGS.
18039
18040 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
18041
18042 * varasm.c (get_variable_section): Walk aliases.
18043 (place_block_symbol): Walk aliases.
18044
18045 2014-05-28 Tom de Vries <tom@codesourcery.com>
18046
18047 Revert:
18048 2014-05-28 Tom de Vries <tom@codesourcery.com>
18049
18050 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18051 * lra.c (initialize_lra_reg_info_element): Add init of
18052 actual_call_used_reg_set field.
18053 (lra): Call lra_create_live_ranges before lra_inheritance for
18054 -fuse-caller-save.
18055 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18056 -fuse-caller-save.
18057 * lra-constraints.c (need_for_call_save_p): Use
18058 actual_call_used_reg_set instead of call_used_reg_set for
18059 -fuse-caller-save.
18060 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18061
18062 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18063
18064 * doc/md.texi: Document that the % constraint character must
18065 be at the beginning of the string.
18066 * genoutput.c (validate_insn_alternatives): Check that '=',
18067 '+' and '%' only appear at the beginning of a constraint.
18068 * ira.c (commutative_constraint_p): Delete.
18069 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18070 at the start of the string.
18071 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18072 duplicate '='s.
18073 * config/arm/neon.md (bicdi3_neon): Likewise.
18074 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18075 (slt_si, sltu_si): Likewise.
18076 * config/vax/vax.md (sbcdi3): Likewise.
18077 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18078 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18079 (mul64): Move '%' to beginning of constraint.
18080 * config/arm/arm.md (*xordi3_insn): Likewise.
18081 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18082 (xorsi3): Likewise.
18083
18084 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18085
18086 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18087
18088 2014-05-28 Jason Merrill <jason@redhat.com>
18089
18090 PR c++/47202
18091 * cgraph.h (symtab_node::get_comdat_group_id): New.
18092 * cgraphunit.c (analyze_functions): Call it.
18093 * symtab.c (dump_symtab_node): Likewise.
18094 * tree.c (decl_comdat_group_id): New.
18095 * tree.h: Declare it.
18096 * lto-streamer-out.c (write_symbol): Use it.
18097 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18098
18099 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18100
18101 PR bootstrap/PR61146
18102 * wide-int.cc: Do not include longlong.h when compiling with clang.
18103
18104 2014-05-28 Richard Biener <rguenther@suse.de>
18105
18106 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18107 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18108 (vrp_visit_assignment_or_call): Print less vertical space.
18109 (vrp_visit_stmt): Likewise.
18110 (vrp_visit_phi_node): Likewise. For a PHI argument with
18111 VR_VARYING range consider recording it as copy.
18112
18113 2014-05-28 Richard Biener <rguenther@suse.de>
18114
18115 Revert
18116 2014-05-28 Richard Biener <rguenther@suse.de>
18117
18118 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18119
18120 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18121
18122 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18123 sufficiently aligned and an offset is used at the same time.
18124 (expand_expr_real_1): Likewise.
18125
18126 2014-05-28 Richard Biener <rguenther@suse.de>
18127
18128 PR middle-end/61045
18129 * fold-const.c (fold_comparison): When folding
18130 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18131 the sign of the remaining constant operand stays the same.
18132
18133 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18134
18135 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18136 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18137 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18138 to the assembler.
18139 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18140 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18141 (m32bit-doubles) Likewise.
18142 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18143 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18144 option for RL78.
18145
18146 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18147
18148 * configure.ac ($gcc_cv_ld_clearcap): New test.
18149 * configure: Regenerate.
18150 * config.in: Regenerate.
18151 * config/sol2.opt (mclear-hwcap): New option.
18152 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18153 * config/sol2-clearcap.map: Moved here from
18154 testsuite/gcc.target/i386/clearcap.map.
18155 * config/sol2-clearcapv2.map: Move here from
18156 gcc.target/i386/clearcapv2.map.
18157 * config/t-sol2 (install): Depend on install-clearcap-map.
18158 (install-clearcap-map): New target.
18159 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18160 -mclear-hwcap.
18161
18162 2014-05-28 Richard Biener <rguenther@suse.de>
18163
18164 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18165 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18166 ... here and remove the rest.
18167 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18168
18169 2014-05-28 Richard Biener <rguenther@suse.de>
18170
18171 PR tree-optimization/61335
18172 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18173 new range fails, drop to varying.
18174
18175 2014-05-28 Olivier Hainque <hainque@adacore.com>
18176
18177 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18178 (CPP_SPEC): Add entry for -mcpu=8548.
18179 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18180 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18181
18182 2014-05-28 Tom de Vries <tom@codesourcery.com>
18183
18184 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18185 * lra.c (initialize_lra_reg_info_element): Add init of
18186 actual_call_used_reg_set field.
18187 (lra): Call lra_create_live_ranges before lra_inheritance for
18188 -fuse-caller-save.
18189 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18190 -fuse-caller-save.
18191 * lra-constraints.c (need_for_call_save_p): Use
18192 actual_call_used_reg_set instead of call_used_reg_set for
18193 -fuse-caller-save.
18194 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18195
18196 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18197 Tom de Vries <tom@codesourcery.com>
18198
18199 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18200 to gccoptlist.
18201 (@item -fuse-caller-save): New item.
18202
18203 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18204 Tom de Vries <tom@codesourcery.com>
18205
18206 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18207 OPT_fuse_caller_save.
18208
18209 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18210 Tom de Vries <tom@codesourcery.com>
18211
18212 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18213 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18214 get_call_reg_set_usage.
18215 * resource.c (mark_set_resources, mark_target_live_regs): Use
18216 get_call_reg_set_usage.
18217 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18218 field.
18219 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18220 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18221 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18222 * ira-build.c (ira_create_allocno): Init
18223 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18224 (create_cap_allocno, propagate_allocno_info)
18225 (propagate_some_info_from_allocno)
18226 (copy_info_to_removed_store_destinations): Handle
18227 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18228 * ira-costs.c (ira_tune_allocno_costs): Use
18229 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18230
18231 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18232 Tom de Vries <tom@codesourcery.com>
18233
18234 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18235 and function_used_regs_valid fields.
18236 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18237 find_all_hard_reg_sets.
18238 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18239 (get_call_reg_set_usage): New function.
18240 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18241 * regs.h (get_call_reg_set_usage): Declare.
18242
18243 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18244
18245 PR libgcc/61152
18246 * config/dbx.h (License): Add Runtime Library Exception.
18247 * config/newlib-stdint.h (License): Same.
18248 * config/rtems.h (License): Same
18249 * config/initfini-array.h (License): Same
18250 * config/v850/v850.h (License): Same.
18251 * config/v850/v850-opts.h (License): Same
18252 * config/v850/rtems.h (License): Same.
18253
18254 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18255
18256 PR target/61044
18257 * doc/extend.texi (Local Labels): Note that label differences are
18258 not supported for AVR.
18259
18260 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18261 Olivier Hainque <hainque@adacore.com>
18262
18263 * rtl.h (set_for_reg_notes): Declare.
18264 * emit-rtl.c (set_for_reg_notes): New function.
18265 (set_unique_reg_note): Use it.
18266 * optabs.c (add_equal_note): Likewise
18267
18268 2014-05-27 Andrew Pinski <apinski@cavium.com>
18269
18270 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18271 Use <w> for the register in assembly template.
18272 (stack_protect_test): Use the mode of operands[0] for the result.
18273 (stack_protect_test_<mode>): Use <w> for the register
18274 in assembly template.
18275
18276 2014-05-27 DJ Delorie <dj@redhat.com>
18277
18278 * config/rx/rx.c (add_vector_labels): New.
18279 (rx_output_function_prologue): Call it.
18280 (rx_handle_func_attribute): Don't require empty arguments.
18281 (rx_handle_vector_attribute): New.
18282 (rx_attribute_table): Add "vector" attribute.
18283 * doc/extend.texi (interrupt, vector): Document new/changed
18284 RX-specific attributes.
18285
18286 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18287
18288 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18289
18290 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18291 predicate to detect a negative quotient.
18292
18293 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18294
18295 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18296 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18297 Add X - Y CMP 0 to X CMP Y transformation.
18298 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18299
18300 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18301
18302 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18303 before printing.
18304
18305 2014-05-27 Steve Ellcey <sellcey@mips.com>
18306
18307 * config/mips/mips.c: Add include of cgraph.h.
18308
18309 2014-05-27 Richard Biener <rguenther@suse.de>
18310
18311 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18312
18313 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18314
18315 PR libgcc/61152
18316 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18317 * config/arm/arm-cores.def (License): Same.
18318 * config/arm/arm-opts.h (License): Same.
18319 * config/arm/aout.h (License): Same.
18320 * config/arm/bpabi.h (License): Same.
18321 * config/arm/elf.h (License): Same.
18322 * config/arm/linux-elf.h (License): Same.
18323 * config/arm/linux-gas.h (License): Same.
18324 * config/arm/netbsd-elf.h (License): Same.
18325 * config/arm/uclinux-eabi.h (License): Same.
18326 * config/arm/uclinux-elf.h (License): Same.
18327 * config/arm/vxworks.h (License): Same.
18328
18329 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18330
18331 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18332 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18333 (arm_init_neon_builtins): Handle NEON_BSWAP.
18334 Define required type nodes.
18335 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18336 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18337 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18338 * config/arm/iterators.md (VDQHSD): New mode iterator.
18339
18340 2014-05-27 Richard Biener <rguenther@suse.de>
18341
18342 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18343 Try using literal operands when comparing value-ranges failed.
18344
18345 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18346
18347 * ira.c (commutative_operand): Adjust for change to recog_data.
18348 [Missing from previous commit.]
18349
18350 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18351
18352 * system.h (TEST_BIT): New macro.
18353 * recog.h (alternative_mask): New type.
18354 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18355 (recog_data_d): Replace alternative_enabled_p array with
18356 enabled_alternatives.
18357 (target_recog): New structure.
18358 (default_target_recog, this_target_recog): Declare.
18359 (get_enabled_alternatives, recog_init): Likewise.
18360 * recog.c (default_target_recog, this_target_recog): New variables.
18361 (get_enabled_alternatives): New function.
18362 (extract_insn): Use it.
18363 (recog_init): New function.
18364 (preprocess_constraints, constrain_operands): Adjust for change to
18365 recog_data.
18366 * postreload.c (reload_cse_simplify_operands): Likewise.
18367 * reload.c (find_reloads): Likewise.
18368 * ira-costs.c (record_reg_classes): Likewise.
18369 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18370 all alternatives after a disabled one would be skipped.
18371 (ira_implicitly_set_insn_hard_regs): Likewise.
18372 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18373 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18374 with enabled_alternatives.
18375 * lra.c (free_insn_recog_data): Update accordingly.
18376 (lra_update_insn_recog_data): Likewise.
18377 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18378 * lra-constraints.c (process_alt_operands): Likewise. Handle
18379 only_alternative as part of the enabled mask.
18380 * target-globals.h (this_target_recog): Declare.
18381 (target_globals): Add a recog field.
18382 (restore_target_globals): Restore this_target_recog.
18383 * target-globals.c: Include recog.h.
18384 (default_target_globals): Initialize recog field.
18385 (save_target_globals): Likewise.
18386 * reginfo.c (reinit_regs): Call recog_init.
18387 * toplev.c (backend_init_target): Likewise.
18388
18389 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18390
18391 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18392 rather than any named insn's code.
18393
18394 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18395
18396 PR libgcc/61152
18397 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18398 * config/arm/arm-cores.def (License): Same.
18399
18400 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18401
18402 * tree.h (decl_comdat_group): Declare.
18403 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18404 * tree.c (decl_comdat_group): Here.
18405
18406 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18407
18408 PR rtl-optimization/61222
18409 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18410 the shift, truncate the PLUS operand to the result mode.
18411
18412 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18413
18414 PR target/61271
18415 * config/i386/i386.c (ix86_rtx_costs)
18416 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18417 Fix condition.
18418
18419 2014-05-26 Martin Jambor <mjambor@suse.cz>
18420
18421 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18422 subreg uses.
18423
18424 2014-05-26 Richard Biener <rguenther@suse.de>
18425
18426 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18427 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18428 Provide specializations.
18429 (wi::int_traits <HOST_WIDE_INT>,
18430 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18431
18432 2014-05-26 Alan Modra <amodra@gmail.com>
18433
18434 PR target/61098
18435 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18436 params and return a bool. Remove dead code. Update comment.
18437 Assert we have a const_int source. Remove bogus code from
18438 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18439 handling of constants > 2G and reg_equal note, from..
18440 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18441 return value. Update comment. If we can, use a new pseudo
18442 for intermediate calculations.
18443 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18444 prototype.
18445 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18446 call to rs6000_emit_set_const in splitter.
18447 (movdi_internal64+2, +3): Likewise.
18448
18449 2014-05-26 Richard Biener <rguenther@suse.de>
18450
18451 * system.h: Define __STDC_FORMAT_MACROS before
18452 including inttypes.h.
18453 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18454 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18455 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18456 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18457 HOST_WIDEST_INT_C): Remove.
18458 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18459 if C99 inttypes.h is not available.
18460 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18461 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18462 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18463 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18464 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18465 (struct output_info): Likewise.
18466 (print_statistics): Adjust.
18467 (dump_bitmap_statistics): Likewise.
18468 * bt-load.c (migrate_btr_defs): Print with PRId64.
18469 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18470 (MAX_SAFE_MULTIPLIER): Adjust.
18471 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18472 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18473 dump_cgraph_node): Likewise.
18474 * final.c (dump_basic_block_info): Likewise.
18475 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18476 * gcov.c (format_gcov): Likewise.
18477 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18478 for calculation.
18479 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18480 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18481 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18482 Use PRId64 for dumping.
18483 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18484 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18485 (add_allocno_hard_regs): Adjust.
18486 * loop-doloop.c (doloop_modify): Print using PRId64.
18487 * loop-iv.c (inverse): Compute in uint64_t.
18488 (determine_max_iter, iv_number_of_iterations): Likewise.
18489 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18490 Print using PRId64.
18491 * lto-streamer-out.c (write_symbol): Use uint64_t.
18492 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18493 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18494 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18495 * modulo-sched.c (const_iteration_count): Use int64_t.
18496 (sms_schedule): Dump using PRId64.
18497 * predict.c (dump_prediction): Likewise.
18498 * pretty-print.h (pp_widest_integer): Remove.
18499 * profile.c (get_working_sets, is_edge_inconsistent,
18500 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18501 * tree-pretty-print.c (pp_double_int): Remove case handling
18502 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18503 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18504 and adjust users.
18505 (pass_optimize_bswap::execute): Remove restriction on hosts.
18506 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18507 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18508 * tree.c (widest_int_cst_value): Remove.
18509 * tree.h (widest_int_cst_value): Likewise.
18510 * value-prof.c (dump_histogram_value): Print using PRId64.
18511 * gengtype.c (main): Also inject int64_t.
18512 * ggc-page.c (struct max_alignment): Use int64_t.
18513 * alloc-pool.c (struct allocation_object_def): Likewise.
18514 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18515 for computation.
18516 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18517 * doc/tm.texi: Regenerated.
18518 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18519 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18520 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18521 mmix_output_register_setting): Use [u]int64_t in prototypes.
18522 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18523 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18524 mmix_output_octa, mmix_output_shifted_value): Adjust.
18525 (mmix_intval): Adjust. Remove unreachable case.
18526 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18527
18528 2014-05-26 Richard Biener <rguenther@suse.de>
18529
18530 * configure.ac: Drop __int64 type check. Insist that we
18531 found uint64_t and int64_t.
18532 * hwint.h (HOST_BITS_PER___INT64): Remove.
18533 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18534 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18535 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18536 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18537 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18538 for dst_q_src_df_rms_cdt.
18539 * configure: Regenerate.
18540 * config.in: Likewise.
18541
18542 2014-05-26 Michael Tautschnig <mt@debian.org>
18543
18544 PR target/61249
18545 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18546 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18547
18548 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18549
18550 PR rtl-optimization/61278
18551 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18552
18553 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18554
18555 PR rtl-optimization/61220
18556 Part of PR rtl-optimization/61225
18557 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18558 insn; skip split_edge for a block with only one successor.
18559
18560 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18561
18562 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18563 for variables.
18564
18565 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18566
18567 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18568 (update_vtable_references): New function.
18569 (function_and_variable_visibility): Rewrite also vtable initializers.
18570 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18571
18572 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18573
18574 * ggc.h (ggc_grow): New function.
18575 * ggc-none.c (ggc_grow): New function.
18576 * ggc-page.c (ggc_grow): Likewise.
18577
18578 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18579
18580 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18581 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18582 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18583 varpool_externally_visible_p, can_replace_by_local_alias,
18584 update_visibility_by_resolution_info, function_and_variable_visibility,
18585 pass_data_ipa_function_and_variable_visibility,
18586 make_pass_ipa_function_and_variable_visibility,
18587 whole_program_function_and_variable_visibility,
18588 pass_data_ipa_whole_program_visibility,
18589 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18590 * cgraph.h (cgraph_local_node_p): Declare.
18591 * ipa-visibility.c: New file.
18592 * Makefile.in (OBJS): Add ipa-visiblity.o
18593
18594 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18595
18596 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18597 that var decl is available.
18598
18599 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18600
18601 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18602 symtab_node pointer.
18603 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18604 (find_decls_types_r): Do not walk COMDAT_GROUP.
18605 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18606 * varasm.c (make_decl_one_only): Use set_comdat_group;
18607 create node if needed.
18608 * ipa-inline-transform.c (save_inline_function_body): Update
18609 way we decl->symtab mapping.
18610 * symtab.c (symtab_hash, hash_node, eq_node
18611 symtab_insert_node_to_hashtable): Remove.
18612 (symtab_register_node): Update.
18613 (symtab_unregister_node): Update.
18614 (symtab_get_node): Reimplement as inline function.
18615 (symtab_add_to_same_comdat_group): Update.
18616 (symtab_dissolve_same_comdat_group_list): Update.
18617 (dump_symtab_base): Update.
18618 (verify_symtab_base): Update.
18619 (symtab_make_decl_local): Update.
18620 (fixup_same_cpp_alias_visibility): Update.
18621 (symtab_nonoverwritable_alias): Update.
18622 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18623 * ipa.c (update_visibility_by_resolution_info): UPdate.
18624 * bb-reorder.c: Include cgraph.h
18625 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18626 with comdat groups.
18627 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18628 * cgraph.c (cgraph_get_create_node): Update.
18629 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18630 and comdat_group_.
18631 (symtab_get_node): Make inline.
18632 (symtab_insert_node_to_hashtable): Remove.
18633 (symtab_can_be_discarded): Update.
18634 (decl_comdat_group): New function.
18635 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18636 Update.
18637 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18638 comdat group name.
18639 (read_comdat_group): New function.
18640 (input_node, input_varpool_node): Use it.
18641 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18642 comdat groups.
18643 * mips.c (mips_start_unique_function): Likewise.
18644 (ix86_code_end): Likewise.
18645 (rs6000_code_end): Likweise.
18646 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18647
18648 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18649
18650 * gengtype-state.c (fatal_reading_state): Bring offline.
18651 * optabs.c (widening_optab_handler): Bring offline.
18652 * optabs.h (widening_optab_handler): Likewise.
18653 * final.c (get_attr_length_1): Likewise.
18654
18655 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18656
18657 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18658
18659 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18660
18661 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18662 (ppc440-compare): Include shift with dot.
18663 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18664 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18665 without dot.
18666 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18667 without dot.
18668 (e6500_sfx2): Include it.
18669 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18670 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18671 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18672 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18673 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18674 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18675 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18676 *lshiftrt_internal1le, *lshiftrt_internal1be,
18677 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18678 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18679 *rotldi3_internal10le, *rotldi3_internal10be,
18680 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18681 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18682 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18683 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18684 define_insns): Use type "shift" in the appropriate alternatives.
18685
18686 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18687
18688 * config/rs6000/rs6000.md (type): Add "logical". Delete
18689 "fast_compare".
18690 (dot): Adjust comment.
18691 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18692 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18693 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18694 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18695 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18696 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18697 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18698 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18699
18700 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18701 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18702 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18703 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18704 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18705 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18706 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18707 * config/rs6000/8540.md (ppc8540_su): Adjust.
18708 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18709 cell-cmp-microcoded): Adjust.
18710 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18711 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18712 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18713 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18714 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18715 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18716 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18717 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18718 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18719 Adjust.
18720 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18721 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18722 Adjust. Adjust comment.
18723 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18724 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18725
18726 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18727
18728 * config/rs6000/rs6000.md (type): Add "add".
18729 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18730 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18731 define_insns): Use it.
18732 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18733
18734 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18735 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18736 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18737 * config/rs6000/601.md (ppc601-integer): Adjust.
18738 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18739 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18740 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18741 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18742 * config/rs6000/8540.md (ppc8540_su): Adjust.
18743 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18744 cell-cmp-microcoded): Adjust.
18745 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18746 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18747 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18748 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18749 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18750 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18751 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18752 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18753 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18754 Adjust.
18755 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18756 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18757 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18758 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18759
18760 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18761
18762 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18763 "delayed_compare", "var_delayed_compare".
18764 (var_shift): New attribute.
18765 (cell_micro): Adjust.
18766 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18767 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18768 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18769 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18770 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18771 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18772 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18773 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18774 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18775 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18776 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18777 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18778 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18779 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18780 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18781 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18782 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18783 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18784 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18785 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18786 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18787 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18788 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18789 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18790 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18791
18792 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18793 * config/rs6000/440.md (ppc440-integer): Adjust.
18794 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18795 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18796 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18797 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18798 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18799 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18800 * config/rs6000/8540.md (ppc8540_su): Adjust.
18801 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18802 cell-cmp-microcoded): Adjust.
18803 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18804 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18805 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18806 e500mc64_delayed): Adjust.
18807 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18808 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18809 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18810 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18811 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18812 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18813 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18814 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18815 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18816 Adjust comment.
18817 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18818 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18819
18820 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18821
18822 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18823 (bits): New mode_attr.
18824 (idiv_ldiv): Delete mode_attr.
18825 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18826 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18827 rs6000_adjust_priority, is_nonpipeline_insn,
18828 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18829
18830 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18831 * config/rs6000/440.md (ppc440-idiv): Adjust.
18832 * config/rs6000/476.md (ppc476-idiv): Adjust.
18833 * config/rs6000/601.md (ppc601-idiv): Adjust.
18834 * config/rs6000/603.md (ppc603-idiv): Adjust.
18835 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18836 ppc620-ldiv): Adjust.
18837 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18838 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18839 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18840 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18841 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18842 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18843 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18844 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18845 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18846 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18847 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18848 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18849 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18850 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18851 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18852 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18853 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18854 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18855
18856 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18857
18858 * config/rs6000/rs6000.md (type): Delete "insert_word",
18859 "insert_dword". Add "insert".
18860 (size): Update comment.
18861 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18862 insn_must_be_first_in_group): Adjust.
18863 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18864 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18865 *insvsi_internal6, insvdi_internal): Adjust.
18866
18867 * config/rs6000/40x.md (ppc403-integer): Adjust.
18868 * config/rs6000/440.md (ppc440-integer): Adjust.
18869 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18870 * config/rs6000/601.md (ppc601-integer): Adjust.
18871 * config/rs6000/603.md (ppc603-integer): Adjust.
18872 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18873 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18874 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18875 * config/rs6000/8540.md (ppc8540_su): Adjust.
18876 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18877 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18878 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18879 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18880 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18881 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18882 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18883 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18884 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18885 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18886 * config/rs6000/power7.md (power7-integer): Adjust.
18887 * config/rs6000/power8.md (power8-1cyc): Adjust.
18888 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18889 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18890
18891 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18892
18893 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18894 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18895 (size): New attribute.
18896 (dot): New attribute.
18897 (cell_micro): Adjust.
18898 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18899 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18900 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18901 umuldi3_highpart): Adjust.
18902 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18903 rs6000_adjust_priority, is_nonpipeline_insn,
18904 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18905
18906 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18907 ppc405-imul3): Adjust.
18908 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18909 * config/rs6000/476.md (ppc476-imul): Adjust.
18910 * config/rs6000/601.md (ppc601-imul): Adjust.
18911 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18912 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18913 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18914 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18915 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18916 Adjust.
18917 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18918 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18919 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18920 cell-imul): Adjust.
18921 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18922 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18923 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18924 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18925 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18926 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18927 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18928 power4-lmul, power4-imul, power4-imul3): Adjust.
18929 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18930 power5-lmul, power5-imul, power5-imul3): Adjust.
18931 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18932 power6-lmul, power6-imul, power6-imul3): Adjust.
18933 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18934 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18935
18936 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18937 rs64a-lmul): Adjust.
18938 * config/rs6000/titan.md (titan_imul): Adjust.
18939
18940 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18941
18942 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18943 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18944 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18945 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18946 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18947 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18948 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18949 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18950 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18951 * config/rs6000/titan.md: Delete nonsensical comment.
18952 (titan_imul): Add type imul3.
18953 (titan_mulhw): Remove type imul3; add type halfmul.
18954
18955 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18956
18957 * config/rs6000/rs6000.md (type): Reorder, reformat.
18958
18959 2014-05-23 Martin Jambor <mjambor@suse.cz>
18960
18961 PR tree-optimization/53787
18962 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18963 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18964 analysis_done, update all uses.
18965 * ipa-prop.c: Include domwalk.h
18966 (param_analysis_info): Removed.
18967 (param_aa_status): New type.
18968 (ipa_bb_info): Likewise.
18969 (func_body_info): Likewise.
18970 (ipa_get_bb_info): New function.
18971 (aa_overwalked): Likewise.
18972 (find_dominating_aa_status): Likewise.
18973 (parm_bb_aa_status_for_bb): Likewise.
18974 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18975 (load_from_unmodified_param): Accept func_body_info as a parameter
18976 instead of parms_ainfo.
18977 (parm_ref_data_preserved_p): Changed to use new param AA info.
18978 (parm_ref_data_pass_through_p): Likewise.
18979 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18980 (compute_complex_assign_jump_func): Changed to use new param AA info.
18981 (compute_complex_ancestor_jump_func): Likewise.
18982 (ipa_compute_jump_functions_for_edge): Likewise.
18983 (ipa_compute_jump_functions): Removed.
18984 (ipa_compute_jump_functions_for_bb): New function.
18985 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18986 declarations down.
18987 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18988 and info, moved variable declarations down.
18989 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18990 node and info.
18991 (ipa_analyze_stmt_uses): Likewise.
18992 (ipa_analyze_params_uses): Removed.
18993 (ipa_analyze_params_uses_in_bb): New function.
18994 (ipa_analyze_controlled_uses): Likewise.
18995 (free_ipa_bb_info): Likewise.
18996 (analysis_dom_walker): New class.
18997 (ipa_analyze_node): Handle node-specific forbidden analysis,
18998 initialize and free func_body_info, use dominator walker.
18999 (ipcp_modif_dom_walker): New class.
19000 (ipcp_transform_function): Create and free func_body_info, use
19001 ipcp_modif_dom_walker, moved a lot of functionality there.
19002
19003 2014-05-23 Marek Polacek <polacek@redhat.com>
19004 Jakub Jelinek <jakub@redhat.com>
19005
19006 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19007 * gcc.c (sanitize_spec_function): Likewise.
19008 * convert.c (convert_to_integer): Include "ubsan.h". Add
19009 floating-point to integer instrumentation.
19010 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19011 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19012 SANITIZE_NONDEFAULT.
19013 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19014 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19015 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19016 * ubsan.c: Include "realmpfr.h" and "dfp.h".
19017 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19018 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19019 float/double/long double.
19020 (ubsan_instrument_float_cast): New function.
19021 * ubsan.h (ubsan_instrument_float_cast): Declare.
19022
19023 2014-05-23 Jiong Wang <jiong.wang@arm.com>
19024
19025 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19026 predicate.
19027 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
19028 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19029 Adjust for tailcalling through registers.
19030 * config/aarch64/aarch64.h (enum reg_class): New caller save
19031 register class.
19032 (REG_CLASS_NAMES): Likewise.
19033 (REG_CLASS_CONTENTS): Likewise.
19034 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19035 Allow tailcalling without decls.
19036
19037 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19038
19039 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19040 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19041
19042 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19043 gsi, and variables v_* to v*.
19044
19045 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
19046
19047 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19048
19049 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19050
19051 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19052 * omp-low.c: Update accordingly.
19053
19054 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19055 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19056 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19057 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19058 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19059 GF_OMP_TARGET_KIND_UPDATE.
19060
19061 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19062 Explicitly enumerate the expected region types.
19063
19064 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19065
19066 PR other/56955
19067 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19068 documentation; the old documentation didn't clearly state the
19069 constraints on the contents of the pointed-to storage.
19070
19071 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19072
19073 Fix bootstrap error on ia64
19074 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19075 Return default value.
19076
19077 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19078
19079 PR tree-optimization/54733
19080 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19081 (CMPNOP): Define.
19082 (find_bswap_or_nop_load): New.
19083 (find_bswap_1): Renamed to ...
19084 (find_bswap_or_nop_1): This. Also add support for memory source.
19085 (find_bswap): Renamed to ...
19086 (find_bswap_or_nop): This. Also add support for memory source and
19087 detection of bitwise operations equivalent to load in target
19088 endianness.
19089 (execute_optimize_bswap): Likewise. Also move its leading comment back
19090 in place and split statement transformation into ...
19091 (bswap_replace): This.
19092
19093 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19094
19095 PR rtl-optimization/61215
19096 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19097 simplify_gen_subreg until final substitution.
19098
19099 2014-05-23 Alan Modra <amodra@gmail.com>
19100
19101 PR target/61231
19102 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19103 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19104 Use "Y" constraint rather than "m".
19105
19106 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19107
19108 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19109 define.
19110 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19111 New function declaration.
19112 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19113 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19114 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19115 (aarch64_init_builtins) : Initialize builtins
19116 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19117 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19118 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19119 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19120 and __builtins_aarch64_set_fpsr.
19121 (aarch64_atomic_assign_expand_fenv): New function.
19122 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19123 (get_fpcr) : Likewise.
19124 (set_fpsr) : Likewise.
19125 (get_fpsr) : Likewise.
19126 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19127 and UNSPECV_SET_FPSR.
19128 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19129 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19130 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19131
19132 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19133
19134 PR rtl-optimization/60969
19135 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19136 constraints. Set up mem cost for NO_REGS case.
19137
19138 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19139
19140 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19141
19142 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19143
19144 * config/darwin.c: Include "lto-section-names.h".
19145 (LTO_SEGMENT_NAME): Don't define.
19146 * config/i386/winnt.c: Include "lto-section-names.h".
19147 * lto-streamer.c: Include "lto-section-names.h".
19148 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19149 * lto-wrapper.c: Include "lto-section-names.h".
19150 (LTO_SECTION_NAME_PREFIX): Don't define.
19151 * lto-section-names.h: New file.
19152 * cgraphunit.c: Include "lto-section-names.h".
19153
19154 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19155
19156 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19157
19158 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19159
19160 PR target/61208
19161 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19162
19163 2014-05-22 Nick Clifton <nickc@redhat.com>
19164
19165 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19166
19167 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19168
19169 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19170 -> (T)A transformation to integer types.
19171
19172 2014-05-22 Teresa Johnson <tejohnson@google.com>
19173
19174 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19175 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19176 (gcov_rewrite): Use gcov_nonruntime_assert.
19177 (gcov_open): Ditto.
19178 (gcov_write_words): Ditto.
19179 (gcov_write_length): Ditto.
19180 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19181 gcc_assert from IN_LIBGCOV code.
19182 (gcov_read_summary): Use gcov_error to flag profile corruption.
19183 (gcov_sync): Use gcov_nonruntime_assert.
19184 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19185 (gcov_histo_index): Use gcov_nonruntime_assert.
19186 (static void gcov_histogram_merge): Ditto.
19187 (compute_working_sets): Ditto.
19188 * gcov-io.h (gcov_nonruntime_assert): Define.
19189 (gcov_error): Define for !IN_LIBGCOV
19190
19191 2014-05-22 Richard Biener <rguenther@suse.de>
19192
19193 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19194 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19195 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19196 and deallocation site.
19197 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19198 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19199 passing through the incoming points-to set.
19200 (handle_lhs_call): Use flags argument instead of recomputing it.
19201 (find_func_aliases_for_call): Call handle_lhs_call with proper
19202 call return flags.
19203
19204 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19205
19206 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19207 all padding bits in REAL_VALUE_TYPE are cleared.
19208
19209 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19210
19211 Cleanup and improve multipass_dfa_lookahead_guard
19212 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19213 (core2i7_first_cycle_multipass_begin,)
19214 (core2i7_first_cycle_multipass_issue,)
19215 (core2i7_first_cycle_multipass_backtrack): Update signature.
19216 * config/ia64/ia64.c
19217 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19218 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19219 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19220 hook definition.
19221 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19222 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19223 values.
19224 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19225 return values.
19226 * doc/tm.texi: Regenerate.
19227 * doc/tm.texi.in
19228 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19229 * haifa-sched.c (ready_try): Make signed to allow negative values.
19230 (rebug_ready_list_1): Update.
19231 (choose_ready): Simplify.
19232 (sched_extend_ready_list): Update.
19233
19234 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19235
19236 Remove IA64 speculation tweaking flags
19237 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19238 speculation tuning flags.
19239 (msched-prefer-non-data-spec-insns,)
19240 (msched-prefer-non-control-spec-insns): Obsolete options.
19241 * haifa-sched.c (choose_ready): Remove handling of
19242 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19243 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19244 and PREFER_NON_DATA_SPEC.
19245 * sel-sched.c (process_spec_exprs): Remove handling of
19246 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19247
19248 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19249
19250 Improve scheduling debug output
19251 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19252 (advance_one_cycle): Update.
19253 (schedule_insn, queue_to_ready): Add debug printouts.
19254 (debug_ready_list_1): New static function.
19255 (debug_ready_list): Update.
19256 (max_issue): Add debug printouts.
19257 (dump_insn_stream): New static function.
19258 (schedule_block): Use it. Also better indent printouts.
19259
19260 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19261
19262 Fix sched_insn debug counter
19263 * haifa-sched.c (schedule_insn): Update.
19264 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19265 (save_backtrack_point, restore_backtrack_point): Update.
19266 (first_nonscheduled_insn): New static function.
19267 (queue_to_ready, choose_ready): Use it.
19268 (schedule_block): Init nonscheduled_insns_begin.
19269 (sched_emit_insn): Update.
19270
19271
19272 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19273
19274 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19275 to GENERAL_REGS.
19276 (aarch64_secondary_reload) : LikeWise.
19277 (aarch64_class_max_nregs) : Remove CORE_REGS.
19278 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19279 (REG_CLASS_NAMES) : Likewise.
19280 (REG_CLASS_CONTENTS) : LikeWise.
19281 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19282
19283 2014-05-21 Guozhi Wei <carrot@google.com>
19284
19285 PR target/61202
19286 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19287 constraint.
19288 (vqdmulhq_n_s16): Likewise.
19289
19290 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19291
19292 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19293
19294 2014-05-21 Marek Polacek <polacek@redhat.com>
19295
19296 PR sanitizer/61272
19297 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19298
19299 2014-05-21 Martin Jambor <mjambor@suse.cz>
19300
19301 * doc/invoke.texi (Optimize Options): Document parameters
19302 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19303 ipa-cp-array-index-hint-bonus.
19304
19305 2014-05-21 Mark Wielaard <mjw@redhat.com>
19306
19307 PR debug/16063
19308 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19309 version >= 3 or not strict DWARF.
19310 * langhooks.h (struct lang_hooks_for_types): Add
19311 enum_underlying_base_type.
19312 * langhooks.c (lhd_enum_underlying_base_type): New function.
19313 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19314 enum_underlying_base_type.
19315 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19316 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19317 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19318
19319 2014-05-21 Richard Biener <rguenther@suse.de>
19320
19321 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19322
19323 2014-05-21 John Marino <gnugcc@marino.st>
19324
19325 * config.gcc (*-*-dragonfly*): New target.
19326 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19327 * configure: Regenerate.
19328 * config/dragonfly-stdint.h: New.
19329 * config/dragonfly.h: New.
19330 * config/dragonfly.opt: New.
19331 * config/i386/dragonfly.h: New.
19332 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19333
19334 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19335
19336 * tree.def (VOID_CST): New.
19337 * tree-core.h (TI_VOID): New.
19338 * tree.h (void_node): New.
19339 * tree.c (tree_node_structure_for_code, tree_code_size)
19340 (iterative_hash_expr): Handle VOID_CST.
19341 (build_common_tree_nodes): Initialize void_node.
19342
19343 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19344
19345 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19346 functions.
19347 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19348
19349 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19350 more places.
19351
19352 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19353 flag_reorder_blocks_and_partition.
19354 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19355
19356 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19357
19358 PR target/54236
19359 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19360 constraints.
19361 (*addc_r_t): Add new insn_and_split.
19362
19363 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19364
19365 PR middle-end/61252
19366 * omp-low.c (handle_simd_reference): New function.
19367 (lower_rec_input_clauses): Use it. Defer adding reference
19368 initialization even for reduction without placeholder if in simd,
19369 handle it properly later on.
19370
19371 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19372
19373 PR tree-optimization/60899
19374 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19375 assume all static symbols will have definition wile parsing and
19376 check the do have definition later in compilation; check that
19377 variable referring symbol will be output before concluding that
19378 reference is safe; be conservative for referring local statics;
19379 be more precise about when comdat is output in other partition.
19380
19381 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19382
19383 PR bootstrap/60984
19384 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19385 parameter.
19386 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19387 (ipa_inline): Loop inline_to_all_callers until no more aliases
19388 are removed.
19389
19390 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19391
19392 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19393 set writeonly flag only for vars actually written to.
19394
19395 2014-05-20 Dehao Chen <dehao@google.com>
19396
19397 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19398 and callee count to get clone count.
19399 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19400 count in copy_body.
19401
19402 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19403
19404 PR rtl-optimization/61243
19405 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19406
19407 2014-05-20 Xinliang David Li <davidxl@google.com>
19408
19409 * cgraphunit.c (walk_polymorphic_call_targets): Add
19410 dbgcnt and fopt-info support.
19411 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19412 * ipa-devirt.c (ipa_devirt): Ditto.
19413 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19414 * ipa.c (walk_polymorphic_call_targets): Ditto.
19415 * gimple-fold.c (fold_gimple_assign): Ditto.
19416 (gimple_fold_call): Ditto.
19417 * dbgcnt.def: New counter.
19418
19419 2014-05-20 DJ Delorie <dj@redhat.com>
19420
19421 * config/msp430/msp430.md (split): Don't allow subregs when
19422 splitting SImode adds.
19423 (andneghi): Fix subtraction logic.
19424 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19425
19426 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19427
19428 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19429 symbols.
19430 * except.c (switch_to_exception_section, resolve_unique_section,
19431 get_named_text_section, default_function_rodata_section,
19432 align_variable, get_block_for_decl, default_section_type_flags):
19433 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19434 * symtab.c (symtab_add_to_same_comdat_group,
19435 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19436 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19437 Likewise.
19438 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19439 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19440 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19441 (c6x_function_in_section_p): Likewise.
19442 * config/darwin.c (machopic_select_section): Likewise.
19443 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19444 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19445 * config/mep/mep.c (mep_select_section): LIkewise.
19446 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19447
19448 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19449
19450 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19451 EH region of calls to pure functions that can throw an exception.
19452 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19453 (copy_reference_ops_from_call): Also copy the EH region of the call if
19454 it can throw an exception.
19455
19456 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19457
19458 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19459 nested VEC_SELECTs that are inverses of each other.
19460
19461 2014-05-20 Richard Biener <rguenther@suse.de>
19462
19463 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19464 (extract_and_process_scc_for_name): not here.
19465 (cond_dom_walker::before_dom_children): Only process
19466 stmts that end the BB in interesting ways.
19467 (run_scc_vn): Mark param uses as visited.
19468
19469 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19470
19471 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19472 arm_restrict_it.
19473
19474 2014-05-20 Nick Clifton <nickc@redhat.com>
19475
19476 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19477 (msp430_gimplify_va_arg_expr): New function.
19478 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19479
19480 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19481 operand 0 in order to prevent confusion about the number of
19482 registers involved.
19483
19484 2014-05-20 Richard Biener <rguenther@suse.de>
19485
19486 PR tree-optimization/61221
19487 * tree-ssa-pre.c (el_to_update): Remove.
19488 (eliminate_dom_walker::before_dom_children): Handle released
19489 VDEFs by value-numbering them to the associated VUSE. Update
19490 stmt immediately for substituted call address.
19491 (eliminate): Remove delayed stmt updating code.
19492 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19493 possibly late re-numbered vuses.
19494 (vn_reference_lookup_2): Adjust.
19495 (vn_reference_lookup_pieces): Likewise.
19496 (vn_reference_lookup): Likewise.
19497
19498 2014-05-20 Richard Biener <rguenther@suse.de>
19499
19500 * config.gcc: Remove need_64bit_hwint.
19501 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19502 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19503 it to be true.
19504 * config.in: Regenerate.
19505 * configure: Likewise.
19506
19507 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19508
19509 * doc/extend.texi: Create Label Attributes section,
19510 move all label attributes into it and reference it.
19511
19512 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19513
19514 * arm.c (thumb1_reorg): When scanning backwards skip anything
19515 that's not a proper insn.
19516
19517 2014-05-19 Richard Biener <rguenther@suse.de>
19518
19519 PR tree-optimization/61221
19520 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19521 Do nothing for unreachable blocks.
19522 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19523 Improve unreachability detection.
19524
19525 2014-05-19 Richard Biener <rguenther@suse.de>
19526
19527 PR tree-optimization/61209
19528 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19529
19530 2014-05-19 Nick Clifton <nickc@redhat.com>
19531
19532 * except.c (init_eh): Fix computation of builtin setjmp buffer
19533 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19534
19535 2014-05-19 Richard Biener <rguenther@suse.de>
19536
19537 PR tree-optimization/61184
19538 * tree-vrp.c (is_negative_overflow_infinity): Use
19539 TREE_OVERFLOW_P and do that check first.
19540 (is_positive_overflow_infinity): Likewise.
19541 (is_overflow_infinity): Likewise.
19542 (vrp_operand_equal_p): Properly treat operands with
19543 differing overflow as not equal.
19544
19545 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19546
19547 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19548 shift simplification where it was intended.
19549
19550 2014-05-19 Christian Bruel <christian.bruel@st.com>
19551
19552 PR target/61195
19553 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19554
19555 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19556
19557 PR target/61084
19558 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19559 than wide_int.
19560
19561 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19562
19563 * reg-notes.def (CROSSING_JUMP): Likewise.
19564 * rtl.h (rtx_def): Update comment for jump flag.
19565 (CROSSING_JUMP_P): Define.
19566 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19567 of a REG_CROSSING_JUMP note.
19568 * cfghooks.c (tidy_fallthru_edges): Likewise.
19569 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19570 * emit-rtl.c (try_split): Likewise.
19571 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19572 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19573 * jump.c (redirect_jump_2): Likewise.
19574 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19575 (relax_delay_slots): Likewise.
19576 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19577 (bbit_di): Likewise.
19578 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19579 * config/sh/sh.md (jump_compact): Likewise.
19580 * bb-reorder.c (rotate_loop): Likewise.
19581 (pass_duplicate_computed_gotos::execute): Likewise.
19582 (add_reg_crossing_jump_notes): Rename to...
19583 (update_crossing_jump_flags): ...this.
19584 (pass_partition_blocks::execute): Update accordingly.
19585
19586 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19587
19588 * tree.h: Remove extraneous template <>.
19589
19590 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19591
19592 * ipa.c (symtab_remove_unreachable_nodes): Remove
19593 symbol from comdat group if its body was eliminated.
19594 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19595 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19596 (symtab_unregister_node): ... this one.
19597 (verify_symtab_base): More strict checking of comdats.
19598 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19599
19600 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19601
19602 * tree-pass.h (make_pass_ipa_comdats): New pass.
19603 * timevar.def (TV_IPA_COMDATS): New timevar.
19604 * passes.def (pass_ipa_comdats): Add.
19605 * Makefile.in (OBJS): Add ipa-comdats.o
19606 * ipa-comdats.c: New file.
19607
19608 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19609
19610 * ipa.c (update_visibility_by_resolution_info): New function.
19611 (function_and_variable_visibility): Use it.
19612
19613 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19614
19615 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19616 New functions.
19617 (FOR_EACH_DEFINED_SYMBOL): New macro.
19618 (varpool_first_static_initializer, varpool_next_static_initializer,
19619 varpool_first_defined_variable, varpool_next_defined_variable):
19620 Fix comments.
19621 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19622
19623 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19624
19625 * ggc-page.c (ggc_handle_finalizers): Add comment.
19626
19627 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19628
19629 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19630 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19631 (ggc_internal_cleared_alloc): Likewise.
19632 * ggc-page.c (finalizer): New class.
19633 (vec_finalizer): Likewise.
19634 (globals::finalizers): New member.
19635 (globals::vec_finalizers): Likewise.
19636 (ggc_internal_alloc): Record the finalizer if any for the block being
19637 allocated.
19638 (ggc_handle_finalizers): New function.
19639 (ggc_collect): Call ggc_handle_finalizers.
19640 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19641 finalizer.
19642 (ggc_internal_cleared_alloc): Likewise.
19643 (finalize): New function.
19644 (need_finalization_p): Likewise.
19645 (ggc_alloc): Install the type's destructor as the finalizer if it
19646 might do something.
19647 (ggc_cleared_alloc): Likewise.
19648 (ggc_vec_alloc): Likewise.
19649 (ggc_cleared_vec_alloc): Likewise.
19650
19651 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19652
19653 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19654
19655 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19656
19657 * alias.c (record_alias_subset): Adjust.
19658 * bitmap.c (bitmap_element_allocate): Likewise.
19659 (bitmap_gc_alloc_stat): Likewise.
19660 * cfg.c (init_flow): Likewise.
19661 (alloc_block): Likewise.
19662 (unchecked_make_edge): Likewise.
19663 * cfgloop.c (alloc_loop): Likewise.
19664 (flow_loops_find): Likewise.
19665 (rescan_loop_exit): Likewise.
19666 * cfgrtl.c (init_rtl_bb_info): Likewise.
19667 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19668 (cgraph_allocate_node): Likewise.
19669 (cgraph_create_edge_1): Likewise.
19670 (cgraph_allocate_init_indirect_info): Likewise.
19671 * cgraphclones.c (cgraph_clone_edge): Likewise.
19672 * cgraphunit.c (add_asm_node): Likewise.
19673 (init_lowered_empty_function): Likewise.
19674 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19675 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19676 (alpha_use_linkage): Likewise.
19677 * config/arc/arc.c (arc_init_machine_status): Likewise.
19678 * config/arm/arm.c (arm_init_machine_status): Likewise.
19679 * config/avr/avr.c (avr_init_machine_status): Likewise.
19680 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19681 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19682 * config/cris/cris.c (cris_init_machine_status): Likewise.
19683 * config/darwin.c (machopic_indirection_name): Likewise.
19684 (darwin_build_constant_cfstring): Likewise.
19685 (darwin_enter_string_into_cfstring_table): Likewise.
19686 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19687 * config/frv/frv.c (frv_init_machine_status): Likewise.
19688 * config/i386/i386.c (get_dllimport_decl): Likewise.
19689 (ix86_init_machine_status): Likewise.
19690 (assign_386_stack_local): Likewise.
19691 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19692 (i386_pe_maybe_record_exported_symbol): Likewise.
19693 (i386_pe_record_stub): Likewise.
19694 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19695 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19696 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19697 (m32c_note_pragma_address): Likewise.
19698 * config/mep/mep.c (mep_init_machine_status): Likewise.
19699 (mep_note_pragma_flag): Likewise.
19700 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19701 (mips16_local_alias): Likewise.
19702 (mips_init_machine_status): Likewise.
19703 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19704 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19705 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19706 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19707 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19708 * config/pa/pa.c (pa_init_machine_status): Likewise.
19709 (pa_get_deferred_plabel): Likewise.
19710 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19711 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19712 (rs6000_init_machine_status): Likewise.
19713 (output_toc): Likewise.
19714 * config/s390/s390.c (s390_init_machine_status): Likewise.
19715 * config/score/score.c (score_output_external): Likewise.
19716 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19717 * config/spu/spu.c (spu_init_machine_status): Likewise.
19718 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19719 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19720 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19721 * coverage.c (coverage_end_function): Likewise.
19722 * dbxout.c (dbxout_init): Likewise.
19723 * doc/gty.texi: Don't mention variable_size attribute.
19724 * dwarf2cfi.c (new_cfi): Adjust.
19725 (new_cfi_row): Likewise.
19726 (copy_cfi_row): Likewise.
19727 (create_cie_data): Likewise.
19728 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19729 (new_loc_descr): Likewise.
19730 (find_AT_string_in_table): Likewise.
19731 (add_addr_table_entry): Likewise.
19732 (new_die): Likewise.
19733 (add_var_loc_to_decl): Likewise.
19734 (clone_die): Likewise.
19735 (clone_as_declaration): Likewise.
19736 (break_out_comdat_types): Likewise.
19737 (new_loc_list): Likewise.
19738 (add_loc_descr_to_each): Likewise.
19739 (add_location_or_const_value_attribute): Likewise.
19740 (add_linkage_name): Likewise.
19741 (lookup_filename): Likewise.
19742 (dwarf2out_var_location): Likewise.
19743 (new_line_info_table): Likewise.
19744 (dwarf2out_init): Likewise.
19745 (mem_loc_descriptor): Likewise.
19746 (loc_descriptor): Likewise.
19747 (add_const_value_attribute): Likewise.
19748 (tree_add_const_value_attribute): Likewise.
19749 (comp_dir_string): Likewise.
19750 (dwarf2out_vms_debug_main_pointer): Likewise.
19751 (string_cst_pool_decl): Likewise.
19752 * emit-rtl.c (set_mem_attrs): Likewise.
19753 (get_reg_attrs): Likewise.
19754 (start_sequence): Likewise.
19755 (init_emit): Likewise.
19756 (init_emit_regs): Likewise.
19757 * except.c (init_eh_for_function): Likewise.
19758 (gen_eh_region): Likewise.
19759 (gen_eh_region_catch): Likewise.
19760 (gen_eh_landing_pad): Likewise.
19761 (add_call_site): Likewise.
19762 * function.c (add_frame_space): Likewise.
19763 (insert_temp_slot_address): Likewise.
19764 (assign_stack_temp_for_type): Likewise.
19765 (get_hard_reg_initial_val): Likewise.
19766 (allocate_struct_function): Likewise.
19767 (prepare_function_start): Likewise.
19768 (types_used_by_var_decl_insert): Likewise.
19769 * gengtype.c (variable_size_p): Remove function.
19770 (enum alloc_quantity): Remove enum.
19771 (write_typed_alloc_def): Remove function.
19772 (write_typed_struct_alloc_def): Likewise.
19773 (write_typed_typedef_alloc_def): Likewise.
19774 (write_typed_alloc_defns): Likewise.
19775 (main): Adjust.
19776 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19777 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19778 * ggc.h (ggc_alloc): new function.
19779 (ggc_cleared_alloc): Likewise.
19780 (ggc_vec_alloc): Template on type of vector element, and remove
19781 element size argument.
19782 (ggc_cleared_vec_alloc): Likewise.
19783 * gimple.c (gimple_build_omp_for): Adjust.
19784 (gimple_copy): Likewise.
19785 * ipa-cp.c (get_replacement_map): Likewise.
19786 (find_aggregate_values_for_callers_subset): Likewise.
19787 (known_aggs_to_agg_replacement_list): Likewise.
19788 * ipa-devirt.c (get_odr_type): Likewise.
19789 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19790 (read_agg_replacement_chain): Likewise.
19791 * loop-iv.c (get_simple_loop_desc): Likewise.
19792 * lto-cgraph.c (input_node_opt_summary): Likewise.
19793 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19794 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19795 (input_eh_region): Likewise.
19796 (input_eh_lp): Likewise.
19797 (input_cfg): Likewise.
19798 * optabs.c (set_optab_libfunc): Likewise.
19799 (init_tree_optimization_optabs): Likewise.
19800 (set_conv_libfunc): Likewise.
19801 * passes.c (do_per_function_toporder): Likewise.
19802 * rtl.h: Don't use variable_size gty attribute.
19803 * sese.c (if_region_set_false_region): Adjust.
19804 * stringpool.c (gt_pch_save_stringpool): Likewise.
19805 * target-globals.c (save_target_globals): Likewise.
19806 * toplev.c (general_init): Likewise.
19807 * trans-mem.c (record_tm_replacement): Likewise.
19808 (split_bb_make_tm_edge): Likewise.
19809 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19810 * tree-data-ref.h (lambda_vector_new): Likewise.
19811 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19812 * tree-iterator.c (tsi_link_before): Likewise.
19813 (tsi_link_after): Likewise.
19814 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19815 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19816 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19817 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19818 * tree-ssa.c (init_tree_ssa): Adjust.
19819 * tree-ssanames.c (set_range_info): Likewise.
19820 (get_ptr_info): Likewise.
19821 (duplicate_ssa_name_ptr_info): Likewise.
19822 (duplicate_ssa_name_range_info): Likewise.
19823 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19824 (unpack_ts_fixed_cst_value_fields): Likewise.
19825 * tree.c (build_fixed): Likewise.
19826 (build_real): Likewise.
19827 (build_string): Likewise.
19828 (decl_priority_info): Likewise.
19829 (decl_debug_expr_insert): Likewise.
19830 (decl_value_expr_insert): Likewise.
19831 (decl_debug_args_insert): Likewise.
19832 (type_hash_add): Likewise.
19833 (build_omp_clause): Likewise.
19834 * ubsan.c (decl_for_type_insert): Likewise.
19835 * varasm.c (get_unnamed_section): Likewise.
19836 (get_noswitch_section): Likewise.
19837 (get_section): Likewise.
19838 (get_block_for_section): Likewise.
19839 (create_block_symbol): Likewise.
19840 (build_constant_desc): Likewise.
19841 (create_constant_pool): Likewise.
19842 (force_const_mem): Likewise.
19843 (record_tm_clone_pair): Likewise.
19844 * varpool.c (varpool_create_empty_node): Likewise.
19845
19846 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19847
19848 * dwarf2out.c (tree_add_const_value_attribute): Call
19849 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19850 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19851 instead of ggc_internal_<x>alloc_stat.
19852 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19853 (ggc_realloc): Likewise.
19854 * ggc-none.c (ggc_internal_alloc): Likewise.
19855 (ggc_internal_cleared_alloc): Likewise.
19856 * ggc-page.c: Likewise.
19857 * ggc.h (ggc_internal_alloc_stat): Likewise.
19858 (ggc_internal_alloc): Remove macro.
19859 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19860 (ggc_internal_cleared_alloc): Remove macro.
19861 (GGC_RESIZEVEC): Adjust.
19862 (ggc_resizevar): Remove macro.
19863 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19864 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19865 (ggc_internal_vec_cleared_alloc): Remove macro.
19866 (ggc_alloc_atomic_stat): Drop _stat suffix.
19867 (ggc_alloc_atomic): Remove macro.
19868 (ggc_alloc_cleared_atomic): Remove macro.
19869 (ggc_alloc_string_stat): Drop _stat suffix.
19870 (ggc_alloc_string): Remove macro.
19871 (ggc_alloc_rtx_def_stat): Adjust.
19872 (ggc_alloc_tree_node_stat): Likewise.
19873 (ggc_alloc_cleared_tree_node_stat): Likewise.
19874 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19875 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19876 * gimple.c (gimple_build_omp_for): Likewise.
19877 (gimple_copy): Likewise.
19878 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19879 * toplev.c (realloc_for_line_map): Adjust.
19880 * tree-data-ref.h (lambda_vector_new): Likewise.
19881 * tree-phinodes.c (allocate_phi_node): Likewise.
19882 * tree.c (grow_tree_vec_stat): Likewise.
19883 * vec.h (va_gc::reserve): Adjust.
19884
19885 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19886
19887 * config/microblaze/microblaze.c (break_handler): New Declaration.
19888 (microblaze_break_function_p,microblaze_is_break_handler): New.
19889 (compute_frame_size): Use microblaze_break_function_p.
19890 Add the test of break_handler.
19891 (microblaze_function_prologue) : Add the test of variable
19892 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19893 (microblaze_function_epilogue) : Add the test of break_handler.
19894 (microblaze_globalize_label) : Add the test of break_handler.
19895 Check the name by BREAK_HANDLER_NAME.
19896
19897 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19898
19899 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19900 microblaze_is_break_handler test.
19901 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19902 Use SYMBOL_REF_DECL.
19903
19904 * config/microblaze/microblaze-protos.h
19905 (microblaze_break_function_p,microblaze_is_break_handler):
19906 New Declaration.
19907
19908 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19909 new MicroBlaze break_handler functions.
19910
19911 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19912
19913 * doc/extend.texi (Size of an asm): Move node text according
19914 to its @menu entry position.
19915
19916 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19917
19918 PR tree-optimization/61140
19919 PR tree-optimization/61150
19920 PR tree-optimization/61197
19921 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19922
19923 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19924
19925 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19926
19927 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19928
19929 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19930 __SIZEOF_INT128__ is defined.
19931
19932 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19933
19934 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19935 (rs6000_delegitimize_address): Use it.
19936
19937 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19938
19939 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19940 inplace argument. Store the new address in the original MEM when true.
19941 * emit-rtl.c (change_address_1): Likewise.
19942 (adjust_address_1, adjust_automodify_address_1, offset_address):
19943 Update accordingly.
19944 * rtl.h (plus_constant): Add an inplace argument.
19945 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19946 when true. Avoid generating (plus X (const_int 0)).
19947 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19948 in-place. Pass true to plus_constant.
19949 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19950
19951 2014-05-16 Dehao Chen <dehao@google.com>
19952
19953 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19954
19955 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19956
19957 PR target/54089
19958 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19959 patterns.
19960 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19961
19962 2014-05-16 Dehao Chen <dehao@google.com>
19963
19964 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19965 optimize_function_for_size_p.
19966 * regs.h (REG_FREQ_FROM_BB): Likewise.
19967
19968 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19969
19970 PR target/51244
19971 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19972 negt_reg_operand cases.
19973 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19974 predicate.
19975 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19976
19977 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19978
19979 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19980 target variants.
19981
19982 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19983
19984 Revert:
19985 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19986
19987 * tree-cfg.c (dump_function_to_file): Dump the return type of
19988 functions, in a line to itself before the function body, mimicking
19989 the layout of a C function.
19990
19991 2014-05-16 Dehao Chen <dehao@google.com>
19992
19993 * cfghooks.c (make_forwarder_block): Use direct computation to
19994 get fall-through edge's count and frequency.
19995
19996 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19997
19998 * config/arc/arc.c (arc_init): Fix typo in error message.
19999 * config/i386/i386.c (ix86_expand_builtin): Likewise.
20000 (split_stack_prologue_scratch_regno): Likewise.
20001 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20002 word from error message.
20003
20004 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20005
20006 * ira-costs.c: Fix typo in comment.
20007
20008 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
20009
20010 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20011
20012 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
20013
20014 * varpool.c (dump_varpool_node): Dump write-only flag.
20015 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20016 write-only flag.
20017 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20018 write-only variables.
20019 * ipa.c (process_references): New function.
20020 (set_readonly_bit): New function.
20021 (set_writeonly_bit): New function.
20022 (clear_addressable_bit): New function.
20023 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20024 fix handling of aliases.
20025 * cgraph.h (struct varpool_node): Add writeonly flag.
20026
20027 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
20028
20029 PR rtl-optimization/60969
20030 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20031 Calculate costs for this case.
20032
20033 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
20034
20035 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20036 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20037
20038 2014-05-16 Richard Biener <rguenther@suse.de>
20039
20040 PR tree-optimization/61194
20041 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20042 bool patterns ending in a COND_EXPR.
20043
20044 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20045
20046 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20047
20048 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20049
20050 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20051 where we were unable to cost an RTX.
20052
20053 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20054
20055 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20056 HIGH, LO_SUM.
20057
20058 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20059 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20060
20061 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20062
20063 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20064 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20065
20066 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20067 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20068
20069 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20070 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20071
20072 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20073 operators.
20074
20075 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20076 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20077
20078 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20079 DIV/MOD.
20080
20081 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20082 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20083
20084 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20085 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20086
20087 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20088 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20089
20090 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20091 rotates and shifts.
20092
20093 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20094 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20095
20096 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20097 ZERO_EXTEND and SIGN_EXTEND better.
20098
20099 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20100 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20101
20102 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20103 logical operations.
20104
20105 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20106 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20107
20108 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20109 costs when costing loads and stores to memory.
20110
20111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20112 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20113
20114 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20115 for SET RTX.
20116
20117 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20118
20119 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20120
20121 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20122 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20123
20124 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20125 to...
20126 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20127 well formed.
20128 (aarch64_rtx_mult_cost): New.
20129 (aarch64_rtx_costs): Use it, refactor as appropriate.
20130
20131 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20132 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20133
20134 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20135 emit instructions, return number of instructions which would
20136 be emitted.
20137 (aarch64_add_constant): Update call to aarch64_build_constant.
20138 (aarch64_output_mi_thunk): Likewise.
20139 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20140 a CONST_DOUBLE.
20141
20142 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20143
20144 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20145 (TARGET_RTX_COSTS): Call it.
20146
20147 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20148
20149 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20150 (cortexa57_vector_cost): Likewise.
20151 (cortexa57_tunings): Use them.
20152
20153 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20154
20155 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20156 (cpu_addrcost_table): Use it.
20157 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20158 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20159 move it.
20160
20161 2014-05-16 Richard Biener <rguenther@suse.de>
20162
20163 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20164 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20165 (visit_phi): Ignore edges marked as not executable.
20166 (class cond_dom_walker): New.
20167 (cond_dom_walker::before_dom_children): Value-number
20168 control statements and mark successor edges as not
20169 executable if possible.
20170 (run_scc_vn): First walk all control statements in
20171 dominator order, marking edges as not executable.
20172 * tree-inline.c (copy_edges_for_bb): Be not confused
20173 about random edge flags.
20174
20175 2014-05-16 Richard Biener <rguenther@suse.de>
20176
20177 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20178
20179 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20180
20181 PR target/61193
20182 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20183 (__TM_simple_begin): Use it.
20184 (__TM_begin): Likewise.
20185
20186 2014-05-15 Martin Jambor <mjambor@suse.cz>
20187
20188 PR ipa/61085
20189 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20190 type_preserved flag when the indirect edge is polymorphic.
20191
20192 2014-05-15 Martin Jambor <mjambor@suse.cz>
20193
20194 PR tree-optimization/61090
20195 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20196 build_ref_for_model.
20197
20198 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20199
20200 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20201 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20202
20203 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20204
20205 PR tree-optimization/61158
20206 * fold-const.c (fold_binary_loc): If X is zero-extended and
20207 shiftc >= prec, make sure zerobits is all ones instead of
20208 invoking undefined behavior.
20209
20210 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20211
20212 * regcprop.h: New file.
20213 * regcprop.c (skip_debug_insn_p): New decl.
20214 (replace_oldest_value_reg): Check skip_debug_insn_p.
20215 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20216 * shrink-wrap.c: Include regcprop.h.
20217 (prepare_shrink_wrap): Call
20218 copyprop_hardreg_forward_bb_without_debug_insn.
20219
20220 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20221
20222 * shrink-wrap.h: Update comment.
20223 * shrink-wrap.c: Update comment.
20224 (next_block_for_reg): Rename to live_edge_for_reg.
20225 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20226 (move_insn_for_shrink_wrap): Split live_edge.
20227 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20228
20229 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20230
20231 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20232 Delete.
20233 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20234 * config/sparc/sparc.md (fptype_ut699): New attribute.
20235 (in_branch_delay): Return false if -mfix-ut699 is specified and
20236 fptype_ut699 is set to single.
20237 (truncdfsf2): Add fptype_ut699 attribute.
20238 (fix_truncdfsi2): Likewise.
20239 (floatsisf2): Change fptype attribute.
20240 (fix_truncsfsi2): Likewise.
20241 (negtf2_notv9): Delete.
20242 (negtf2_v9): Likewise.
20243 (negtf2_hq): New instruction.
20244 (negtf2): New instruction and splitter.
20245 (negdf2_notv9): Rewrite.
20246 (abstf2_notv9): Delete.
20247 (abstf2_hq_v9): Likewise.
20248 (abstf2_v9): Likewise.
20249 (abstf2_hq): New instruction.
20250 (abstf2): New instruction and splitter.
20251 (absdf2_notv9): Rewrite.
20252
20253 2014-05-14 Cary Coutant <ccoutant@google.com>
20254
20255 PR debug/61013
20256 * opts.c (common_handle_option): Don't special-case "-g".
20257 (set_debug_level): Default to at least level 2 with "-g".
20258
20259 2014-05-14 DJ Delorie <dj@redhat.com>
20260
20261 * config/msp430/msp430.c (msp430_builtin): Add
20262 MSP430_BUILTIN_DELAY_CYCLES.
20263 (msp430_init_builtins): Register void __delay_cycles(long long).
20264 (msp430_builtin_decl): Add it.
20265 (cg_magic_constant): New.
20266 (msp430_expand_delay_cycles): New.
20267 (msp430_expand_builtin): Call it.
20268 (msp430_print_operand_raw): Change integer printing from "int" to
20269 HOST_WIDE_INT.
20270 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20271 (delay_cycles_start): New.
20272 (delay_cycles_end): New.
20273 (delay_cycles_32): New.
20274 (delay_cycles_32x): New.
20275 (delay_cycles_16): New.
20276 (delay_cycles_16x): New.
20277 (delay_cycles_2): New.
20278 (delay_cycles_1): New.
20279 * doc/extend.texi: Document __delay_cycles().
20280
20281 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20282
20283 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20284 length attribute computation.
20285
20286 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20287
20288 PR debug/61188
20289 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20290
20291 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20292
20293 PR target/61084
20294 * config/sparc/sparc.md: Fix types of low and high in DI constant
20295 splitter. Use gen_int_mode in some other splitters.
20296
20297 2014-05-14 Martin Jambor <mjambor@suse.cz>
20298
20299 PR ipa/60897
20300 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20301
20302 2014-05-14 James Norris <jnorris@codesourcery.com>
20303
20304 * omp-low.c (expand_parallel_call): Remove shadow variable.
20305 (expand_omp_taskreg): Likewise.
20306
20307 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20308
20309 * common/config/i386/i386-common.c
20310 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20311 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20312 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20313 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20314 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20315 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20316 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20317 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20318 xsavecintrin.h, xsavesintrin.h.
20319 (x86_64-*-*): Ditto.
20320 * config/i386/clflushoptintrin.h: New.
20321 * config/i386/xsavecintrin.h: Ditto.
20322 * config/i386/xsavesintrin.h: Ditto.
20323 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20324 (bit_XSAVES): Ditto.
20325 (bit_XSAVES): Ditto.
20326 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20327 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20328 -mno-clflushopt.
20329 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20330 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20331 OPTION_MASK_ISA_XSAVES.
20332 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20333 -mxsavec, -mxsaves.
20334 (PTA_CLFLUSHOPT) Define.
20335 (PTA_XSAVEC): Ditto.
20336 (PTA_XSAVES): Ditto.
20337 (ix86_option_override_internal): Handle new options.
20338 (ix86_valid_target_attribute_inner_p): Ditto.
20339 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20340 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20341 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20342 (bdesc_special_args): Add __builtin_ia32_xsaves,
20343 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20344 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20345 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20346 (ix86_expand_builtin): Handle new builtins.
20347 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20348 (TARGET_CLFLUSHOPT_P): Ditto.
20349 (TARGET_XSAVEC): Ditto.
20350 (TARGET_XSAVEC_P): Ditto.
20351 (TARGET_XSAVES): Ditto.
20352 (TARGET_XSAVES_P): Ditto.
20353 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20354 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20355 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20356 (ANY_XRSTOR): New.
20357 (ANY_XRSTOR64): Ditto.
20358 (xrstor): Ditto.
20359 (xrstor): Change into <xrstor>.
20360 (xrstor_rex64): Change into <xrstor>_rex64.
20361 (xrstor64): Change into <xrstor>64
20362 (clflushopt): New.
20363 * config/i386/i386.opt (mclflushopt): New.
20364 (mxsavec): Ditto.
20365 (mxsaves): Ditto.
20366 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20367 xsavecintrin.h.
20368 * doc/invoke.texi: Document new options.
20369
20370 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20371
20372 PR rtl-optimization/60866
20373 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20374 Default it to -1. Pass it down to init_simplejump_data.
20375 (init_simplejump_data): New parameter old_seqno. Pass it down
20376 to get_seqno_for_a_jump.
20377 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20378 initializing new jump seqno as a last resort. Add comment.
20379 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20380 jump and pass it down to sel_init_new_insn.
20381 (sel_redirect_edge_and_branch_force): Likewise.
20382
20383 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20384
20385 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20386 shifted values to avoid build warning.
20387
20388 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20389
20390 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20391 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20392 (cfg_layout_merge_blocks): Likewise.
20393 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20394
20395 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20396
20397 PR rtl-optimization/60901
20398 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20399 bb predecessor belongs to the same scheduling region. Adjust comment.
20400
20401 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20402
20403 * doc/sourcebuild.texi: (dfp_hw): Document.
20404 (p8vector_hw): Likewise.
20405 (powerpc_eabi_ok): Likewise.
20406 (powerpc_elfv2): Likewise.
20407 (powerpc_htm_ok): Likewise.
20408 (ppc_recip_hw): Likewise.
20409 (vsx_hw): Likewise.
20410
20411 2014-05-13 Cary Coutant <ccoutant@google.com>
20412
20413 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20414
20415 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20416
20417 * gengtype-parse.c (require3): Eliminate in favor of...
20418 (require4): New.
20419 (require_template_declaration): Update to support optional single *
20420 on a type.
20421
20422 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20423 (create_user_defined_type): Handle a single level of explicit
20424 pointerness within template arguments.
20425 (struct write_types_data): Add field "kind".
20426 (filter_type_name): Handle "*" character.
20427 (write_user_func_for_structure_ptr): Require a write_types_data
20428 rather than just a prefix string, so that we can look up the kind
20429 of the wtd and use it as an index into wrote_user_func_for_ptr,
20430 ensuring that such functions are written at most once. Support
20431 subclasses by invoking the marking function of the ultimate base class.
20432 (write_user_func_for_structure_body): Require a write_types_data
20433 rather than just a prefix string, so that we can pass this to
20434 write_user_func_for_structure_ptr.
20435 (write_func_for_structure): Likewise.
20436 (ggc_wtd): Add initializer of new "kind" field.
20437 (pch_wtd): Likewise.
20438
20439 * gengtype.h (enum write_types_kinds): New.
20440 (struct type): Add field wrote_user_func_for_ptr to the "s"
20441 union member.
20442
20443 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20444
20445 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20446 instead of const_binop.
20447 (fold_binary_loc): Likewise.
20448
20449 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20450
20451 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20452 calculation to match get_ref_base_and_extent.
20453
20454 2014-05-13 Catherine Moore <clm@codesourcery.com>
20455 Sandra Loosemore <sandra@codesourcery.com>
20456
20457 * configure.ac: Fix assembly for explicit JALR relocation check.
20458 * configure: Regenerate.
20459
20460 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20461
20462 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20463 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20464 Remove associated type declarations and initialisations.
20465 (arm_expand_neon_builtin): Likewise.
20466 (neon_emit_pair_result_insn): Delete.
20467 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20468 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20469 (neon_vzip<mode>): Likewise.
20470 (neon_vuzp<mode>): Likewise.
20471
20472 2014-05-13 Richard Biener <rguenther@suse.de>
20473
20474 PR ipa/60973
20475 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20476 it needs revisiting whether the call still may be tail-called.
20477
20478 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20479
20480 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20481 * rtl.h (block_symbol): Reduce number of fields to 2.
20482 (rtx_def): Add u2.symbol_ref_flags.
20483 (SYMBOL_REF_FLAGS): Use it.
20484 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20485 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20486 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20487 Lower index of SYMBOL_REF_DATA.
20488 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20489 Print SYMBOL_REF_FLAGS at the same time.
20490 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20491
20492 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20493
20494 * rtl.def (VAR_LOCATION): Remove "i" field.
20495 * rtl.h (rtx_def): Add u2.var_location_status.
20496 (PAT_VAR_LOCATION_STATUS): Use it.
20497 (gen_rtx_VAR_LOCATION): Declare.
20498 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20499 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20500 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20501
20502 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20503
20504 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20505 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20506
20507 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20508
20509 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20510 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20511 * rtl.h (rtx_def): Add insn_uid to u2 field.
20512 (RTX_FLAG_CHECK8): Delete in favor of...
20513 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20514 (INSN_DELETED_P): Update accordingly.
20515 (INSN_UID): Use u2.insn_uid.
20516 (INSN_CHAIN_CODE_P): Define.
20517 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20518 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20519 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20520 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20521 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20522 indices accordingly.
20523 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20524 Update indices for insn-chain rtxes.
20525 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20526 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20527 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20528 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20529 * combine.c (try_combine): Likewise.
20530 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20531
20532 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20533
20534 * rtl.def (REG): Remove middle field.
20535 * rtl.h (rtx_def): Add orignal_regno to u2.
20536 (ORIGINAL_REGNO): Use it instead of field 1.
20537 (REG_ATTRS): Lower field index accordingly.
20538 * gengtype.c (adjust_field_rtx_def): Remove handling of
20539 ORIGINAL_REGNO. Move REG_ATTRS index down.
20540 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20541 code that prints the REGNO.
20542
20543 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20544
20545 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20546 GENERATOR_FILE.
20547
20548 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20549
20550 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20551
20552 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20553
20554 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20555 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20556
20557 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20558
20559 * config/aarch64/aarch64-protos.h
20560 (aarch64_hard_regno_caller_save_mode): New prototype.
20561 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20562 New function.
20563 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20564
20565 2014-05-13 Christian Bruel <christian.bruel@st.com>
20566
20567 * target.def (mode_switching): New hook vector.
20568 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20569 (mode_exit, modepriority_to_mode): Likewise.
20570 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20571 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20572 * target.h: Include tm.h and hard-reg-set.h.
20573 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20574 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20575 * doc/tm.texi Regenerate.
20576 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20577 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20578 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20579 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20580 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20581 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20582 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20583 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20584 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20585 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20586 (ix86_emit_mode_set): Hookify.
20587 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20588 Delete.
20589 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20590 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20591 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20592 (epiphany_mode_priority_to_mode): Remove declaration.
20593 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20594 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20595 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20596 Likewise.
20597 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20598 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20599 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20600
20601 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20602
20603 PR target/61060
20604 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20605 is const0_rtx, return immediately. Don't test count == 0 when
20606 it is always true.
20607
20608 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20609
20610 * Makefile.in: add shrink-wrap.o.
20611 * config/i386/i386.c: include "shrink-wrap.h"
20612 * function.c: Likewise.
20613 (requires_stack_frame_p, next_block_for_reg,
20614 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20615 dup_block_and_redirect): Move to shrink-wrap.c
20616 (thread_prologue_and_epilogue_insns): Extract three code segments
20617 as functions in shrink-wrap.c
20618 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20619 shrink-wrap.h
20620 * shrink-wrap.c: New file.
20621 * shrink-wrap.h: New file.
20622
20623 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20624
20625 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20626 reference to Solaris.
20627
20628 2014-05-12 Mike Stump <mikestump@comcast.net>
20629
20630 PR other/31778
20631 * genattrtab.c (filename): Add.
20632 (convert_set_attr_alternative): Improve error message.
20633 (check_defs): Restore read_md_filename for error messages.
20634 (gen_insn): Save filename.
20635
20636 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20637
20638 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20639 -fno-local-ivars and -fivar-visibility.
20640 * c-family/c.opt: Make -Wshadow also implicitly enable
20641 -Wshadow-ivar.
20642
20643 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20644
20645 * doc/tm.texi: Remove reference to deleted macro.
20646 * doc/tm.texi.in: Likewise.
20647
20648 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20649
20650 PR target/60991
20651 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20652 to restore Y.
20653
20654 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20655
20656 PR libgcc/61152
20657 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20658 * config/arm/aout.h (License): Same.
20659 * config/arm/bpabi.h (License): Same.
20660 * config/arm/elf.h (License): Same.
20661 * config/arm/linux-elf.h (License): Same.
20662 * config/arm/linux-gas.h (License): Same.
20663 * config/arm/netbsd-elf.h (License): Same.
20664 * config/arm/uclinux-eabi.h (License): Same.
20665 * config/arm/uclinux-elf.h (License): Same.
20666 * config/arm/vxworks.h (License): Same.
20667
20668 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20669
20670 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20671 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20672 number of operands to 3.
20673 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20674 * tree-nested.c (convert_nonlocal_omp_clauses,
20675 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20676 * gimplify.c (gimplify_scan_omp_clauses): Handle
20677 OMP_CLAUSE_LINEAR_STMT.
20678 * omp-low.c (lower_rec_input_clauses): Fix typo.
20679 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20680 cast between Fortran boolean_type_node and C _Bool if
20681 needed.
20682
20683 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20684
20685 PR tree-optimization/61136
20686 * wide-int.h (multiple_of_p): Define a version that doesn't return
20687 the quotient.
20688 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20689 integer_zerop/const_binop pair.
20690 (multiple_of_p): Likewise, converting both operands to widest_int
20691 precision.
20692
20693 2014-05-09 Teresa Johnson <tejohnson@google.com>
20694
20695 * cgraphunit.c (analyze_functions): Use correct dump file.
20696
20697 2014-05-09 Florian Weimer <fweimer@redhat.com>
20698
20699 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20700 expand_used_vars.
20701 (stack_protect_return_slot_p): New function.
20702 (expand_used_vars): Call stack_protect_decl_p and
20703 stack_protect_return_slot_p for -fstack-protector-strong.
20704
20705 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20706 Andrew Haley <aph@redhat.com>
20707 Richard Sandiford <rdsandiford@googlemail.com>
20708
20709 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20710 pages.
20711
20712 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20713
20714 PR middle-end/61111
20715 * fold-const.c (fold_binary_loc): Changed width of mask.
20716
20717 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20718
20719 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20720 unsigned int initializers for regno_in, regno_out.
20721
20722 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20723
20724 PR target/61055
20725 * config/avr/avr.md (cc): Add new attribute set_vzn.
20726 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20727 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20728 with INC, DEC or NEG.
20729 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20730 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20731 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20732
20733 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20734
20735 Revert:
20736 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20737
20738 * wide-int.cc (UTItype): Define.
20739 (UDWtype): Define for appropriate W_TYPE_SIZE.
20740
20741 2014-05-09 Richard Biener <rguenther@suse.de>
20742
20743 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20744 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20745 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20746 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20747 ssa_propagate): Adjust.
20748
20749 2014-05-08 Jeff Law <law@redhat.com>
20750
20751 PR tree-optimization/61009
20752 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20753 tri-state rather than a boolean. When a block is too big to
20754 thread through, inform caller via negative return value.
20755 (thread_across_edge): If a block was too big for normal threading,
20756 then it's too big for a joiner too, so remove temporary equivalences
20757 and return immediately.
20758
20759 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20760 Matthias Klose <doko@ubuntu.com>
20761
20762 PR driver/61106
20763 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20764
20765 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20766
20767 PR target/59952
20768 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20769
20770 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20771
20772 PR target/61092
20773 * config/alpha/alpha.c: Include gimple-iterator.h.
20774 (alpha_gimple_fold_builtin): New function. Move
20775 ALPHA_BUILTIN_UMULH folding from ...
20776 (alpha_fold_builtin): ... here.
20777 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20778
20779 2014-05-08 Wei Mi <wmi@google.com>
20780
20781 PR target/58066
20782 * config/i386/i386.c (ix86_compute_frame_layout): Update
20783 preferred_stack_boundary for call, expanded from tls descriptor.
20784 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20785 to depend on SP register.
20786 (*tls_local_dynamic_base_32_gnu): Ditto.
20787 (*tls_local_dynamic_32_once): Ditto.
20788 (tls_global_dynamic_64_<mode>): Set
20789 ix86_tls_descriptor_calls_expanded_in_cfun.
20790 (tls_local_dynamic_base_64_<mode>): Ditto.
20791 (tls_global_dynamic_32): Set
20792 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20793 to depend on SP register.
20794 (tls_local_dynamic_base_32): Ditto.
20795
20796 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20797
20798 * config/arm/arm_neon.h: Update comment.
20799 * config/arm/neon-docgen.ml: Delete.
20800 * config/arm/neon-gen.ml: Delete.
20801 * doc/arm-neon-intrinsics.texi: Update comment.
20802
20803 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20804
20805 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20806 and v4sf versions.
20807 (vand, vorr, veor, vorn, vbic): Remove.
20808 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20809 iterator.
20810 (neon_vsub_unspec): Likewise.
20811 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20812
20813 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20814
20815 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20816 (vadd_s16): Likewise.
20817 (vadd_s32): Likewise.
20818 (vadd_f32): Likewise.
20819 (vadd_u8): Likewise.
20820 (vadd_u16): Likewise.
20821 (vadd_u32): Likewise.
20822 (vadd_s64): Likewise.
20823 (vadd_u64): Likewise.
20824 (vaddq_s8): Likewise.
20825 (vaddq_s16): Likewise.
20826 (vaddq_s32): Likewise.
20827 (vaddq_s64): Likewise.
20828 (vaddq_f32): Likewise.
20829 (vaddq_u8): Likewise.
20830 (vaddq_u16): Likewise.
20831 (vaddq_u32): Likewise.
20832 (vaddq_u64): Likewise.
20833 (vmul_s8): Likewise.
20834 (vmul_s16): Likewise.
20835 (vmul_s32): Likewise.
20836 (vmul_f32): Likewise.
20837 (vmul_u8): Likewise.
20838 (vmul_u16): Likewise.
20839 (vmul_u32): Likewise.
20840 (vmul_p8): Likewise.
20841 (vmulq_s8): Likewise.
20842 (vmulq_s16): Likewise.
20843 (vmulq_s32): Likewise.
20844 (vmulq_f32): Likewise.
20845 (vmulq_u8): Likewise.
20846 (vmulq_u16): Likewise.
20847 (vmulq_u32): Likewise.
20848 (vsub_s8): Likewise.
20849 (vsub_s16): Likewise.
20850 (vsub_s32): Likewise.
20851 (vsub_f32): Likewise.
20852 (vsub_u8): Likewise.
20853 (vsub_u16): Likewise.
20854 (vsub_u32): Likewise.
20855 (vsub_s64): Likewise.
20856 (vsub_u64): Likewise.
20857 (vsubq_s8): Likewise.
20858 (vsubq_s16): Likewise.
20859 (vsubq_s32): Likewise.
20860 (vsubq_s64): Likewise.
20861 (vsubq_f32): Likewise.
20862 (vsubq_u8): Likewise.
20863 (vsubq_u16): Likewise.
20864 (vsubq_u32): Likewise.
20865 (vsubq_u64): Likewise.
20866 (vand_s8): Likewise.
20867 (vand_s16): Likewise.
20868 (vand_s32): Likewise.
20869 (vand_u8): Likewise.
20870 (vand_u16): Likewise.
20871 (vand_u32): Likewise.
20872 (vand_s64): Likewise.
20873 (vand_u64): Likewise.
20874 (vandq_s8): Likewise.
20875 (vandq_s16): Likewise.
20876 (vandq_s32): Likewise.
20877 (vandq_s64): Likewise.
20878 (vandq_u8): Likewise.
20879 (vandq_u16): Likewise.
20880 (vandq_u32): Likewise.
20881 (vandq_u64): Likewise.
20882 (vorr_s8): Likewise.
20883 (vorr_s16): Likewise.
20884 (vorr_s32): Likewise.
20885 (vorr_u8): Likewise.
20886 (vorr_u16): Likewise.
20887 (vorr_u32): Likewise.
20888 (vorr_s64): Likewise.
20889 (vorr_u64): Likewise.
20890 (vorrq_s8): Likewise.
20891 (vorrq_s16): Likewise.
20892 (vorrq_s32): Likewise.
20893 (vorrq_s64): Likewise.
20894 (vorrq_u8): Likewise.
20895 (vorrq_u16): Likewise.
20896 (vorrq_u32): Likewise.
20897 (vorrq_u64): Likewise.
20898 (veor_s8): Likewise.
20899 (veor_s16): Likewise.
20900 (veor_s32): Likewise.
20901 (veor_u8): Likewise.
20902 (veor_u16): Likewise.
20903 (veor_u32): Likewise.
20904 (veor_s64): Likewise.
20905 (veor_u64): Likewise.
20906 (veorq_s8): Likewise.
20907 (veorq_s16): Likewise.
20908 (veorq_s32): Likewise.
20909 (veorq_s64): Likewise.
20910 (veorq_u8): Likewise.
20911 (veorq_u16): Likewise.
20912 (veorq_u32): Likewise.
20913 (veorq_u64): Likewise.
20914 (vbic_s8): Likewise.
20915 (vbic_s16): Likewise.
20916 (vbic_s32): Likewise.
20917 (vbic_u8): Likewise.
20918 (vbic_u16): Likewise.
20919 (vbic_u32): Likewise.
20920 (vbic_s64): Likewise.
20921 (vbic_u64): Likewise.
20922 (vbicq_s8): Likewise.
20923 (vbicq_s16): Likewise.
20924 (vbicq_s32): Likewise.
20925 (vbicq_s64): Likewise.
20926 (vbicq_u8): Likewise.
20927 (vbicq_u16): Likewise.
20928 (vbicq_u32): Likewise.
20929 (vbicq_u64): Likewise.
20930 (vorn_s8): Likewise.
20931 (vorn_s16): Likewise.
20932 (vorn_s32): Likewise.
20933 (vorn_u8): Likewise.
20934 (vorn_u16): Likewise.
20935 (vorn_u32): Likewise.
20936 (vorn_s64): Likewise.
20937 (vorn_u64): Likewise.
20938 (vornq_s8): Likewise.
20939 (vornq_s16): Likewise.
20940 (vornq_s32): Likewise.
20941 (vornq_s64): Likewise.
20942 (vornq_u8): Likewise.
20943 (vornq_u16): Likewise.
20944 (vornq_u32): Likewise.
20945 (vornq_u64): Likewise.
20946
20947 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20948
20949 * wide-int.cc (UTItype): Define.
20950 (UDWtype): Define for appropriate W_TYPE_SIZE.
20951
20952 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20953
20954 PR tree-optimization/59100
20955 * tree-ssa-phiopt.c: Include tree-inline.h.
20956 (neutral_element_p, absorbing_element_p): New functions.
20957 (value_replacement): Handle conditional binary operations with a
20958 neutral or absorbing element.
20959
20960 2014-05-08 Richard Biener <rguenther@suse.de>
20961
20962 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20963 folding the expression.
20964 (valueize_expr): Remove.
20965 (visit_reference_op_load): Do not valueize the result of
20966 vn_get_expr_for.
20967 (simplify_binary_expression): Likewise.
20968 (simplify_unary_expression): Likewise.
20969
20970 2014-05-08 Richard Biener <rguenther@suse.de>
20971
20972 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20973 looking at TYPE_ARG_TYPES.
20974
20975 2014-05-08 Richard Biener <rguenther@suse.de>
20976
20977 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20978 pointer propagation special-case.
20979
20980 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20981
20982 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20983 core part of address expressions.
20984
20985 2014-05-08 Alan Modra <amodra@gmail.com>
20986
20987 PR target/60737
20988 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20989 loads and stores when -mno-strict-align at any alignment.
20990 (expand_block_clear): Similarly. Also correct calculation of
20991 instruction count.
20992
20993 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20994
20995 PR middle-end/39246
20996 * tree-complex.c (expand_complex_move): Keep line info when expanding
20997 complex move.
20998 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20999 of complex expression. Use new argument to display correct location
21000 for values coming from phi statement.
21001 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21002 (warn_uninitialized_phi): Pass location of phi argument to
21003 warn_uninit.
21004 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21005 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21006
21007 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21008
21009 * config/rs6000/predicates.md (indexed_address_mem): New.
21010 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21011 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21012 fpstore_ux, fpstore_u.
21013 (sign_extend, indexed, update): New.
21014 (cell_micro): Adjust.
21015 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21016 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21017 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21018 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21019 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21020 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21021 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21022 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21023 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21024 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21025 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21026 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21027 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21028 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21029 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21030
21031 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21032 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21033 *vsx_extract_<mode>_store): Adjust.
21034 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21035 is_cracked_insn, insn_must_be_first_in_group,
21036 insn_must_be_last_in_group): Adjust.
21037
21038 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21039 Adjust.
21040 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21041 ppc440-fpstore): Adjust.
21042 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21043 ppc476-fpstore): Adjust.
21044 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21045 ppc601-fpstore): Adjust.
21046 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21047 Adjust.
21048 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21049 Adjust.
21050 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21051 ppc7450-fpstore): Adjust.
21052 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21053 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21054 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21055 Adjust.
21056 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21057 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21058 cell-fpstore, cell-fpstore-update): Adjust.
21059 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21060 ppce300c3_store, ppce300c3_fpstore): Adjust.
21061 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21062 e500mc_fpstore): Adjust.
21063 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21064 e500mc64_store, e500mc64_fpstore): Adjust.
21065 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21066 e5500_fpstore): Adjust.
21067 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21068 e6500_fpstore): Adjust.
21069 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21070 Adjust.
21071 * config/rs6000/power4.md (power4-load, power4-load-ext,
21072 power4-load-ext-update, power4-load-ext-update-indexed,
21073 power4-load-update-indexed, power4-load-update, power4-fpload,
21074 power4-fpload-update, power4-store, power4-store-update,
21075 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21076 Adjust.
21077 * config/rs6000/power5.md (power5-load, power5-load-ext,
21078 power5-load-ext-update, power5-load-ext-update-indexed,
21079 power5-load-update-indexed, power5-load-update, power5-fpload,
21080 power5-fpload-update, power5-store, power5-store-update,
21081 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21082 Adjust.
21083 * config/rs6000/power6.md (power6-load, power6-load-ext,
21084 power6-load-update, power6-load-update-indexed,
21085 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21086 power6-fpload-update, power6-store, power6-store-update,
21087 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21088 Adjust.
21089 * config/rs6000/power7.md (power7-load, power7-load-ext,
21090 power7-load-update, power7-load-update-indexed,
21091 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21092 power7-fpload-update, power7-store, power7-store-update,
21093 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21094 Adjust.
21095 * config/rs6000/power8.md (power8-load, power8-load-update,
21096 power8-load-ext, power8-load-ext-update, power8-fpload,
21097 power8-fpload-update, power8-store, power8-store-update-indexed,
21098 power8-fpstore, power8-fpstore-update): Adjust.
21099 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21100 Adjust.
21101 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21102 titan_lsu_store, titan_lsu_fpstore): Adjust.
21103 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21104
21105 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21106
21107 PR target/60884
21108 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21109 unrolled byte insns. Emit address increments after move insns.
21110
21111 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21112
21113 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21114 const_gimple, rather than a gimple.
21115 (gimple_call_builtin_p): Likewise, for the three variants.
21116
21117 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21118 (gimple_call_builtin_p): Likewise, for the three variants.
21119
21120 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21121
21122 PR tree-optimization/61095
21123 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21124
21125 2014-05-07 Richard Biener <rguenther@suse.de>
21126
21127 PR tree-optimization/61034
21128 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21129 (maybe_skip_until): Use translate to take into account
21130 lattices when trying to do disambiguations.
21131 (get_continuation_for_phi_1): Likewise.
21132 (get_continuation_for_phi): Adjust for added translate arguments.
21133 (walk_non_aliased_vuses): Likewise.
21134 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21135 (walk_non_aliased_vuses): Likewise.
21136 (call_may_clobber_ref_p_1): Declare.
21137 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21138 calls. Stop early if we are only supposed to disambiguate.
21139 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21140
21141 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21142
21143 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21144 Emit an error when the function has arguments.
21145
21146 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21147
21148 * cfgloop.h (unswitch_loops): Remove.
21149 * doc/passes.texi: Remove references to loop-unswitch.c
21150 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21151
21152 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21153
21154 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21155 check for loads group of length 3.
21156 (vect_permute_load_chain): New permutations for loads group of
21157 length 3.
21158 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21159 of vec_perm_shuffle for the new permutations.
21160
21161 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21162
21163 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21164 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21165 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21166 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21167 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21168 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21169 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21170 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21171
21172 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21173
21174 * loop-unswitch.c: Delete.
21175
21176 2014-05-07 Richard Biener <rguenther@suse.de>
21177
21178 * config.gcc: Always set need_64bit_hwint to yes.
21179
21180 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21181
21182 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21183 of using optimize_size.
21184
21185 2014-05-06 Mike Stump <mikestump@comcast.net>
21186
21187 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21188
21189 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21190
21191 * config/i386/sse.md (*mov<mode>_internal)
21192 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21193 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21194 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21195 (*<code><mode>3, *andnot<mode>3<mask_name>)
21196 (<mask_codefor><code><mode>3<mask_name>): Only consider
21197 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21198
21199 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21200
21201 Revert:
21202 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21203
21204 * lra-constraints.c (valid_address_p): Move earlier in file.
21205 Add a constraint argument to the address_info version.
21206 (satisfies_memory_constraint_p): New function.
21207 (satisfies_address_constraint_p): Likewise.
21208 (process_alt_operands, curr_insn_transform): Use them.
21209 (process_address): Pass the constraint to valid_address_p when
21210 checking address operands.
21211
21212 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21213
21214 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21215 to their respective blocks. Fix inadvertent use of "node".
21216
21217 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21218
21219 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21220 out from...
21221 (init_emit_once): ...here.
21222 * rtl.h (init_derived_machine_modes): Declare.
21223 * toplev.c (do_compile): Call it even if no_backend.
21224
21225 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21226 Mike Stump <mikestump@comcast.net>
21227 Richard Sandiford <rdsandiford@googlemail.com>
21228 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21229
21230 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21231 (rtx_equal_for_memref_p): Update comment.
21232 (adjust_offset_for_component_ref): Use wide-int interfaces.
21233 * builtins.c (get_object_alignment_2): Likewise.
21234 (c_readstr): Likewise.
21235 (target_char_cast): Add comment.
21236 (determine_block_size): Use wide-int interfaces.
21237 (expand_builtin_signbit): Likewise.
21238 (fold_builtin_int_roundingfn): Likewise.
21239 (fold_builtin_bitop): Likewise.
21240 (fold_builtin_bswap): Likewise.
21241 (fold_builtin_logarithm): Use signop.
21242 (fold_builtin_pow): Likewise.
21243 (fold_builtin_memory_op): Use wide-int interfaces.
21244 (fold_builtin_object_size): Likewise.
21245 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21246 nb_iterations_estimate.
21247 (record_niter_bound): Use wide-int interfaces.
21248 (get_estimated_loop_iterations_int): Likewise.
21249 (get_estimated_loop_iterations): Likewise.
21250 (get_max_loop_iterations): Likewise.
21251 * cfgloop.h: Include wide-int.h.
21252 (struct nb_iter_bound): Change bound to widest_int.
21253 (struct loop): Change nb_iterations_upper_bound and
21254 nb_iterations_estimate to widest_int.
21255 (record_niter_bound): Switch to use widest_int.
21256 (get_estimated_loop_iterations): Likewise.
21257 (get_max_loop_iterations): Likewise.
21258 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21259 update for wide-int.
21260 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21261 * combine.c (try_combine): Likewise.
21262 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21263 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21264 interfaces.
21265 (aarch64_float_const_representable_p): Likewise.
21266 * config/arc/arc.c: Include wide-int.h.
21267 (arc_can_use_doloop_p): Use wide-int interfaces.
21268 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21269 (vfp3_const_double_index): Likewise.
21270 * config/avr/avr.c (avr_out_round): Likewise.
21271 (avr_fold_builtin): Likewise.
21272 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21273 (bfin_can_use_doloop_p): Likewise.
21274 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21275 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21276 * config/i386/i386.c: Include wide-int.h.
21277 (ix86_data_alignment): Use wide-int interfaces.
21278 (ix86_local_alignment): Likewise.
21279 (ix86_emit_swsqrtsf): Update real_from_integer.
21280 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21281 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21282 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21283 (zero_constant): Likewise.
21284 (input_operand): Likewise.
21285 (splat_input_operand): Likewise.
21286 (non_logical_cint_operand): Change const_double to const_wide_int.
21287 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21288 (easy_altivec_constant): Remove comment.
21289 (paired_expand_vector_init): Use CONSTANT_P.
21290 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21291 (rs6000_emit_move): Update checks.
21292 (rs6000_aggregate_candidate): Use wide-int interfaces.
21293 (rs6000_expand_ternop_builtin): Likewise.
21294 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21295 (rs6000_assemble_integer): Likewise.
21296 (rs6000_hash_constant): Likewise.
21297 (output_toc): Likewise.
21298 (rs6000_rtx_costs): Likewise.
21299 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21300 * config/rs6000/rs6000-c.c: Include wide-int.h.
21301 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21302 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21303 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21304 Handle CONST_WIDE_INT.
21305 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21306 Use tree_fits_uhwi_p.
21307 * config/sparc/sparc.c: Include wide-int.h.
21308 (sparc_fold_builtin): Use wide-int interfaces.
21309 * config/vax/vax.c: Include wide-int.h.
21310 (vax_float_literal): Use real_from_integer.
21311 * coretypes.h (struct hwivec_def): New.
21312 (hwivec): New.
21313 (const_hwivec): New.
21314 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21315 (equiv_constant): Handle CONST_WIDE_INT.
21316 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21317 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21318 * dbxout.c (stabstr_U): Use wide-int interfaces.
21319 (dbxout_type): Update to use cst_fits_shwi_p.
21320 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21321 (TARGET_SUPPORTS_WIDE_INT): Add default.
21322 * dfp.c: Include wide-int.h.
21323 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21324 decimal_real_to_integer.
21325 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21326 decimal_real_to_integer.
21327 * doc/generic.texi (Constant expressions): Update for wide_int.
21328 * doc/rtl.texi (const_double): Likewise.
21329 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21330 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21331 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21332 (REAL_VALUE_FROM_INT): Remove.
21333 (TARGET_SUPPORTS_WIDE_INT): New.
21334 * doc/tm.texi: Regenerate.
21335 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21336 * double-int.h: Include wide-int.h.
21337 (struct wi::int_traits): New.
21338 * dwarf2out.c (get_full_len): New.
21339 (dw_val_equal_p): Add case dw_val_class_wide_int.
21340 (size_of_loc_descr): Likewise.
21341 (output_loc_operands): Likewise.
21342 (insert_double): Remove.
21343 (insert_wide_int): New.
21344 (add_AT_wide): New.
21345 (print_die): Add case dw_val_class_wide_int.
21346 (attr_checksum): Likewise.
21347 (attr_checksum_ordered): Likewise.
21348 (same_dw_val_p): Likewise.
21349 (size_of_die): Likewise.
21350 (value_format): Likewise.
21351 (output_die): Likewise.
21352 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21353 Use wide-int.
21354 (clz_loc_descriptor): Use wide-int interfaces.
21355 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21356 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21357 (round_up_to_align): Use wide-int interfaces.
21358 (field_byte_offset): Likewise.
21359 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21360 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21361 CONST_DOUBLE handling. Use wide-int interfaces.
21362 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21363 (gen_enumeration_type_die): Use add_AT_wide.
21364 (hash_loc_operands): Add case dw_val_class_wide_int.
21365 (compare_loc_operands): Likewise.
21366 * dwarf2out.h: Include wide-int.h.
21367 (wide_int_ptr): New.
21368 (enum dw_val_class): Add dw_val_class_wide_int.
21369 (struct dw_val_struct): Add val_wide.
21370 * emit-rtl.c (const_wide_int_htab): New.
21371 (const_wide_int_htab_hash): New.
21372 (const_wide_int_htab_eq): New.
21373 (lookup_const_wide_int): New.
21374 (const_double_htab_hash): Use wide-int interfaces.
21375 (const_double_htab_eq): Likewise.
21376 (rtx_to_double_int): Conditionally compile for wide-int.
21377 (immed_double_int_const): Rename to immed_wide_int_const and
21378 update for wide-int.
21379 (immed_double_const): Conditionally compile for wide-int.
21380 (init_emit_once): Use wide-int interfaces.
21381 * explow.c (plus_constant): Likewise.
21382 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21383 (lshift_value): Use wide-int interfaces.
21384 (expand_mult): Likewise.
21385 (choose_multiplier): Likewise.
21386 (expand_smod_pow2): Likewise.
21387 (make_tree): Likewise.
21388 * expr.c (convert_modes): Consolidate handling of constants.
21389 Use wide-int interfaces.
21390 (emit_group_load_1): Add note.
21391 (store_expr): Update comment.
21392 (get_inner_reference): Use wide-int interfaces.
21393 (expand_constructor): Update comment.
21394 (expand_expr_real_2): Use wide-int interfaces.
21395 (expand_expr_real_1): Likewise.
21396 (reduce_to_bit_field_precision): Likewise.
21397 (const_vector_from_tree): Likewise.
21398 * final.c: Include wide-int-print.h.
21399 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21400 * fixed-value.c: Include wide-int.h.
21401 (fixed_from_string): Use wide-int interfaces.
21402 (fixed_to_decimal): Likewise.
21403 (fixed_convert_from_real): Likewise.
21404 (real_convert_from_fixed): Likewise.
21405 * fold-const.h (mem_ref_offset): Return an offset_int.
21406 (div_if_zero_remainder): Remove code parameter.
21407 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21408 Use wide-int interfaces.
21409 (may_negate_without_overflow_p): Use wide-int interfaces.
21410 (negate_expr_p): Likewise.
21411 (fold_negate_expr): Likewise.
21412 (int_const_binop_1): Likewise.
21413 (const_binop): Likewise.
21414 (fold_convert_const_int_from_int): Likewise.
21415 (fold_convert_const_int_from_real): Likewise.
21416 (fold_convert_const_int_from_fixed): Likewise.
21417 (fold_convert_const_fixed_from_int): Likewise.
21418 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21419 (sign_bit_p): Use wide-int interfaces.
21420 (make_range_step): Likewise.
21421 (build_range_check): Likewise. Pass an integer of the correct type
21422 instead of using integer_one_node.
21423 (range_predecessor): Pass an integer of the correct type instead
21424 of using integer_one_node.
21425 (range_successor): Likewise.
21426 (merge_ranges): Likewise.
21427 (unextend): Use wide-int interfaces.
21428 (extract_muldiv_1): Likewise.
21429 (fold_div_compare): Likewise.
21430 (fold_single_bit_test): Likewise.
21431 (fold_sign_changed_comparison): Likewise.
21432 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21433 (fold_plusminus_mult_expr): Use wide-int interfaces.
21434 (native_encode_int): Likewise.
21435 (native_interpret_int): Likewise.
21436 (fold_unary_loc): Likewise.
21437 (pointer_may_wrap_p): Likewise.
21438 (size_low_cst): Likewise.
21439 (mask_with_tz): Likewise.
21440 (fold_binary_loc): Likewise.
21441 (fold_ternary_loc): Likewise.
21442 (multiple_of_p): Likewise.
21443 (tree_call_nonnegative_warnv_p): Update calls to
21444 tree_int_cst_min_precision and real_from_integer.
21445 (fold_negate_const): Use wide-int interfaces.
21446 (fold_abs_const): Likewise.
21447 (fold_relational_const): Use tree_int_cst_lt.
21448 (round_up_loc): Use wide-int interfaces.
21449 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21450 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21451 * gengtype.c: Remove include of double-int.h.
21452 (do_typedef): Use wide-int interfaces.
21453 (open_base_files): Add wide-int.h.
21454 (main): Add offset_int and widest_int typedefs.
21455 * gengtype-lex.l: Handle "^".
21456 (CXX_KEYWORD): Add "static".
21457 * gengtype-parse.c (require3): New.
21458 (require_template_declaration): Handle constant template arguments
21459 and nested templates.
21460 * gengtype-state.c: Don't include "double-int.h".
21461 * genpreds.c (write_one_predicate_function): Update comment.
21462 (write_tm_constrs_h): Add check for hval and lval use in
21463 CONST_WIDE_INT.
21464 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21465 (add_to_sequence): Likewise.
21466 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21467 and const_double_operand.
21468 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21469 interfaces.
21470 * gimple-fold.c (get_base_constructor): Likewise.
21471 (fold_array_ctor_reference): Likewise.
21472 (fold_nonarray_ctor_reference): Likewise.
21473 (fold_const_aggregate_ref_1): Likewise.
21474 (gimple_val_nonnegative_real_p): Likewise.
21475 (gimple_fold_indirect_ref): Likewise.
21476 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21477 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21478 (struct slsr_cand_d): Change index to be widest_int.
21479 (struct incr_info_d): Change incr to be widest_int.
21480 (alloc_cand_and_find_basis): Use wide-int interfaces.
21481 (slsr_process_phi): Likewise.
21482 (backtrace_base_for_ref): Likewise. Return a widest_int.
21483 (restructure_reference): Take a widest_int instead of a double_int.
21484 (slsr_process_ref): Use wide-int interfaces.
21485 (create_mul_ssa_cand): Likewise.
21486 (create_mul_imm_cand): Likewise.
21487 (create_add_ssa_cand): Likewise.
21488 (create_add_imm_cand): Take a widest_int instead of a double_int.
21489 (slsr_process_add): Use wide-int interfaces.
21490 (slsr_process_cast): Likewise.
21491 (slsr_process_copy): Likewise.
21492 (dump_candidate): Likewise.
21493 (dump_incr_vec): Likewise.
21494 (replace_ref): Likewise.
21495 (cand_increment): Likewise. Return a widest_int.
21496 (cand_abs_increment): Likewise.
21497 (replace_mult_candidate): Take a widest_int instead of a double_int.
21498 (replace_unconditional_candidate): Use wide-int interfaces.
21499 (incr_vec_index): Take a widest_int instead of a double_int.
21500 (create_add_on_incoming_edge): Likewise.
21501 (create_phi_basis): Use wide-int interfaces.
21502 (replace_conditional_candidate): Likewise.
21503 (record_increment): Take a widest_int instead of a double_int.
21504 (record_phi_increments): Use wide-int interfaces.
21505 (phi_incr_cost): Take a widest_int instead of a double_int.
21506 (lowest_cost_path): Likewise.
21507 (total_savings): Likewise.
21508 (analyze_increments): Use wide-int interfaces.
21509 (ncd_with_phi): Take a widest_int instead of a double_int.
21510 (ncd_of_cand_and_phis): Likewise.
21511 (nearest_common_dominator_for_cands): Likewise.
21512 (insert_initializers): Use wide-int interfaces.
21513 (all_phi_incrs_profitable): Likewise.
21514 (replace_one_candidate): Likewise.
21515 (replace_profitable_candidates): Likewise.
21516 * godump.c: Include wide-int-print.h.
21517 (go_output_typedef): Use wide-int interfaces.
21518 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21519 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21520 (build_loop_iteration_domains): Likewise.
21521 * hooks.h: Include wide-int.h rather than double-int.h.
21522 (hook_bool_dint_dint_uint_bool_true): Delete.
21523 (hook_bool_wint_wint_uint_bool_true): Declare.
21524 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21525 (hook_bool_wint_wint_uint_bool_true): New.
21526 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21527 interfaces.
21528 (ubsan_expand_si_overflow_mul_check): Likewise.
21529 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21530 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21531 (get_ancestor_addr_info): Likewise.
21532 (ipa_modify_call_arguments): Likewise.
21533 * loop-doloop.c (doloop_modify): Likewise.
21534 (doloop_optimize): Likewise.
21535 * loop-iv.c (iv_number_of_iterations): Likewise.
21536 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21537 (unroll_loop_constant_iterations): Likewise.
21538 (decide_unroll_runtime_iterations): Likewise.
21539 (unroll_loop_runtime_iterations): Likewise.
21540 (decide_peel_simple): Likewise.
21541 (decide_unroll_stupid): Likewise.
21542 * lto-streamer-in.c (streamer_read_wi): Add.
21543 (input_cfg): Use wide-int interfaces.
21544 (lto_input_tree_1): Likewise.
21545 * lto-streamer-out.c (streamer_write_wi): Add.
21546 (hash_tree): Use wide-int interfaces.
21547 (output_cfg): Likewise.
21548 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21549 (GTFILES): Add wide-int.h and signop.h.
21550 (TAGS): Look for .cc files too.
21551 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21552 * optabs.c (expand_subword_shift): Likewise.
21553 (expand_doubleword_shift): Likewise.
21554 (expand_absneg_bit): Likewise.
21555 (expand_copysign_absneg): Likewise.
21556 (expand_copysign_bit): Likewise.
21557 * postreload.c (reload_cse_simplify_set): Likewise.
21558 * predict.c (predict_iv_comparison): Likewise.
21559 * pretty-print.h: Include wide-int-print.h.
21560 (pp_wide_int) New.
21561 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21562 * print-tree.c: Include wide-int-print.h.
21563 (print_node_brief): Use wide-int interfaces.
21564 (print_node): Likewise.
21565 * read-rtl.c (validate_const_wide_int): New.
21566 (read_rtx_code): Add CONST_WIDE_INT case.
21567 * real.c: Include wide-int.h.
21568 (real_to_integer2): Delete.
21569 (real_to_integer): New function, returning a wide_int.
21570 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21571 (ten_to_ptwo): Update call to real_from_integer.
21572 (real_digit): Likewise.
21573 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21574 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21575 (REAL_VALUE_TO_INT): Delete.
21576 (real_to_integer): Declare a wide-int form.
21577 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21578 * recog.c (const_int_operand): Improve comment.
21579 (const_scalar_int_operand): New.
21580 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21581 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21582 (split_double): Likewise.
21583 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21584 (rtx_size): Likewise.
21585 (rtx_alloc_stat_v): New.
21586 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21587 (cwi_output_hex): New.
21588 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21589 (cwi_check_failed_bounds): New.
21590 * rtl.def (CONST_WIDE_INT): New.
21591 * rtl.h: Include <utility> and wide-int.h.
21592 (struct hwivec_def): New.
21593 (CWI_GET_NUM_ELEM): New.
21594 (CWI_PUT_NUM_ELEM): New.
21595 (struct rtx_def): Add num_elem and hwiv.
21596 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21597 (CASE_CONST_UNIQUE): Likewise.
21598 (CASE_CONST_ANY): Likewise.
21599 (CONST_SCALAR_INT_P): Likewise.
21600 (CONST_WIDE_INT_P): New.
21601 (CWI_ELT): New.
21602 (HWIVEC_CHECK): New.
21603 (cwi_check_failed_bounds): New.
21604 (CWI_ELT): New.
21605 (HWIVEC_CHECK): New.
21606 (CONST_WIDE_INT_VEC) New.
21607 (CONST_WIDE_INT_NUNITS) New.
21608 (CONST_WIDE_INT_ELT) New.
21609 (rtx_mode_t): New type.
21610 (wi::int_traits <rtx_mode_t>): New.
21611 (wi::shwi): New.
21612 (wi::min_value): New.
21613 (wi::max_value): New.
21614 (rtx_alloc_v) New.
21615 (const_wide_int_alloc): New.
21616 (immed_wide_int_const): New.
21617 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21618 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21619 * signop.h: New file.
21620 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21621 (simplify_const_unary_operation): Use wide-int interfaces.
21622 (simplify_binary_operation_1): Likewise.
21623 (simplify_const_binary_operation): Likewise.
21624 (simplify_const_relational_operation): Likewise.
21625 (simplify_immed_subreg): Likewise.
21626 * stmt.c (expand_case): Likewise.
21627 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21628 signop rather than a bool.
21629 * stor-layout.c (layout_type): Use wide-int interfaces.
21630 (initialize_sizetypes): Update calls to
21631 set_min_and_max_values_for_integral_type.
21632 (set_min_and_max_values_for_integral_type): Take a signop rather
21633 than a bool. Use wide-int interfaces.
21634 (fixup_signed_type): Update accordingly. Remove
21635 HOST_BITS_PER_DOUBLE_INT limit.
21636 (fixup_unsigned_type): Likewise.
21637 * system.h (STATIC_CONSTANT_P): New.
21638 (STATIC_ASSERT): New.
21639 * target.def (can_use_doloop_p): Take widest_ints rather than
21640 double_ints.
21641 * target.h: Include wide-int.h rather than double-int.h.
21642 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21643 than double_ints.
21644 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21645 rather than INT_CST_LT_UNSIGNED.
21646 (can_use_doloop_if_innermost): Take widest_ints rather than
21647 double_ints.
21648 * tree-affine.c: Include wide-int-print.h.
21649 (double_int_ext_for_comb): Delete.
21650 (wide_int_ext_for_comb): New.
21651 (aff_combination_zero): Use wide-int interfaces.
21652 (aff_combination_const): Take a widest_int instead of a double_int.
21653 (aff_combination_elt): Use wide-int interfaces.
21654 (aff_combination_scale): Take a widest_int instead of a double_int.
21655 (aff_combination_add_elt): Likewise.
21656 (aff_combination_add_cst): Likewise.
21657 (aff_combination_add): Use wide-int interfaces.
21658 (aff_combination_convert): Likewise.
21659 (tree_to_aff_combination): Likewise.
21660 (add_elt_to_tree): Take a widest_int instead of a double_int.
21661 (aff_combination_to_tree): Use wide-int interfaces.
21662 (aff_combination_remove_elt): Likewise.
21663 (aff_combination_add_product): Take a widest_int instead of
21664 a double_int.
21665 (aff_combination_mult): Use wide-int interfaces.
21666 (aff_combination_expand): Likewise.
21667 (double_int_constant_multiple_p): Delete.
21668 (wide_int_constant_multiple_p): New.
21669 (aff_combination_constant_multiple_p): Take a widest_int pointer
21670 instead of a double_int pointer.
21671 (print_aff): Use wide-int interfaces.
21672 (get_inner_reference_aff): Take a widest_int pointer
21673 instead of a double_int pointer.
21674 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21675 * tree-affine.h: Include wide-int.h.
21676 (struct aff_comb_elt): Change type of coef to widest_int.
21677 (struct affine_tree_combination): Change type of offset to widest_int.
21678 (double_int_ext_for_comb): Delete.
21679 (wide_int_ext_for_comb): New.
21680 (aff_combination_const): Use widest_int instead of double_int.
21681 (aff_combination_scale): Likewise.
21682 (aff_combination_add_elt): Likewise.
21683 (aff_combination_constant_multiple_p): Likewise.
21684 (get_inner_reference_aff): Likewise.
21685 (aff_comb_cannot_overlap_p): Likewise.
21686 (aff_combination_zero_p): Use wide-int interfaces.
21687 * tree.c: Include tree.h.
21688 (init_ttree): Use make_int_cst.
21689 (tree_code_size): Removed code for INTEGER_CST case.
21690 (tree_size): Add INTEGER_CST case.
21691 (make_node_stat): Update comment.
21692 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21693 (build_int_cst_type): Use wide-int interfaces.
21694 (double_int_to_tree): Likewise.
21695 (double_int_fits_to_tree_p): Delete.
21696 (force_fit_type_double): Delete.
21697 (force_fit_type): New.
21698 (int_cst_hash_hash): Use wide-int interfaces.
21699 (int_cst_hash_eq): Likewise.
21700 (build_int_cst_wide): Delete.
21701 (wide_int_to_tree): New.
21702 (cache_integer_cst): Use wide-int interfaces.
21703 (build_low_bits_mask): Likewise.
21704 (cst_and_fits_in_hwi): Likewise.
21705 (real_value_from_int_cst): Likewise.
21706 (make_int_cst_stat): New.
21707 (integer_zerop): Use wide_int interfaces.
21708 (integer_onep): Likewise.
21709 (integer_all_onesp): Likewise.
21710 (integer_pow2p): Likewise.
21711 (integer_nonzerop): Likewise.
21712 (tree_log2): Likewise.
21713 (tree_floor_log2): Likewise.
21714 (tree_ctz): Likewise.
21715 (int_size_in_bytes): Likewise.
21716 (mem_ref_offset): Return an offset_int rather than a double_int.
21717 (build_type_attribute_qual_variant): Use wide_int interfaces.
21718 (type_hash_eq): Likewise
21719 (tree_int_cst_equal): Likewise.
21720 (tree_int_cst_lt): Delete.
21721 (tree_int_cst_compare): Likewise.
21722 (tree_fits_shwi_p): Use wide_int interfaces.
21723 (tree_fits_uhwi_p): Likewise.
21724 (tree_int_cst_sign_bit): Likewise.
21725 (tree_int_cst_sgn): Likewise.
21726 (tree_int_cst_min_precision): Take a signop rather than a bool.
21727 (simple_cst_equal): Use wide_int interfaces.
21728 (compare_tree_int): Likewise.
21729 (iterative_hash_expr): Likewise.
21730 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21731 INT_CST_LT.
21732 (get_type_static_bounds): Use wide_int interfaces.
21733 (tree_int_cst_elt_check_failed): New.
21734 (build_common_tree_nodes): Reordered to set prec before filling in
21735 value.
21736 (int_cst_value): Check cst_and_fits_in_hwi.
21737 (widest_int_cst_value): Use wide_int interfaces.
21738 (upper_bound_in_type): Likewise.
21739 (lower_bound_in_type): Likewise.
21740 (num_ending_zeros): Likewise.
21741 (drop_tree_overflow): Likewise.
21742 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21743 (gen_conditions_for_pow_cst_base): Likewise.
21744 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21745 (group_case_labels_stmt): Use wide-int interfaces.
21746 (verify_gimple_assign_binary): Likewise.
21747 (print_loop): Likewise.
21748 * tree-chrec.c (tree_fold_binomial): Likewise.
21749 * tree-core.h (struct tree_base): Add int_length.
21750 (struct tree_int_cst): Change rep of value.
21751 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21752 (dr_may_alias_p): Likewise.
21753 (max_stmt_executions_tree): Likewise.
21754 * tree.def (INTEGER_CST): Update comment.
21755 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21756 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21757 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21758 (dequeue_and_dump): Use wide-int interfaces.
21759 * tree.h: Include wide-int.h.
21760 (NULL_TREE): Moved to earlier loc in file.
21761 (TREE_INT_CST_ELT_CHECK): New.
21762 (tree_int_cst_elt_check_failed): New.
21763 (TYPE_SIGN): New.
21764 (TREE_INT_CST): Delete.
21765 (TREE_INT_CST_LOW): Use wide-int interfaces.
21766 (TREE_INT_CST_HIGH): Delete.
21767 (TREE_INT_CST_NUNITS): New.
21768 (TREE_INT_CST_EXT_NUNITS): Likewise.
21769 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21770 (TREE_INT_CST_ELT): Likewise.
21771 (INT_CST_LT): Delete.
21772 (tree_int_cst_elt_check): New (two forms).
21773 (type_code_size): Update comment.
21774 (make_int_cst_stat, make_int_cst): New.
21775 (tree_to_double_int): Delete.
21776 (double_int_fits_to_tree_p): Delete.
21777 (force_fit_type_double): Delete.
21778 (build_int_cstu): Replace with out-of-line function.
21779 (build_int_cst_wide): Delete.
21780 (tree_int_cst_lt): Define inline.
21781 (tree_int_cst_le): New.
21782 (tree_int_cst_compare): Define inline.
21783 (tree_int_cst_min_precision): Take a signop rather than a bool.
21784 (wi::int_traits <const_tree>): New.
21785 (wi::int_traits <tree>): New.
21786 (wi::extended_tree): New.
21787 (wi::int_traits <wi::extended_tree>): New.
21788 (wi::to_widest): New.
21789 (wi::to_offset): New.
21790 (wi::fits_to_tree_p): New.
21791 (wi::min_value): New.
21792 (wi::max_value): New.
21793 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21794 (copy_tree_body_r): Likewise.
21795 * tree-object-size.c (compute_object_offset): Likewise.
21796 (addr_object_size): Likewise.
21797 * tree-predcom.c: Include wide-int-print.h.
21798 (struct dref_d): Change type of offset to widest_int.
21799 (dump_dref): Call wide-int printer.
21800 (aff_combination_dr_offset): Use wide-int interfaces.
21801 (determine_offset): Take a widest_int pointer rather than a
21802 double_int pointer.
21803 (split_data_refs_to_components): Use wide-int interfaces.
21804 (suitable_component_p): Likewise.
21805 (order_drefs): Likewise.
21806 (add_ref_to_chain): Likewise.
21807 (valid_initializer_p): Likewise.
21808 (determine_roots_comp): Likewise.
21809 * tree-pretty-print.c: Include wide-int-print.h.
21810 (dump_generic_node): Use wide-int interfaces.
21811 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21812 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21813 (move_fixed_address_to_symbol): Likewise.
21814 (move_hint_to_base): Likewise.
21815 (move_pointer_to_base): Likewise.
21816 (move_variant_to_index): Likewise.
21817 (most_expensive_mult_to_index): Likewise.
21818 (addr_to_parts): Likewise.
21819 (copy_ref_info): Likewise.
21820 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21821 (indirect_refs_may_alias_p): Likewise.
21822 (stmt_kills_ref_p_1): Likewise.
21823 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21824 * tree-ssa-ccp.c: Update comment at top of file. Include
21825 wide-int-print.h.
21826 (struct prop_value_d): Change type of mask to widest_int.
21827 (extend_mask): New function.
21828 (dump_lattice_value): Use wide-int interfaces.
21829 (get_default_value): Likewise.
21830 (set_constant_value): Likewise.
21831 (set_value_varying): Likewise.
21832 (valid_lattice_transition): Likewise.
21833 (set_lattice_value): Likewise.
21834 (value_to_double_int): Delete.
21835 (value_to_wide_int): New.
21836 (get_value_from_alignment): Use wide-int interfaces.
21837 (get_value_for_expr): Likewise.
21838 (do_dbg_cnt): Likewise.
21839 (ccp_finalize): Likewise.
21840 (ccp_lattice_meet): Likewise.
21841 (bit_value_unop_1): Use widest_ints rather than double_ints.
21842 (bit_value_binop_1): Likewise.
21843 (bit_value_unop): Use wide-int interfaces.
21844 (bit_value_binop): Likewise.
21845 (bit_value_assume_aligned): Likewise.
21846 (evaluate_stmt): Likewise.
21847 (ccp_fold_stmt): Likewise.
21848 (visit_cond_stmt): Likewise.
21849 (ccp_visit_stmt): Likewise.
21850 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21851 (constant_pointer_difference): Likewise.
21852 (associate_pointerplus): Likewise.
21853 (combine_conversions): Likewise.
21854 * tree-ssa-loop.h: Include wide-int.h.
21855 (struct tree_niter_desc): Change type of max to widest_int.
21856 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21857 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21858 (remove_redundant_iv_tests): Likewise.
21859 (canonicalize_loop_induction_variables): Likewise.
21860 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21861 (constant_multiple_of): Take a widest_int pointer instead of
21862 a double_int pointer.
21863 (get_computation_aff): Use wide-int interfaces.
21864 (ptr_difference_cost): Likewise.
21865 (difference_cost): Likewise.
21866 (get_loop_invariant_expr_id): Likewise.
21867 (get_computation_cost_at): Likewise.
21868 (iv_elimination_compare_lt): Likewise.
21869 (may_eliminate_iv): Likewise.
21870 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21871 instead of double_int.
21872 (max_loop_iterations): Likewise.
21873 (max_stmt_executions): Likewise.
21874 (estimated_stmt_executions): Likewise.
21875 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21876 (split_to_var_and_offset): Use wide-int interfaces.
21877 (determine_value_range): Likewise.
21878 (bound_difference_of_offsetted_base): Likewise.
21879 (bounds_add): Take a widest_int instead of a double_int.
21880 (number_of_iterations_ne_max): Use wide-int interfaces.
21881 (number_of_iterations_ne): Likewise.
21882 (number_of_iterations_lt_to_ne): Likewise.
21883 (assert_loop_rolls_lt): Likewise.
21884 (number_of_iterations_lt): Likewise.
21885 (number_of_iterations_le): Likewise.
21886 (number_of_iterations_cond): Likewise.
21887 (number_of_iterations_exit): Likewise.
21888 (finite_loop_p): Likewise.
21889 (derive_constant_upper_bound_assign): Likewise.
21890 (derive_constant_upper_bound): Return a widest_int.
21891 (derive_constant_upper_bound_ops): Likewise.
21892 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21893 (record_estimate): Take a widest_int rather than a double_int.
21894 (record_nonwrapping_iv): Use wide-int interfaces.
21895 (double_int_cmp): Delete.
21896 (wide_int_cmp): New.
21897 (bound_index): Take a widest_int rather than a double_int.
21898 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21899 (maybe_lower_iteration_bound): Likewise.
21900 (estimate_numbers_of_iterations_loop): Likewise.
21901 (estimated_loop_iterations): Take a widest_int pointer than than
21902 a double_int pointer.
21903 (estimated_loop_iterations_int): Use wide-int interfaces.
21904 (max_loop_iterations): Take a widest_int pointer than than
21905 a double_int pointer.
21906 (max_loop_iterations_int): Use wide-int interfaces.
21907 (max_stmt_executions): Take a widest_int pointer than than
21908 a double_int pointer.
21909 (estimated_stmt_executions): Likewise.
21910 (n_of_executions_at_most): Use wide-int interfaces.
21911 (scev_probably_wraps_p): Likewise.
21912 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21913 to real_to_integer.
21914 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21915 interfaces.
21916 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21917 double_ints. Adjust for trailing_wide_ints <3> representation.
21918 (set_nonzero_bits): Likewise.
21919 (get_range_info): Return wide_ints rather than double_ints.
21920 Adjust for trailing_wide_ints <3> representation.
21921 (get_nonzero_bits): Likewise.
21922 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21923 representation.
21924 * tree-ssanames.h (struct range_info_def): Replace min, max and
21925 nonzero_bits with a trailing_wide_ints <3>.
21926 (set_range_info): Use wide_int_refs rather than double_ints.
21927 (set_nonzero_bits): Likewise.
21928 (get_range_info): Return wide_ints rather than double_ints.
21929 (get_nonzero_bits): Likewise.
21930 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21931 * tree-ssa-pre.c (phi_translate_1): Likewise.
21932 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21933 (acceptable_pow_call): Likewise.
21934 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21935 interfaces.
21936 (vn_reference_fold_indirect): Likewise.
21937 (vn_reference_maybe_forwprop_address): Likewise.
21938 (valueize_refs_1): Likewise.
21939 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21940 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21941 tree_int_cst_lt and tree_int_cst_le.
21942 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21943 interfaces.
21944 (streamer_alloc_tree): Likewise.
21945 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21946 (streamer_write_tree_header): Likewise.
21947 (streamer_write_integer_cst): Likewise.
21948 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21949 (build_constructors): Likewise.
21950 (array_value_type): Likewise.
21951 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21952 (vect_check_gather): Likewise.
21953 * tree-vect-generic.c (build_replicated_const): Likewise.
21954 (expand_vector_divmod): Likewise.
21955 * tree-vect-loop.c (vect_transform_loop): Likewise.
21956 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21957 (vect_do_peeling_for_alignment): Likewise.
21958 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21959 * tree-vrp.c: Include wide-int.h.
21960 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21961 (extract_range_from_assert): Use wide-int interfaces.
21962 (vrp_int_const_binop): Likewise.
21963 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21964 double_int pointers.
21965 (ranges_from_anti_range): Use wide-int interfaces.
21966 (quad_int_cmp): Delete.
21967 (quad_int_pair_sort): Likewise.
21968 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21969 (extract_range_from_unary_expr_1): Likewise.
21970 (adjust_range_with_scev): Likewise.
21971 (masked_increment): Take and return wide_ints rather than double_ints.
21972 (register_edge_assert_for_2): Use wide-int interfaces.
21973 (check_array_ref): Likewise.
21974 (search_for_addr_array): Likewise.
21975 (maybe_set_nonzero_bits): Likewise.
21976 (union_ranges): Pass an integer of the correct type instead of
21977 using integer_one_node.
21978 (intersect_ranges): Likewise.
21979 (simplify_truth_ops_using_ranges): Likewise.
21980 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21981 (range_fits_type_p): Likewise.
21982 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21983 a bool.
21984 (simplify_conversion_using_ranges): Use wide-int interfaces.
21985 (simplify_float_conversion_using_ranges): Likewise.
21986 (vrp_finalize): Likewise.
21987 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21988 (gimple_stringops_transform): Likewise.
21989 * varasm.c (decode_addr_const): Likewise.
21990 (const_hash_1): Likewise.
21991 (const_rtx_hash_1): Likewise
21992 (output_constant): Likewise.
21993 (array_size_for_constructor): Likewise.
21994 (output_constructor_regular_field): Likewise.
21995 (output_constructor_bitfield): Likewise.
21996 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21997 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21998 GENERATOR_FILEs.
21999 * gencheck.c: Define BITS_PER_UNIT.
22000 * wide-int.cc: New.
22001 * wide-int.h: New.
22002 * wide-int-print.cc: New.
22003 * wide-int-print.h: New.
22004
22005 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22006
22007 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22008
22009 2014-05-06 Richard Biener <rguenther@suse.de>
22010
22011 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22012 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22013 (TODO_verify_all): Adjust.
22014 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22015 TODO_verify_stmts and TODO_verify_rtl_sharing.
22016 * bb-reorder.c: Likewise.
22017 * cfgexpand.c: Likewise.
22018 * cprop.c: Likewise.
22019 * cse.c: Likewise.
22020 * function.c: Likewise.
22021 * fwprop.c: Likewise.
22022 * gcse.c: Likewise.
22023 * gimple-ssa-isolate-paths.c: Likewise.
22024 * gimple-ssa-strength-reduction.c: Likewise.
22025 * ipa-split.c: Likewise.
22026 * loop-init.c: Likewise.
22027 * loop-unroll.c: Likewise.
22028 * lower-subreg.c: Likewise.
22029 * modulo-sched.c: Likewise.
22030 * postreload-gcse.c: Likewise.
22031 * predict.c: Likewise.
22032 * recog.c: Likewise.
22033 * sched-rgn.c: Likewise.
22034 * store-motion.c: Likewise.
22035 * tracer.c: Likewise.
22036 * trans-mem.c: Likewise.
22037 * tree-call-cdce.c: Likewise.
22038 * tree-cfg.c: Likewise.
22039 * tree-cfgcleanup.c: Likewise.
22040 * tree-complex.c: Likewise.
22041 * tree-eh.c: Likewise.
22042 * tree-emutls.c: Likewise.
22043 * tree-if-conv.c: Likewise.
22044 * tree-into-ssa.c: Likewise.
22045 * tree-loop-distribution.c: Likewise.
22046 * tree-object-size.c: Likewise.
22047 * tree-parloops.c: Likewise.
22048 * tree-pass.h: Likewise.
22049 * tree-sra.c: Likewise.
22050 * tree-ssa-ccp.c: Likewise.
22051 * tree-ssa-copy.c: Likewise.
22052 * tree-ssa-copyrename.c: Likewise.
22053 * tree-ssa-dce.c: Likewise.
22054 * tree-ssa-dom.c: Likewise.
22055 * tree-ssa-dse.c: Likewise.
22056 * tree-ssa-forwprop.c: Likewise.
22057 * tree-ssa-ifcombine.c: Likewise.
22058 * tree-ssa-loop-ch.c: Likewise.
22059 * tree-ssa-loop-ivcanon.c: Likewise.
22060 * tree-ssa-loop.c: Likewise.
22061 * tree-ssa-math-opts.c: Likewise.
22062 * tree-ssa-phiopt.c: Likewise.
22063 * tree-ssa-phiprop.c: Likewise.
22064 * tree-ssa-pre.c: Likewise.
22065 * tree-ssa-reassoc.c: Likewise.
22066 * tree-ssa-sink.c: Likewise.
22067 * tree-ssa-strlen.c: Likewise.
22068 * tree-ssa-tail-merge.c: Likewise.
22069 * tree-ssa-uncprop.c: Likewise.
22070 * tree-switch-conversion.c: Likewise.
22071 * tree-tailcall.c: Likewise.
22072 * tree-vect-generic.c: Likewise.
22073 * tree-vectorizer.c: Likewise.
22074 * tree-vrp.c: Likewise.
22075 * tsan.c: Likewise.
22076 * var-tracking.c: Likewise.
22077 * bt-load.c: Likewise.
22078 * cfgcleanup.c: Likewise.
22079 * combine-stack-adj.c: Likewise.
22080 * combine.c: Likewise.
22081 * compare-elim.c: Likewise.
22082 * config/epiphany/resolve-sw-modes.c: Likewise.
22083 * config/i386/i386.c: Likewise.
22084 * config/mips/mips.c: Likewise.
22085 * config/s390/s390.c: Likewise.
22086 * config/sh/sh_treg_combine.cc: Likewise.
22087 * config/sparc/sparc.c: Likewise.
22088 * dce.c: Likewise.
22089 * dse.c: Likewise.
22090 * final.c: Likewise.
22091 * ifcvt.c: Likewise.
22092 * mode-switching.c: Likewise.
22093 * passes.c: Likewise.
22094 * postreload.c: Likewise.
22095 * ree.c: Likewise.
22096 * reg-stack.c: Likewise.
22097 * regcprop.c: Likewise.
22098 * regrename.c: Likewise.
22099 * web.c: Likewise.
22100
22101 2014-05-06 Richard Biener <rguenther@suse.de>
22102
22103 PR middle-end/61070
22104 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22105 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22106
22107 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22108
22109 PR ipa/60965
22110 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22111
22112 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22113 Tom de Vries <tom@codesourcery.com>
22114
22115 * target.def (call_fusage_contains_non_callee_clobbers): New
22116 DEFHOOKPOD.
22117 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22118 Hooks to @menu.
22119 (@node Miscellaneous Register Hooks): New node.
22120 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22121 * doc/tm.texi: Regenerate.
22122
22123 2014-05-05 Marek Polacek <polacek@redhat.com>
22124
22125 PR driver/61065
22126 * opts.c (common_handle_option): Call error_at instead of warning_at.
22127
22128 2014-05-05 Richard Biener <rguenther@suse.de>
22129
22130 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22131 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22132 under the TODO_verify_il umbrella.
22133
22134 2014-05-05 Richard Biener <rguenther@suse.de>
22135
22136 * passes.c (execute_function_todo): Move TODO_verify_flow under
22137 the TODO_verify_ul umbrella.
22138
22139 2014-05-05 Richard Biener <rguenther@suse.de>
22140
22141 PR middle-end/61010
22142 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22143 X & CST away from a CST that is the mask of a mode.
22144
22145 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22146
22147 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22148 int argument to enum machine_mode.
22149 (picochip_class_max_nregs): Ditto.
22150 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22151 (picochip_class_max_nregs): Ditto.
22152
22153 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22154
22155 * target.def: Add new target hook.
22156 * doc/tm.texi: Regenerate.
22157 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22158 * targhooks.c (default_keep_leaf_when_profiled): New function.
22159
22160 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22161 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22162
22163 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22164
22165 PR tree-optimization/60363
22166 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22167 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22168 (update_destination_phis): New parameter.
22169 (create_edge_and_update_destination_phis): Ditto.
22170 (ssa_fix_duplicate_block_edges): Pass new arguments.
22171 (thread_single_edge): Ditto.
22172
22173 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22174
22175 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22176 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22177 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22178 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22179 Use RS6000_BTM_HARD_FLOAT.
22180 (BU_MISC_2): Likewise.
22181 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22182 RS6000_BTM_HARD_FLOAT.
22183 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22184 is explicitly used.
22185 (rs6000_invalid_builtin): Add hard floating builtin support.
22186 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22187 hard float builtins.
22188 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22189
22190 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22191
22192 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22193 Add missing function* argument.
22194
22195 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22196
22197 * lra-constraints.c (valid_address_p): Move earlier in file.
22198 Add a constraint argument to the address_info version.
22199 (satisfies_memory_constraint_p): New function.
22200 (satisfies_address_constraint_p): Likewise.
22201 (process_alt_operands, curr_insn_transform): Use them.
22202 (process_address): Pass the constraint to valid_address_p when
22203 checking address operands.
22204
22205 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22206
22207 * config/mips/mips.c (mips_isa_rev): New variable.
22208 (mips_set_architecture): Set it.
22209 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22210 from mips_isa_rev.
22211 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22212 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22213 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22214 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22215 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22216 conditions in terms of mips_isa_rev.
22217 (mips_isa_rev): Declare.
22218
22219 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22220
22221 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22222 (prob_unlikely, prob_likely): Make variables const.
22223
22224 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22225
22226 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22227
22228 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22229
22230 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22231
22232 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22233
22234 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22235 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22236 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22237 functions.
22238 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22239 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22240 sh_pass_in_reg_p.
22241 Replace usage of ROUND_REG with sh_round_reg.
22242 Use CEIL instead of ROUND_ADVANCE.
22243
22244 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22245
22246 PR target/61026
22247 * config/sh/sh.c: Include stdlib headers before everything else.
22248
22249 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22250
22251 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22252 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22253 (gimplify_adjust_omp_clauses): Simd region is never
22254 directly nested in combined parallel. Instead, for linear
22255 with copyin/copyout, if in combined for simd loop, make decl
22256 firstprivate/lastprivate on OMP_FOR.
22257 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22258 expand_omp_for_static_chunk): When setting endvar, also set
22259 fd->loop.v to the same value.
22260
22261 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22262
22263 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22264
22265 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22266
22267 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22268 expression.
22269
22270 2014-05-02 Marek Polacek <polacek@redhat.com>
22271
22272 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22273
22274 2014-05-02 Kito Cheng <kito@0xlab.org>
22275
22276 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22277 to a C expression marco.
22278 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22279 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22280 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22281 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22282 HONOR_REG_ALLOC_ORDER.
22283 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22284
22285 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22286
22287 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22288
22289 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22290
22291 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22292
22293 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22294
22295 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22296 (convert_scalar_cond_reduction): Likewise.
22297 (predicate_scalar_phi): Add recognition and transformation
22298 of simple conditioanl reduction to be vectorizable.
22299
22300 2014-05-01 Marek Polacek <polacek@redhat.com>
22301
22302 PR c/43245
22303 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22304
22305 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22306
22307 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22308 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22309 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22310 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22311 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22312 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22313 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22314 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22315
22316 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22317
22318 * config/arc/arc.opt (mlra): Move comment above option name
22319 to avoid mis-parsing as language options.
22320
22321 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22322
22323 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22324 * config/sol2.h: ... here.
22325 * config/sol2-10.h: Remove.
22326
22327 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22328 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22329 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22330 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22331 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22332 * config/sol2.h: ... here.
22333 (SECTION_NAME_FORMAT): Don't redefine.
22334 (STARTFILE_ARCH32_SPEC): Rename to ...
22335 (STARTFILE_ARCH_SPEC): ... this.
22336 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22337 * config/sparc/sol2.h: ... here.
22338 (SECTION_NAME_FORMAT): Don't undef.
22339 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22340 (SUBTARGET_EXTRA_SPECS): Remove.
22341 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22342
22343 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22344 (MD_STARTFILE_PREFIX): Remove.
22345 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22346 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22347 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22348 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22349 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22350 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22351 * config/i386/sol2.h: ... here.
22352 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22353 * config/i386/sol2-bi.h: Remove.
22354 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22355 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22356
22357 * config/i386/t-sol2-64: Rename to ...
22358 * config/i386/t-sol2: ... this.
22359 * config/sparc/t-sol2-64: Rename to ...
22360 * config/sparc/t-sol2: ... this.
22361
22362 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22363 sol2_tm_file_head, sol2_tm_file_tail.
22364 Include ${cpu_type}/sol2.h before sol2.h.
22365 Remove sol2-10.h.
22366 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22367 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22368 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22369 Reflect i386/t-sol2-64 renaming.
22370 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22371 Reflect sparc/t-sol2-64 renaming.
22372
22373 2014-04-30 Richard Biener <rguenther@suse.de>
22374
22375 * passes.c (execute_function_todo): Move TODO_verify_stmts
22376 and TODO_verify_ssa under the TODO_verify_il umbrella.
22377 * tree-ssa.h (verify_ssa): Adjust prototype.
22378 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22379 we should verify SSA operands.
22380 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22381 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22382 whether we should verify whether not throwing stmts have EH info.
22383 * graphite-scop-detection.c (create_sese_edges): Adjust.
22384 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22385 * tree-eh.c (lower_try_finally_switch): Do not add the
22386 default case label twice.
22387
22388 2014-04-30 Marek Polacek <polacek@redhat.com>
22389
22390 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22391 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22392 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22393 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22394
22395 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22396
22397 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22398 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22399 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22400 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22401 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22402 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22403 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22404 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22405
22406 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22407
22408 * tree-cfg.c (dump_function_to_file): Dump the return type of
22409 functions, in a line to itself before the function body, mimicking
22410 the layout of a C function.
22411
22412 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22413
22414 PR tree-optimization/60971
22415 * tree-tailcall.c (process_assignment): Reject conversions which
22416 reduce precision.
22417
22418 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22419
22420 * calls.c (initialize_argument_information): Always treat
22421 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22422 (expand_call): Likewise.
22423 (emit_library_call_calue_1): Likewise.
22424 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22425 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22426 code accordingly.
22427
22428 2014-04-29 Nick Clifton <nickc@redhat.com>
22429
22430 * config/msp430/msp430.md (umulsidi): Fix typo.
22431 (mulhisi3): Enable even inside interrupt handlers.
22432 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22433 bigger return address pushed in large mode.
22434
22435 2014-04-29 Nick Clifton <nickc@redhat.com>
22436
22437 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22438 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22439 available modes.
22440 * config/m32r/m32r.c (init_reg_tables): Likewise.
22441 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22442 enum to hold the modes.
22443
22444 2014-04-29 Richard Biener <rguenther@suse.de>
22445
22446 * dominance.c (free_dominance_info): Add overload with
22447 function parameter.
22448 (dom_info_state): Likewise.
22449 (dom_info_available_p): Likewise.
22450 * basic-block.h (free_dominance_info, dom_info_state,
22451 dom_info_available_p): Declare overloads.
22452 * passes.c (execute_function_todo): Verify that verifiers
22453 don't change dominator info state. Drop dominator info
22454 for IPA pass invocations.
22455 * cgraph.c (release_function_body): Restore asserts that
22456 dominator information is released.
22457
22458 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22459
22460 * doc/invoke.texi: Fix typo.
22461 * tree-vrp.c: Fix typos.
22462 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22463
22464 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22465
22466 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22467
22468 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22469
22470 * config/aarch64/aarch64-builtins.c
22471 (aarch64_types_storestruct_lane_qualifiers): New.
22472 (TYPES_STORESTRUCT_LANE): Likewise.
22473 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22474 (st3_lane): Likewise.
22475 (st4_lane): Likewise.
22476 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22477 (vec_store_lanesci_lane<mode>): Likewise.
22478 (vec_store_lanesxi_lane<mode>): Likewise.
22479 (aarch64_st2_lane<VQ:mode>): Likewise.
22480 (aarch64_st3_lane<VQ:mode>): Likewise.
22481 (aarch64_st4_lane<VQ:mode>): Likewise.
22482 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22483 * config/aarch64/arm_neon.h
22484 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22485 use new macro arguments.
22486 (__ST3_LANE_FUNC): Likewise.
22487 (__ST4_LANE_FUNC): Likewise.
22488 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22489 (V_THREE_ELEM): Likewise.
22490 (V_FOUR_ELEM): Likewise.
22491
22492 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22493
22494 * doc/gimple.texi: Replace the description of the now-defunct
22495 union gimple_statement_d with a diagram showing the
22496 gimple_statement_base class hierarchy and its relationships to
22497 the GSS_ and GIMPLE_ enums.
22498
22499 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22500
22501 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22502 * config/aarch64/aarch64.c
22503 (aarch64_cannot_change_mode_class): Weaken conditions.
22504 (aarch64_modes_tieable_p): New.
22505 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22506
22507 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22508
22509 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22510 (loadsync_<mode>): Change mode.
22511 (load_quadpti, store_quadpti): New.
22512 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22513 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22514
22515 2014-04-28 Martin Jambor <mjambor@suse.cz>
22516
22517 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22518 same alias type as the original statement.
22519 (subreplacement_assignment_data): New type.
22520 (handle_unscalarized_data_in_subtree): New type of parameter,
22521 generate new memory accesses with same alias type as the original
22522 statement.
22523 (load_assign_lhs_subreplacements): Likewise.
22524 (sra_modify_constructor_assign): Generate new memory accesses with
22525 same alias type as the original statement.
22526
22527 2014-04-28 Richard Biener <rguenther@suse.de>
22528
22529 * tree-pass.h (TODO_verify_il): Define.
22530 (TODO_verify_all): Complete properly.
22531 * passes.c (execute_function_todo): Move existing loop-closed
22532 SSA verification under TODO_verify_il.
22533 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22534 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22535 Fix tree sharing issue.
22536
22537 2014-04-28 Richard Biener <rguenther@suse.de>
22538
22539 PR middle-end/60092
22540 * builtins.def (DEF_C11_BUILTIN): Add.
22541 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22542 * coretypes.h (enum function_class): Add function_c11_misc.
22543 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22544 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22545 (call_may_clobber_ref_p_1): Likewise.
22546 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22547 (mark_all_reaching_defs_necessary_1): Likewise.
22548 (propagate_necessity): Likewise.
22549 (eliminate_unnecessary_stmts): Likewise.
22550 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22551
22552 2014-04-28 Richard Biener <rguenther@suse.de>
22553
22554 * tree-vrp.c (vrp_var_may_overflow): Remove.
22555 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22556 with overflow immediately bump to one before that value and
22557 let iteration figure out overflow status.
22558
22559 2014-04-28 Richard Biener <rguenther@suse.de>
22560
22561 * configure.ac: Do valgrind header checks unconditionally.
22562 Add --enable-valgrind-annotations.
22563 * system.h: Guard valgrind header inclusion with
22564 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22565 * alloc-pool.c (pool_alloc, pool_free): Use
22566 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22567 to guard possibly dead code.
22568 * config.in: Regenerated.
22569 * configure: Likewise.
22570
22571 2014-04-28 Jeff Law <law@redhat.com>
22572
22573 PR tree-optimization/60902
22574 * tree-ssa-threadedge.c
22575 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22576 over real defs when invalidating outputs from statements that do not
22577 produce useful outputs for threading.
22578
22579 2014-04-28 Richard Biener <rguenther@suse.de>
22580
22581 PR tree-optimization/60979
22582 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22583 SCOPs that end in a block with a successor with abnormal
22584 predecessors.
22585
22586 2014-04-28 Richard Biener <rguenther@suse.de>
22587
22588 * tree-pass.h (execute_pass_list): Adjust prototype.
22589 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22590 (do_per_function): Change callback signature, push all actual
22591 work to the callbals.
22592 (do_per_function_toporder): Likewise.
22593 (execute_function_dump): Adjust.
22594 (execute_function_todo): Likewise.
22595 (clear_last_verified): Likewise.
22596 (verify_curr_properties): Likewise.
22597 (update_properties_after_pass): Likewise.
22598 (execute_pass_list_1): Split out from ...
22599 (execute_pass_list): ... here. Adjust.
22600 (execute_ipa_pass_list): Likewise.
22601 * cgraphunit.c (cgraph_add_new_function): Adjust.
22602 (analyze_function): Likewise.
22603 (expand_function): Likewise.
22604 * cgraph.c (release_function_body): Free dominance info
22605 here instead of asserting it was magically freed elsewhere.
22606
22607 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22608
22609 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22610 * configure: Regenerate.
22611 * config/sparc/sparc.opt (muser-mode): New option.
22612 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22613 for LEON3.
22614 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22615 * doc/invoke.texi (SPARC options): Document -muser-mode.
22616
22617 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22618
22619 * cselib.c (find_slot_memmode): Delete.
22620 (cselib_hasher): Change compare_type to a struct.
22621 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22622 constants.
22623 (preserve_constants_and_equivs): Adjust for new compare_type.
22624 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22625 (wrap_constant): Delete.
22626 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22627
22628 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22629
22630 * doc/install.texi (Building with profile feedback): Remove
22631 outdated sentence.
22632
22633 2014-04-26 Tom de Vries <tom@codesourcery.com>
22634
22635 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22636 array accesses.
22637
22638 2014-04-25 Cary Coutant <ccoutant@google.com>
22639
22640 PR debug/60929
22641 * dwarf2out.c (should_move_die_to_comdat): A type definition
22642 can contain a subprogram definition, but don't move it to a
22643 comdat unit.
22644 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22645 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22646 from original DIE.
22647 (clone_tree_hash): Rename to...
22648 (clone_tree_partial): ...this; change callers. Copy
22649 DW_TAG_subprogram DIEs as declarations.
22650 (copy_decls_walk): Don't copy children of a declaration into a
22651 type unit.
22652
22653 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22654
22655 PR target/60969
22656 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22657 alternative 12.
22658
22659 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22660
22661 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22662 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22663 reg for long_call.
22664 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22665 restriction.
22666
22667 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22668
22669 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22670
22671 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22672
22673 PR tree-optimization/60930
22674 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22675 creating a multiply candidate by folding two constant
22676 multiplicands when the result overflows.
22677
22678 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22679
22680 PR tree-optimization/60960
22681 * tree-vect-generic.c (expand_vector_operation): Only call
22682 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22683
22684 2014-04-25 Tom de Vries <tom@codesourcery.com>
22685
22686 * expr.c (clobber_reg_mode): New function.
22687 * expr.h (clobber_reg): New function.
22688
22689 2014-04-25 Tom de Vries <tom@codesourcery.com>
22690
22691 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22692 clobbers.
22693
22694 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22695 Tom de Vries <tom@codesourcery.com>
22696
22697 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22698 handle.
22699 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22700 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22701 new argument to find_all_hard_reg_sets call.
22702
22703 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22704
22705 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22706 Use HOST_WIDE_INT_C for mask literal.
22707 (aarch_rev16_shleft_mask_imm_p): Likewise.
22708
22709 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22710
22711 PR target/60941
22712 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22713
22714 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22715
22716 PR preprocessor/56540
22717 * config/i386/i386-c.c (ix86_target_macros): Define
22718 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22719
22720 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22721
22722 * configure.ac (tga_func): Remove.
22723 (LIB_TLS_SPEC): Remove.
22724 * configure: Regenerate.
22725 * config.in: Regenerate.
22726 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22727
22728 2014-04-25 Richard Biener <rguenther@suse.de>
22729
22730 PR ipa/60912
22731 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22732 call stmt use/clobber sets during stmt walk instead of
22733 walking the possibly incomplete set of caller edges.
22734
22735 2014-04-25 Richard Biener <rguenther@suse.de>
22736
22737 PR ipa/60911
22738 * passes.c (apply_ipa_transforms): Inline into only caller ...
22739 (execute_one_pass): ... here. Properly bring in function
22740 bodies for nodes we want to apply IPA transforms to.
22741
22742 2014-04-24 Cong Hou <congh@google.com>
22743
22744 PR tree-optimization/60896
22745 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22746 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22747 (vect_mark_pattern_stmts): Set the def type of all statements in
22748 PATTERN_DEF_SEQ as vect_internal_def.
22749
22750 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22751
22752 * doc/extend.texi (PowerPC Built-in Functions): Document new
22753 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22754 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22755
22756 * config/rs6000/predicates.md (const_0_to_3_operand): New
22757 predicate to match 0..3 integer constants.
22758
22759 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22760 to support adding miscellaneous builtin functions.
22761 (BU_DFP_MISC_2): Likewise.
22762 (BU_P7_MISC_1): Likewise.
22763 (BU_P7_MISC_2): Likewise.
22764 (BU_P8V_MISC_3): Likewise.
22765 (BU_MISC_1): Likewise.
22766 (BU_MISC_2): Likewise.
22767 (DIVWE): Add extended divide builtin functions.
22768 (DIVWEO): Likewise.
22769 (DIVWEU): Likewise.
22770 (DIVWEUO): Likewise.
22771 (DIVDE): Likewise.
22772 (DIVDEO): Likewise.
22773 (DIVDEU): Likewise.
22774 (DIVDEUO): Likewise.
22775 (DXEX): Add decimal floating-point builtin functions.
22776 (DXEXQ): Likewise.
22777 (DDEDPD): Likewise.
22778 (DDEDPDQ): Likewise.
22779 (DENBCD): Likewise.
22780 (DENBCDQ): Likewise.
22781 (DIEX): Likewise.
22782 (DIEXQ): Likewise.
22783 (DSCLI): Likewise.
22784 (DSCLIQ): Likewise.
22785 (DSCRI): Likewise.
22786 (DSCRIQ): Likewise.
22787 (CDTBCD): Add new BCD builtin functions.
22788 (CBCDTD): Likewise.
22789 (ADDG6S): Likewise.
22790 (BCDADD): Likewise.
22791 (BCDADD_LT): Likewise.
22792 (BCDADD_EQ): Likewise.
22793 (BCDADD_GT): Likewise.
22794 (BCDADD_OV): Likewise.
22795 (BCDSUB): Likewise.
22796 (BCDSUB_LT): Likewise.
22797 (BCDSUB_EQ): Likewise.
22798 (BCDSUB_GT): Likewise.
22799 (BCDSUB_OV): Likewise.
22800 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22801 (UNPACK_TD): Likewise.
22802 (PACK_TF): Likewise.
22803 (UNPACK_TF): Likewise.
22804 (UNPACK_TF_0): Likewise.
22805 (UNPACK_TF_1): Likewise.
22806 (PACK_V1TI): Likewise.
22807 (UNPACK_V1TI): Likewise.
22808
22809 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22810 support for decimal floating point builtin functions.
22811 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22812 functions that take constant arguments.
22813 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22814 (rs6000_init_builtins): Setup long double, _Decimal64, and
22815 _Decimal128 types for new builtin functions.
22816 (builtin_function_type): Set the unsigned flags appropriately for
22817 the new builtin functions.
22818 (rs6000_opt_masks): Add support for decimal floating point builtin
22819 functions.
22820
22821 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22822 floating point builtin functions.
22823 (RS6000_BTM_COMMON): Likewise.
22824 (RS6000_BTI_long_double): Likewise.
22825 (RS6000_BTI_dfloat64): Likewise.
22826 (RS6000_BTI_dfloat128): Likewise.
22827 (long_double_type_internal_node): Likewise.
22828 (dfloat64_type_internal_node): Likewise.
22829 (dfloat128_type_internal_node): Likewise.
22830
22831 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22832 2.07 bcd arithmetic instructions.
22833 (UNSPEC_BCDSUB): Likewise.
22834 (UNSPEC_BCD_OVERFLOW): Likewise.
22835 (UNSPEC_BCD_ADD_SUB): Likewise.
22836 (bcd_add_sub): Likewise.
22837 (BCD_TEST): Likewise.
22838 (bcd<bcd_add_sub>): Likewise.
22839 (bcd<bcd_add_sub>_test): Likewise.
22840 (bcd<bcd_add_sub>_test2): Likewise.
22841 (bcd<bcd_add_sub>_<code>): Likewise.
22842 (peephole2 for combined bcd ops): Likewise.
22843
22844 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22845 decimal floating point builtin functions.
22846 (UNSPEC_DENBCD): Likewise.
22847 (UNSPEC_DXEX): Likewise.
22848 (UNSPEC_DIEX): Likewise.
22849 (UNSPEC_DSCLI): Likewise.
22850 (UNSPEC_DSCRI): Likewise.
22851 (D64_D128): Likewise.
22852 (dfp_suffix): Likewise.
22853 (dfp_ddedpd_<mode>): Likewise.
22854 (dfp_denbcd_<mode>): Likewise.
22855 (dfp_dxex_<mode>): Likewise.
22856 (dfp_diex_<mode>): Likewise.
22857 (dfp_dscli_<mode>): Likewise.
22858 (dfp_dscri_<mode>): Likewise.
22859
22860 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22861 builtin functions.
22862 (UNSPEC_CDTBCD): Likewise.
22863 (UNSPEC_CBCDTD): Likewise.
22864 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22865 (UNSPEC_DIVEO): Likewise.
22866 (UNSPEC_DIVEU): Likewise.
22867 (UNSPEC_DIVEUO): Likewise.
22868 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22869 pack/unpack 128-bit types.
22870 (UNSPEC_PACK_128BIT): Likewise.
22871 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22872 (udiv<mode>3): Use idiv_ldiv mode attribute.
22873 (div<mode>3): Likewise.
22874 (addg6s): Add new BCD builtin functions.
22875 (cdtbcd): Likewise.
22876 (cbcdtd): Likewise.
22877 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22878 (div_extend): Likewise.
22879 (div<div_extend>_<mode>"): Likewise.
22880 (FP128_64): Add support for new builtin functions to pack/unpack
22881 128-bit types.
22882 (unpack<mode>): Likewise.
22883 (unpacktf_0): Likewise.
22884 (unpacktf_1): Likewise.
22885 (unpack<mode>_dm): Likewise.
22886 (unpack<mode>_nodm): Likewise.
22887 (pack<mode>): Likewise.
22888 (unpackv1ti): Likewise.
22889 (packv1ti): Likewise.
22890
22891 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22892
22893 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22894 is disabled.
22895
22896 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22897
22898 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22899 * gimplify.c (omp_is_private): Change last argument's type to int.
22900 Only diagnose lastprivate if the simd argument is 1, only diagnose
22901 linear if the simd argument is 2.
22902 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22903 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22904 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22905 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22906 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22907 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22908 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22909 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22910 * tree-nested.c (convert_nonlocal_omp_clauses,
22911 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22912
22913 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22914
22915 PR target/60822
22916 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22917 operand 1.
22918
22919 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22920
22921 * flag-types.h (enum ivar_visibility): Add.
22922
22923 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22924
22925 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22926 function * argument.
22927
22928 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22929
22930 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22931
22932 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22933 Tom de Vries <tom@codesourcery.com>
22934
22935 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22936 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22937 reg-note.
22938 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22939 * emit-rtl.c (try_split): Same.
22940
22941 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22942 Tom de Vries <tom@codesourcery.com>
22943
22944 * common.opt (fuse-caller-save): New option.
22945
22946 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22947
22948 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22949 elements for big-endian.
22950
22951 2014-04-24 Richard Biener <rguenther@suse.de>
22952
22953 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22954 during TER and instead use the sepops interface for expanding
22955 non-GIMPLE_SINGLE_RHS.
22956
22957 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22958
22959 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22960 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22961
22962 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22963
22964 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22965 assembler 64-bit option.
22966 * configure: Regenerate.
22967
22968 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22969
22970 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22971 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22972 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22973 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22974 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22975
22976 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22977
22978 * config/aarch64/aarch64-builtins.c
22979 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22980 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22981 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22982 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22983 builtins.
22984 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22985 (Vrevsuff): New mode attribute.
22986
22987 2014-04-24 Terry Guo <terry.guo@arm.com>
22988
22989 * config/arm/arm.h (machine_function): Define variable
22990 after_arm_reorg here.
22991 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22992 (arm_split_constant): Update the way to access variable
22993 after_arm_reorg.
22994 (arm_reorg): Ditto.
22995 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22996
22997 2014-04-23 Tom de Vries <tom@codesourcery.com>
22998
22999 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23000
23001 2014-04-23 David Malcolm <dmalcolm@redhat.com>
23002
23003 * is-a.h: Update comments to reflect the following changes to the
23004 "pointerness" of the API, making the template parameter match the
23005 return type, allowing use of is-a.h with typedefs of pointers.
23006 (is_a_helper::cast): Return a T rather then a pointer to a T, so
23007 that the return type matches the parameter to the is_a_helper.
23008 (as_a): Likewise.
23009 (dyn_cast): Likewise.
23010
23011 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23012 pointer from the is-a.h API.
23013
23014 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23015 (is_a_helper <cgraph_node *>::test): ...this, matching change to
23016 is-a.h API.
23017 (is_a_helper <varpool_node>::test): Likewise, convert to...
23018 (is_a_helper <varpool_node *>::test): ...this.
23019
23020 (varpool_first_variable): Update for removal of implicit pointer
23021 from the is-a.h API.
23022 (varpool_next_variable): Likewise.
23023 (varpool_first_static_initializer): Likewise.
23024 (varpool_next_static_initializer): Likewise.
23025 (varpool_first_defined_variable): Likewise.
23026 (varpool_next_defined_variable): Likewise.
23027 (cgraph_first_defined_function): Likewise.
23028 (cgraph_next_defined_function): Likewise.
23029 (cgraph_first_function): Likewise.
23030 (cgraph_next_function): Likewise.
23031 (cgraph_first_function_with_gimple_body): Likewise.
23032 (cgraph_next_function_with_gimple_body): Likewise.
23033 (cgraph_alias_target): Likewise.
23034 (varpool_alias_target): Likewise.
23035 (cgraph_function_or_thunk_node): Likewise.
23036 (varpool_variable_node): Likewise.
23037 (symtab_real_symbol_p): Likewise.
23038 * cgraphunit.c (referred_to_p): Likewise.
23039 (analyze_functions): Likewise.
23040 (handle_alias_pairs): Likewise.
23041 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23042 * gimple-ssa.h (gimple_vuse_op): Likewise.
23043 (gimple_vdef_op): Likewise.
23044 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23045 * gimple.c (gimple_build_asm_1): Likewise.
23046 (gimple_build_try): Likewise.
23047 (gimple_build_resx): Likewise.
23048 (gimple_build_eh_dispatch): Likewise.
23049 (gimple_build_omp_for): Likewise.
23050 (gimple_omp_for_set_clauses): Likewise.
23051
23052 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23053 (is_a_helper <gimple_statement_asm *>::test): ...this.
23054 (is_a_helper <gimple_statement_bind>::test): Convert to...
23055 (is_a_helper <gimple_statement_bind *>::test): ...this.
23056 (is_a_helper <gimple_statement_call>::test): Convert to...
23057 (is_a_helper <gimple_statement_call *>::test): ...this.
23058 (is_a_helper <gimple_statement_catch>::test): Convert to...
23059 (is_a_helper <gimple_statement_catch *>::test): ...this.
23060 (is_a_helper <gimple_statement_resx>::test): Convert to...
23061 (is_a_helper <gimple_statement_resx *>::test): ...this.
23062 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23063 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23064 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23065 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23066 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23067 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23068 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23069 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23070 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23071 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23072 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23073 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23074 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23075 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23076 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23077 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23078 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23079 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23080 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23081 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23082 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23083 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23084 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23085 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23086 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23087 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23088 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23089 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23090 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23091 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23092 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23093 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23094 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23095 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23096 (is_a_helper <gimple_statement_phi>::test): Convert to...
23097 (is_a_helper <gimple_statement_phi *>::test): ...this.
23098 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23099 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23100 (is_a_helper <gimple_statement_try>::test): Convert to...
23101 (is_a_helper <gimple_statement_try *>::test): ...this.
23102 (is_a_helper <gimple_statement_wce>::test): Convert to...
23103 (is_a_helper <gimple_statement_wce *>::test): ...this.
23104 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23105 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23106 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23107 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23108 (is_a_helper <const gimple_statement_call>::test): Convert to...
23109 (is_a_helper <const gimple_statement_call *>::test): ...this.
23110 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23111 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23112 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23113 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23114 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23115 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23116 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23117 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23118 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23119 Convert to...
23120 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23121 ...this.
23122 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23123 Convert to...
23124 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23125 ...this.
23126 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23127 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23128 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23129 to...
23130 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23131 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23132 to...
23133 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23134 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23135 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23136 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23137 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23138 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23139 to...
23140 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23141 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23142 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23143 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23144 to...
23145 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23146 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23147 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23148 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23149 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23150 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23151 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23152 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23153 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23154 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23155 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23156 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23157 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23158 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23159 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23160 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23161 to...
23162 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23163 ...this.
23164 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23165 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23166
23167 (gimple_use_ops): Update for removal of implicit pointer from the
23168 is-a.h API.
23169 (gimple_set_use_ops): Likewise.
23170 (gimple_vuse): Likewise.
23171 (gimple_vdef): Likewise.
23172 (gimple_vuse_ptr): Likewise.
23173 (gimple_vdef_ptr): Likewise.
23174 (gimple_set_vuse): Likewise.
23175 (gimple_set_vdef): Likewise.
23176 (gimple_omp_return_set_lhs): Likewise.
23177 (gimple_omp_return_lhs): Likewise.
23178 (gimple_omp_return_lhs_ptr): Likewise.
23179 (gimple_call_fntype): Likewise.
23180 (gimple_call_set_fntype): Likewise.
23181 (gimple_call_set_internal_fn): Likewise.
23182 (gimple_call_use_set): Likewise.
23183 (gimple_call_clobber_set): Likewise.
23184 (gimple_bind_vars): Likewise.
23185 (gimple_bind_set_vars): Likewise.
23186 (gimple_bind_body_ptr): Likewise.
23187 (gimple_bind_set_body): Likewise.
23188 (gimple_bind_add_stmt): Likewise.
23189 (gimple_bind_block): Likewise.
23190 (gimple_bind_set_block): Likewise.
23191 (gimple_asm_ninputs): Likewise.
23192 (gimple_asm_noutputs): Likewise.
23193 (gimple_asm_nclobbers): Likewise.
23194 (gimple_asm_nlabels): Likewise.
23195 (gimple_asm_input_op): Likewise.
23196 (gimple_asm_input_op_ptr): Likewise.
23197 (gimple_asm_output_op): Likewise.
23198 (gimple_asm_output_op_ptr): Likewise.
23199 (gimple_asm_set_output_op): Likewise.
23200 (gimple_asm_clobber_op): Likewise.
23201 (gimple_asm_set_clobber_op): Likewise.
23202 (gimple_asm_label_op): Likewise.
23203 (gimple_asm_set_label_op): Likewise.
23204 (gimple_asm_string): Likewise.
23205 (gimple_catch_types): Likewise.
23206 (gimple_catch_types_ptr): Likewise.
23207 (gimple_catch_handler_ptr): Likewise.
23208 (gimple_catch_set_types): Likewise.
23209 (gimple_catch_set_handler): Likewise.
23210 (gimple_eh_filter_types): Likewise.
23211 (gimple_eh_filter_types_ptr): Likewise.
23212 (gimple_eh_filter_failure_ptr): Likewise.
23213 (gimple_eh_filter_set_types): Likewise.
23214 (gimple_eh_filter_set_failure): Likewise.
23215 (gimple_eh_must_not_throw_fndecl): Likewise.
23216 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23217 (gimple_eh_else_n_body_ptr): Likewise.
23218 (gimple_eh_else_e_body_ptr): Likewise.
23219 (gimple_eh_else_set_n_body): Likewise.
23220 (gimple_eh_else_set_e_body): Likewise.
23221 (gimple_try_eval_ptr): Likewise.
23222 (gimple_try_cleanup_ptr): Likewise.
23223 (gimple_try_set_eval): Likewise.
23224 (gimple_try_set_cleanup): Likewise.
23225 (gimple_wce_cleanup_ptr): Likewise.
23226 (gimple_wce_set_cleanup): Likewise.
23227 (gimple_phi_capacity): Likewise.
23228 (gimple_phi_num_args): Likewise.
23229 (gimple_phi_result): Likewise.
23230 (gimple_phi_result_ptr): Likewise.
23231 (gimple_phi_set_result): Likewise.
23232 (gimple_phi_arg): Likewise.
23233 (gimple_phi_set_arg): Likewise.
23234 (gimple_resx_region): Likewise.
23235 (gimple_resx_set_region): Likewise.
23236 (gimple_eh_dispatch_region): Likewise.
23237 (gimple_eh_dispatch_set_region): Likewise.
23238 (gimple_omp_critical_name): Likewise.
23239 (gimple_omp_critical_name_ptr): Likewise.
23240 (gimple_omp_critical_set_name): Likewise.
23241 (gimple_omp_for_clauses): Likewise.
23242 (gimple_omp_for_clauses_ptr): Likewise.
23243 (gimple_omp_for_set_clauses): Likewise.
23244 (gimple_omp_for_collapse): Likewise.
23245 (gimple_omp_for_index): Likewise.
23246 (gimple_omp_for_index_ptr): Likewise.
23247 (gimple_omp_for_set_index): Likewise.
23248 (gimple_omp_for_initial): Likewise.
23249 (gimple_omp_for_initial_ptr): Likewise.
23250 (gimple_omp_for_set_initial): Likewise.
23251 (gimple_omp_for_final): Likewise.
23252 (gimple_omp_for_final_ptr): Likewise.
23253 (gimple_omp_for_set_final): Likewise.
23254 (gimple_omp_for_incr): Likewise.
23255 (gimple_omp_for_incr_ptr): Likewise.
23256 (gimple_omp_for_set_incr): Likewise.
23257 (gimple_omp_for_pre_body_ptr): Likewise.
23258 (gimple_omp_for_set_pre_body): Likewise.
23259 (gimple_omp_parallel_clauses): Likewise.
23260 (gimple_omp_parallel_clauses_ptr): Likewise.
23261 (gimple_omp_parallel_set_clauses): Likewise.
23262 (gimple_omp_parallel_child_fn): Likewise.
23263 (gimple_omp_parallel_child_fn_ptr): Likewise.
23264 (gimple_omp_parallel_set_child_fn): Likewise.
23265 (gimple_omp_parallel_data_arg): Likewise.
23266 (gimple_omp_parallel_data_arg_ptr): Likewise.
23267 (gimple_omp_parallel_set_data_arg): Likewise.
23268 (gimple_omp_task_clauses): Likewise.
23269 (gimple_omp_task_clauses_ptr): Likewise.
23270 (gimple_omp_task_set_clauses): Likewise.
23271 (gimple_omp_task_child_fn): Likewise.
23272 (gimple_omp_task_child_fn_ptr): Likewise.
23273 (gimple_omp_task_set_child_fn): Likewise.
23274 (gimple_omp_task_data_arg): Likewise.
23275 (gimple_omp_task_data_arg_ptr): Likewise.
23276 (gimple_omp_task_set_data_arg): Likewise.
23277 (gimple_omp_taskreg_clauses): Likewise.
23278 (gimple_omp_taskreg_clauses_ptr): Likewise.
23279 (gimple_omp_taskreg_set_clauses): Likewise.
23280 (gimple_omp_taskreg_child_fn): Likewise.
23281 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23282 (gimple_omp_taskreg_set_child_fn): Likewise.
23283 (gimple_omp_taskreg_data_arg): Likewise.
23284 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23285 (gimple_omp_taskreg_set_data_arg): Likewise.
23286 (gimple_omp_task_copy_fn): Likewise.
23287 (gimple_omp_task_copy_fn_ptr): Likewise.
23288 (gimple_omp_task_set_copy_fn): Likewise.
23289 (gimple_omp_task_arg_size): Likewise.
23290 (gimple_omp_task_arg_size_ptr): Likewise.
23291 (gimple_omp_task_set_arg_size): Likewise.
23292 (gimple_omp_task_arg_align): Likewise.
23293 (gimple_omp_task_arg_align_ptr): Likewise.
23294 (gimple_omp_task_set_arg_align): Likewise.
23295 (gimple_omp_single_clauses): Likewise.
23296 (gimple_omp_single_clauses_ptr): Likewise.
23297 (gimple_omp_single_set_clauses): Likewise.
23298 (gimple_omp_target_clauses): Likewise.
23299 (gimple_omp_target_clauses_ptr): Likewise.
23300 (gimple_omp_target_set_clauses): Likewise.
23301 (gimple_omp_target_child_fn): Likewise.
23302 (gimple_omp_target_child_fn_ptr): Likewise.
23303 (gimple_omp_target_set_child_fn): Likewise.
23304 (gimple_omp_target_data_arg): Likewise.
23305 (gimple_omp_target_data_arg_ptr): Likewise.
23306 (gimple_omp_target_set_data_arg): Likewise.
23307 (gimple_omp_teams_clauses): Likewise.
23308 (gimple_omp_teams_clauses_ptr): Likewise.
23309 (gimple_omp_teams_set_clauses): Likewise.
23310 (gimple_omp_sections_clauses): Likewise.
23311 (gimple_omp_sections_clauses_ptr): Likewise.
23312 (gimple_omp_sections_set_clauses): Likewise.
23313 (gimple_omp_sections_control): Likewise.
23314 (gimple_omp_sections_control_ptr): Likewise.
23315 (gimple_omp_sections_set_control): Likewise.
23316 (gimple_omp_for_set_cond): Likewise.
23317 (gimple_omp_for_cond): Likewise.
23318 (gimple_omp_atomic_store_set_val): Likewise.
23319 (gimple_omp_atomic_store_val): Likewise.
23320 (gimple_omp_atomic_store_val_ptr): Likewise.
23321 (gimple_omp_atomic_load_set_lhs): Likewise.
23322 (gimple_omp_atomic_load_lhs): Likewise.
23323 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23324 (gimple_omp_atomic_load_set_rhs): Likewise.
23325 (gimple_omp_atomic_load_rhs): Likewise.
23326 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23327 (gimple_omp_continue_control_def): Likewise.
23328 (gimple_omp_continue_control_def_ptr): Likewise.
23329 (gimple_omp_continue_set_control_def): Likewise.
23330 (gimple_omp_continue_control_use): Likewise.
23331 (gimple_omp_continue_control_use_ptr): Likewise.
23332 (gimple_omp_continue_set_control_use): Likewise.
23333 (gimple_transaction_body_ptr): Likewise.
23334 (gimple_transaction_label): Likewise.
23335 (gimple_transaction_label_ptr): Likewise.
23336 (gimple_transaction_set_body): Likewise.
23337 (gimple_transaction_set_label): Likewise.
23338
23339 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23340 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23341 * ipa-ref.c (ipa_record_reference): Likewise.
23342 * ipa-reference.c (analyze_function): Likewise.
23343 (ipa_reference_write_optimization_summary): Likewise.
23344 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23345 (address_taken_from_non_vtable_p): Likewise.
23346 (comdat_can_be_unshared_p_1): Likewise.
23347 * lto-cgraph.c (lto_output_ref): Likewise.
23348 (add_references): Likewise.
23349 (compute_ltrans_boundary): Likewise.
23350 (output_symtab): Likewise.
23351 (input_ref): Likewise.
23352 (input_cgraph_1): Likewise.
23353 (output_cgraph_opt_summary): Likewise.
23354 * lto-streamer-out.c (lto_output): Likewise.
23355 (output_symbol_p): Likewise.
23356 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23357 (lsei_start_function_in_partition): Likewise.
23358 (lsei_next_variable_in_partition): Likewise.
23359 (lsei_start_variable_in_partition): Likewise.
23360 * symtab.c (insert_to_assembler_name_hash): Likewise.
23361 (unlink_from_assembler_name_hash): Likewise.
23362 (symtab_unregister_node): Likewise.
23363 (symtab_remove_node): Likewise.
23364 (dump_symtab_node): Likewise.
23365 (verify_symtab_base): Likewise.
23366 (verify_symtab_node): Likewise.
23367 (symtab_make_decl_local): Likewise.
23368 (symtab_alias_ultimate_target): Likewise.
23369 (symtab_resolve_alias): Likewise.
23370 (symtab_get_symbol_partitioning_class): Likewise.
23371 * tree-phinodes.c (allocate_phi_node): Likewise.
23372 (reserve_phi_args_for_new_edge): Likewise.
23373 (remove_phi_args): Likewise.
23374 * varpool.c (varpool_node_for_asm): Likewise.
23375 (varpool_remove_unreferenced_decls): Likewise.
23376
23377 2014-04-23 Jeff Law <law@redhat.com>
23378
23379 PR tree-optimization/60902
23380 * tree-ssa-threadedge.c
23381 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23382 invalidate outputs from statements that do not produce useful
23383 outputs for threading.
23384
23385 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23386
23387 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23388 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23389 machine descriptions for Stack Smashing Protector.
23390
23391 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23392
23393 * aarch64.md (<optab>_rol<mode>3): New pattern.
23394 (<optab>_rolsi3_uxtw): Likewise.
23395 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23396
23397 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23398
23399 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23400 (arm_cortex_a12_tune): Likewise.
23401
23402 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23403
23404 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23405
23406 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23407
23408 * config/arm/arm.md (arm_rev16si2): New pattern.
23409 (arm_rev16si2_alt): Likewise.
23410 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23411
23412 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23413
23414 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23415 (rev16<mode>2_alt): Likewise.
23416 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23417 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23418 (aarch_rev16_shleft_mask_imm_p): Likewise.
23419 (aarch_rev16_p_1): Likewise.
23420 (aarch_rev16_p): Likewise.
23421 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23422 (aarch_rev16_shright_mask_imm_p): Likewise.
23423 (aarch_rev16_shleft_mask_imm_p): Likewise.
23424
23425 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23426
23427 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23428 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23429 rev cost.
23430 (cortex_a53_extra_costs): Likewise.
23431 (cortex_a57_extra_costs): Likewise.
23432 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23433 (cortexa7_extra_costs): Likewise.
23434 (cortexa8_extra_costs): Likewise.
23435 (cortexa12_extra_costs): Likewise.
23436 (cortexa15_extra_costs): Likewise.
23437 (v7m_extra_costs): Likewise.
23438 (arm_new_rtx_costs): Handle BSWAP.
23439
23440 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23441
23442 * config/arm/arm.c (cortexa8_extra_costs): New table.
23443 (arm_cortex_a8_tune): New tuning struct.
23444 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23445
23446 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23447
23448 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23449
23450 2014-04-23 Richard Biener <rguenther@suse.de>
23451
23452 * Makefile.in (OBJS): Remove loop-unswitch.o.
23453 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23454 * passes.def (pass_rtl_unswitch): Likewise.
23455 * loop-init.c (gate_rtl_unswitch): Likewise.
23456 (rtl_unswitch): Likewise.
23457 (pass_data_rtl_unswitch): Likewise.
23458 (pass_rtl_unswitch): Likewise.
23459 (make_pass_rtl_unswitch): Likewise.
23460 * rtl.h (reversed_condition): Likewise.
23461 (compare_and_jump_seq): Likewise.
23462 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23463 and make static.
23464 * loop-unroll.c (compare_and_jump_seq): Likewise.
23465
23466 2014-04-23 Richard Biener <rguenther@suse.de>
23467
23468 PR tree-optimization/60903
23469 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23470 commented code block.
23471 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23472 loop flags to newly created BBs and edges.
23473
23474 2014-04-23 Nick Clifton <nickc@redhat.com>
23475
23476 * config/msp430/msp430.c (msp430_handle_option): Move function
23477 to msp430-common.c
23478 (msp430_option_override): Simplify mcu and mcpu option handling.
23479 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23480 support for -mhwmult command line option.
23481 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23482 -mhwmult command line option.
23483 (msp430_hwmult_enabled): Delete.
23484 (msp43o_output_labelref): Add support for -mhwmult command line option.
23485 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23486 (umulsidi3): Likewise.
23487 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23488 (mcpu, mlarge, msmall): Likewise.
23489 (mhwmult): New option.
23490 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23491 prototype.
23492 (msp430_is_f5_mcu): Remove prototype.
23493 (msp430_use_f5_series_hwmult): Add prototype.
23494 * config/msp430/msp430-opts.h: New file.
23495 * common/config/msp430: New directory.
23496 * common/config/msp430/msp430-common.c: New file.
23497 * config.gcc (msp430): Remove target_has_targetm_common.
23498 * doc/invoke.texi: Document -mhwmult command line option.
23499
23500 2014-04-23 Nick Clifton <nickc@redhat.com>
23501
23502 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23503 default-manifest.o if it can be found in the search path.
23504 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23505
23506 2014-04-23 Terry Guo <terry.guo@arm.com>
23507
23508 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23509
23510 2014-04-23 Richard Biener <rguenther@suse.de>
23511
23512 PR middle-end/60895
23513 * tree-inline.c (declare_return_variable): Use mark_addressable.
23514
23515 2014-04-23 Richard Biener <rguenther@suse.de>
23516
23517 PR middle-end/60891
23518 * loop-init.c (loop_optimizer_init): Make sure to apply
23519 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23520
23521 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23522
23523 PR sanitizer/60275
23524 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23525 New options.
23526 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23527 if flag_sanitize_undefined_trap_on_error.
23528 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23529 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23530 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23531 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23532 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23533 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23534 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23535 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23536 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23537 * ubsan.c (ubsan_instrument_unreachable): Return
23538 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23539 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23540 if flag_sanitize_undefined_trap_on_error and
23541 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23542 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23543 instrument_bool_enum_load): Emit __builtin_trap () if
23544 flag_sanitize_undefined_trap_on_error and
23545 __builtin_handle_*_abort () if !flag_sanitize_recover.
23546 * doc/invoke.texi (-fsanitize-recover,
23547 -fsanitize-undefined-trap-on-error): Document.
23548
23549 2014-04-22 Christian Bruel <christian.bruel@st.com>
23550
23551 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23552 Force immediates to SImode.
23553
23554 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23555
23556 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23557 (lroundsfsi2): New.
23558 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23559 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23560 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23561 (nios2_fpu_insn): Add entry for round.
23562 (N2FPU_NO_ERRNO_P): Define.
23563 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23564 flag_errno_math.
23565 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23566
23567 2014-04-22 Richard Henderson <rth@redhat.com>
23568
23569 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23570 (add<GPI>3_compare0): Remove leading * from name.
23571 (add<GPI>3_carryin): Likewise.
23572 (sub<GPI>3_compare0): Likewise.
23573 (sub<GPI>3_carryin): Likewise.
23574 (<su_optab>mulditi3): New expander.
23575 (multi3): New expander.
23576 (madd<GPI>): Remove leading * from name.
23577
23578 2014-04-22 Martin Jambor <mjambor@suse.cz>
23579
23580 * cgraphclones.c (cgraph_function_versioning): Copy
23581 ipa_transforms_to_apply instead of asserting it is empty.
23582
23583 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23584
23585 PR target/60868
23586 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23587 on count_exp to get mode.
23588
23589 2014-04-22 Andrew Pinski <apinski@cavium.com>
23590
23591 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23592 Handle TLS for ILP32.
23593 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23594 (tlsie_small_<mode>): this and handle PTR.
23595 (tlsie_small_sidi): New pattern.
23596 (tlsle_small): Change to an expand to handle ILP32.
23597 (tlsle_small_<mode>): New pattern.
23598 (tlsdesc_small): Rename to ...
23599 (tlsdesc_small_<mode>): this and handle PTR.
23600
23601 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23602
23603 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23604
23605 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23606
23607 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23608 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23609 (aarch64_types_signed_poly_qualifiers): Likewise.
23610 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23611 (aarch64_types_poly_signed_qualifiers): Likewise.
23612 (TYPES_REINTERP_SS): Type macro added.
23613 (TYPES_REINTERP_SU): Likewise.
23614 (TYPES_REINTERP_SP): Likewise.
23615 (TYPES_REINTERP_US): Likewise.
23616 (TYPES_REINTERP_PS): Likewise.
23617 (aarch64_fold_builtin): New expression folding added.
23618 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23619 Declarations removed.
23620 (REINTERP_SS): Declarations added.
23621 (REINTERP_US): Likewise.
23622 (REINTERP_PS): Likewise.
23623 (REINTERP_SU): Likewise.
23624 (REINTERP_SP): Likewise.
23625 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23626 (vreinterpretq_p8_f64): Likewise.
23627 (vreinterpret_p16_f64): Likewise.
23628 (vreinterpretq_p16_f64): Likewise.
23629 (vreinterpret_f32_f64): Likewise.
23630 (vreinterpretq_f32_f64): Likewise.
23631 (vreinterpret_f64_f32): Likewise.
23632 (vreinterpret_f64_p8): Likewise.
23633 (vreinterpret_f64_p16): Likewise.
23634 (vreinterpret_f64_s8): Likewise.
23635 (vreinterpret_f64_s16): Likewise.
23636 (vreinterpret_f64_s32): Likewise.
23637 (vreinterpret_f64_s64): Likewise.
23638 (vreinterpret_f64_u8): Likewise.
23639 (vreinterpret_f64_u16): Likewise.
23640 (vreinterpret_f64_u32): Likewise.
23641 (vreinterpret_f64_u64): Likewise.
23642 (vreinterpretq_f64_f32): Likewise.
23643 (vreinterpretq_f64_p8): Likewise.
23644 (vreinterpretq_f64_p16): Likewise.
23645 (vreinterpretq_f64_s8): Likewise.
23646 (vreinterpretq_f64_s16): Likewise.
23647 (vreinterpretq_f64_s32): Likewise.
23648 (vreinterpretq_f64_s64): Likewise.
23649 (vreinterpretq_f64_u8): Likewise.
23650 (vreinterpretq_f64_u16): Likewise.
23651 (vreinterpretq_f64_u32): Likewise.
23652 (vreinterpretq_f64_u64): Likewise.
23653 (vreinterpret_s64_f64): Likewise.
23654 (vreinterpretq_s64_f64): Likewise.
23655 (vreinterpret_u64_f64): Likewise.
23656 (vreinterpretq_u64_f64): Likewise.
23657 (vreinterpret_s8_f64): Likewise.
23658 (vreinterpretq_s8_f64): Likewise.
23659 (vreinterpret_s16_f64): Likewise.
23660 (vreinterpretq_s16_f64): Likewise.
23661 (vreinterpret_s32_f64): Likewise.
23662 (vreinterpretq_s32_f64): Likewise.
23663 (vreinterpret_u8_f64): Likewise.
23664 (vreinterpretq_u8_f64): Likewise.
23665 (vreinterpret_u16_f64): Likewise.
23666 (vreinterpretq_u16_f64): Likewise.
23667 (vreinterpret_u32_f64): Likewise.
23668 (vreinterpretq_u32_f64): Likewise.
23669
23670 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23671
23672 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23673 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23674 (vreinterpret_p8_s8): Likewise.
23675 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23676 (vreinterpret_p8_s16): Likewise.
23677 (vreinterpret_p8_s32): Likewise.
23678 (vreinterpret_p8_s64): Likewise.
23679 (vreinterpret_p8_f32): Likewise.
23680 (vreinterpret_p8_u8): Likewise.
23681 (vreinterpret_p8_u16): Likewise.
23682 (vreinterpret_p8_u32): Likewise.
23683 (vreinterpret_p8_u64): Likewise.
23684 (vreinterpret_p8_p16): Likewise.
23685 (vreinterpretq_p8_s8): Likewise.
23686 (vreinterpretq_p8_s16): Likewise.
23687 (vreinterpretq_p8_s32): Likewise.
23688 (vreinterpretq_p8_s64): Likewise.
23689 (vreinterpretq_p8_f32): Likewise.
23690 (vreinterpretq_p8_u8): Likewise.
23691 (vreinterpretq_p8_u16): Likewise.
23692 (vreinterpretq_p8_u32): Likewise.
23693 (vreinterpretq_p8_u64): Likewise.
23694 (vreinterpretq_p8_p16): Likewise.
23695 (vreinterpret_p16_s8): Likewise.
23696 (vreinterpret_p16_s16): Likewise.
23697 (vreinterpret_p16_s32): Likewise.
23698 (vreinterpret_p16_s64): Likewise.
23699 (vreinterpret_p16_f32): Likewise.
23700 (vreinterpret_p16_u8): Likewise.
23701 (vreinterpret_p16_u16): Likewise.
23702 (vreinterpret_p16_u32): Likewise.
23703 (vreinterpret_p16_u64): Likewise.
23704 (vreinterpret_p16_p8): Likewise.
23705 (vreinterpretq_p16_s8): Likewise.
23706 (vreinterpretq_p16_s16): Likewise.
23707 (vreinterpretq_p16_s32): Likewise.
23708 (vreinterpretq_p16_s64): Likewise.
23709 (vreinterpretq_p16_f32): Likewise.
23710 (vreinterpretq_p16_u8): Likewise.
23711 (vreinterpretq_p16_u16): Likewise.
23712 (vreinterpretq_p16_u32): Likewise.
23713 (vreinterpretq_p16_u64): Likewise.
23714 (vreinterpretq_p16_p8): Likewise.
23715 (vreinterpret_f32_s8): Likewise.
23716 (vreinterpret_f32_s16): Likewise.
23717 (vreinterpret_f32_s32): Likewise.
23718 (vreinterpret_f32_s64): Likewise.
23719 (vreinterpret_f32_u8): Likewise.
23720 (vreinterpret_f32_u16): Likewise.
23721 (vreinterpret_f32_u32): Likewise.
23722 (vreinterpret_f32_u64): Likewise.
23723 (vreinterpret_f32_p8): Likewise.
23724 (vreinterpret_f32_p16): Likewise.
23725 (vreinterpretq_f32_s8): Likewise.
23726 (vreinterpretq_f32_s16): Likewise.
23727 (vreinterpretq_f32_s32): Likewise.
23728 (vreinterpretq_f32_s64): Likewise.
23729 (vreinterpretq_f32_u8): Likewise.
23730 (vreinterpretq_f32_u16): Likewise.
23731 (vreinterpretq_f32_u32): Likewise.
23732 (vreinterpretq_f32_u64): Likewise.
23733 (vreinterpretq_f32_p8): Likewise.
23734 (vreinterpretq_f32_p16): Likewise.
23735 (vreinterpret_s64_s8): Likewise.
23736 (vreinterpret_s64_s16): Likewise.
23737 (vreinterpret_s64_s32): Likewise.
23738 (vreinterpret_s64_f32): Likewise.
23739 (vreinterpret_s64_u8): Likewise.
23740 (vreinterpret_s64_u16): Likewise.
23741 (vreinterpret_s64_u32): Likewise.
23742 (vreinterpret_s64_u64): Likewise.
23743 (vreinterpret_s64_p8): Likewise.
23744 (vreinterpret_s64_p16): Likewise.
23745 (vreinterpretq_s64_s8): Likewise.
23746 (vreinterpretq_s64_s16): Likewise.
23747 (vreinterpretq_s64_s32): Likewise.
23748 (vreinterpretq_s64_f32): Likewise.
23749 (vreinterpretq_s64_u8): Likewise.
23750 (vreinterpretq_s64_u16): Likewise.
23751 (vreinterpretq_s64_u32): Likewise.
23752 (vreinterpretq_s64_u64): Likewise.
23753 (vreinterpretq_s64_p8): Likewise.
23754 (vreinterpretq_s64_p16): Likewise.
23755 (vreinterpret_u64_s8): Likewise.
23756 (vreinterpret_u64_s16): Likewise.
23757 (vreinterpret_u64_s32): Likewise.
23758 (vreinterpret_u64_s64): Likewise.
23759 (vreinterpret_u64_f32): Likewise.
23760 (vreinterpret_u64_u8): Likewise.
23761 (vreinterpret_u64_u16): Likewise.
23762 (vreinterpret_u64_u32): Likewise.
23763 (vreinterpret_u64_p8): Likewise.
23764 (vreinterpret_u64_p16): Likewise.
23765 (vreinterpretq_u64_s8): Likewise.
23766 (vreinterpretq_u64_s16): Likewise.
23767 (vreinterpretq_u64_s32): Likewise.
23768 (vreinterpretq_u64_s64): Likewise.
23769 (vreinterpretq_u64_f32): Likewise.
23770 (vreinterpretq_u64_u8): Likewise.
23771 (vreinterpretq_u64_u16): Likewise.
23772 (vreinterpretq_u64_u32): Likewise.
23773 (vreinterpretq_u64_p8): Likewise.
23774 (vreinterpretq_u64_p16): Likewise.
23775 (vreinterpret_s8_s16): Likewise.
23776 (vreinterpret_s8_s32): Likewise.
23777 (vreinterpret_s8_s64): Likewise.
23778 (vreinterpret_s8_f32): Likewise.
23779 (vreinterpret_s8_u8): Likewise.
23780 (vreinterpret_s8_u16): Likewise.
23781 (vreinterpret_s8_u32): Likewise.
23782 (vreinterpret_s8_u64): Likewise.
23783 (vreinterpret_s8_p8): Likewise.
23784 (vreinterpret_s8_p16): Likewise.
23785 (vreinterpretq_s8_s16): Likewise.
23786 (vreinterpretq_s8_s32): Likewise.
23787 (vreinterpretq_s8_s64): Likewise.
23788 (vreinterpretq_s8_f32): Likewise.
23789 (vreinterpretq_s8_u8): Likewise.
23790 (vreinterpretq_s8_u16): Likewise.
23791 (vreinterpretq_s8_u32): Likewise.
23792 (vreinterpretq_s8_u64): Likewise.
23793 (vreinterpretq_s8_p8): Likewise.
23794 (vreinterpretq_s8_p16): Likewise.
23795 (vreinterpret_s16_s8): Likewise.
23796 (vreinterpret_s16_s32): Likewise.
23797 (vreinterpret_s16_s64): Likewise.
23798 (vreinterpret_s16_f32): Likewise.
23799 (vreinterpret_s16_u8): Likewise.
23800 (vreinterpret_s16_u16): Likewise.
23801 (vreinterpret_s16_u32): Likewise.
23802 (vreinterpret_s16_u64): Likewise.
23803 (vreinterpret_s16_p8): Likewise.
23804 (vreinterpret_s16_p16): Likewise.
23805 (vreinterpretq_s16_s8): Likewise.
23806 (vreinterpretq_s16_s32): Likewise.
23807 (vreinterpretq_s16_s64): Likewise.
23808 (vreinterpretq_s16_f32): Likewise.
23809 (vreinterpretq_s16_u8): Likewise.
23810 (vreinterpretq_s16_u16): Likewise.
23811 (vreinterpretq_s16_u32): Likewise.
23812 (vreinterpretq_s16_u64): Likewise.
23813 (vreinterpretq_s16_p8): Likewise.
23814 (vreinterpretq_s16_p16): Likewise.
23815 (vreinterpret_s32_s8): Likewise.
23816 (vreinterpret_s32_s16): Likewise.
23817 (vreinterpret_s32_s64): Likewise.
23818 (vreinterpret_s32_f32): Likewise.
23819 (vreinterpret_s32_u8): Likewise.
23820 (vreinterpret_s32_u16): Likewise.
23821 (vreinterpret_s32_u32): Likewise.
23822 (vreinterpret_s32_u64): Likewise.
23823 (vreinterpret_s32_p8): Likewise.
23824 (vreinterpret_s32_p16): Likewise.
23825 (vreinterpretq_s32_s8): Likewise.
23826 (vreinterpretq_s32_s16): Likewise.
23827 (vreinterpretq_s32_s64): Likewise.
23828 (vreinterpretq_s32_f32): Likewise.
23829 (vreinterpretq_s32_u8): Likewise.
23830 (vreinterpretq_s32_u16): Likewise.
23831 (vreinterpretq_s32_u32): Likewise.
23832 (vreinterpretq_s32_u64): Likewise.
23833 (vreinterpretq_s32_p8): Likewise.
23834 (vreinterpretq_s32_p16): Likewise.
23835 (vreinterpret_u8_s8): Likewise.
23836 (vreinterpret_u8_s16): Likewise.
23837 (vreinterpret_u8_s32): Likewise.
23838 (vreinterpret_u8_s64): Likewise.
23839 (vreinterpret_u8_f32): Likewise.
23840 (vreinterpret_u8_u16): Likewise.
23841 (vreinterpret_u8_u32): Likewise.
23842 (vreinterpret_u8_u64): Likewise.
23843 (vreinterpret_u8_p8): Likewise.
23844 (vreinterpret_u8_p16): Likewise.
23845 (vreinterpretq_u8_s8): Likewise.
23846 (vreinterpretq_u8_s16): Likewise.
23847 (vreinterpretq_u8_s32): Likewise.
23848 (vreinterpretq_u8_s64): Likewise.
23849 (vreinterpretq_u8_f32): Likewise.
23850 (vreinterpretq_u8_u16): Likewise.
23851 (vreinterpretq_u8_u32): Likewise.
23852 (vreinterpretq_u8_u64): Likewise.
23853 (vreinterpretq_u8_p8): Likewise.
23854 (vreinterpretq_u8_p16): Likewise.
23855 (vreinterpret_u16_s8): Likewise.
23856 (vreinterpret_u16_s16): Likewise.
23857 (vreinterpret_u16_s32): Likewise.
23858 (vreinterpret_u16_s64): Likewise.
23859 (vreinterpret_u16_f32): Likewise.
23860 (vreinterpret_u16_u8): Likewise.
23861 (vreinterpret_u16_u32): Likewise.
23862 (vreinterpret_u16_u64): Likewise.
23863 (vreinterpret_u16_p8): Likewise.
23864 (vreinterpret_u16_p16): Likewise.
23865 (vreinterpretq_u16_s8): Likewise.
23866 (vreinterpretq_u16_s16): Likewise.
23867 (vreinterpretq_u16_s32): Likewise.
23868 (vreinterpretq_u16_s64): Likewise.
23869 (vreinterpretq_u16_f32): Likewise.
23870 (vreinterpretq_u16_u8): Likewise.
23871 (vreinterpretq_u16_u32): Likewise.
23872 (vreinterpretq_u16_u64): Likewise.
23873 (vreinterpretq_u16_p8): Likewise.
23874 (vreinterpretq_u16_p16): Likewise.
23875 (vreinterpret_u32_s8): Likewise.
23876 (vreinterpret_u32_s16): Likewise.
23877 (vreinterpret_u32_s32): Likewise.
23878 (vreinterpret_u32_s64): Likewise.
23879 (vreinterpret_u32_f32): Likewise.
23880 (vreinterpret_u32_u8): Likewise.
23881 (vreinterpret_u32_u16): Likewise.
23882 (vreinterpret_u32_u64): Likewise.
23883 (vreinterpret_u32_p8): Likewise.
23884 (vreinterpret_u32_p16): Likewise.
23885 (vreinterpretq_u32_s8): Likewise.
23886 (vreinterpretq_u32_s16): Likewise.
23887 (vreinterpretq_u32_s32): Likewise.
23888 (vreinterpretq_u32_s64): Likewise.
23889 (vreinterpretq_u32_f32): Likewise.
23890 (vreinterpretq_u32_u8): Likewise.
23891 (vreinterpretq_u32_u16): Likewise.
23892 (vreinterpretq_u32_u64): Likewise.
23893 (vreinterpretq_u32_p8): Likewise.
23894 (vreinterpretq_u32_p16): Likewise.
23895
23896 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23897
23898 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23899 Pattern extended.
23900 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23901 (sqabs): Likewise.
23902 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23903 (vqnegd_s64): Likewise.
23904 (vqabs_s64): Likewise.
23905 (vqabsd_s64): Likewise.
23906
23907 2014-04-22 Richard Henderson <rth@redhat.com>
23908
23909 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23910 computation to the top of the loop.
23911
23912 2014-04-22 Renlin <renlin.li@arm.com>
23913 Jiong Wang <jiong.wang@arm.com>
23914
23915 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23916 * config/aarch64/aarch64.c (aarch64_layout_frame)
23917 (aarch64_initial_elimination_offset): Likewise.
23918
23919 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23920
23921 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23922 Fix indentation.
23923
23924 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23925
23926 * machmode.h (bitwise_mode_for_mode): Declare.
23927 * stor-layout.h (bitwise_type_for_mode): Likewise.
23928 * stor-layout.c (bitwise_mode_for_mode): New function.
23929 (bitwise_type_for_mode): Likewise.
23930 * builtins.c (fold_builtin_memory_op): Use it instead of
23931 int_mode_for_mode and build_nonstandard_integer_type.
23932
23933 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23934
23935 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23936 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23937 (*-*-solaris2*): Simplify.
23938 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23939 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23940 *-*-solaris2.9* handling.
23941
23942 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23943 as bug.
23944 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23945 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23946 handling, simplify.
23947 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23948 * configure: Regenerate.
23949
23950 * config/i386/sol2-9.h: Remove.
23951
23952 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23953 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23954 Remove Solaris 9 references.
23955
23956 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23957
23958 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23959 (floatuns<GPI:mode><GPF:mode>2): Remove.
23960 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23961 and floatuns conversions.
23962 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23963 and floatuns conversions.
23964 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23965 (w1,w2): New mode attributes for inequal width conversions.
23966
23967 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23968
23969 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23970 the output asm format.
23971
23972 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23973
23974 * config/aarch64/aarch64-simd.md
23975 (aarch64_cm<optab>di): Always split.
23976 (*aarch64_cm<optab>di): New.
23977 (aarch64_cmtstdi): Always split.
23978 (*aarch64_cmtstdi): New.
23979
23980 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23981
23982 PR tree-optimization/60823
23983 * omp-low.c (ipa_simd_modify_function_body): Go through
23984 all SSA_NAMEs and for those refering to vector arguments
23985 which are going to be replaced adjust SSA_NAME_VAR and,
23986 if it is a default definition, change it into a non-default
23987 definition assigned at the beginning of function from new_decl.
23988 (ipa_simd_modify_stmt_ops): Rewritten.
23989 * tree-dfa.c (set_ssa_default_def): When removing default def,
23990 check for NULL loc instead of NULL *loc.
23991
23992 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23993
23994 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23995 restrictions on core registers for DImode values in Thumb2.
23996
23997 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23998
23999 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24000 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24001
24002 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24003
24004 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24005 (*iordi_notzesidi_di): Likewise.
24006 (*iordi_notsesidi_di): Likewise.
24007
24008 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24009
24010 * config/arm/arm-protos.h (tune_params): New struct members.
24011 * config/arm/arm.c: Initialise tune_params per processor.
24012 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24013 for speed, based on new tune_params.
24014
24015 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24016
24017 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24018 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24019 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24020 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24021 * config/aarch64/arm_neon.h (vrnd_f64): Added.
24022 (vrnda_f64): Likewise.
24023 (vrndi_f64): Likewise.
24024 (vrndm_f64): Likewise.
24025 (vrndn_f64): Likewise.
24026 (vrndp_f64): Likewise.
24027 (vrndx_f64): Likewise.
24028
24029 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24030
24031 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24032 GET_MODE_SIZE argument is enum machine_mode.
24033
24034 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24035
24036 PR target/60910
24037 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24038 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24039
24040 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
24041
24042 PR middle-end/60281
24043 * asan.c (asan_emit_stack_protection): Force the base to align to
24044 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
24045 appropriate bits if STRICT_ALIGNMENT.
24046 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24047 when asan is on.
24048 (expand_used_vars): Leave a space in the stack frame for alignment
24049 if STRICT_ALIGNMENT.
24050
24051 2014-04-21 David Malcolm <dmalcolm@redhat.com>
24052
24053 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24054 than a gimple.
24055 (gimple_store_p): Likewise.
24056 (gimple_assign_load_p): Likewise.
24057 (gimple_assign_cast_p): Likewise.
24058 (gimple_clobber_p): Likewise.
24059
24060 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24061 rather than a gimple.
24062 (gimple_assign_cast_p): Likewise.
24063
24064 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24065
24066 PR target/60735
24067 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24068 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24069
24070 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24071 more debug information for E500 if -mdebug=reg.
24072
24073 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24074
24075 PR target/60909
24076 * config/i386/i386.c (ix86_expand_builtin)
24077 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24078 register for target RTX.
24079 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24080
24081 2014-04-18 Cong Hou <congh@google.com>
24082
24083 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24084 the widen-mult pattern by handling two operands with different sizes,
24085 and operands whose size is smaller than half of the result type.
24086
24087 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24088
24089 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24090 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24091 (do_estimate_edge_time): Compute it.
24092 * ipa-inline.c (want_inline_small_function_p): Bypass
24093 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24094
24095 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24096
24097 * ipa-inline.c (spec_rem): New static variable.
24098 (dump_overall_stats): New function.
24099 (dump_inline_stats): New function.
24100
24101 2014-04-18 Richard Henderson <rth@redhat.com>
24102
24103 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24104 to GET_MODE_SIZE, not a reg_class_t.
24105
24106 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24107
24108 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24109 (vsx_xxmrglw_<mode>): Likewise.
24110
24111 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24112
24113 PR target/60876
24114 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24115 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24116 (rs6000_init_hard_regno_mode_ok): Likewise.
24117
24118 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24119
24120 * ipa-inline.c (inline_small_functions): Account only non-cold
24121 functions.
24122 * doc/invoke.texi (inline-unit-growth): Update documentation.
24123
24124 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24125
24126 * config/rs6000/rs6000.md (addti3, subti3): New.
24127
24128 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24129
24130 PR target/60863
24131 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24132 comment. Check optimize_insn_for_size_p instead of
24133 optimize_insn_for_speed_p.
24134
24135 2014-04-17 Martin Jambor <mjambor@suse.cz>
24136
24137 * gimple-iterator.c (gsi_start_edge): New function.
24138 * gimple-iterator.h (gsi_start_edge): Declare.
24139 * tree-sra.c (single_non_eh_succ): New function.
24140 (disqualify_ops_if_throwing_stmt): Renamed to
24141 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24142 having one non-EH successor BB.
24143 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24144 generate loads into replacements.
24145 (sra_modify_assign): Likewise and and also use the simple path for
24146 such statements.
24147 (sra_modify_function_body): Commit statements on edges.
24148
24149 2014-04-17 Richard Biener <rguenther@suse.de>
24150
24151 PR middle-end/60849
24152 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24153 comparison results and add clarifying comment.
24154
24155 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24156
24157 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24158 (blank_mode): Initialize it.
24159 (emit_mode_size_inline, emit_mode_nunits_inline,
24160 emit_mode_inner_inline): New functions.
24161 (emit_insn_modes_h): Call them and surround their output with
24162 #if GCC_VERSION >= 4001 ... #endif.
24163 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24164 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24165 mode_* arrays if the argument is __builtin_constant_p.
24166 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24167 is enum machine_mode.
24168
24169 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24170
24171 * passes.c (opt_pass::execute): Adjust.
24172 (pass_manager::execute_pass_mode_switching): Likewise.
24173 (early_local_passes::execute): Likewise.
24174 (execute_one_pass): Pass cfun to the pass's execute method.
24175 * tree-pass.h (opt_pass::execute): Add function * argument.
24176 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24177 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24178 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24179 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24180 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24181 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24182 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24183 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24184 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24185 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24186 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24187 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24188 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24189 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24190 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24191 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24192 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24193 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24194 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24195 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24196 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24197 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24198 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24199 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24200 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24201 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24202 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24203 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24204 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24205 Adjust.
24206
24207 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24208
24209 * passes.c (opt_pass::gate): Take function * argument.
24210 (gate_all_early_local_passes): Merge into
24211 (early_local_passes::gate): this.
24212 (gate_all_early_optimizations): Merge into
24213 (all_early_optimizations::gate): this.
24214 (gate_all_optimizations): Mege into
24215 (all_optimizations::gate): this.
24216 (gate_all_optimizations_g): Merge into
24217 (all_optimizations_g::gate): this.
24218 (gate_rest_of_compilation): Mege into
24219 (rest_of_compilation::gate): this.
24220 (gate_postreload): Merge into
24221 (postreload::gate): this.
24222 (dump_one_pass): Pass cfun to the pass's gate method.
24223 (execute_ipa_summary_passes): Likewise.
24224 (execute_one_pass): Likewise.
24225 (ipa_write_summaries_2): Likewise.
24226 (ipa_write_optimization_summaries_1): Likewise.
24227 (ipa_read_summaries_1): Likewise.
24228 (ipa_read_optimization_summaries_1): Likewise.
24229 (execute_ipa_stmt_fixups): Likewise.
24230 * tree-pass.h (opt_pass::gate): Add function * argument.
24231 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24232 combine-stack-adj.c, combine.c, compare-elim.c,
24233 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24234 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24235 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24236 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24237 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24238 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24239 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24240 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24241 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24242 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24243 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24244 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24245 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24246 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24247 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24248 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24249 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24250 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24251 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24252 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24253 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24254 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24255 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24256 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24257 var-tracking.c, vtable-verify.c, web.c: Adjust.
24258
24259 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24260
24261 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24262 * configure: Regenerate.
24263
24264 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24265
24266 * passes.c (dump_one_pass): don't check pass->has_gate.
24267 (execute_ipa_summary_passes): Likewise.
24268 (execute_one_pass): Likewise.
24269 (ipa_write_summaries_2): Likewise.
24270 (ipa_write_optimization_summaries_1): Likewise.
24271 (ipa_read_optimization_summaries_1): Likewise.
24272 (execute_ipa_stmt_fixups): Likewise.
24273 * tree-pass.h (pass_data::has_gate): Remove.
24274 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24275 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24276 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24277 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24278 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24279 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24280 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24281 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24282 gimple-low.c, gimple-ssa-isolate-paths.c,
24283 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24284 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24285 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24286 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24287 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24288 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24289 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24290 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24291 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24292 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24293 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24294 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24295 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24296 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24297 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24298 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24299 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24300 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24301 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24302 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24303 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24304 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24305 Adjust.
24306
24307 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24308
24309 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24310 declaration.
24311 * passes.c (pass_manager::register_dump_files_1): Merge into
24312 (pass_manager::register_dump_files): this, and remove its handling of
24313 properties since the pass always has the properties anyway.
24314 (pass_manager::pass_manager): Adjust.
24315
24316 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24317
24318 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24319 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24320 dealing with properties.
24321 (pass_manager::register_dump_files): Adjust.
24322
24323 2014-03-20 Mark Wielaard <mjw@redhat.com>
24324
24325 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24326 then represent the bound as normal constant value.
24327
24328 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24329
24330 PR target/60847
24331 Forward port from 4.8 branch
24332 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24333
24334 * config/i386/bmiintrin.h (_blsi_u32): New.
24335 (_blsi_u64): Ditto.
24336 (_blsr_u32): Ditto.
24337 (_blsr_u64): Ditto.
24338 (_blsmsk_u32): Ditto.
24339 (_blsmsk_u64): Ditto.
24340 (_tzcnt_u32): Ditto.
24341 (_tzcnt_u64): Ditto.
24342
24343 2014-04-17 Kito Cheng <kito@0xlab.org>
24344
24345 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24346
24347 2014-04-17 Richard Biener <rguenther@suse.de>
24348
24349 PR middle-end/60849
24350 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24351 boolean results for comparisons.
24352
24353 2014-04-17 Richard Biener <rguenther@suse.de>
24354
24355 PR tree-optimization/60836
24356 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24357 initial PHI args to be gimple values.
24358
24359 2014-04-17 Richard Biener <rguenther@suse.de>
24360
24361 PR tree-optimization/60841
24362 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24363 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24364 of stmts to SLP build.
24365 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24366 (vect_analyze_slp): Likewise.
24367 (vect_analyze_slp_instance): Likewise.
24368 (vect_build_slp_tree): Limit overall SLP tree growth.
24369 * tree-vectorizer.h (vect_analyze_data_refs,
24370 vect_analyze_slp): Adjust prototypes.
24371
24372 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24373
24374 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24375 Silvermont.
24376
24377 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24378
24379 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24380 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24381 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24382 for TARGET_SLOW_PSHUFB
24383
24384 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24385
24386 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24387 * config/i386/i386.c (intel_cost): Ditto.
24388
24389 2014-04-17 Joey Ye <joey.ye@arm.com>
24390
24391 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24392
24393 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24394
24395 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24396 with -fuse-profile.
24397
24398 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24399
24400 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24401 (type_all_derivations_known_p): New predicate.
24402 (type_all_ctors_visible_p): New predicate.
24403 (type_possibly_instantiated_p): New predicate.
24404 (get_odr_type): Compute all_derivations_known.
24405 (dump_odr_type): Dump the flag.
24406 (maybe_record_type): Cleanup.
24407 (record_target_from_binfo): Add bases_to_consider array;
24408 record bases for types w/o instances and skip CXX destructor.
24409 (possible_polymorphic_call_targets_1): Add bases_to_consider
24410 and consider_construction parameters; check if type may have instance.
24411 (get_polymorphic_call_info): Set maybe_in_construction to true
24412 when we know nothing.
24413 (record_targets_from_bases): Skip CXX destructors; they are
24414 never called for types in construction.
24415 (possible_polymorphic_call_targets): Do not record target when
24416 type may not have instance.
24417
24418 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24419
24420 PR ipa/60854
24421 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24422 external aliases alive, too.
24423
24424 2014-04-16 Andrew Pinski <apinski@cavium.com>
24425
24426 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24427 definition.
24428
24429 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24430
24431 * final.c (compute_alignments): Do not apply loop alignment to a block
24432 falling through to the exit.
24433
24434 2014-04-16 Catherine Moore <clm@codesourcery.com>
24435
24436 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24437 Adjust constraints for microMIPS store patterns.
24438
24439 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24440
24441 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24442
24443 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24444
24445 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24446 (append_use): Run at -O0.
24447 (append_vdef): Likewise.
24448 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24449 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24450
24451 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24452
24453 PR tree-optimization/60844
24454 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24455 (propagate_op_to_single_use, remove_visited_stmt_chain,
24456 linearize_expr, repropagate_negates, reassociate_bb): Use it
24457 instead of gsi_remove.
24458
24459 2014-04-16 Martin Jambor <mjambor@suse.cz>
24460
24461 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24462 ipa_transforms_to_apply.
24463 (cgraph_function_versioning): Assert that old_node has empty
24464 ipa_transforms_to_apply.
24465 * trans-mem.c (ipa_tm_create_version): Likewise.
24466 * tree-inline.c (tree_function_versioning): Do not duplicate
24467 ipa_transforms_to_apply.
24468
24469 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24470
24471 PR target/60817
24472 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24473 x86_64-*-* cases.
24474 Pass necessary as flags on 64-bit Solaris/x86.
24475 Use lowercase relocs for x86_64-*-*.
24476 * configure: Regenerate.
24477
24478 2014-04-15 Jan Hubicka <jh@suse.cz>
24479
24480 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24481 (maybe_record_node, likely_target_p): Use it.
24482
24483 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24484
24485 PR target/60839
24486 Revert following patch
24487
24488 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24489
24490 PR target/60735
24491 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24492 software floating point or no floating point registers, do not
24493 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24494 in GPRs that occurs after we tested for GPRs that would never be
24495 true.
24496
24497 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24498 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24499 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24500 specifically allow DDmode, since that does not use the SPE SIMD
24501 instructions.
24502
24503 2014-03-21 Mark Wielaard <mjw@redhat.com>
24504
24505 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24506 as unsigned or int depending on type and value used.
24507
24508 2014-04-15 Richard Biener <rguenther@suse.de>
24509
24510 PR rtl-optimization/56965
24511 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24512 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24513 ... here.
24514 * alias.c (true_dependence_1): Do not call
24515 nonoverlapping_component_refs_p.
24516 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24517 nonoverlapping_component_refs_p.
24518 (indirect_refs_may_alias_p): Likewise.
24519
24520 2014-04-15 Teresa Johnson <tejohnson@google.com>
24521
24522 * cfg.c (dump_bb_info): Fix flags check.
24523 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24524
24525 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24526
24527 PR rtl-optimization/60663
24528 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24529 avoid 0 cost.
24530
24531 2014-04-15 Richard Biener <rguenther@suse.de>
24532
24533 * lto-streamer.h (LTO_major_version): Bump to 4.
24534
24535 2014-04-15 Richard Biener <rguenther@suse.de>
24536
24537 * common.opt (lto_partition_model): New enum.
24538 (flto-partition=): Merge separate options with a single with argument,
24539 add -flto-partition=one support.
24540 * flag-types.h (enum lto_partition_model): Declare.
24541 * opts.c (finish_options): Remove duplicate -flto-partition=
24542 option check.
24543 * lto-wrapper.c (run_gcc): Adjust.
24544
24545 2014-04-15 Richard Biener <rguenther@suse.de>
24546
24547 * alias.c (ncr_compar): New function.
24548 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24549
24550 2014-04-15 Richard Biener <rguenther@suse.de>
24551
24552 * alias.c (record_component_aliases): Do not walk BINFOs.
24553
24554 2014-04-15 Richard Biener <rguenther@suse.de>
24555
24556 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24557 Add struct function argument and adjust.
24558 (find_func_aliases_for_call): Likewise.
24559 (find_func_aliases): Likewise.
24560 (find_func_clobbers): Likewise.
24561 (intra_create_variable_infos): Likewise.
24562 (compute_points_to_sets): Likewise.
24563 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24564
24565 2014-04-15 Richard Biener <rguenther@suse.de>
24566
24567 * tree.c (iterative_hash_expr): Use enum tree_code_class
24568 to store TREE_CODE_CLASS.
24569 (tree_block): Likewise.
24570 (tree_set_block): Likewise.
24571 * tree.h (fold_build_pointer_plus_loc): Use
24572 convert_to_ptrofftype_loc.
24573
24574 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24575
24576 PR plugins/59335
24577 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24578 added in 4.9.
24579
24580 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24581
24582 * cfgloop.h (struct loop): Move force_vectorize down.
24583 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24584 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24585 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24586 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24587 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24588 * tree-core.h (enum annot_expr_kind): Add new kind values.
24589 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24590 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24591 kinds.
24592 * tree.def (ANNOTATE_EXPR): Tweak comment.
24593
24594 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24595
24596 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24597 cxa_pure_virtual).
24598
24599 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24600
24601 * tree.h (TYPE_IDENTIFIER): Declare.
24602 * tree.c (subrange_type_for_debug_p): Use it.
24603 * godump.c (go_format_type): Likewise.
24604 * dwarf2out.c (is_cxx_auto, modified_type_die,
24605 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24606 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24607
24608 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24609
24610 PR lto/60820
24611 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24612
24613 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24614
24615 * config/i386/i386.c (examine_argument): Return bool. Return true if
24616 parameter should be passed in memory.
24617 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24618 (construct_container): Update calls to examine_argument.
24619 (function_arg_advance_64): Ditto.
24620 (return_in_memory_32): Merge with ix86_return_in_memory.
24621 (return_in_memory_64): Ditto.
24622 (return_in_memory_ms_64): Ditto.
24623
24624 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24625
24626 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24627 * coverage.c (coverage_compute_profile_id): Handle externally visible
24628 symbols.
24629
24630 2014-04-14 Martin Jambor <mjambor@suse.cz>
24631
24632 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24633 DECL_DISREGARD_INLINE_LIMITS functions.
24634
24635 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24636
24637 PR target/60827
24638 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24639
24640 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24641
24642 PR target/60827
24643 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24644 optimize_insn_for_speed_p instead of
24645 optimize_function_for_speed_p.
24646
24647 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24648
24649 * doc/invoke.texi (free): Document AArch64.
24650
24651 2014-04-14 Richard Biener <rguenther@suse.de>
24652
24653 PR tree-optimization/60042
24654 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24655 (insert_into_preds_of_block): Do not prevent PHI insertion
24656 for REFERENCE exprs here ...
24657 (eliminate_dom_walker::before_dom_children): ... but prevent
24658 their use here under similar conditions when applied to the
24659 IL after PRE optimizations.
24660
24661 2014-04-14 Richard Biener <rguenther@suse.de>
24662
24663 * passes.def: Move early points-to after early SRA.
24664
24665 2014-04-14 Richard Biener <rguenther@suse.de>
24666
24667 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24668 check for which sign-changes we allow when forwarding
24669 a converted value into a switch.
24670
24671 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24672
24673 * stor-layout.c (place_field): Finalize non-constant offset for the
24674 field, if any.
24675
24676 2014-04-14 Richard Biener <rguenther@suse.de>
24677
24678 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24679 as argument.
24680 (expand_switch_using_bit_tests_p): Likewise.
24681 (process_switch): Compute and pass on speed_p based on the
24682 switch stmt.
24683 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24684 optimize_bb_for_speed_p.
24685
24686 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24687
24688 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24689 * function.h (struct function): Rename has_force_vect_loops into
24690 has_force_vectorize_loops.
24691 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24692 (input_struct_function_base): Likewise.
24693 * lto-streamer-out.c (output_cfg): Likewise.
24694 (output_struct_function_base): Likewise.
24695 * omp-low.c (expand_omp_simd): Likewise.
24696 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24697 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24698 (version_loop_for_if_conversion): Likewise.
24699 (tree_if_conversion): Likewise.
24700 (main_tree_if_conversion): Likewise.
24701 (gate_tree_if_conversion): Likewise.
24702 * tree-inline.c (copy_loops): Likewise.
24703 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24704 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24705 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24706 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24707 * tree-vectorizer.c (vectorize_loops): Likewise.
24708 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24709
24710 2014-04-14 Richard Biener <rguenther@suse.de>
24711
24712 PR lto/60720
24713 * lto-streamer-out.c (wrap_refs): New function.
24714 (lto_output): Wrap symbol references in global initializes in
24715 type-preserving MEM_REFs.
24716
24717 2014-04-14 Christian Bruel <christian.bruel@st.com>
24718
24719 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24720
24721 2014-04-14 Christian Bruel <christian.bruel@st.com>
24722
24723 * config/sh/sh.md (setmemqi): New expand pattern.
24724 * config/sh/sh.h (CLEAR_RATIO): Define.
24725 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24726 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24727
24728 2014-04-14 Richard Biener <rguenther@suse.de>
24729
24730 PR middle-end/55022
24731 * fold-const.c (negate_expr_p): Don't negate directional rounding
24732 division.
24733 (fold_negate_expr): Likewise.
24734
24735 2014-04-14 Richard Biener <rguenther@suse.de>
24736
24737 PR tree-optimization/59817
24738 PR tree-optimization/60453
24739 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24740 recursion to catch all CHRECs in the scalar evolution and restrict
24741 the predicate for the remains appropriately.
24742
24743 2014-04-12 Catherine Moore <clm@codesourcery.com>
24744
24745 * config/mips/constraints.md: Add new register constraint "kb".
24746 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24747 (*movhi_internal): Likewise.
24748 (*movqi_internal): Likewise.
24749 * config/mips/mips.h (M16_STORE_REGS): New register class.
24750 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24751 (REG_CLASS_CONTENTS): Likewise.
24752 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24753
24754 2014-04-11 Tobias Burnus <burnus@net-b.de>
24755
24756 PR c/60194
24757 * doc/invoke.texi (-Wformat-signedness): Document it.
24758 (Wformat=2): Mention that this enables -Wformat-signedness.
24759
24760 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24761
24762 * common/config/epiphany/epiphany-common.c
24763 (epiphany_option_optimization_table): Enable section anchors by
24764 default at -O1 or higher.
24765 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24766 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24767 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24768 carries no extra cost.
24769 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24770 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24771 * config/epiphany/predicates.md (memclob_operand): New predicate.
24772 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24773 Use memclob_operand predicate and X constraint for operand 3.
24774
24775 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24776
24777 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24778 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24779 its operands.
24780
24781 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24782
24783 PR rtl-optimization/60651
24784 * mode-switching.c (optimize_mode_switching): Make sure to emit
24785 sets of a lower numbered entity before sets of a higher numbered
24786 entity to a mode of the same or lower priority.
24787 When creating a seginfo for a basic block that starts with a code
24788 label, move the insertion point past the code label.
24789 (new_seginfo): Document and enforce requirement that
24790 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24791 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24792 * doc/tm.texi: Regenerate.
24793
24794 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24795
24796 PR target/60811
24797 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24798
24799 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24800
24801 * BASE-VER: Set to 4.10.0.
24802
24803 2014-04-11 Tobias Burnus <burnus@net-b.de>
24804
24805 PR other/59055
24806 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24807 * doc/gcc.texi (Service): Update description in the @menu
24808 * doc/invoke.texi (Option Summary): Remove misplaced and
24809 duplicated @menu.
24810
24811 2014-04-11 Steve Ellcey <sellcey@mips.com>
24812 Jakub Jelinek <jakub@redhat.com>
24813
24814 PR middle-end/60556
24815 * expr.c (convert_move): Use emit_store_flag_force instead of
24816 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24817 argument to it.
24818
24819 2014-04-11 Richard Biener <rguenther@suse.de>
24820
24821 PR middle-end/60797
24822 * varasm.c (assemble_alias): Avoid endless error reporting
24823 recursion by setting TREE_ASM_WRITTEN.
24824
24825 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24826
24827 * config/s390/s390.md: Add a splitter for NOT rtx.
24828
24829 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24830
24831 PR rtl-optimization/60663
24832 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24833
24834 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24835 Jakub Jelinek <jakub@redhat.com>
24836
24837 PR lto/60567
24838 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24839 flag from decl_node to node.
24840
24841 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24842
24843 PR debug/60655
24844 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24845 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24846 ameliorating the cases where it can be.
24847
24848 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24849
24850 Revert
24851 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24852
24853 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24854 (loadsync_<mode>): Change mode.
24855 (load_quadpti, store_quadpti): New.
24856 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24857 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24858 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24859
24860 2014-04-09 Cong Hou <congh@google.com>
24861
24862 PR testsuite/60773
24863 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24864 documentation.
24865
24866 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24867
24868 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24869 instead of vnor to exploit possible fusion opportunity in the
24870 future.
24871 (altivec_expand_vec_perm_const_le): Likewise.
24872
24873 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24874
24875 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24876 (loadsync_<mode>): Change mode.
24877 (load_quadpti, store_quadpti): New.
24878 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24879 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24880
24881 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24882
24883 PR target/60763
24884 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24885 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24886 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24887
24888 2014-04-08 Richard Biener <rguenther@suse.de>
24889
24890 PR middle-end/60706
24891 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24892 a 64bit widest int print double-int similar to on HWI64 hosts.
24893
24894 2014-04-08 Richard Biener <rguenther@suse.de>
24895
24896 PR tree-optimization/60785
24897 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24898 default defs properly.
24899
24900 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24901
24902 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24903 (Weffc++): Likewise.
24904
24905 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24906
24907 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24908 set completep to false rather than true.
24909
24910 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24911
24912 PR target/60504
24913 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24914 ARM_TARGET2_DWARF_FORMAT.
24915
24916 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24917
24918 PR target/60609
24919 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24920 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24921 ADDR_DIFF_VEC.
24922
24923 2014-04-07 Richard Biener <rguenther@suse.de>
24924
24925 PR tree-optimization/60766
24926 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24927 (may_eliminate_iv): Convert cand_value_at result to desired type.
24928
24929 2014-04-07 Jason Merrill <jason@redhat.com>
24930
24931 PR c++/60731
24932 * common.opt (-fno-gnu-unique): Add.
24933 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24934
24935 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24936
24937 * haifa-sched.c: Fix outdated function reference and minor
24938 grammar errors in introductory comment.
24939
24940 2014-04-07 Richard Biener <rguenther@suse.de>
24941
24942 PR middle-end/60750
24943 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24944 for noreturn calls.
24945 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24946
24947 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24948
24949 PR debug/55794
24950 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24951 size accounting for thunks.
24952 (pa_asm_output_mi_thunk): Use final_start_function() and
24953 final_end_function() to output function start and end directives.
24954
24955 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24956
24957 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24958 device specific ISA/ feature information. Remove short_sp and
24959 errata_skip ds. Add avr_device_specific_features enum to have device
24960 specific info.
24961 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24962 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24963 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24964 updated device specific info.
24965 * config/avr/avr-mcus.def: Merge device specific details to
24966 dev_attribute field.
24967 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24968 errata_skip.
24969 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24970 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24971 assembler if RMW isa supported by current device.
24972 * config/avr/genmultilib.awk: Update as device info structure changed.
24973 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24974
24975 2014-04-04 Cong Hou <congh@google.com>
24976
24977 PR tree-optimization/60656
24978 * tree-vect-stmts.c (supportable_widening_operation):
24979 Fix a bug that elements in a vector with vect_used_by_reduction
24980 property are incorrectly reordered when the operation on it is not
24981 consistant with the one in reduction operation.
24982
24983 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24984
24985 PR rtl-optimization/60155
24986 * gcse.c (record_set_data): New function.
24987 (single_set_gcse): New function.
24988 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24989 (hoist_code): Likewise.
24990 (get_pressure_class_and_nregs): Likewise.
24991
24992 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24993
24994 * explow.c (probe_stack_range): Emit a final optimization blockage.
24995
24996 2014-04-04 Anthony Green <green@moxielogic.com>
24997
24998 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24999 typos.
25000
25001 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
25002
25003 PR ipa/59626
25004 * lto-cgraph.c (input_overwrite_node): Check that partitioning
25005 flags are set only during streaming.
25006 * ipa.c (process_references, walk_polymorphic_call_targets,
25007 symtab_remove_unreachable_nodes): Drop bodies of always inline
25008 after early inlining.
25009 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25010
25011 2014-04-04 Jakub Jelinek <jakub@redhat.com>
25012 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25013
25014 PR debug/60655
25015 * dwarf2out.c (const_ok_for_output_1): Reject expressions
25016 containing a NOT.
25017
25018 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25019
25020 PR bootstrap/60743
25021 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25022 duration.
25023 (cortex_a53_fdivd): Likewise.
25024
25025 2014-04-04 Martin Jambor <mjambor@suse.cz>
25026
25027 PR ipa/60640
25028 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25029 Adjust all callers.
25030 * cgraph.c (clone_of_p): Also return true if thunks match.
25031 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25032 cgraph_function_or_thunk_node and an obsolete comment.
25033 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25034 file.
25035 (build_function_decl_skip_args): Likewise.
25036 (set_new_clone_decl_and_node_flags): New function.
25037 (duplicate_thunk_for_node): Likewise.
25038 (redirect_edge_duplicating_thunks): Likewise.
25039 (cgraph_clone_node): New parameter args_to_skip, pass it to
25040 redirect_edge_duplicating_thunks which is called instead of
25041 cgraph_redirect_edge_callee.
25042 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25043 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25044
25045 2014-04-04 Jeff Law <law@redhat.com>
25046
25047 PR target/60657
25048 * config/arm/predicates.md (const_int_I_operand): New predicate.
25049 (const_int_M_operand): Similarly.
25050 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25051 const_int_operand.
25052 (insv_t2, extv_reg, extzv_t2): Likewise.
25053 (load_multiple_with_writeback): Similarly for const_int_I_operand.
25054 (pop_multiple_with_writeback_and_return): Likewise.
25055 (vfp_pop_multiple_with_writeback): Likewise
25056
25057 2014-04-04 Richard Biener <rguenther@suse.de>
25058
25059 PR ipa/60746
25060 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25061 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25062 non-GIMPLE_LABELs.
25063 * gimplify.h (gimple_add_tmp_var_fn): Declare.
25064 * gimplify.c (gimple_add_tmp_var_fn): New function.
25065 * gimple-expr.h (create_tmp_reg_fn): Declare.
25066 * gimple-expr.c (create_tmp_reg_fn): New function.
25067 * gimple-low.c (record_vars_into): Don't change cfun.
25068 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25069 code generation without cfun.
25070
25071 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25072
25073 PR bootstrap/60719
25074 * Makefile.in (install-driver): Fix shell scripting.
25075
25076 2014-04-03 Cong Hou <congh@google.com>
25077
25078 PR tree-optimization/60505
25079 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25080 threshold of number of iterations below which no vectorization
25081 will be done.
25082 * tree-vect-loop.c (new_loop_vec_info):
25083 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25084 * tree-vect-loop.c (vect_analyze_loop_operations):
25085 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25086 * tree-vect-loop.c (vect_transform_loop):
25087 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25088 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25089 of iterations of the loop and see if we should build the epilogue.
25090
25091 2014-04-03 Richard Biener <rguenther@suse.de>
25092
25093 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25094 (streamer_tree_cache_create): Adjust.
25095 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25096 to allow optional nodes array.
25097 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25098 (streamer_tree_cache_append): Likewise.
25099 (streamer_tree_cache_create): Create nodes array optionally
25100 as specified by parameter.
25101 * lto-streamer-out.c (create_output_block): Avoid maintaining
25102 the node array in the writer cache.
25103 (DFS_write_tree): Remove assertion.
25104 (produce_asm_for_decls): Free the out decl state hash table early.
25105 * lto-streamer-in.c (lto_data_in_create): Adjust for
25106 streamer_tree_cache_create prototype change.
25107
25108 2014-04-03 Richard Biener <rguenther@suse.de>
25109
25110 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25111 set TREE_CHAIN to NULL_TREE.
25112
25113 2014-04-03 Richard Biener <rguenther@suse.de>
25114
25115 PR tree-optimization/60740
25116 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25117 over all GIMPLE_COND operands.
25118
25119 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25120
25121 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25122 (Weffc++): Remove Scott's numbering, merge lists and reference
25123 Wnon-virtual-dtor.
25124
25125 2014-04-03 Nick Clifton <nickc@redhat.com>
25126
25127 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25128 properly.
25129
25130 2014-04-03 Martin Jambor <mjambor@suse.cz>
25131
25132 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25133 mention gcc_unreachable before failing.
25134 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25135 removed symbols.
25136
25137 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25138
25139 PR ipa/60659
25140 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25141 inconsistent code and instead mark the context inconsistent.
25142 (possible_polymorphic_call_targets): For inconsistent contexts
25143 return empty complete list.
25144
25145 2014-04-02 Anthony Green <green@moxielogic.com>
25146
25147 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25148 (extendqisi2, extendhisi2): Define.
25149 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25150 (WCHAR_TYPE): Change to unsigned int.
25151
25152 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25153
25154 PR tree-optimization/60733
25155 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25156 insertion point for PHI candidates to be the end of the feeding
25157 block for the PHI argument.
25158
25159 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25160
25161 PR rtl-optimization/60650
25162 * lra-constraints.c (process_alt_operands): Decrease reject for
25163 earlyclobber matching.
25164
25165 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25166
25167 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25168
25169 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25170
25171 * config/spu/spu.c (pad_bb): Do not crash when the last
25172 insn is CODE_FOR_blockage.
25173
25174 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25175
25176 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25177 lies outside the target mode.
25178
25179 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25180
25181 PR target/60735
25182 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25183 software floating point or no floating point registers, do not
25184 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25185 in GPRs that occurs after we tested for GPRs that would never be
25186 true.
25187
25188 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25189 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25190 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25191 specifically allow DDmode, since that does not use the SPE SIMD
25192 instructions.
25193
25194 2014-04-02 Richard Biener <rguenther@suse.de>
25195
25196 PR middle-end/60729
25197 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25198 MODE_INTs. Properly use negv_optab.
25199 (expand_abs): Likewise.
25200
25201 2014-04-02 Richard Biener <rguenther@suse.de>
25202
25203 PR bootstrap/60719
25204 * Makefile.in (install-driver): Guard extra installs with special
25205 names properly.
25206
25207 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25208
25209 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25210 Document vec_vgbbd.
25211
25212 2014-04-01 Richard Henderson <rth@redhat.com>
25213
25214 PR target/60704
25215 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25216 alternative enabled before register allocation.
25217
25218 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25219
25220 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25221 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25222 typo.
25223 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25224 (nios2_got_address): Update nios2_large_got_address call site.
25225 (nios2_delegitimize_address): New function.
25226 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25227 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25228 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25229
25230 2014-04-01 Martin Husemann <martin@duskware.de>
25231
25232 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25233 for -mabi=32.
25234
25235 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25236
25237 PR rtl-optimization/60604
25238 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25239 check from register_operand.
25240 (register_operand): Redefine in terms of general_operand.
25241 (nonmemory_operand): Use register_operand for the non-constant cases.
25242
25243 2014-04-01 Richard Biener <rguenther@suse.de>
25244
25245 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25246
25247 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25248
25249 * doc/invoke.texi (mapp-regs): Clarify.
25250
25251 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25252
25253 * config/i386/avx512fintrin.h (__v32hi): Define type.
25254 (__v64qi): Likewise.
25255 (_mm512_set1_epi8): Define.
25256 (_mm512_set1_epi16): Define.
25257 (_mm512_set4_epi32): Define.
25258 (_mm512_set4_epi64): Define.
25259 (_mm512_set4_pd): Define.
25260 (_mm512_set4_ps): Define.
25261 (_mm512_setr4_epi64): Define.
25262 (_mm512_setr4_epi32): Define.
25263 (_mm512_setr4_pd): Define.
25264 (_mm512_setr4_ps): Define.
25265 (_mm512_setzero_epi32): Define.
25266
25267 2014-03-31 Martin Jambor <mjambor@suse.cz>
25268
25269 PR middle-end/60647
25270 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25271 callsite_arguments_match_p. Updated all callers. Also check types of
25272 corresponding formal parameters and actual arguments.
25273 (not_all_callers_have_enough_arguments_p) Renamed to
25274 some_callers_have_mismatched_arguments_p.
25275
25276 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25277
25278 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25279
25280 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25281
25282 PR target/60034
25283 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25284 section anchor.
25285
25286 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25287
25288 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25289 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25290 Split out
25291 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25292 Use FMAMODE_NOVF512 mode iterator.
25293 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25294 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25295 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25296 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25297 Split out
25298 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25299 Use VF_128_256 mode iterator.
25300 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25301 Ditto.
25302
25303 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25304
25305 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25306 static chain if needed.
25307
25308 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25309
25310 PR target/60697
25311 * lra-constraints.c (index_part_to_reg): New.
25312 (process_address): Use it.
25313
25314 2014-03-27 Jeff Law <law@redhat.com>
25315 Jakub Jelinek <jakub@redhat.com>
25316
25317 PR target/60648
25318 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25319 gen_rtx_{PLUS,MULT} to build up the address expression.
25320
25321 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25322 creating non-canonical RTL.
25323
25324 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25325
25326 PR ipa/60243
25327 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25328 functions; reorganize to make cheap checks first.
25329 (inline_small_functions): Do not estimate growth when dumping;
25330 it is expensive.
25331 * ipa-inline.h (inline_summary): Add min_size.
25332 (growth_likely_positive): New function.
25333 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25334 (set_cond_stmt_execution_predicate): Cleanup.
25335 (estimate_edge_size_and_time): Compute min_size.
25336 (estimate_calls_size_and_time): Likewise.
25337 (estimate_node_size_and_time): Likewise.
25338 (inline_update_overall_summary): Update min_size.
25339 (do_estimate_edge_time): Likewise.
25340 (do_estimate_edge_size): Update.
25341 (do_estimate_edge_hints): Update.
25342 (growth_likely_positive): New function.
25343
25344 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25345
25346 PR target/60693
25347 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25348 also if addr has VOIDmode.
25349
25350 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25351
25352 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25353 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25354 Declare extern.
25355 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25356 instructions as well as AdvancedSIMD loads.
25357
25358 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25359
25360 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25361 Use crypto_aese type.
25362 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25363 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25364 crypto_aese, crypto_aesmc. Move to types.md.
25365 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25366 crypto_aesmc.
25367 * config/arm/iterators.md (crypto_type): Likewise.
25368
25369 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25370
25371 * cgraph.c: Include expr.h and tree-dfa.h.
25372 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25373 remove LHS.
25374
25375 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25376
25377 PR target/60675
25378 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25379 regs from checking multi-reg pseudos.
25380
25381 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25382
25383 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25384
25385 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25386
25387 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25388 if it would clobber the stack pointer, even temporarily.
25389
25390 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25391
25392 * mode-switching.c: Make small adjustments to the top comment.
25393
25394 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25395
25396 * config/rs6000/constraints.md (wD constraint): New constraint to
25397 match the constant integer to get the top DImode/DFmode out of a
25398 vector in a VSX register.
25399
25400 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25401 match the constant integer to get the top DImode/DFmode out of a
25402 vector in a VSX register.
25403
25404 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25405 for ISA 2.07.
25406
25407 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25408 vbpermq builtins.
25409
25410 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25411 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25412
25413 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25414 Optimize vec_extract of 64-bit values, where the value being
25415 extracted is in the top word, where we can use scalar
25416 instructions. Add direct move and store support. Combine the big
25417 endian/little endian vector select load support into a single insn.
25418 (vsx_extract_<mode>_internal1): Likewise.
25419 (vsx_extract_<mode>_internal2): Likewise.
25420 (vsx_extract_<mode>_load): Likewise.
25421 (vsx_extract_<mode>_store): Likewise.
25422 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25423 combined into vsx_extract_<mode>_load.
25424 (vsx_extract_<mode>_one_le): Likewise.
25425
25426 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25427 define the top 64-bit vector element.
25428
25429 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25430 constraint.
25431
25432 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25433 Document vec_vbpermq builtin.
25434
25435 PR target/60672
25436 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25437 enable use of xxsldwi and xxpermdi builtin functions.
25438 (vec_xxpermdi): Likewise.
25439
25440 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25441 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25442
25443 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25444
25445 PR rtl-optimization/60650
25446 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25447 first_p. Use it.
25448 (find_spills_for): New.
25449 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25450 Spill all pseudos on the second iteration.
25451
25452 2014-03-27 Marek Polacek <polacek@redhat.com>
25453
25454 PR c/50347
25455 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25456 types.
25457
25458 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25459
25460 * config/s390/s390.c (s390_can_use_return_insn): Check for
25461 call-saved FPRs on 31 bit.
25462
25463 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25464
25465 PR middle-end/60682
25466 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25467 if they need regimplification, just drop them instead of
25468 calling gimple_regimplify_operands on them.
25469
25470 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25471
25472 PR target/60580
25473 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25474 (aarch64_frame_pointer_required): Adjust logic.
25475 (aarch64_can_eliminate): Adjust logic.
25476 (aarch64_override_options_after_change): Adjust logic.
25477
25478 2014-03-27 Dehao Chen <dehao@google.com>
25479
25480 * ipa-inline.c (early_inliner): Update node's inline info.
25481
25482 2014-03-26 Dehao Chen <dehao@google.com>
25483
25484 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25485 compiler inserted conditional jumps for NAN float check.
25486
25487 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25488
25489 * ubsan.h (ubsan_create_data): Change second argument's type
25490 to const location_t *.
25491 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25492 _("<unknown>").
25493 (ubsan_create_data): Change second argument to const location_t *PLOC.
25494 Create Loc field whenever PLOC is non-NULL.
25495 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25496 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25497 callers.
25498
25499 PR other/59545
25500 * real.c (real_to_integer2): Change type of low to UHWI.
25501
25502 2014-03-26 Tobias Burnus <burnus@net-b.de>
25503
25504 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25505 (CILK_SELF_SPECS): New define.
25506 (driver_self_specs): Use it.
25507
25508 2014-03-26 Richard Biener <rguenther@suse.de>
25509
25510 * tree-pretty-print.c (percent_K_format): Implement special
25511 case for LTO and its stripped down BLOCK tree.
25512
25513 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25514
25515 PR sanitizer/60636
25516 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25517
25518 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25519 one range is range_int_cst_p, but not both, at least optimize
25520 addition/subtraction of 0 and multiplication by 0 or 1.
25521 * gimple-fold.c (gimple_fold_call): Fold
25522 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25523 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25524 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25525
25526 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25527
25528 PR rtl-optimization/60452
25529 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25530 <case REG>: Return 1 for invalid offsets from the frame pointer.
25531
25532 2014-03-26 Marek Polacek <polacek@redhat.com>
25533
25534 PR c/37428
25535 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25536 a structure/union.
25537
25538 2014-03-26 Marek Polacek <polacek@redhat.com>
25539
25540 PR c/39525
25541 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25542 field members.
25543
25544 2014-03-26 Marek Polacek <polacek@redhat.com>
25545
25546 PR other/59545
25547 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25548 multiplication in unsigned type.
25549
25550 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25551
25552 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25553
25554 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25555
25556 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25557
25558 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25559
25560 PR ipa/60315
25561 * cif-code.def (UNREACHABLE) New code.
25562 * ipa-inline.c (inline_small_functions): Skip edges to
25563 __builtlin_unreachable.
25564 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25565 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25566 predicate to __bulitin_unreachable.
25567 (set_cond_stmt_execution_predicate): Fix issue when
25568 invert_tree_comparison returns ERROR_MARK.
25569 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25570 propagate to inline clones.
25571 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25572 to unreachable.
25573 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25574 * cgraphclones.c (cgraph_clone_node): If call destination is already
25575 ureachable, do not redirect it back.
25576 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25577 unreachable.
25578
25579 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25580
25581 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25582 Do not modify inline clones.
25583
25584 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25585
25586 * config/i386/i386.md (general_sext_operand): New mode attr.
25587 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25588 don't generate (sign_extend (const_int)).
25589 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25590 operands[2]. Use We constraint instead of <i> and
25591 <general_sext_operand> predicate instead of <general_operand>.
25592 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25593 * config/i386/constraints.md (We): New constraint.
25594 * config/i386/predicates.md (x86_64_sext_operand,
25595 sext_operand): New predicates.
25596
25597 2014-03-25 Martin Jambor <mjambor@suse.cz>
25598
25599 PR ipa/60600
25600 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25601 inconsistent devirtualizations to __builtin_unreachable.
25602
25603 2014-03-25 Marek Polacek <polacek@redhat.com>
25604
25605 PR c/35449
25606 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25607
25608 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25609
25610 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25611 order of elements for big-endian.
25612
25613 2014-03-25 Richard Biener <rguenther@suse.de>
25614
25615 PR middle-end/60635
25616 * gimplify-me.c (gimple_regimplify_operands): Update the
25617 re-gimplifed stmt.
25618
25619 2014-03-25 Martin Jambor <mjambor@suse.cz>
25620
25621 PR ipa/59176
25622 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25623 (lto_output_varpool_node): Likewise.
25624 (input_overwrite_node): Likewise.
25625 (input_varpool_node): Likewise.
25626
25627 2014-03-25 Richard Biener <rguenther@suse.de>
25628
25629 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25630 (run_gcc): Likewise.
25631
25632 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25633
25634 * combine.c (simplify_compare_const): Add MODE argument.
25635 Handle mode_width 0 as very large mode_width.
25636 (try_combine, simplify_comparison): Adjust callers.
25637
25638 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25639 type to avoid signed integer overflow.
25640 * explow.c (plus_constant): Likewise.
25641
25642 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25643
25644 * doc/generic.texi: Correct typos.
25645
25646 2014-03-24 Tobias Burnus <burnus@net-b.de>
25647
25648 * doc/invoke.texi (-flto): Expand section about
25649 using static libraries with LTO.
25650
25651 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25652
25653 PR rtl-optimization/60501
25654 * optabs.def (addptr3_optab): New optab.
25655 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25656 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25657 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25658
25659 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25660
25661 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25662
25663 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25664
25665 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25666 _mm512_set1_pd.
25667
25668 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25669 (_mm256_undefined_ps): Define.
25670 (_mm256_undefined_pd): Define.
25671 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25672 (_mm_undefined_pd): Define.
25673 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25674 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25675 (_mm512_undefined_ps): Define.
25676 (_mm512_undefined_pd): Define.
25677 Use _mm*_undefined_*.
25678 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25679
25680 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25681
25682 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25683 (lshr_simd): DI mode added.
25684 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25685 (aarch64_ushr_simddi): Likewise.
25686 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25687 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25688 (vshrd_n_u64): Likewise.
25689
25690 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25691
25692 * Makefile.in (s-macro_list): Depend on cc1.
25693
25694 2014-03-23 Teresa Johnson <tejohnson@google.com>
25695
25696 * ipa-utils.c (ipa_print_order): Use specified dump file.
25697
25698 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25699
25700 PR rtl-optimization/60601
25701 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25702
25703 * gcc.c (eval_spec_function): Initialize save_growing_value.
25704
25705 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25706
25707 PR sanitizer/60613
25708 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25709 code == MINUS_EXPR, never swap op0 with op1.
25710
25711 * toplev.c (init_local_tick): Avoid signed integer multiplication
25712 overflow.
25713 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25714 shift by first operand's bitsize.
25715
25716 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25717
25718 PR target/60610
25719 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25720 redefine to 1 or 0.
25721 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25722 TARGET_ISA_64BIT_P(x).
25723
25724 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25725
25726 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25727 pattern for vector nor instead of subtract from splat(-1).
25728 (altivec_expand_vec_perm_const_le): Likewise.
25729
25730 2014-03-21 Richard Henderson <rth@twiddle.net>
25731
25732 PR target/60598
25733 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25734 related insns after epilogue_completed.
25735
25736 2014-03-21 Martin Jambor <mjambor@suse.cz>
25737
25738 PR ipa/59176
25739 * cgraph.h (symtab_node): New flag body_removed.
25740 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25741 when removing bodies.
25742 * symtab.c (dump_symtab_base): Dump body_removed flag.
25743 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25744 had their bodies removed.
25745
25746 2014-03-21 Martin Jambor <mjambor@suse.cz>
25747
25748 PR ipa/60419
25749 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25750 in the border.
25751
25752 2014-03-21 Richard Biener <rguenther@suse.de>
25753
25754 PR tree-optimization/60577
25755 * tree-core.h (struct tree_base): Document nothrow_flag use
25756 in DECL_NONALIASED.
25757 * tree.h (DECL_NONALIASED): New.
25758 (may_be_aliased): Adjust.
25759 * coverage.c (build_var): Set DECL_NONALIASED.
25760
25761 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25762
25763 * expr.c (expand_expr_real_1): Remove outdated comment.
25764
25765 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25766
25767 PR middle-end/60597
25768 * ira.c (adjust_cleared_regs): Call copy_rtx on
25769 *reg_equiv[REGNO (loc)].src_p before passing it to
25770 simplify_replace_fn_rtx.
25771
25772 PR target/60568
25773 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25774 into CONST, put pic register as first operand of PLUS. Use
25775 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25776
25777 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25778
25779 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25780
25781 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25782
25783 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25784 around for store forwarding issue in the FPU on the UT699.
25785 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25786 loads and operations if -mfix-ut699 is specified.
25787 (divtf3_hq): Tweak attribute.
25788 (sqrttf2_hq): Likewise.
25789
25790 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25791
25792 * calls.c (store_one_arg): Remove incorrect const qualification on the
25793 type of the temporary.
25794 * cfgexpand.c (expand_return): Likewise.
25795 * expr.c (expand_constructor): Likewise.
25796 (expand_expr_real_1): Likewise.
25797
25798 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25799
25800 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25801 of parts.
25802
25803 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25804
25805 PR target/60039
25806 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25807
25808 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25809
25810 * config/arm/aarch-common-protos.h
25811 (alu_cost_table): Fix spelling of "extend".
25812 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25813
25814 2014-03-19 Richard Biener <rguenther@suse.de>
25815
25816 PR middle-end/60553
25817 * tree-core.h (tree_type_common): Re-order pointer members
25818 to reduce recursion depth during GC walks.
25819
25820 2014-03-19 Marek Polacek <polacek@redhat.com>
25821
25822 PR sanitizer/60569
25823 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25824 before accessing it.
25825
25826 2014-03-19 Richard Biener <rguenther@suse.de>
25827
25828 PR lto/59543
25829 * lto-streamer-in.c (input_function): In WPA stage do not drop
25830 debug stmts.
25831
25832 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25833
25834 PR tree-optimization/60559
25835 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25836 with build_zero_cst assignment.
25837
25838 2014-03-18 Kai Tietz <ktietz@redhat.com>
25839
25840 PR rtl-optimization/56356
25841 * sdbout.c (sdbout_parms): Verify that parms'
25842 incoming argument is valid.
25843 (sdbout_reg_parms): Likewise.
25844
25845 2014-03-18 Richard Henderson <rth@redhat.com>
25846
25847 PR target/60562
25848 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25849 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25850 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25851
25852 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25853
25854 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25855 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25856 Italicize plugin event names in description. Explain that
25857 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25858 Remind that no GCC functions should be called after PLUGIN_FINISH.
25859 Explain what pragmas with expansion are.
25860
25861 2014-03-18 Martin Liska <mliska@suse.cz>
25862
25863 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25864 gimple call statement is update.
25865 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25866 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25867
25868 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25869
25870 PR sanitizer/60557
25871 * ubsan.c (ubsan_instrument_unreachable): Call
25872 initialize_sanitizer_builtins.
25873 (ubsan_pass): Likewise.
25874
25875 PR sanitizer/60535
25876 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25877 varpool_finalize_decl instead of rest_of_decl_compilation.
25878
25879 2014-03-18 Richard Biener <rguenther@suse.de>
25880
25881 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25882 by using bitmap_and_compl instead of bitmap_and_compl_into.
25883 (df_rd_transfer_function): Likewise.
25884
25885 2014-03-18 Richard Biener <rguenther@suse.de>
25886
25887 * doc/lto.texi (fresolution): Fix typo.
25888
25889 2014-03-18 Richard Biener <rguenther@suse.de>
25890
25891 * doc/invoke.texi (flto): Update for changes in 4.9.
25892
25893 2014-03-18 Richard Biener <rguenther@suse.de>
25894
25895 * doc/loop.texi: Remove section on the removed lambda framework.
25896 Update loop docs with recent changes in preserving loop structure.
25897
25898 2014-03-18 Richard Biener <rguenther@suse.de>
25899
25900 * doc/lto.texi (-fresolution): Document.
25901
25902 2014-03-18 Richard Biener <rguenther@suse.de>
25903
25904 * doc/contrib.texi: Adjust my name.
25905
25906 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25907
25908 PR ipa/58721
25909 * internal-fn.c: Include diagnostic-core.h.
25910 (expand_BUILTIN_EXPECT): New function.
25911 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25912 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25913 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25914 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25915 IFN_BUILTIN_EXPECT.
25916 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25917 Revert 3 argument __builtin_expect code.
25918 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25919 * gimple-fold.c (gimple_fold_call): Likewise.
25920 * tree.h (fold_builtin_expect): New prototype.
25921 * builtins.c (build_builtin_expect_predicate): Add predictor
25922 argument, if non-NULL, create 3 argument __builtin_expect.
25923 (fold_builtin_expect): No longer static. Add ARG2 argument,
25924 pass it through to build_builtin_expect_predicate.
25925 (fold_builtin_2): Adjust caller.
25926 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25927 * internal-fn.def (BUILTIN_EXPECT): New.
25928
25929 2014-03-18 Tobias Burnus <burnus@net-b.de>
25930
25931 PR ipa/58721
25932 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25933 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25934 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25935
25936 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25937
25938 PR ipa/58721
25939 * predict.c (combine_predictions_for_bb): Fix up formatting.
25940 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25941 fill what it points to if non-NULL.
25942 (tree_predict_by_opcode): Adjust caller, use the predictor.
25943 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25944
25945 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25946
25947 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25948 proper constant for the store mode.
25949
25950 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25951
25952 * symtab.c (change_decl_assembler_name): Fix transparent alias
25953 chain construction.
25954
25955 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25956
25957 * config/aarch64/aarch64.c: Correct the comments about the
25958 aarch64 stack layout.
25959
25960 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25961
25962 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25963 check for GF_OMP_FOR_KIND_FOR.
25964
25965 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25966
25967 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25968 ymm and zmm register names.
25969
25970 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25971
25972 PR target/60516
25973 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25974 note creation for the 2010-08-31 changes.
25975
25976 2014-03-17 Marek Polacek <polacek@redhat.com>
25977
25978 PR middle-end/60534
25979 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25980 as -fno-tree-loop-vectorize.
25981 (expand_omp_simd): Likewise.
25982
25983 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25984
25985 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25986 (eligible_for_call_delay): New prototype.
25987 * config/sparc/sparc.c (tls_call_delay): Rename into...
25988 (eligible_for_call_delay): ...this. Return false if the instruction
25989 cannot be put in the delay slot of a branch.
25990 (eligible_for_restore_insn): Simplify.
25991 (eligible_for_return_delay): Return false if the instruction cannot be
25992 put in the delay slot of a branch and simplify.
25993 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25994 put in the delay slot of a branch.
25995 * config/sparc/sparc.md (fix_ut699): New attribute.
25996 (tls_call_delay): Delete.
25997 (in_call_delay): Reimplement.
25998 (eligible_for_sibcall_delay): Rename into...
25999 (in_sibcall_delay): ...this.
26000 (eligible_for_return_delay): Rename into...
26001 (in_return_delay): ...this.
26002 (in_branch_delay): Reimplement.
26003 (in_uncond_branch_delay): Delete.
26004 (in_annul_branch_delay): Delete.
26005
26006 2014-03-14 Richard Henderson <rth@redhat.com>
26007
26008 PR target/60525
26009 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26010 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26011 (*floathi<X87MODEF>2_i387_with_temp): Remove.
26012 (floathi splitters): Remove.
26013 (float<SWI48x>xf2): New pattern.
26014 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
26015 code that tried to handle DImode for 32-bit, but which was excluded
26016 by the pattern's condition. Drop allocation of stack temporary.
26017 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26018 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26019 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26020 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26021 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26022 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26023 (*float<SWI48><MODEF>2_sse_interunit): Remove.
26024 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26025 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26026 (*float<SWI48x><X87MODEF>2_i387): Remove.
26027 (all float _with_temp splitters): Remove.
26028 (*float<SWI48x><MODEF>2_i387): New pattern.
26029 (*float<SWI48><MODEF>2_sse): New pattern.
26030 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26031 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26032
26033 2014-03-14 Jakub Jelinek <jakub@redhat.com>
26034 Marek Polacek <polacek@redhat.com>
26035
26036 PR middle-end/60484
26037 * common.opt (dump_base_name_prefixed): New Variable.
26038 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26039 if x_dump_base_name_prefixed is already set, set it at the end.
26040
26041 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
26042
26043 PR rtl-optimization/60508
26044 * lra-constraints.c (get_reload_reg): Add new parameter
26045 in_subreg_p.
26046 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26047 Pass the new parameter values.
26048
26049 2014-03-14 Richard Biener <rguenther@suse.de>
26050
26051 * common.opt: Revert unintented changes from r205065.
26052 * opts.c: Likewise.
26053
26054 2014-03-14 Richard Biener <rguenther@suse.de>
26055
26056 PR middle-end/60518
26057 * cfghooks.c (split_block): Properly adjust all loops the
26058 block was a latch of.
26059
26060 2014-03-14 Martin Jambor <mjambor@suse.cz>
26061
26062 PR lto/60461
26063 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26064 and simplify it.
26065
26066 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26067
26068 PR target/59396
26069 * config/avr/avr.c (avr_set_current_function): Pass function name
26070 through default_strip_name_encoding before sanity checking instead
26071 of skipping the first char of the assembler name.
26072
26073 2014-03-13 Richard Henderson <rth@redhat.com>
26074
26075 PR debug/60438
26076 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26077 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26078 * config/i386/i386-protos.h: Likewise.
26079 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26080 in the expander instead of a splitter.
26081 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26082 any possibility of requiring a memory.
26083 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26084 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26085 (fp branch splitters): Update for ix86_split_fp_branch.
26086 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26087 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26088 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26089 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26090 (*fop_<MODEF>_3_i387): Likewise.
26091 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26092 (splitters for the fop_* register patterns): Remove.
26093 (fscalexf4_i387): Rename from *fscalexf4_i387.
26094 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26095
26096 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26097
26098 PR tree-optimization/59779
26099 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26100 type for bitsize and maxsize instead of HOST_WIDE_INT.
26101
26102 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26103
26104 PR rtl-optimization/57320
26105 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26106 the CFG after thread_prologue_and_epilogue_insns.
26107
26108 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26109
26110 PR rtl-optimization/57189
26111 * lra-constraints.c (process_alt_operands): Disfavor spilling
26112 vector pseudos.
26113
26114 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26115
26116 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26117
26118 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26119
26120 PR tree-optimization/59025
26121 PR middle-end/60418
26122 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26123 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26124
26125 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26126
26127 PR target/60486
26128 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26129 calls of avr_out_plus_1.
26130
26131 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26132
26133 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26134 BB's single pred and update the father loop's latch info later.
26135
26136 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26137
26138 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26139 (VEC_M): Likewise.
26140 (VEC_N): Likewise.
26141 (VEC_R): Likewise.
26142 (VEC_base): Likewise.
26143 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26144 registers, we need to swap double words in little endian mode.
26145
26146 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26147 to be a container mode for 128-bit integer operations added in ISA
26148 2.07. Unlike TImode and PTImode, the preferred register set is
26149 the Altivec/VMX registers for the 128-bit operations.
26150
26151 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26152 declarations.
26153 (rs6000_split_128bit_ok_p): Likewise.
26154
26155 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26156 macros for creating ISA 2.07 normal and overloaded builtin
26157 functions with 3 arguments.
26158 (BU_P8V_OVERLOAD_3): Likewise.
26159 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26160 for use as overloaded functions.
26161 (VPERM_1TI_UNS): Likewise.
26162 (VSEL_1TI): Likewise.
26163 (VSEL_1TI_UNS): Likewise.
26164 (ST_INTERNAL_1ti): Likewise.
26165 (LD_INTERNAL_1ti): Likewise.
26166 (XXSEL_1TI): Likewise.
26167 (XXSEL_1TI_UNS): Likewise.
26168 (VPERM_1TI): Likewise.
26169 (VPERM_1TI_UNS): Likewise.
26170 (XXPERMDI_1TI): Likewise.
26171 (SET_1TI): Likewise.
26172 (LXVD2X_V1TI): Likewise.
26173 (STXVD2X_V1TI): Likewise.
26174 (VEC_INIT_V1TI): Likewise.
26175 (VEC_SET_V1TI): Likewise.
26176 (VEC_EXT_V1TI): Likewise.
26177 (EQV_V1TI): Likewise.
26178 (NAND_V1TI): Likewise.
26179 (ORC_V1TI): Likewise.
26180 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26181 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26182 overloaded builtin.
26183 (VADDUQM): Likewise.
26184 (VSUBCUQ): Likewise.
26185 (VADDEUQM): Likewise.
26186 (VADDECUQ): Likewise.
26187 (VSUBEUQM): Likewise.
26188 (VSUBECUQ): Likewise.
26189
26190 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26191 __int128_t and __uint128_t types.
26192 (__uint128_type): Likewise.
26193 (altivec_categorize_keyword): Add support for vector __int128_t,
26194 vector __uint128_t, vector __int128, and vector unsigned __int128
26195 as a container type for TImode operations that need to be done in
26196 VSX/Altivec registers.
26197 (rs6000_macro_to_expand): Likewise.
26198 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26199 to support 128-bit integer instructions vaddcuq, vadduqm,
26200 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26201 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26202
26203 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26204 for V1TImode, and set up preferences to use VSX/Altivec registers.
26205 Setup VSX reload handlers.
26206 (rs6000_debug_reg_global): Likewise.
26207 (rs6000_init_hard_regno_mode_ok): Likewise.
26208 (rs6000_preferred_simd_mode): Likewise.
26209 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26210 (easy_altivec_constant): Likewise.
26211 (output_vec_const_move): Likewise.
26212 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26213 simple move.
26214 (rs6000_expand_vector_extract): Likewise.
26215 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26216 addressing.
26217 (rs6000_const_vec): Add support for V1TImode.
26218 (rs6000_emit_le_vsx_load): Swap double words when loading or
26219 storing TImode/V1TImode.
26220 (rs6000_emit_le_vsx_store): Likewise.
26221 (rs6000_emit_le_vsx_move): Likewise.
26222 (rs6000_emit_move): Add support for V1TImode.
26223 (altivec_expand_ld_builtin): Likewise.
26224 (altivec_expand_st_builtin): Likewise.
26225 (altivec_expand_vec_init_builtin): Likewise.
26226 (altivec_expand_builtin): Likewise.
26227 (rs6000_init_builtins): Add support for V1TImode type. Add
26228 support for ISA 2.07 128-bit integer builtins. Define type names
26229 for the VSX/Altivec vector types.
26230 (altivec_init_builtins): Add support for overloaded vector
26231 functions with V1TImode type.
26232 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26233 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26234 external function.
26235 (rs6000_split_128bit_ok_p): Likewise.
26236 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26237 __int128_t and vector __uint128_t.
26238
26239 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26240 and mode attributes.
26241 (VSX_M): Likewise.
26242 (VSX_M2): Likewise.
26243 (VSm): Likewise.
26244 (VSs): Likewise.
26245 (VSr): Likewise.
26246 (VSv): Likewise.
26247 (VS_scalar): Likewise.
26248 (VS_double): Likewise.
26249 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26250
26251 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26252 we support the ISA 2.07 128-bit integer arithmetic instructions.
26253 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26254 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26255 and TImode types for use with the builtin functions.
26256 (V1TI_type_node): Likewise.
26257 (unsigned_V1TI_type_node): Likewise.
26258 (intTI_type_internal_node): Likewise.
26259 (uintTI_type_internal_node): Likewise.
26260
26261 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26262 128-bit builtin functions.
26263 (UNSPEC_VADDEUQM): Likewise.
26264 (UNSPEC_VADDECUQ): Likewise.
26265 (UNSPEC_VSUBCUQ): Likewise.
26266 (UNSPEC_VSUBEUQM): Likewise.
26267 (UNSPEC_VSUBECUQ): Likewise.
26268 (VM): Add V1TImode to vector mode iterators.
26269 (VM2): Likewise.
26270 (VI_unit): Likewise.
26271 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26272 (altivec_vaddcuq): Likewise.
26273 (altivec_vsubuqm): Likewise.
26274 (altivec_vsubcuq): Likewise.
26275 (altivec_vaddeuqm): Likewise.
26276 (altivec_vaddecuq): Likewise.
26277 (altivec_vsubeuqm): Likewise.
26278 (altivec_vsubecuq): Likewise.
26279
26280 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26281 mode iterators.
26282 (BOOL_128): Likewise.
26283 (BOOL_REGS_OUTPUT): Likewise.
26284 (BOOL_REGS_OP1): Likewise.
26285 (BOOL_REGS_OP2): Likewise.
26286 (BOOL_REGS_UNARY): Likewise.
26287 (BOOL_REGS_AND_CR0): Likewise.
26288
26289 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26290 128-bit integer builtin support.
26291 (vec_vadduqm): Likewise.
26292 (vec_vaddecuq): Likewise.
26293 (vec_vaddeuqm): Likewise.
26294 (vec_vsubecuq): Likewise.
26295 (vec_vsubeuqm): Likewise.
26296 (vec_vsubcuq): Likewise.
26297 (vec_vsubuqm): Likewise.
26298
26299 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26300 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26301 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26302 128-bit integer add/subtract to ISA 2.07.
26303
26304 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26305
26306 * config/arc/arc.c (arc_predicate_delay_insns):
26307 Fix third argument passed to conditionalize_nonjump.
26308
26309 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26310
26311 * config/aarch64/aarch64-builtins.c
26312 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26313 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26314 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26315 instead of __builtin_lfloor.
26316 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26317
26318 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26319
26320 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26321 (tree_ssa_ifcombine_bb_1): New function.
26322 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26323 is an empty forwarder block to then_bb or vice versa and then_bb
26324 and else_bb are effectively swapped.
26325
26326 2014-03-12 Christian Bruel <christian.bruel@st.com>
26327
26328 PR target/60264
26329 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26330 REG_CFA_DEF_CFA note.
26331 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26332 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26333
26334 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26335
26336 PR tree-optimization/60454
26337 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26338
26339 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26340
26341 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26342 Do not define target_cpu_default2 to generic.
26343 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26344 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26345 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26346
26347 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26348 Marc Glisse <marc.glisse@inria.fr>
26349
26350 PR tree-optimization/60502
26351 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26352 instead of build_low_bits_mask.
26353
26354 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26355
26356 PR middle-end/60482
26357 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26358 if there are multiple uses, but op doesn't live on E edge.
26359 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26360 clobber stmts before __builtin_unreachable.
26361
26362 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26363
26364 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26365 hard_frame_pointer_rtx.
26366 * cse.c (cse_insn): Remove volatile check.
26367 * cselib.c (cselib_process_insn): Likewise.
26368 * dse.c (scan_insn): Likewise.
26369
26370 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26371
26372 * config/arc/arc.c (conditionalize_nonjump): New function,
26373 broken out of ...
26374 (arc_ifcvt): ... this.
26375 (arc_predicate_delay_insns): Use it.
26376
26377 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26378
26379 * config/arc/predicates.md (extend_operand): During/after reload,
26380 allow const_int_operand.
26381 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26382 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26383 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26384 to "i".
26385 (umulsi3_highpart_i): Likewise.
26386
26387 2014-03-11 Richard Biener <rguenther@suse.de>
26388
26389 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26390 Add asserts to guard possible wrong-code bugs.
26391
26392 2014-03-11 Richard Biener <rguenther@suse.de>
26393
26394 PR tree-optimization/60429
26395 PR tree-optimization/60485
26396 * tree-ssa-structalias.c (set_union_with_increment): Properly
26397 take into account all fields that overlap the shifted vars.
26398 (do_sd_constraint): Likewise.
26399 (do_ds_constraint): Likewise.
26400 (get_constraint_for_ptr_offset): Likewise.
26401
26402 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26403
26404 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26405 (nios2_compute_frame_layout):
26406 Add calculation of cfun->machine->fp_save_offset.
26407 (nios2_expand_prologue): Correct setting of frame pointer register
26408 in prologue.
26409 (nios2_expand_epilogue): Update recovery of stack pointer from
26410 frame pointer accordingly.
26411 (nios2_initial_elimination_offset): Update calculation of offset
26412 for eliminating to HARD_FRAME_POINTER_REGNUM.
26413
26414 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26415
26416 PR ipa/60457
26417 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26418 cgraph_get_create_node on VAR_DECLs.
26419
26420 2014-03-10 Richard Biener <rguenther@suse.de>
26421
26422 PR middle-end/60474
26423 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26424
26425 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26426
26427 * config/vms/vms.opt (vms_float_format): New variable.
26428
26429 2014-03-08 Tobias Burnus <burnus@net-b.de>
26430
26431 * doc/invoke.texi (-fcilkplus): Update implementation status.
26432
26433 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26434 Richard Biener <rguenther@suse.de>
26435
26436 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26437 consistently accross all TUs.
26438 (run_gcc): Enable -fshort-double automatically at link at link-time
26439 and disallow override.
26440
26441 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26442
26443 PR target/58271
26444 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26445 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26446 if they can't be used.
26447
26448 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26449
26450 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26451 for Solaris 11/x86 ld.
26452 * configure: Regenerate.
26453
26454 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26455
26456 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26457 (LIB_TLS_SPEC): Save as ld_tls_libs.
26458 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26459 (HAVE_AS_IX86_TLSLDM): New test.
26460 * configure, config.in: Regenerate.
26461 * config/i386/i386.c (legitimize_tls_address): Fall back to
26462 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26463 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26464 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26465 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26466
26467 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26468
26469 * common.opt (fira-loop-pressure): Mark as optimization.
26470
26471 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26472
26473 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26474 an OpenMP mappable type.
26475
26476 2014-03-06 Matthias Klose <doko@ubuntu.com>
26477
26478 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26479 MULTILIB_OSDIRNAMES is not defined.
26480
26481 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26482 Meador Inge <meadori@codesourcery.com>
26483
26484 PR target/58595
26485 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26486 (arm_legitimize_address): Call legitimize_tls_address for any
26487 arm_tls_referenced_p expression, handle constant addend. Call it
26488 before testing for !TARGET_ARM.
26489 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26490
26491 2014-03-06 Richard Biener <rguenther@suse.de>
26492
26493 PR middle-end/60445
26494 PR lto/60424
26495 PR lto/60427
26496 Revert
26497 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26498
26499 * tree-streamer.c (record_common_node): Assert we don't record
26500 nodes with type double.
26501 (preload_common_node): Skip type double, complex double and double
26502 pointer since it is now frontend dependent due to fshort-double option.
26503
26504 2014-03-06 Richard Biener <rguenther@suse.de>
26505
26506 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26507 or -fno-lto is specified and the linker has full plugin support.
26508 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26509 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26510 * lto-wrapper.c (merge_and_complain): Merge compile-time
26511 optimization levels.
26512 (run_gcc): And pass it through to the link options.
26513
26514 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26515
26516 PR debug/60381
26517 Revert:
26518 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26519 PR debug/59992
26520 * cselib.c (remove_useless_values): Skip to avoid quadratic
26521 behavior if the condition moved from...
26522 (cselib_process_insn): ... here holds.
26523
26524 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26525
26526 PR plugins/59335
26527 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26528 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26529
26530 PR plugins/59335
26531 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26532 (TM_H): Add x86-tune.def.
26533
26534 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26535
26536 * config/aarch64/aarch64.c (generic_tunings):
26537 Use cortexa57_extra_costs.
26538
26539 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26540
26541 PR lto/60404
26542 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26543 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26544 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26545 cost for in_lto_p.
26546
26547 2014-03-04 Heiher <r@hev.cc>
26548
26549 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26550 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26551
26552 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26553
26554 * config/i386/predicates.md (const2356_operand): Change to ...
26555 (const2367_operand): ... this.
26556 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26557 const2367_operand.
26558 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26559 (*avx512pf_scatterpf<mode>sf): Ditto.
26560 (avx512pf_scatterpf<mode>df): Ditto.
26561 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26562 (*avx512pf_scatterpf<mode>df): Ditto.
26563 * config/i386/i386.c (ix86_expand_builtin): Update
26564 incorrect hint operand error message.
26565
26566 2014-03-04 Richard Biener <rguenther@suse.de>
26567
26568 * lto-section-in.c (lto_get_section_data): Fix const cast.
26569
26570 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26571
26572 * tree-streamer.c (record_common_node): Assert we don't record
26573 nodes with type double.
26574 (preload_common_node): Skip type double, complex double and double
26575 pointer since it is now frontend dependent due to fshort-double option.
26576
26577 2014-03-04 Richard Biener <rguenther@suse.de>
26578
26579 PR lto/60405
26580 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26581 (lto_input_toplevel_asms): Likewise.
26582 * lto-section-in.c (lto_get_section_data): Instead do it here
26583 for every section.
26584
26585 2014-03-04 Richard Biener <rguenther@suse.de>
26586
26587 PR tree-optimization/60382
26588 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26589 dead PHIs a reduction.
26590
26591 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26592
26593 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26594 hint value.
26595 (_mm_prefetch): Move out of GCC target("sse") pragma.
26596 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26597 GCC target("prfchw") pragma.
26598 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26599 for locality <= 2.
26600 * config/i386/i386.c (ix86_option_override_internal): Enable
26601 -mprfchw with -mprefetchwt1.
26602
26603 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26604
26605 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26606 Mark as varying.
26607
26608 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26609
26610 * opts.h (CL_PCH_IGNORE): Define.
26611 * targhooks.c (option_affects_pch_p):
26612 Return false for options that have CL_PCH_IGNORE set.
26613 * opt-functions.awk: Process PchIgnore.
26614 * doc/options.texi: Document PchIgnore.
26615
26616 * config/arc/arc.opt (misize): Add PchIgnore property.
26617
26618 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26619
26620 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26621 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26622 constraint on constants to permit them being loaded into
26623 GENERAL_REGS or BASE_REGS.
26624
26625 2014-03-03 Nick Clifton <nickc@redhat.com>
26626
26627 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26628 anti-cacnonical alternatives.
26629 (negandhi3_real): New pattern.
26630 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26631
26632 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26633
26634 * config/avr/avr-mcus.def: Remove atxmega16x1.
26635 * config/avr/avr-tables.opt: Regenerate.
26636 * config/avr/t-multilib: Regenerate.
26637 * doc/avr-mmcu.texi: Regenerate.
26638
26639 2014-03-03 Tobias Grosser <tobias@grosser.es>
26640 Mircea Namolaru <mircea.namolaru@inria.fr>
26641
26642 PR tree-optimization/58028
26643 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26644 scalar dimensions.
26645
26646 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26647
26648 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26649 not handled by recognizers.
26650
26651 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26652
26653 PR middle-end/60175
26654 * function.c (expand_function_end): Don't emit
26655 clobber_return_register sequence if clobber_after is a BARRIER.
26656 * cfgexpand.c (construct_exit_block): Append instructions before
26657 return_label to prev_bb.
26658
26659 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26660
26661 * config/rs6000/constraints.md: Document reserved use of "wc".
26662
26663 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26664
26665 PR ipa/60150
26666 * ipa.c (function_and_variable_visibility): When dissolving comdat
26667 group, also set all symbols to local.
26668
26669 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26670
26671 PR ipa/60306
26672
26673 Revert:
26674 2013-12-14 Jan Hubicka <jh@suse.cz>
26675 PR middle-end/58477
26676 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26677
26678 2014-03-02 Jon Beniston <jon@beniston.com>
26679
26680 PR bootstrap/48230
26681 PR bootstrap/50927
26682 PR bootstrap/52466
26683 PR target/46898
26684 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26685 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26686 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26687 (simple_return, *simple_return): New patterns
26688 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26689 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26690
26691 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26692
26693 * dwarf2out.c (gen_subprogram_die): Tidy.
26694
26695 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26696
26697 PR target/60071
26698 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26699 (*mov_t_msb_neg_negc): ... this new insn.
26700
26701 2014-02-28 Jason Merrill <jason@redhat.com>
26702
26703 PR c++/58678
26704 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26705 function.
26706
26707 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26708
26709 PR c++/60314
26710 * dwarf2out.c (decltype_auto_die): New static.
26711 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26712 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26713 (is_cxx_auto): Likewise.
26714
26715 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26716
26717 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26718 we are not using general regs only.
26719
26720 2014-02-28 Richard Biener <rguenther@suse.de>
26721
26722 PR target/60280
26723 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26724 previous fix and only allow to remove trivial pre-headers
26725 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26726 (remove_forwarder_block): Properly update the latch of a loop.
26727
26728 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26729
26730 PR debug/59992
26731 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26732 (cselib_preserved_hash_table): New.
26733 (preserve_constants_and_equivs): Move preserved vals to it.
26734 (cselib_find_slot): Look it up first.
26735 (cselib_init): Initialize it.
26736 (cselib_finish): Release it.
26737 (dump_cselib_table): Dump it.
26738
26739 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26740
26741 PR debug/59992
26742 * cselib.c (remove_useless_values): Skip to avoid quadratic
26743 behavior if the condition moved from...
26744 (cselib_process_insn): ... here holds.
26745
26746 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26747
26748 PR debug/57232
26749 * var-tracking.c (vt_initialize): Apply the same condition to
26750 preserve the CFA base value.
26751
26752 2014-02-28 Joey Ye <joey.ye@arm.com>
26753
26754 PR target/PR60169
26755 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26756 if reload in progress or completed.
26757
26758 2014-02-28 Tobias Burnus <burnus@net-b.de>
26759
26760 PR middle-end/60147
26761 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26762 NAMELIST_DECL.
26763
26764 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26765
26766 * doc/tm.texi.in (Condition Code Status): Update documention for
26767 relative locations of cc0-setter and cc0-user.
26768
26769 2014-02-27 Jeff Law <law@redhat.com>
26770
26771 PR rtl-optimization/52714
26772 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26773 into two independent simple sets, if I3 is a jump, ensure the
26774 pattern we place into I3 is a (set (pc) ...).
26775
26776 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26777 Jeff Law <law@redhat.com>
26778
26779 PR rtl-optimization/49847
26780 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26781 are in different blocks.
26782 * doc/tm.texi (Condition Code Status): Update documention for
26783 relative locations of cc0-setter and cc0-user.
26784
26785 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26786
26787 PR target/59222
26788 * lra.c (lra_emit_add): Check SUBREG too.
26789
26790 2014-02-27 Andreas Schwab <schwab@suse.de>
26791
26792 * config/m68k/m68k.c (m68k_option_override): Disable
26793 -flive-range-shrinkage for classic m68k.
26794 (m68k_override_options_after_change): Likewise.
26795
26796 2014-02-27 Marek Polacek <polacek@redhat.com>
26797
26798 PR middle-end/59223
26799 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26800 -Wmaybe-uninitialized.
26801
26802 2014-02-27 Alan Modra <amodra@gmail.com>
26803
26804 PR target/57936
26805 * reload1.c (emit_input_reload_insns): When reload_override_in,
26806 set old to rl->in_reg when rl->in_reg is a subreg.
26807
26808 2014-02-26 Richard Biener <rguenther@suse.de>
26809
26810 PR bootstrap/60343
26811 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26812
26813 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26814
26815 * common/config/i386/predicates.md (const1256_operand): Remove.
26816 (const2356_operand): New.
26817 (const_1_to_2_operand): Remove.
26818 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26819 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26820 (*avx512pf_gatherpf<mode>sf): Ditto.
26821 (avx512pf_gatherpf<mode>df): Ditto.
26822 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26823 (*avx512pf_gatherpf<mode>df): Ditto.
26824 (avx512pf_scatterpf<mode>sf): Ditto.
26825 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26826 (*avx512pf_scatterpf<mode>sf): Ditto.
26827 (avx512pf_scatterpf<mode>df): Ditto.
26828 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26829 (*avx512pf_scatterpf<mode>df): Ditto.
26830 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26831
26832 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26833
26834 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26835 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26836 (_mm512_mask_testn_epi64_mask): Move to ...
26837 * config/i386/avx512cdintrin.h: Here.
26838 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26839 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26840 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26841 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26842 TARGET_AVX512F from TARGET_AVX512CD.
26843
26844 2014-02-26 Richard Biener <rguenther@suse.de>
26845
26846 PR ipa/60327
26847 * ipa.c (walk_polymorphic_call_targets): Properly guard
26848 call to inline_update_overall_summary.
26849
26850 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26851
26852 PR target/60280
26853 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26854 and latches only if requested. Fix latch if it is removed.
26855 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26856 LOOPS_HAVE_PREHEADERS.
26857
26858 2014-02-25 Andrew Pinski <apinski@cavium.com>
26859
26860 * builtins.c (expand_builtin_thread_pointer): Create a new target
26861 when the target is NULL.
26862
26863 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26864
26865 PR rtl-optimization/60317
26866 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26867 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26868 * lra-assigns.c: Include params.h.
26869 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26870 other reload pseudos considerations.
26871
26872 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26873
26874 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26875 to use canonical form for nor<mode>3.
26876
26877 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26878
26879 PR target/55426
26880 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26881 conversions.
26882
26883 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26884
26885 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26886 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26887 (ix86_handle_option): Handle OPT_mprefetchwt1.
26888 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26889 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26890 PREFETCHWT1 CPUID.
26891 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26892 OPTION_MASK_ISA_PREFETCHWT1.
26893 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26894 (PTA_PREFETCHWT1): New.
26895 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26896 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26897 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26898 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26899 (*prefetch_avx512pf_<mode>_: Change into ...
26900 (*prefetch_prefetchwt1_<mode>: This.
26901 * config/i386/i386.opt (mprefetchwt1): New.
26902 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26903 (_mm_prefetch): Handle intent to write.
26904 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26905
26906 2014-02-25 Richard Biener <rguenther@suse.de>
26907
26908 PR middle-end/60291
26909 * emit-rtl.c (mem_attrs_htab): Remove.
26910 (mem_attrs_htab_hash): Likewise.
26911 (mem_attrs_htab_eq): Likewise.
26912 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26913 (init_emit_once): Do not allocate mem_attrs_htab.
26914
26915 2014-02-25 Richard Biener <rguenther@suse.de>
26916
26917 PR lto/60319
26918 * lto-opts.c (lto_write_options): Output non-explicit conservative
26919 -fwrapv, -fno-trapv and -fno-strict-overflow.
26920 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26921 (run_gcc): And pass them through.
26922
26923 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26924
26925 * sel-sched.c (calculate_new_fences): New parameter ptime.
26926 Calculate it as a maximum over all fence cycles.
26927 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26928 Print the final schedule timing when sched_verbose.
26929
26930 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26931
26932 PR rtl-optimization/60292
26933 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26934 bit fot the fence instruction.
26935
26936 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26937
26938 * calls.h: Fix typo in comment.
26939
26940 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26941
26942 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26943 adjusting offsetable addresses.
26944
26945 2014-02-24 Guozhi Wei <carrot@google.com>
26946
26947 * sparseset.h (sparseset_pop): Fix the wrong index.
26948
26949 2014-02-24 Walter Lee <walt@tilera.com>
26950
26951 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26952 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26953 triplet.
26954 * common/config/tilegx/tilegx-common.c
26955 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26956 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26957 (LINK_SPEC): Ditto.
26958 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26959 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26960 (tilegx_gimplify_va_arg_expr): Handle big endian.
26961 (tilegx_expand_unaligned_load): Ditto.
26962 (tilegx_expand_unaligned_store): Ditto.
26963 (TARGET_RETURN_IN_MSB): New.
26964 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26965 (TARGET_ENDIAN_DEFAULT): New.
26966 (TARGET_BIG_ENDIAN): Handle big endian.
26967 (BYTES_BIG_ENDIAN): Ditto.
26968 (WORDS_BIG_ENDIAN): Ditto.
26969 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26970 (ENDIAN_SPEC): New.
26971 (EXTRA_SPECS): New.
26972 * config/tilegx/tilegx.md (extv): Handle big endian.
26973 (extzv): Ditto.
26974 (insn_st<n>): Ditto.
26975 (insn_st<n>_add<bitsuffix>): Ditto.
26976 (insn_stnt<n>): Ditto.
26977 (insn_stnt<n>_add<bitsuffix>):Ditto.
26978 (vec_interleave_highv8qi): Handle big endian.
26979 (vec_interleave_highv8qi_be): New.
26980 (vec_interleave_highv8qi_le): New.
26981 (insn_v1int_h): Handle big endian.
26982 (vec_interleave_lowv8qi): Handle big endian.
26983 (vec_interleave_lowv8qi_be): New.
26984 (vec_interleave_lowv8qi_le): New.
26985 (insn_v1int_l): Handle big endian.
26986 (vec_interleave_highv4hi): Handle big endian.
26987 (vec_interleave_highv4hi_be): New.
26988 (vec_interleave_highv4hi_le): New.
26989 (insn_v2int_h): Handle big endian.
26990 (vec_interleave_lowv4hi): Handle big endian.
26991 (vec_interleave_lowv4hi_be): New.
26992 (vec_interleave_lowv4hi_le): New.
26993 (insn_v2int_l): Handle big endian.
26994 (vec_interleave_highv2si): Handle big endian.
26995 (vec_interleave_highv2si_be): New.
26996 (vec_interleave_highv2si_le): New.
26997 (insn_v4int_h): Handle big endian.
26998 (vec_interleave_lowv2si): Handle big endian.
26999 (vec_interleave_lowv2si_be): New.
27000 (vec_interleave_lowv2si_le): New.
27001 (insn_v4int_l): Handle big endian.
27002 * config/tilegx/tilegx.opt (mbig-endian): New option.
27003 (mlittle-endian): New option.
27004 * doc/install.texi: Document tilegxbe-linux.
27005 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27006
27007 2014-02-24 Martin Jambor <mjambor@suse.cz>
27008
27009 PR ipa/60266
27010 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27011 there are no parameter descriptors.
27012
27013 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
27014
27015 PR rtl-optimization/60268
27016 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27017 initialization to ...
27018 (sched_rgn_init): ... here.
27019 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27020
27021 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27022
27023 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27024 names.
27025
27026 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27027
27028 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27029 definition.
27030
27031 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27032
27033 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27034 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27035
27036 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27037
27038 * config/microblaze/predicates.md: Add cmp_op predicate.
27039 * config/microblaze/microblaze.md: Add branch_compare instruction
27040 which uses cmp_op predicate and emits cmp insn before branch.
27041 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27042 to microblaze_expand_conditional_branch and consolidate logic.
27043 (microblaze_expand_conditional_branch): emit branch_compare
27044 insn instead of handling cmp op separate from branch insn.
27045
27046 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27047
27048 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27049 to permit subregs.
27050
27051 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27052
27053 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27054 define_insn with define_expand and new define_insn
27055 *altivec_lve<VI_char>x_internal.
27056 (altivec_stve<VI_char>x): Replace define_insn with define_expand
27057 and new define_insn *altivec_stve<VI_char>x_internal.
27058 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27059 prototype.
27060 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27061 lve*x built-ins.
27062 (altivec_expand_stvex_be): New function.
27063
27064 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27065
27066 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27067 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27068 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27069 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27070
27071 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27072
27073 PR target/60298
27074 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27075 instead of emit_move_insn.
27076
27077 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27078
27079 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27080 vspltw with vsldoi.
27081 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27082 gen_altivec_vsumsws.
27083
27084 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27085
27086 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27087 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27088 (altivec_lvxl_<mode>): New define_expand incorporating
27089 -maltivec=be semantics where needed.
27090 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27091 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27092 semantics where needed.
27093 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27094 (altivec_stvx_<mode>): New define_expand incorporating
27095 -maltivec=be semantics where needed.
27096 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27097 VM2 iterator instead of V4SI.
27098 (altivec_stvxl_<mode>): New define_expand incorporating
27099 -maltivec=be semantics where needed.
27100 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27101 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27102 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27103 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27104 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27105 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27106 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27107 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27108 ALTIVEC_BUILTIN_STVXL.
27109 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27110 (altivec_expand_stvx_be): Likewise.
27111 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27112 (altivec_expand_lvx_be): Likewise.
27113 (altivec_expand_stvx_be): Likewise.
27114 (altivec_expand_builtin): Add cases for
27115 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27116 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27117 (altivec_init_builtins): Add definitions for
27118 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27119 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27120
27121 2014-02-21 Catherine Moore <clm@codesourcery.com>
27122
27123 * doc/invoke.texi (mvirt, mno-virt): Document.
27124 * config/mips/mips.opt (mvirt): New option.
27125 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27126
27127 2014-02-21 Richard Biener <rguenther@suse.de>
27128
27129 PR tree-optimization/60276
27130 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27131 (STMT_VINFO_MIN_NEG_DIST): New macro.
27132 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27133 STMT_VINFO_MIN_NEG_DIST.
27134 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27135 made for negative dependence distances still hold.
27136
27137 2014-02-21 Richard Biener <rguenther@suse.de>
27138
27139 PR middle-end/60291
27140 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27141 DECL_INITIAL for globals not in the current function context.
27142
27143 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27144
27145 PR tree-optimization/56490
27146 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27147 * tree-ssa-uninit.c: Include params.h.
27148 (compute_control_dep_chain): Add num_calls argument, return false
27149 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27150 num_calls to recursive call.
27151 (find_predicates): Change dep_chain into normal array,
27152 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27153 variable and adjust compute_control_dep_chain caller.
27154 (find_def_preds): Likewise.
27155
27156 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27157
27158 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27159 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27160
27161 2014-02-21 Nick Clifton <nickc@redhat.com>
27162
27163 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27164 (pushhi1): Likewise.
27165 (popqi1): Add mode to pre_dec.
27166 (pophi1): Likewise.
27167
27168 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27169
27170 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27171 mode for mask of V8SFmode permutation.
27172
27173 2014-02-20 Richard Henderson <rth@redhat.com>
27174
27175 PR c++/60272
27176 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27177 a new pseudo for OLDVAL.
27178
27179 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27180
27181 PR target/57896
27182 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27183 gen_reg_rtx if d->testing_p.
27184 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27185 if d->testing_p and we will certainly return true.
27186 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27187 if d->testing_p.
27188
27189 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27190
27191 * emit-rtl.c (gen_reg_rtx): Assert that
27192 crtl->emit.regno_pointer_align_length is non-zero.
27193
27194 2014-02-20 Richard Henderson <rth@redhat.com>
27195
27196 PR c++/60272
27197 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27198 on failure the store back into EXPECT.
27199
27200 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27201 Sandra Loosemore <sandra@codesourcery.com>
27202
27203 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27204 * config/nios2/nios2.c (nios2_function_profiler): Add
27205 -fPIC (flag_pic == 2) support.
27206 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27207 (nios2_large_offset_p): New function.
27208 (nios2_unspec_reloc_p): Move up position, update to use
27209 nios2_large_offset_p.
27210 (nios2_unspec_address): Remove function.
27211 (nios2_unspec_offset): New function.
27212 (nios2_large_got_address): New function.
27213 (nios2_got_address): Add large offset support.
27214 (nios2_legitimize_tls_address): Update usage of removed and new
27215 functions.
27216 (nios2_symbol_binds_local_p): New function.
27217 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27218 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27219 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27220 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27221 processing for (const (unspec ...)).
27222 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27223
27224 2014-02-20 Richard Biener <rguenther@suse.de>
27225
27226 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27227 doing the substitution.
27228 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27229
27230 2014-02-20 Martin Jambor <mjambor@suse.cz>
27231
27232 PR ipa/55260
27233 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27234 info when checking whether lattices are bottom.
27235
27236 2014-02-20 Richard Biener <rguenther@suse.de>
27237
27238 PR middle-end/60221
27239 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27240 regions at -O0.
27241
27242 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27243
27244 PR ipa/58555
27245 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27246 parameter specifying the scaling.
27247 (inline_call): Update.
27248 (want_inline_recursively): Guard division by zero.
27249 (recursive_inlining): Update.
27250 * ipa-inline.h (clone_inlined_nodes): Update.
27251
27252 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27253
27254 PR target/60204
27255 * config/i386/i386.c (classify_argument): Pass structures of size
27256 64 bytes or less in register.
27257
27258 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27259 Kirill Yukhin <kirill.yukhin@intel.com>
27260
27261 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27262 (_mm_rcp28_round_ss): Ditto.
27263 (_mm_rsqrt28_round_sd): Ditto.
27264 (_mm_rsqrt28_round_ss): Ditto.
27265 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27266 (_mm_rcp14_round_ss): Ditto.
27267 (_mm_rsqrt14_round_sd): Ditto.
27268 (_mm_rsqrt14_round_ss): Ditto.
27269 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27270 the first input operand, get rid of match_dup.
27271 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27272 attribute to sse.
27273 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27274 Ditto.
27275 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27276 operand as the first input operand, set type attribute.
27277 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27278 Set type attribute.
27279 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27280 operand as the first input operand, set type attribute.
27281
27282 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27283
27284 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27285 bit of zero.
27286
27287 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27288
27289 PR target/60207
27290 * config/i386/i386.c (construct_container): Remove TFmode check
27291 for X86_64_INTEGER_CLASS.
27292
27293 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27294
27295 PR target/59794
27296 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27297 only when -Wpsabi is enabled.
27298
27299 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27300
27301 PR target/59799
27302 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27303 passing arrays in registers are the same as for structs, so remove the
27304 special case for them.
27305
27306 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27307
27308 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27309 destination type, extract only the valid bits if the source type is not
27310 integral and has a different mode.
27311
27312 2014-02-19 Richard Biener <rguenther@suse.de>
27313
27314 PR ipa/60243
27315 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27316 for all calls.
27317
27318 2014-02-19 Richard Biener <rguenther@suse.de>
27319
27320 PR ipa/60243
27321 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27322 (ipa_modify_call_arguments): Emit an argument load explicitely and
27323 preserve virtual SSA form there and for the replacement call.
27324 Do not update SSA form nor free dominance info.
27325
27326 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27327
27328 * ipa.c (function_and_variable_visibility): Also clear WEAK
27329 flag when disolving COMDAT_GROUP.
27330
27331 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27332
27333 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27334 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27335 not devirtualizing.
27336 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27337 do more sanity checks.
27338 (detect_type_change): Return true when giving up early.
27339 (compute_complex_assign_jump_func): Fix type parameter of
27340 ipa_set_ancestor_jf.
27341 (compute_complex_ancestor_jump_func): Likewise.
27342 (update_jump_functions_after_inlining): Fix updating of
27343 ancestor function.
27344 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27345
27346 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27347
27348 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27349 inline clones when edge disappears.
27350
27351 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27352
27353 PR target/60203
27354 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27355 Split 64-bit moves into 2 patterns. Do not allow the use of
27356 direct move for TDmode in little endian, since the decimal value
27357 has little endian bytes within a word, but the 64-bit pieces are
27358 ordered in a big endian fashion, and normal subreg's of TDmode are
27359 not allowed.
27360 (mov<mode>_64bit_dm): Likewise.
27361 (movtd_64bit_nodm): Likewise.
27362
27363 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27364
27365 PR tree-optimization/60174
27366 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27367 statement of an SSA_NAME that occurs in an abnormal PHI node.
27368
27369 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27370
27371 PR sanitizer/60142
27372 * final.c (SEEN_BB): Remove.
27373 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27374 (final_scan_insn): Don't force_source_line on second
27375 NOTE_INSN_BASIC_BLOCK.
27376
27377 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27378
27379 PR target/60205
27380 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27381 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27382 (type_natural_mode): Warn ABI change when %zmm register is not
27383 available for AVX512F vector value passing.
27384
27385 2014-02-18 Kai Tietz <ktietz@redhat.com>
27386
27387 PR target/60193
27388 * config/i386/i386.c (ix86_expand_prologue): Use value in
27389 rax register as displacement when restoring %r10 or %rax.
27390 Fix wrong offset when restoring both registers.
27391
27392 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27393
27394 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27395 assertion with conditional return.
27396
27397 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27398 Uros Bizjak <ubizjak@gmail.com>
27399
27400 PR driver/60233
27401 * config/i386/driver-i386.c (host_detect_local_cpu): If
27402 YMM state is not saved by the OS, also clear has_f16c. Move
27403 CPUID 0x80000001 handling before YMM state saving checking.
27404
27405 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27406
27407 PR rtl-optimization/58960
27408 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27409 factored out from ...
27410 (sched_init): ... here.
27411 (free_global_sched_pressure_data): New, factored out from ...
27412 (sched_finish): ... here.
27413 * sched-int.h (free_global_sched_pressure_data): Declare.
27414 * sched-rgn.c (nr_regions_initial): New static global.
27415 (haifa_find_rgns): Initialize it.
27416 (schedule_region): Disable sched-pressure for the newly
27417 generated regions.
27418
27419 2014-02-17 Richard Biener <rguenther@suse.de>
27420
27421 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27422 release SSA defs of pattern stmts.
27423
27424 2014-02-17 Richard Biener <rguenther@suse.de>
27425
27426 * tree-inline.c (expand_call_inline): Release the virtual
27427 operand defined by the call we are about to inline.
27428
27429 2014-02-17 Richard Biener <rguenther@suse.de>
27430
27431 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27432
27433 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27434 Ilya Tocar <ilya.tocar@intel.com>
27435
27436 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27437 arguments order in builtin.
27438 (_mm512_permutexvar_epi64): Ditto.
27439 (_mm512_mask_permutexvar_epi64): Ditto
27440 (_mm512_maskz_permutexvar_epi32): Ditto
27441 (_mm512_permutexvar_epi32): Ditto
27442 (_mm512_mask_permutexvar_epi32): Ditto
27443
27444 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27445
27446 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27447 (p8_vmrgow): Likewise.
27448
27449 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27450
27451 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27452 endian targets.
27453
27454 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27455
27456 PR target/60203
27457 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27458 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27459 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27460 using direct move instructions on ISA 2.07. Also adjust
27461 instruction length for 64-bit.
27462 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27463 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27464
27465 2014-02-15 Alan Modra <amodra@gmail.com>
27466
27467 PR target/58675
27468 PR target/57935
27469 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27470 find_replacement on parts of insn rtl that might be reloaded.
27471
27472 2014-02-15 Richard Biener <rguenther@suse.de>
27473
27474 PR tree-optimization/60183
27475 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27476 (tree_ssa_phiprop): Calculate and free post-dominators.
27477
27478 2014-02-14 Jeff Law <law@redhat.com>
27479
27480 PR rtl-optimization/60131
27481 * ree.c (get_extended_src_reg): New function.
27482 (combine_reaching_defs): Use it rather than assuming location of REG.
27483 (find_and_remove_re): Verify first operand of extension is
27484 a REG before adding the insns to the copy list.
27485
27486 2014-02-14 Roland McGrath <mcgrathr@google.com>
27487
27488 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27489 * configure: Regenerated.
27490 * config.in: Regenerated.
27491 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27492 instead of ASM_SHORT.
27493
27494 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27495 Richard Earnshaw <rearnsha@arm.com>
27496
27497 PR rtl-optimization/59535
27498 * lra-constraints.c (process_alt_operands): Encourage alternative
27499 when unassigned pseudo class is superset of the alternative class.
27500 (inherit_reload_reg): Don't inherit when optimizing for code size.
27501 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27502 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27503 modes not less than 4 for Thumb1.
27504
27505 2014-02-14 Kyle McMartin <kyle@redhat.com>
27506
27507 PR pch/60010
27508 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27509
27510 2014-02-14 Richard Biener <rguenther@suse.de>
27511
27512 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27513 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27514 Do not strip INDIRECT_REFs.
27515
27516 2014-02-14 Richard Biener <rguenther@suse.de>
27517
27518 PR lto/60179
27519 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27520 DECL_FUNCTION_SPECIFIC_TARGET.
27521 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27522 * tree-streamer-out.c (pack_ts_target_option): Remove.
27523 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27524 (write_ts_function_decl_tree_pointers): Do not stream
27525 DECL_FUNCTION_SPECIFIC_TARGET.
27526 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27527 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27528 (lto_input_ts_function_decl_tree_pointers): Do not stream
27529 DECL_FUNCTION_SPECIFIC_TARGET.
27530
27531 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27532
27533 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27534 (get_initial_def_for_induction, vectorizable_induction): Ignore
27535 debug stmts when looking for exit_phi.
27536 (vectorizable_live_operation): Fix up condition.
27537
27538 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27539
27540 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27541 nreverse() because it changes the content of original tree list.
27542
27543 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27544
27545 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27546 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27547
27548 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27549
27550 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27551 GNU coding standards.
27552
27553 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27554
27555 PR debug/60152
27556 * dwarf2out.c (gen_subprogram_die): Don't call
27557 add_calling_convention_attribute if subr_die is old_die.
27558
27559 2014-02-13 Sharad Singhai <singhai@google.com>
27560
27561 * doc/optinfo.texi: Fix order of nodes.
27562
27563 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27564
27565 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27566 operands[2], not operands[3].
27567
27568 2014-02-13 Richard Biener <rguenther@suse.de>
27569
27570 PR bootstrap/59878
27571 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27572 mention the possibility of an in-tree build.
27573 (CLooG): Update recommended version to 0.18.1, mention the
27574 possibility of an in-tree build and clarify that the ISL
27575 bundled with CLooG does not work.
27576
27577 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27578
27579 PR target/43546
27580 * expr.c (compress_float_constant): If x is a hard register,
27581 extend into a pseudo and then move to x.
27582
27583 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27584
27585 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27586 caused by bad second argument to warning_at() with -mhotpatch and
27587 nested functions (e.g. with gfortran).
27588
27589 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27590
27591 * opts.c (option_name): Remove "enabled by default" rider.
27592
27593 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27594
27595 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27596
27597 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27598 Uros Bizjak <ubizjak@gmail.com>
27599
27600 PR target/60151
27601 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27602 * configure: Regenerated.
27603
27604 2014-02-12 Richard Biener <rguenther@suse.de>
27605
27606 * vec.c (vec_prefix::calculate_allocation): Move as
27607 inline variant to vec.h.
27608 (vec_prefix::calculate_allocation_1): New out-of-line version.
27609 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27610 (vec_prefix::m_has_auto_buf): Rename to ...
27611 (vec_prefix::m_using_auto_storage): ... this.
27612 (vec_prefix::calculate_allocation): Inline the easy cases
27613 and dispatch to calculate_allocation_1 which doesn't need the
27614 prefix address.
27615 (va_heap::reserve): Use gcc_checking_assert.
27616 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27617 m_using_auto_storage.
27618 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27619 member and adjust.
27620 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27621 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27622 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27623
27624 2014-02-12 Richard Biener <rguenther@suse.de>
27625
27626 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27627 when we found a dependence.
27628
27629 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27630
27631 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27632 common code...
27633 (maybe_fold_stmt): ... into this new function.
27634 * omp-low.c (lower_omp): Update comment.
27635
27636 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27637 last use.
27638
27639 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27640 dereference.
27641
27642 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27643
27644 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27645 identifiers in comments.
27646 (cortexa53_extra_costs): Likewise.
27647 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27648 (cortexa7_extra_costs): Likewise.
27649 (cortexa12_extra_costs): Likewise.
27650 (cortexa15_extra_costs): Likewise.
27651 (v7m_extra_costs): Likewise.
27652
27653 2014-02-12 Richard Biener <rguenther@suse.de>
27654
27655 PR middle-end/60092
27656 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27657 of posix_memalign being successful.
27658 (lower_stmt): Restrict lowering of posix_memalign to when
27659 -ftree-bit-ccp is enabled.
27660
27661 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27662
27663 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27664 arg_loc.
27665 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27666
27667 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27668
27669 PR rtl-optimization/60116
27670 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27671 other_insn once the combination has been validated.
27672
27673 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27674
27675 PR lto/59468
27676 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27677 and wrapper.
27678 * ipa-devirt.c: Include demangle.h
27679 (odr_violation_reported): New static variable.
27680 (add_type_duplicate): Update odr_violations.
27681 (maybe_record_node): Add completep parameter; update it.
27682 (record_target_from_binfo): Add COMPLETEP parameter;
27683 update it as needed.
27684 (possible_polymorphic_call_targets_1): Likewise.
27685 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27686 rename FINAL to COMPLETE.
27687 (record_targets_from_bases): Sanity check we found the binfo;
27688 fix COMPLETEP updating.
27689 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27690 parameter, fix computing of COMPLETEP.
27691 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27692 at LTO time do demangling.
27693 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27694 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27695 parameter.
27696 (gimple_get_virt_method_for_binfo): Likewise.
27697 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27698 gimple_get_virt_method_for_vtable): Update prototypes.
27699
27700 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27701
27702 PR target/49008
27703 * genautomata.c (add_presence_absence): Fix typo with
27704 {final_}presence_list.
27705
27706 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27707
27708 PR target/60137
27709 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27710 for VSX/Altivec vectors that land in GPR registers.
27711
27712 2014-02-11 Richard Henderson <rth@redhat.com>
27713 Jakub Jelinek <jakub@redhat.com>
27714
27715 PR debug/59776
27716 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27717 around drhs if type conversion to lacc->type is not useless.
27718
27719 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27720
27721 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27722 tuning struct.
27723 (cortex-a57.cortex-a53): Likewise.
27724 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27725
27726 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27727
27728 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27729 arm_restrict_it.
27730
27731 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27732
27733 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27734 add_options_for_arm_vfp3.
27735
27736 2014-02-11 Jeff Law <law@redhat.com>
27737
27738 PR middle-end/54041
27739 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27740 object with an undesirable mode.
27741
27742 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27743
27744 PR libgomp/60107
27745 * config/i386/sol2-9.h: New file.
27746 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27747 *-*-solaris2.9*): Use it.
27748
27749 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27750
27751 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27752 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27753
27754 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27755
27756 * config/microblaze/microblaze.c: Extend mcpu version format
27757
27758 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27759
27760 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27761
27762 2014-02-10 Richard Henderson <rth@redhat.com>
27763
27764 PR target/59927
27765 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27766 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27767 ms-abi vs -mno-accumulate-outgoing-args.
27768 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27769 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27770 respect to ms-abi.
27771
27772 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27773
27774 PR middle-end/60080
27775 * cfgexpand.c (expand_asm_operands): Attach source location to
27776 ASM_INPUT rtx objects.
27777 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27778
27779 2014-02-10 Nick Clifton <nickc@redhat.com>
27780
27781 * config/mn10300/mn10300.c (popcount): New function.
27782 (mn10300_expand_prologue): Include saved registers in stack usage
27783 count.
27784
27785 2014-02-10 Jeff Law <law@redhat.com>
27786
27787 PR middle-end/52306
27788 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27789 when changing the SET_DEST of a prior insn to avoid an input reload.
27790
27791 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27792
27793 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27794 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27795 -mcall-openbsd, or -mcall-linux.
27796 (CC1_ENDIAN_BIG_SPEC): Remove.
27797 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27798 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27799 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27800 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27801 and %cc1_endian_default.
27802 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27803
27804 2014-02-10 Richard Biener <rguenther@suse.de>
27805
27806 PR tree-optimization/60115
27807 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27808 MEM_REF handling. Properly verify that the accesses are not
27809 out of the objects bound.
27810
27811 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27812
27813 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27814 coretex to cortex.
27815
27816 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27817
27818 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27819 proper constants and fix formatting.
27820 (possible_polymorphic_call_targets): Fix formatting.
27821
27822 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27823 Ilya Tocar <ilya.tocar@intel.com>
27824
27825 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27826 (_mm512_loadu_epi32): Renamed into...
27827 (_mm512_loadu_si512): This.
27828 (_mm512_storeu_epi32): Renamed into...
27829 (_mm512_storeu_si512): This.
27830 (_mm512_maskz_ceil_ps): Removed.
27831 (_mm512_maskz_ceil_pd): Ditto.
27832 (_mm512_maskz_floor_ps): Ditto.
27833 (_mm512_maskz_floor_pd): Ditto.
27834 (_mm512_floor_round_ps): Ditto.
27835 (_mm512_floor_round_pd): Ditto.
27836 (_mm512_ceil_round_ps): Ditto.
27837 (_mm512_ceil_round_pd): Ditto.
27838 (_mm512_mask_floor_round_ps): Ditto.
27839 (_mm512_mask_floor_round_pd): Ditto.
27840 (_mm512_mask_ceil_round_ps): Ditto.
27841 (_mm512_mask_ceil_round_pd): Ditto.
27842 (_mm512_maskz_floor_round_ps): Ditto.
27843 (_mm512_maskz_floor_round_pd): Ditto.
27844 (_mm512_maskz_ceil_round_ps): Ditto.
27845 (_mm512_maskz_ceil_round_pd): Ditto.
27846 (_mm512_expand_pd): Ditto.
27847 (_mm512_expand_ps): Ditto.
27848 * config/i386/i386.c (ix86_builtins): Remove
27849 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27850 (bdesc_args): Ditto.
27851 * config/i386/predicates.md (const1256_operand): New.
27852 (const_1_to_2_operand): Ditto.
27853 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27854 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27855 (*avx512pf_gatherpf<mode>sf): Ditto.
27856 (avx512pf_gatherpf<mode>df): Ditto.
27857 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27858 (*avx512pf_gatherpf<mode>df): Ditto.
27859 (avx512pf_scatterpf<mode>sf): Ditto.
27860 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27861 (*avx512pf_scatterpf<mode>sf): Ditto.
27862 (avx512pf_scatterpf<mode>df): Ditto.
27863 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27864 (*avx512pf_scatterpf<mode>df): Ditto.
27865 (avx512f_expand<mode>): Removed.
27866 (<shift_insn><mode>3<mask_name>): Change predicate type.
27867
27868 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27869
27870 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27871 not at the end of datarefs vector use ordered_remove to avoid
27872 reordering datarefs vector.
27873
27874 PR c/59984
27875 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27876 mark local addressable non-static vars as GOVD_PRIVATE
27877 instead of GOVD_LOCAL.
27878 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27879 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27880 than copying them.
27881
27882 PR middle-end/60092
27883 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27884 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27885 assume_aligned or alloc_align attributes.
27886 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27887 arguments. Handle also assume_aligned and alloc_align attributes.
27888 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27889 calls to functions with assume_aligned or alloc_align attributes.
27890 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27891
27892 2014-02-08 Terry Guo <terry.guo@arm.com>
27893
27894 * doc/invoke.texi: Document ARM -march=armv7e-m.
27895
27896 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27897
27898 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27899 flag on __cilkrts_rethrow builtin.
27900
27901 PR ipa/60026
27902 * ipa-cp.c (determine_versionability): Fail at -O0
27903 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27904 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27905
27906 Revert:
27907 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27908
27909 PR ipa/60026
27910 * tree-inline.c (copy_forbidden): Fail for
27911 __attribute__((optimize (0))) functions.
27912
27913 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27914
27915 * varpool.c: Include pointer-set.h.
27916 (varpool_remove_unreferenced_decls): Variables in other partitions
27917 will not be output; be however careful to not lose information
27918 about partitioning.
27919
27920 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27921
27922 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27923 lookup in the vtable constructor.
27924
27925 2014-02-07 Jeff Law <law@redhat.com>
27926
27927 PR target/40977
27928 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27929 define_insn_and_split.
27930
27931 * ipa-inline.c (inline_small_functions): Fix typos.
27932
27933 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27934
27935 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27936 (s390_can_use_return_insn): Declare.
27937 * config/s390/s390.h (EPILOGUE_USES): Define.
27938 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27939 instructions.
27940 (s390_chunkify_start): Handle return JUMP_LABELs.
27941 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27942 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27943 (s390_can_use_return_insn): New functions.
27944 (s390_fix_long_loop_prediction): Handle conditional returns.
27945 (TARGET_SET_UP_BY_PROLOGUE): Define.
27946 * config/s390/s390.md (ANY_RETURN): New code iterator.
27947 (*creturn, *csimple_return, return, simple_return): New patterns.
27948
27949 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27950
27951 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27952 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27953 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27954 REG_CFA_RESTORE list when deciding not to restore a register.
27955
27956 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27957
27958 * config/s390/s390.c: Include tree-pass.h and context.h.
27959 (s390_early_mach): New function, split out from...
27960 (s390_emit_prologue): ...here.
27961 (pass_data_s390_early_mach): New pass structure.
27962 (pass_s390_early_mach): New class.
27963 (s390_option_override): Create and register early_mach pass.
27964 Move to end of file.
27965
27966 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27967
27968 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27969 to match for the exit block.
27970
27971 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27972
27973 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27974 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27975 Reject misaligned operands.
27976
27977 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27978
27979 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27980
27981 2014-02-07 Richard Biener <rguenther@suse.de>
27982
27983 PR middle-end/60092
27984 * gimple-low.c (lower_builtin_posix_memalign): New function.
27985 (lower_stmt): Call it to lower posix_memalign in a way
27986 to make alignment info accessible.
27987
27988 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27989
27990 PR c++/60082
27991 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27992 __builtin_setjmp_receiver.
27993
27994 2014-02-07 Richard Biener <rguenther@suse.de>
27995
27996 PR middle-end/60092
27997 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27998 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27999 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28000 Handle BUILT_IN_POSIX_MEMALIGN.
28001 (find_func_clobbers): Likewise.
28002 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28003 (call_may_clobber_ref_p_1): Likewise.
28004
28005 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28006
28007 PR ipa/59918
28008 * ipa-devirt.c (record_target_from_binfo): Remove overactive
28009 sanity check.
28010
28011 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28012
28013 PR ipa/59469
28014 * lto-cgraph.c (lto_output_node): Use
28015 symtab_get_symbol_partitioning_class.
28016 (lto_output_varpool_node): likewise.
28017 (symtab_get_symbol_partitioning_class): Move here from
28018 lto/lto-partition.c
28019 * cgraph.h (symbol_partitioning_class): Likewise.
28020 (symtab_get_symbol_partitioning_class): Declare.
28021
28022 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28023
28024 * ggc.h (ggc_internal_cleared_alloc): New macro.
28025 * vec.h (vec_safe_copy): Handle memory stats.
28026 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28027 * target-globals.c (save_target_globals): Likewise.
28028
28029 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28030
28031 PR target/60077
28032 * expr.c (emit_move_resolve_push): Export; be bit more selective
28033 on when to clear alias set.
28034 * expr.h (emit_move_resolve_push): Declare.
28035 * function.h (struct function): Add tail_call_marked.
28036 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28037 * config/i386/i386-protos.h (ix86_expand_push): Remove.
28038 * config/i386/i386.md (TImode move expander): De not call
28039 ix86_expand_push.
28040 (FP push expanders): Preserve memory attributes.
28041 * config/i386/sse.md (push<mode>1): Remove.
28042 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28043 (ix86_expand_push): Remove.
28044 * config/i386/mmx.md (push<mode>1): Remove.
28045
28046 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28047
28048 PR rtl-optimization/60030
28049 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28050 lopart with paradoxical subreg before shifting it up by hprec.
28051
28052 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28053
28054 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28055 Remove extra newline at end of file.
28056 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28057 (arm_issue_rate): Handle cortexa57.
28058 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28059 (cortex-a57.cortex-a53): Likewise.
28060
28061 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28062
28063 PR target/59575
28064 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28065 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28066 bitmask.
28067 (arm_expand_prologue): Adjust all callers.
28068 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28069 info, registers also at the lowest numbered registers side. Use
28070 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28071 XEXP.
28072
28073 PR debug/59992
28074 * var-tracking.c (adjust_mems): Before adding a SET to
28075 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28076
28077 2014-02-06 Alan Modra <amodra@gmail.com>
28078
28079 PR target/60032
28080 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28081 change SDmode to DDmode when lra_in_progress.
28082
28083 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28084
28085 PR middle-end/59150
28086 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28087 free_data_ref on the dr first, and before goto again also set dr
28088 to the next dr. For simd_lane_access, free old datarefs[i] before
28089 overwriting it. For get_vectype_for_scalar_type failure, don't
28090 free_data_ref if simd_lane_access.
28091
28092 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28093
28094 PR target/60062
28095 * tree.h (opts_for_fn): New inline function.
28096 (opt_for_fn): Define.
28097 * config/i386/i386.c (ix86_function_regparm): Use
28098 opt_for_fn (decl, optimize) instead of optimize.
28099
28100 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28101
28102 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28103 for SYMBOL_REF in large memory model.
28104
28105 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28106
28107 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28108 and crypto support.
28109 (cortex-a57): Likewise.
28110 (cortex-a57.cortex-a53): Likewise.
28111
28112 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28113 Kugan Vivekanandarajah <kuganv@linaro.org>
28114
28115 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28116 unaligned_access.
28117 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28118
28119 2014-02-06 Richard Biener <rguenther@suse.de>
28120
28121 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28122 set_loop_copy and initialize_original_copy_tables.
28123
28124 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28125
28126 * config/aarch64/aarch64-simd.md
28127 (aarch64_ashr_simddi): Change QI to SI.
28128
28129 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28130 Jakub Jelinek <jakub@redhat.com>
28131
28132 PR middle-end/60013
28133 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28134 of the dataflow.
28135
28136 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28137
28138 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28139 CODE_FOR_altivec_vpku[hw]um to
28140 CODE_FOR_altivec_vpku[hw]um_direct.
28141 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28142 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28143 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28144 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28145
28146 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28147
28148 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28149 generation for -maltivec=be.
28150 (altivec_vsumsws): Simplify redundant test.
28151
28152 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28153
28154 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28155 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28156 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28157 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28158 gen_altivec_vpkuwum.
28159 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28160 BYTES_BIG_ENDIAN.
28161 (altivec_vpks<VI_char>ss): Likewise.
28162 (altivec_vpks<VI_char>us): Likewise.
28163 (altivec_vpku<VI_char>us): Likewise.
28164 (altivec_vpku<VI_char>um): Likewise.
28165 (altivec_vpku<VI_char>um_direct): New (copy of
28166 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28167 internal use).
28168 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28169 target is little endian and -maltivec=be is not specified.
28170 (*altivec_vupkhs<VU_char>_direct): New (copy of
28171 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28172 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28173 target is little endian and -maltivec=be is not specified.
28174 (*altivec_vupkls<VU_char>_direct): New (copy of
28175 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28176 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28177 little endian and -maltivec=be is not specified.
28178 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28179 little endian and -maltivec=be is not specified.
28180
28181 2014-02-05 Richard Henderson <rth@redhat.com>
28182
28183 PR debug/52727
28184 * combine-stack-adj.c: Revert r206943.
28185 * sched-int.h (struct deps_desc): Add last_args_size.
28186 * sched-deps.c (init_deps): Initialize it.
28187 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28188 contain REG_ARGS_SIZE notes.
28189
28190 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28191
28192 * lto-cgraph.c (asm_nodes_output): Make global.
28193 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28194 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28195 (driver_handle_option): Handle OPT_fwpa.
28196
28197 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28198
28199 PR ipa/59947
28200 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28201 a comment typo and formatting issue. If odr_hash hasn't been
28202 created, return vNULL and set *completep to false.
28203
28204 PR middle-end/57499
28205 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28206 bb with no successors.
28207
28208 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28209
28210 PR target/59718
28211 * doc/invoke.texi (-march): Clarify documentation for ARM.
28212 (-mtune): Likewise.
28213 (-mcpu): Likewise.
28214
28215 2014-02-05 Richard Biener <rguenther@suse.de>
28216
28217 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28218 when not vectorizing because of too many alias checks.
28219 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28220 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28221
28222 2014-02-05 Nick Clifton <nickc@redhat.com>
28223
28224 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28225 accept extended registers in any mode when compiling for the MN10300.
28226
28227 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28228
28229 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28230 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28231 sanitization attributes.
28232 (can_inline_edge_p): Likewise.
28233 (sanitize_attrs_match_for_inline_p): New function.
28234
28235 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28236
28237 * ipa-prop.c (detect_type_change): Shor circuit testing of
28238 type changes on THIS pointer.
28239
28240 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28241
28242 PR target/59777
28243 * config/pa/pa.c (legitimize_tls_address): Return original address
28244 if not passed a SYMBOL_REF rtx.
28245 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28246 addresses.
28247 (pa_emit_move_sequence): Simplify TLS source operands.
28248 (pa_legitimate_constant_p): Reject all TLS constants.
28249 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28250 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28251
28252 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28253
28254 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28255 groups when we know they are controlled by LTO.
28256 * varasm.c (default_binds_local_p_1): If object is in other partition,
28257 it will be resolved locally.
28258
28259 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28260
28261 * config/host-linux.c (linux_gt_pch_use_address): Don't
28262 use SSIZE_MAX because it is not always defined.
28263
28264 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28265
28266 PR bootstrap/59913
28267 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28268 threshold for pseudo splitting.
28269 (update_ebb_live_info): Process call argument hard registers and
28270 hard registers from insn definition too.
28271 (max_small_class_regs_num): New constant.
28272 (inherit_in_ebb): Update live hard regs through EBBs. Update
28273 reloads_num only for small register classes. Don't split for
28274 outputs of jumps.
28275
28276 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28277
28278 PR ipa/60058
28279 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28280 is non-null.
28281
28282 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28283
28284 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28285 visibility is safe.
28286
28287 2014-02-04 Marek Polacek <polacek@redhat.com>
28288
28289 * gdbinit.in (pel): Define.
28290
28291 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28292
28293 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28294 behavior.
28295
28296 2014-02-04 Richard Biener <rguenther@suse.de>
28297
28298 PR lto/59723
28299 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28300 in function context local.
28301 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28302 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28303 similar to LTO_imported_decl_ref.
28304
28305 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28306
28307 PR tree-optimization/60002
28308 * cgraphclones.c (build_function_decl_skip_args): Clear
28309 DECL_LANG_SPECIFIC.
28310
28311 PR tree-optimization/60023
28312 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28313 false to gsi_replace.
28314 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28315 has been in some EH region and vec_stmt could throw, add
28316 vec_stmt into the same EH region.
28317 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28318 has no lhs, ignore it.
28319 * internal-fn.c (expand_MASK_LOAD): Likewise.
28320
28321 PR ipa/60026
28322 * tree-inline.c (copy_forbidden): Fail for
28323 __attribute__((optimize (0))) functions.
28324
28325 PR other/58712
28326 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28327 is set, copy one less argument.
28328 (expand_simd_clones): Don't subtract clone_info->inbranch
28329 from simd_clone_struct_alloc argument.
28330
28331 PR rtl-optimization/57915
28332 * recog.c (simplify_while_replacing): If all unary/binary/relational
28333 operation arguments are constant, attempt to simplify those.
28334
28335 PR middle-end/59261
28336 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28337 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28338
28339 2014-02-04 Richard Biener <rguenther@suse.de>
28340
28341 PR tree-optimization/60012
28342 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28343 TBAA disambiguation to all DDRs.
28344
28345 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28346
28347 PR target/59788
28348 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28349 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28350
28351 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28352
28353 PR ipa/59882
28354 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28355
28356 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28357
28358 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28359 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28360
28361 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28362
28363 PR ipa/59831
28364 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28365 to figure out targets of polymorphic calls with known decl.
28366 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28367 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28368 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28369 (get_polymorphic_call_info): ... here.
28370 (get_polymorphic_call_info_from_invariant): New function.
28371
28372 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28373
28374 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28375 lookup via vtable pointer; check for type consistency
28376 and turn inconsitent facts into UNREACHABLE.
28377 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28378 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28379 type inconsistent querries; return UNREACHABLE instead.
28380
28381 2014-02-03 Richard Henderson <rth@twiddle.net>
28382
28383 PR tree-opt/59924
28384 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28385 already processed this node.
28386 (normalize_one_pred_1): Pass along mark_set.
28387 (normalize_one_pred): Create and destroy a pointer_set_t.
28388 (normalize_one_pred_chain): Likewise.
28389
28390 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28391
28392 PR gcov-profile/58602
28393 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28394
28395 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28396
28397 PR ipa/59831
28398 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28399 -fno-devirtualize; try to devirtualize by the knowledge of
28400 virtual table pointer given by aggregate propagation.
28401 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28402 (ipa_print_node_jump_functions): Dump also offset that
28403 is relevant for polymorphic calls.
28404 (determine_known_aggregate_parts): Add arg_type parameter; use it
28405 instead of determining the type from pointer type.
28406 (ipa_compute_jump_functions_for_edge): Update call of
28407 determine_known_aggregate_parts.
28408 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28409 (gimple_get_virt_method_for_binfo): ... here; simplify using
28410 vtable_pointer_value_to_vtable.
28411 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28412 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28413 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28414 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28415 POINTER_PLUS_EXPR.
28416 (vtable_pointer_value_to_binfo): ... here.
28417 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28418
28419 2014-02-03 Teresa Johnson <tejohnson@google.com>
28420
28421 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28422 redef of outer loop index variable.
28423
28424 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28425
28426 PR c++/53017
28427 PR c++/59211
28428 * doc/extend.texi (Function Attributes): Typo.
28429
28430 2014-02-03 Cong Hou <congh@google.com>
28431
28432 PR tree-optimization/60000
28433 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28434 if the vectorized statement is a store. A store statement can only
28435 appear at the end of pattern statements.
28436
28437 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28438
28439 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28440 (ix86_option_override_internal): Default long double to 64-bit for
28441 32-bit Bionic and to 128-bit for 64-bit Bionic.
28442
28443 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28444 TARGET_LONG_DOUBLE_128 is true.
28445 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28446
28447 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28448 (mlong-double-64): Negate -mlong-double-128.
28449 (mlong-double-128): New option.
28450
28451 * config/i386/i386-c.c (ix86_target_macros): Define
28452 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28453
28454 * doc/invoke.texi: Document -mlong-double-128.
28455
28456 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28457
28458 PR rtl-optimization/60024
28459 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28460
28461 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28462
28463 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28464
28465 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28466
28467 PR rtl-optimization/57662
28468 * sel-sched.c (code_motion_path_driver): Do not mark already not
28469 existing blocks in the visiting bitmap.
28470
28471 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28472
28473 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28474 on the insn being emitted.
28475
28476 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28477 Will Deacon <will.deacon@arm.com>
28478
28479 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28480
28481 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28482
28483 * config/arm/arm-tables.opt: Regenerate.
28484
28485 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28486
28487 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28488 for vector types other than V16QImode.
28489 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28490 define_expand, and call altivec_expand_vec_perm_le when producing
28491 code with little endian element order.
28492 (*altivec_vperm_<mode>_internal): New insn having previous
28493 behavior of altivec_vperm_<mode>.
28494 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28495 altivec_expand_vec_perm_le when producing code with little endian
28496 element order.
28497 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28498 behavior of altivec_vperm_<mode>_uns.
28499
28500 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28501
28502 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28503 (altivec_vsumsws): Add handling for -maltivec=be with a little
28504 endian target.
28505 (altivec_vsumsws_direct): New.
28506 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28507 gen_altivec_vsumsws.
28508
28509 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28510
28511 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28512 vtable_pointer_value_to_binfo): New functions.
28513 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28514 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28515
28516 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28517
28518 * config/nios2/nios2.md (load_got_register): Initialize GOT
28519 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28520 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28521
28522 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28523
28524 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28525 preserverd by passthrough, do not propagate the type.
28526
28527 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28528
28529 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28530 (mips_atomic_assign_expand_fenv): New function.
28531 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28532
28533 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28534
28535 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28536 (__builtin_mips_set_fcsr): Likewise.
28537 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28538 MIPS_USI_FTYPE_VOID.
28539 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28540 (mips16_expand_set_fcsr): Likewise.
28541 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28542 (mips16_set_fcsr_stub): Likewise.
28543 (mips16_get_fcsr_one_only_stub): New class.
28544 (mips16_set_fcsr_one_only_stub): Likewise.
28545 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28546 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28547 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28548 (hard_float): New availability predicate.
28549 (mips_builtins): Add get_fcsr and set_fcsr.
28550 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28551 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28552 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28553 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28554 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28555 patterns.
28556
28557 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28558
28559 * config/mips/mips.c (mips_one_only_stub): New class.
28560 (mips_need_mips16_rdhwr_p): Replace with...
28561 (mips16_rdhwr_stub): ...this new variable.
28562 (mips16_stub_call_address): New function.
28563 (mips16_rdhwr_one_only_stub): New class.
28564 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28565 (mips_output_mips16_rdhwr): Delete.
28566 (mips_finish_stub): New function.
28567 (mips_code_end): Use it to handle rdhwr stubs.
28568
28569 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28570
28571 PR target/60017
28572 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28573 when calculating size of integer atomic types.
28574
28575 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28576
28577 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28578
28579 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28580
28581 PR tree-optimization/60003
28582 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28583 * profile.c (branch_prob): Use gimple_call_builtin_p
28584 to check for BUILT_IN_SETJMP_RECEIVER.
28585 * tree-inline.c (copy_bb): Call notice_special_calls.
28586
28587 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28588
28589 PR bootstrap/59985
28590 * lra-constraints.c (process_alt_operands): Update reload_sum only
28591 on the first pass.
28592
28593 2014-01-31 Richard Henderson <rth@redhat.com>
28594
28595 PR middle-end/60004
28596 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28597 until after else_eh is processed.
28598
28599 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28600
28601 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28602 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28603 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28604 in smmintrin.h, remove them.
28605 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28606 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28607 * config/i386/i386.md (ROUND_SAE): Fix value.
28608 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28609 (const48_operand): New.
28610 * config/i386/subst.md (round), (round_expand): Use
28611 const_4_or_8_to_11_operand.
28612 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28613
28614 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28615
28616 * config/i386/constraints.md (Yk): Swap meaning with k.
28617 * config/i386/i386.md (movhi_internal): Change Yk to k.
28618 (movqi_internal): Ditto.
28619 (*k<logic><mode>): Ditto.
28620 (*andhi_1): Ditto.
28621 (*andqi_1): Ditto.
28622 (kandn<mode>): Ditto.
28623 (*<code>hi_1): Ditto.
28624 (*<code>qi_1): Ditto.
28625 (kxnor<mode>): Ditto.
28626 (kortestzhi): Ditto.
28627 (kortestchi): Ditto.
28628 (kunpckhi): Ditto.
28629 (*one_cmplhi2_1): Ditto.
28630 (*one_cmplqi2_1): Ditto.
28631 * config/i386/sse.md (): Change k to Yk.
28632 (avx512f_load<mode>_mask): Ditto.
28633 (avx512f_blendm<mode>): Ditto.
28634 (avx512f_store<mode>_mask): Ditto.
28635 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28636 (avx512f_storedqu<mode>_mask): Ditto.
28637 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28638 Ditto.
28639 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28640 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28641 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28642 (avx512f_maskcmp<mode>3): Ditto.
28643 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28644 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28645 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28646 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28647 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28648 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28649 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28650 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28651 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28652 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28653 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28654 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28655 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28656 (vec_extract_lo_<mode>_maskm): Ditto.
28657 (vec_extract_hi_<mode>_maskm): Ditto.
28658 (avx512f_vternlog<mode>_mask): Ditto.
28659 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28660 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28661 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28662 (avx512f_<code>v8div16qi2_mask): Ditto.
28663 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28664 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28665 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28666 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28667 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28668 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28669 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28670 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28671 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28672 (avx512cd_maskb_vec_dupv8di): Ditto.
28673 (avx512cd_maskw_vec_dupv16si): Ditto.
28674 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28675 (avx512f_vpermi2var<mode>3_mask): Ditto.
28676 (avx512f_vpermi2var<mode>3_mask): Ditto.
28677 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28678 (*avx512f_gathersi<mode>): Ditto.
28679 (*avx512f_gathersi<mode>_2): Ditto.
28680 (*avx512f_gatherdi<mode>): Ditto.
28681 (*avx512f_gatherdi<mode>_2): Ditto.
28682 (*avx512f_scattersi<mode>): Ditto.
28683 (*avx512f_scatterdi<mode>): Ditto.
28684 (avx512f_compress<mode>_mask): Ditto.
28685 (avx512f_compressstore<mode>_mask): Ditto.
28686 (avx512f_expand<mode>_mask): Ditto.
28687 * config/i386/subst.md (mask): Change k to Yk.
28688 (mask_scalar_merge): Ditto.
28689 (sd): Ditto.
28690
28691 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28692
28693 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28694
28695 2014-01-31 Richard Biener <rguenther@suse.de>
28696
28697 PR middle-end/59990
28698 * builtins.c (fold_builtin_memory_op): Make sure to not
28699 use a floating-point mode or a boolean or enumeral type for
28700 the copy operation.
28701
28702 2014-01-30 DJ Delorie <dj@redhat.com>
28703
28704 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28705 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28706 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28707 whenever main() has an epilogue.
28708
28709 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28710
28711 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28712 unused variable "field".
28713 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28714 (vsx_mergeh_<mode>): Likewise.
28715 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28716 (altivec_vmrghh): Likewise.
28717 (altivec_vmrghw): Likewise.
28718 (altivec_vmrglb): Likewise.
28719 (altivec_vmrglh): Likewise.
28720 (altivec_vmrglw): Likewise.
28721 (altivec_vspltb): Add missing uses.
28722 (altivec_vsplth): Likewise.
28723 (altivec_vspltw): Likewise.
28724 (altivec_vspltsf): Likewise.
28725
28726 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28727
28728 PR target/59923
28729 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28730 frame related instructions.
28731
28732 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28733
28734 PR rtl-optimization/59959
28735 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28736 any reload of register whose subreg is invalid.
28737
28738 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28739
28740 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28741 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28742 Add missing return type - void.
28743
28744 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28745
28746 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28747 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28748 remove element index adjustment for endian (now handled in vsx.md
28749 and altivec.md).
28750 (altivec_expand_vec_perm_const): Use
28751 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28752 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28753 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28754 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28755 define_expand and a new define_insn *altivec_vspltb_internal;
28756 adjust for -maltivec=be on a little endian target.
28757 (altivec_vspltb_direct): New.
28758 (altivec_vsplth): Divide into a define_expand and a new
28759 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28760 little endian target.
28761 (altivec_vsplth_direct): New.
28762 (altivec_vspltw): Divide into a define_expand and a new
28763 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28764 little endian target.
28765 (altivec_vspltw_direct): New.
28766 (altivec_vspltsf): Divide into a define_expand and a new
28767 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28768 a little endian target.
28769
28770 2014-01-30 Richard Biener <rguenther@suse.de>
28771
28772 PR tree-optimization/59993
28773 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28774 can propagate form the earlier stmt and avoid the transform
28775 when the intermediate result is needed.
28776
28777 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28778
28779 * README.Portability: Fix typo.
28780
28781 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28782
28783 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28784 comparison_operator with ordered_comparison_operator.
28785
28786 2014-01-30 Nick Clifton <nickc@redhat.com>
28787
28788 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28789 Rename to mn10300_store_multiple_regs.
28790 * config/mn10300/mn10300.c: Likewise.
28791 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28792 store_multiple_regs.
28793 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28794 Call mn10300_store_multiple_regs.
28795
28796 2014-01-30 Nick Clifton <nickc@redhat.com>
28797 DJ Delorie <dj@redhat.com>
28798
28799 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28800 %fp 2 to keep registers after it properly word-aligned.
28801 (rl78_alloc_physical_registers_umul): Handle the case where both
28802 input operands are the same.
28803
28804 2014-01-30 Richard Biener <rguenther@suse.de>
28805
28806 PR tree-optimization/59903
28807 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28808 check properly.
28809
28810 2014-01-30 Jason Merrill <jason@redhat.com>
28811
28812 PR c++/59633
28813 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28814
28815 PR c++/59645
28816 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28817
28818 2014-01-30 Richard Biener <rguenther@suse.de>
28819
28820 PR tree-optimization/59951
28821 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28822
28823 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28824
28825 PR target/59784
28826 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28827 SFmode to DFmode case.
28828
28829 2014-01-29 DJ Delorie <dj@redhat.com>
28830
28831 * config/msp430/msp430.opt (-minrt): New.
28832 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28833 if -minrt given.
28834 (ENDFILE_SPEC): Likewise.
28835
28836 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28837
28838 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28839 (estimate_function_body_sizes): Use it.
28840
28841 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28842
28843 PR c++/58561
28844 * dwarf2out.c (is_cxx_auto): New.
28845 (is_base_type): Use it.
28846 (gen_type_die_with_usage): Likewise.
28847
28848 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28849
28850 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28851 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28852 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28853 -maltivec=be with LE targets.
28854 (vsx_mergeh_<mode>): Likewise.
28855 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28856 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28857 (altivec_vmrghb): Replace with define_expand and new
28858 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28859 (altivec_vmrghb_direct): New define_insn.
28860 (altivec_vmrghh): Replace with define_expand and new
28861 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28862 (altivec_vmrghh_direct): New define_insn.
28863 (altivec_vmrghw): Replace with define_expand and new
28864 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28865 (altivec_vmrghw_direct): New define_insn.
28866 (*altivec_vmrghsf): Adjust for endianness.
28867 (altivec_vmrglb): Replace with define_expand and new
28868 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28869 (altivec_vmrglb_direct): New define_insn.
28870 (altivec_vmrglh): Replace with define_expand and new
28871 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28872 (altivec_vmrglh_direct): New define_insn.
28873 (altivec_vmrglw): Replace with define_expand and new
28874 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28875 (altivec_vmrglw_direct): New define_insn.
28876 (*altivec_vmrglsf): Adjust for endianness.
28877 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28878 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28879 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28880 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28881 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28882 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28883 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28884 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28885
28886 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28887
28888 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28889 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28890 whitespace.
28891
28892 2014-01-29 Richard Biener <rguenther@suse.de>
28893
28894 PR tree-optimization/58742
28895 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28896 associate_pointerplus_align.
28897 (associate_pointerplus_diff): New function.
28898 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28899 and associate_pointerplus_diff.
28900
28901 2014-01-29 Richard Biener <rguenther@suse.de>
28902
28903 * lto-streamer.h (LTO_major_version): Bump to 3.
28904 (LTO_minor_version): Reset to 0.
28905
28906 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28907
28908 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28909 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28910 (arm_file_start): Generate correct asm header for armv7ve.
28911 * config/arm/bpabi.h: Add multilib support for armv7ve.
28912 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28913 and cortex-a15 to armv7ve.
28914 * config/arm/t-aprofile: Add multilib support for armv7ve.
28915 * doc/invoke.texi: Document -march=armv7ve.
28916
28917 2014-01-29 Richard Biener <rguenther@suse.de>
28918
28919 PR tree-optimization/58742
28920 * tree-ssa-forwprop.c (associate_plusminus): Return true
28921 if we changed sth, defer EH cleanup to ...
28922 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28923 (simplify_mult): New function.
28924
28925 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28926
28927 PR middle-end/59917
28928 PR tree-optimization/59920
28929 * tree.c (build_common_builtin_nodes): Remove
28930 __builtin_setjmp_dispatcher initialization.
28931 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28932 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28933 instead of gsi_after_labels + manually skipping debug stmts.
28934 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28935 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28936 * tree-inline.c (copy_edges_for_bb): Remove
28937 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28938 argument. Ignore computed_goto_p stmts. Don't call
28939 make_abnormal_goto_edges. If a call might need abnormal edges
28940 for non-local gotos, see if it already has an edge to
28941 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28942 with true argument, don't do anything then, otherwise add
28943 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28944 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28945 caller.
28946 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28947 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28948 (lower_stmt): Don't set data->calls_builtin_setjmp.
28949 (lower_builtin_setjmp): Adjust comment.
28950 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28951 * tree-cfg.c (found_computed_goto): Remove.
28952 (factor_computed_gotos): Remove.
28953 (make_goto_expr_edges): Return bool, true for computed gotos.
28954 Don't call make_abnormal_goto_edges.
28955 (build_gimple_cfg): Don't set found_computed_goto, don't call
28956 factor_computed_gotos.
28957 (computed_goto_p): No longer static.
28958 (make_blocks): Don't set found_computed_goto.
28959 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28960 (make_edges): If make_goto_expr_edges returns true, push bb
28961 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28962 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28963 vector. Record mapping between bbs and OpenMP regions if there
28964 are any, adjust make_gimple_omp_edges caller. Call
28965 handle_abnormal_edges.
28966 (make_abnormal_goto_edges): Remove.
28967 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28968 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28969 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28970 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28971 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28972 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28973 filling *region also set *region_idx to (*region)->entry->index.
28974
28975 PR other/58712
28976 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28977 For REGs set ORIGINAL_REGNO.
28978
28979 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28980
28981 * doc/md.texi: Mention that a target shouldn't implement
28982 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28983 than hi/lo pair.
28984
28985 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28986
28987 PR tree-optimization/59594
28988 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28989 a copy of the datarefs vector rather than the vector itself.
28990
28991 2014-01-28 Jason Merrill <jason@redhat.com>
28992
28993 PR c++/53756
28994 * dwarf2out.c (auto_die): New static.
28995 (gen_type_die_with_usage): Handle C++1y 'auto'.
28996 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28997 on definition.
28998
28999 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
29000
29001 PR target/59672
29002 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29003 (SPEC_X32): Likewise.
29004 (SPEC_64): Likewise.
29005 * config/i386/i386.c (ix86_option_override_internal): Turn off
29006 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29007 for TARGET_16BIT.
29008 (x86_file_start): Output .code16gcc for TARGET_16BIT.
29009 * config/i386/i386.h (TARGET_16BIT): New macro.
29010 (TARGET_16BIT_P): Likewise.
29011 * config/i386/i386.opt: Add m16.
29012 * doc/invoke.texi: Document -m16.
29013
29014 2014-01-28 Jakub Jelinek <jakub@redhat.com>
29015
29016 PR preprocessor/59935
29017 * input.c (location_get_source_line): Bail out on when line number
29018 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29019
29020 2014-01-28 Richard Biener <rguenther@suse.de>
29021
29022 PR tree-optimization/58742
29023 * tree-ssa-forwprop.c (associate_plusminus): Handle
29024 pointer subtraction of the form (T)(P + A) - (T)P.
29025
29026 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29027
29028 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29029 at const_int_cost.
29030
29031 2014-01-28 Richard Biener <rguenther@suse.de>
29032
29033 Revert
29034 2014-01-28 Richard Biener <rguenther@suse.de>
29035
29036 PR rtl-optimization/45364
29037 PR rtl-optimization/59890
29038 * var-tracking.c (local_get_addr_clear_given_value): Handle
29039 already cleared slot.
29040 (val_reset): Handle not allocated local_get_addr_cache.
29041 (vt_find_locations): Use post-order on the inverted CFG.
29042
29043 2014-01-28 Richard Biener <rguenther@suse.de>
29044
29045 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29046
29047 2014-01-28 Richard Biener <rguenther@suse.de>
29048
29049 PR rtl-optimization/45364
29050 PR rtl-optimization/59890
29051 * var-tracking.c (local_get_addr_clear_given_value): Handle
29052 already cleared slot.
29053 (val_reset): Handle not allocated local_get_addr_cache.
29054 (vt_find_locations): Use post-order on the inverted CFG.
29055
29056 2014-01-28 Alan Modra <amodra@gmail.com>
29057
29058 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29059 * configure.ac <recursive call for build != host>: Define
29060 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29061 and LD_FOR_BUILD too.
29062 * configure: Regenerate.
29063
29064 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29065
29066 * config/i386/i386.c (get_builtin_code_for_version): Separate
29067 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29068 Broadwell from Haswell.
29069
29070 2014-01-27 Steve Ellcey <sellcey@mips.com>
29071
29072 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29073 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29074 * config/mips/mips.c (mips_option_override): Change setting
29075 of TARGET_DSP.
29076 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29077 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29078 Change from Mask to Var.
29079
29080 2014-01-27 Jeff Law <law@redhat.com>
29081
29082 * ipa-inline.c (inline_small_functions): Fix typo.
29083
29084 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29085
29086 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29087 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29088 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29089 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29090 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29091 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29092 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29093 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29094 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29095 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29096 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29097 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29098 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29099 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29100 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29101 (_mm512_storeu_epi64): Ditto.
29102 (_mm512_cmpge_epi32_mask): Ditto.
29103 (_mm512_cmpge_epu32_mask): Ditto.
29104 (_mm512_cmpge_epi64_mask): Ditto.
29105 (_mm512_cmpge_epu64_mask): Ditto.
29106 (_mm512_cmple_epi32_mask): Ditto.
29107 (_mm512_cmple_epu32_mask): Ditto.
29108 (_mm512_cmple_epi64_mask): Ditto.
29109 (_mm512_cmple_epu64_mask): Ditto.
29110 (_mm512_cmplt_epi32_mask): Ditto.
29111 (_mm512_cmplt_epu32_mask): Ditto.
29112 (_mm512_cmplt_epi64_mask): Ditto.
29113 (_mm512_cmplt_epu64_mask): Ditto.
29114 (_mm512_cmpneq_epi32_mask): Ditto.
29115 (_mm512_cmpneq_epu32_mask): Ditto.
29116 (_mm512_cmpneq_epi64_mask): Ditto.
29117 (_mm512_cmpneq_epu64_mask): Ditto.
29118 (_mm512_expand_pd): Ditto.
29119 (_mm512_expand_ps): Ditto.
29120 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29121 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29122 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29123 * config/i386/i386.c (ix86_builtins): Add
29124 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29125 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29126 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29127 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29128 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29129 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29130 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29131 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29132 IX86_BUILTIN_PMOVUSQW512_MEM.
29133 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29134 __builtin_ia32_pmovsqd512mem_mask,
29135 __builtin_ia32_pmovqd512mem_mask,
29136 __builtin_ia32_pmovusqw512mem_mask,
29137 __builtin_ia32_pmovsqw512mem_mask,
29138 __builtin_ia32_pmovqw512mem_mask,
29139 __builtin_ia32_pmovusdw512mem_mask,
29140 __builtin_ia32_pmovsdw512mem_mask,
29141 __builtin_ia32_pmovdw512mem_mask,
29142 __builtin_ia32_pmovqb512mem_mask,
29143 __builtin_ia32_pmovusqb512mem_mask,
29144 __builtin_ia32_pmovsqb512mem_mask,
29145 __builtin_ia32_pmovusdb512mem_mask,
29146 __builtin_ia32_pmovsdb512mem_mask,
29147 __builtin_ia32_pmovdb512mem_mask.
29148 (bdesc_args): Add __builtin_ia32_expanddf512,
29149 __builtin_ia32_expandsf512.
29150 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29151 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29152 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29153 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29154 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29155 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29156 (avx512f_<code>v8div16qi2_mask_store): This.
29157 (avx512f_expand<mode>): New.
29158
29159 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29160
29161 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29162 New.
29163 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29164 (_mm512_prefetch_i32scatter_pd): Ditto.
29165 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29166 (_mm512_prefetch_i64scatter_pd): Ditto.
29167 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29168 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29169 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29170 (_mm512_prefetch_i32scatter_ps): Ditto.
29171 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29172 (_mm512_prefetch_i64scatter_ps): Ditto.
29173 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29174 * config/i386/i386-builtin-types.def: Define
29175 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29176 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29177 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29178 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29179 IX86_BUILTIN_SCATTERPFQPD.
29180 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29181 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29182 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29183 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29184 __builtin_ia32_scatterpfqps.
29185 (ix86_expand_builtin): Expand new built-ins.
29186 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29187 fix memory access data type.
29188 (*avx512pf_gatherpf<mode>_mask): Ditto.
29189 (*avx512pf_gatherpf<mode>): Ditto.
29190 (avx512pf_scatterpf<mode>): Ditto.
29191 (*avx512pf_scatterpf<mode>_mask): Ditto.
29192 (*avx512pf_scatterpf<mode>): Ditto.
29193 (GATHER_SCATTER_SF_MEM_MODE): New.
29194 (avx512pf_gatherpf<mode>df): Ditto.
29195 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29196 (*avx512pf_scatterpf<mode>df): Ditto.
29197
29198 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29199
29200 PR bootstrap/59934
29201 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29202 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29203 reached.
29204
29205 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29206
29207 * common/config/arm/arm-common.c
29208 (arm_rewrite_mcpu): Handle multiple names.
29209 * config/arm/arm.h
29210 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29211
29212 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29213
29214 * gimple-builder.h (create_gimple_tmp): Delete.
29215
29216 2014-01-27 Christian Bruel <christian.bruel@st.com>
29217
29218 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29219 words comparisons.
29220
29221 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29222
29223 * config/pa/pa.md (call): Generate indirect long calls to non-local
29224 functions when outputing 32-bit code.
29225 (call_value): Likewise except for special call to buggy powf function.
29226
29227 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29228 portable runtime and PIC indirect calls.
29229 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29230 and PIC call sequences. Use ldo instead of blr to set return register
29231 in PIC call sequence.
29232
29233 2014-01-25 Walter Lee <walt@tilera.com>
29234
29235 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29236 avoid clobbering a live register.
29237
29238 2014-01-25 Walter Lee <walt@tilera.com>
29239
29240 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29241 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29242 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29243 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29244
29245 2014-01-25 Walter Lee <walt@tilera.com>
29246
29247 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29248 arguments on even registers.
29249 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29250 STACK_BOUNDARY.
29251 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29252 (BIGGEST_ALIGNMENT): Ditto.
29253 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29254
29255 2014-01-25 Walter Lee <walt@tilera.com>
29256
29257 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29258 insns before bundling.
29259 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29260
29261 2014-01-25 Walter Lee <walt@tilera.com>
29262
29263 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29264 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29265 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29266
29267 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29268
29269 * config/mips/constraints.md (kl): Delete.
29270 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29271 define expands, using...
29272 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29273 instructions for MIPS16.
29274 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29275 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29276
29277 2014-01-25 Walter Lee <walt@tilera.com>
29278
29279 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29280 (clzdi2): Ditto.
29281 (ffsdi2): Ditto.
29282
29283 2014-01-25 Walter Lee <walt@tilera.com>
29284
29285 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29286 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29287
29288 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29289
29290 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29291 Handle XOR.
29292
29293 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29294
29295 * print-rtl.c (in_call_function_usage): New var.
29296 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29297 EXPR_LIST mode as mode and not as reg note name.
29298
29299 PR middle-end/59561
29300 * cfgloopmanip.c (copy_loop_info): If
29301 loop->warned_aggressive_loop_optimizations, make sure
29302 the flag is set in target loop too.
29303
29304 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29305
29306 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29307 flag_cilkplus.
29308 * builtins.def: Likewise.
29309 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29310 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29311 * ira.c (ira_setup_eliminable_regset): Likewise.
29312 * omp-low.c (gate_expand_omp): Likewise.
29313 (execute_lower_omp): Likewise.
29314 (diagnose_sb_0): Likewise.
29315 (gate_diagnose_omp_blocks): Likewise.
29316 (simd_clone_clauses_extract): Likewise.
29317 (gate): Likewise.
29318
29319 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29320
29321 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29322 correction for little endian...
29323 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29324 here.
29325
29326 2014-01-24 Jeff Law <law@redhat.com>
29327
29328 PR tree-optimization/59919
29329 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29330 for non-returning calls.
29331
29332 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29333
29334 * common/config/aarch64/aarch64-common.c
29335 (aarch64_rewrite_mcpu): Handle multiple names.
29336 * config/aarch64/aarch64.h
29337 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29338
29339 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29340
29341 * input.c (add_file_to_cache_tab): Handle the case where fopen
29342 returns NULL.
29343
29344 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29345
29346 PR target/59929
29347 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29348 from push operand if code of push isn't PRE_DEC.
29349
29350 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29351
29352 PR target/59909
29353 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29354 -mquad-memory-atomic. Update -mquad-memory documentation to say
29355 it is only used for non-atomic loads/stores.
29356
29357 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29358 -mquad-memory or -mquad-memory-atomic switches.
29359
29360 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29361 -mquad-memory-atomic to ISA 2.07 support.
29362
29363 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29364 to separate support of normal quad word memory operations (ldq, stq)
29365 from the atomic quad word memory operations.
29366
29367 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29368 support to separate non-atomic quad word operations from atomic
29369 quad word operations. Disable non-atomic quad word operations in
29370 little endian mode so that we don't have to swap words after the
29371 load and before the store.
29372 (quad_load_store_p): Add comment about atomic quad word support.
29373 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29374 options printed with -mdebug=reg.
29375
29376 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29377 -mquad-memory-atomic as the test for whether we have quad word
29378 atomic instructions.
29379 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29380 or -mp8-vector are used, allow byte/half-word atomic operations.
29381
29382 * config/rs6000/sync.md (load_lockedti): Insure that the address
29383 is a proper indexed or indirect address for the lqarx instruction.
29384 On little endian systems, swap the hi/lo registers after the lqarx
29385 instruction.
29386 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29387 insure the address is valid for the lqarx instruction.
29388 (store_conditionalti): Insure that the address is a proper indexed
29389 or indirect address for the stqcrx. instruction. On little endian
29390 systems, swap the hi/lo registers before doing the stqcrx.
29391 instruction.
29392 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29393 insure the address is valid for the stqcrx. instruction.
29394
29395 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29396 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29397 type of quad memory support is available.
29398
29399 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29400
29401 PR regression/59915
29402 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29403 there is a danger of looping.
29404
29405 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29406
29407 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29408 force flag_ira_loop_pressure if set via command line.
29409
29410 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29411
29412 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29413 (ashr_simd): New builtin handling DI mode.
29414 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29415 (aarch64_sshr_simddi): New match pattern.
29416 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29417 (vshrd_n_s64): Likewise.
29418 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29419
29420 2014-01-23 Nick Clifton <nickc@redhat.com>
29421
29422 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29423 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29424 favour of mcu specific scripts.
29425 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29426 430x multilibs.
29427
29428 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29429 Alex Velenko <Alex.Velenko@arm.com>
29430
29431 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29432 (vaddv_s16): Likewise.
29433 (vaddv_s32): Likewise.
29434 (vaddv_u8): Likewise.
29435 (vaddv_u16): Likewise.
29436 (vaddv_u32): Likewise.
29437 (vaddvq_s8): Likewise.
29438 (vaddvq_s16): Likewise.
29439 (vaddvq_s32): Likewise.
29440 (vaddvq_s64): Likewise.
29441 (vaddvq_u8): Likewise.
29442 (vaddvq_u16): Likewise.
29443 (vaddvq_u32): Likewise.
29444 (vaddvq_u64): Likewise.
29445 (vaddv_f32): Likewise.
29446 (vaddvq_f32): Likewise.
29447 (vaddvq_f64): Likewise.
29448 (vmaxv_f32): Likewise.
29449 (vmaxv_s8): Likewise.
29450 (vmaxv_s16): Likewise.
29451 (vmaxv_s32): Likewise.
29452 (vmaxv_u8): Likewise.
29453 (vmaxv_u16): Likewise.
29454 (vmaxv_u32): Likewise.
29455 (vmaxvq_f32): Likewise.
29456 (vmaxvq_f64): Likewise.
29457 (vmaxvq_s8): Likewise.
29458 (vmaxvq_s16): Likewise.
29459 (vmaxvq_s32): Likewise.
29460 (vmaxvq_u8): Likewise.
29461 (vmaxvq_u16): Likewise.
29462 (vmaxvq_u32): Likewise.
29463 (vmaxnmv_f32): Likewise.
29464 (vmaxnmvq_f32): Likewise.
29465 (vmaxnmvq_f64): Likewise.
29466 (vminv_f32): Likewise.
29467 (vminv_s8): Likewise.
29468 (vminv_s16): Likewise.
29469 (vminv_s32): Likewise.
29470 (vminv_u8): Likewise.
29471 (vminv_u16): Likewise.
29472 (vminv_u32): Likewise.
29473 (vminvq_f32): Likewise.
29474 (vminvq_f64): Likewise.
29475 (vminvq_s8): Likewise.
29476 (vminvq_s16): Likewise.
29477 (vminvq_s32): Likewise.
29478 (vminvq_u8): Likewise.
29479 (vminvq_u16): Likewise.
29480 (vminvq_u32): Likewise.
29481 (vminnmv_f32): Likewise.
29482 (vminnmvq_f32): Likewise.
29483 (vminnmvq_f64): Likewise.
29484
29485 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29486
29487 * config/aarch64/aarch64-simd.md
29488 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29489 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29490 (*aarch64_mul3_elt<mode>): Likewise.
29491 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29492 (*aarch64_mul3_elt_to_64v2df): Likewise.
29493 (*aarch64_mla_elt<mode>): Likewise.
29494 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29495 (*aarch64_mls_elt<mode>): Likewise.
29496 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29497 (*aarch64_fma4_elt<mode>): Likewise.
29498 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29499 (*aarch64_fma4_elt_to_64v2df): Likewise.
29500 (*aarch64_fnma4_elt<mode>): Likewise.
29501 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29502 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29503 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29504 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29505 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29506 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29507 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29508 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29509 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29510
29511 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29512
29513 * config/aarch64/aarch64-simd.md
29514 (aarch64_be_checked_get_lane<mode>): New define_expand.
29515 * config/aarch64/aarch64-simd-builtins.def
29516 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29517 New builtin definition.
29518 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29519 Use new safe be builtin.
29520
29521 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29522
29523 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29524 New define_insn.
29525 (aarch64_be_st1<mode>): Likewise.
29526 (aarch_ld1<VALL:mode>): Define_expand modified.
29527 (aarch_st1<VALL:mode>): Likewise.
29528 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29529 (UNSPEC_ST1): Likewise.
29530
29531 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29532
29533 * config/microblaze/microblaze.md: Add trap insn and attribute
29534
29535 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29536
29537 PR preprocessor/58580
29538 * input.h (location_get_source_line): Take an additional line_size
29539 parameter.
29540 (void diagnostics_file_cache_fini): Declare new function.
29541 * input.c (struct fcache): New type.
29542 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29543 New static constants.
29544 (diagnostic_file_cache_init, total_lines_num)
29545 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29546 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29547 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29548 (get_next_line, read_next_line, goto_next_line, read_line_num):
29549 New static function definitions.
29550 (diagnostic_file_cache_fini): New function.
29551 (location_get_source_line): Take an additional output line_len
29552 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29553 read_line_num.
29554 * diagnostic.c (diagnostic_finish): Call
29555 diagnostic_file_cache_fini.
29556 (adjust_line): Take an additional input parameter for the length
29557 of the line, rather than calculating it with strlen.
29558 (diagnostic_show_locus): Adjust the use of
29559 location_get_source_line and adjust_line with respect to their new
29560 signature. While displaying a line now, do not stop at the first
29561 null byte. Rather, display the zero byte as a space and keep
29562 going until we reach the size of the line.
29563 * Makefile.in: Add vec.o to OBJS-libcommon
29564
29565 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29566 Ilya Tocar <ilya.tocar@intel.com>
29567
29568 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29569 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29570 (__builtin_ia32_kmov16): Ditto.
29571 * config/i386/i386.md (UNSPEC_KMOV): New.
29572 (kmovw): Ditto.
29573
29574 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29575
29576 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29577 (_mm512_storeu_si512): Ditto.
29578
29579 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29580
29581 PR target/52125
29582 * rtl.h (get_referenced_operands): Declare.
29583 * recog.c (get_referenced_operands): New function.
29584 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29585 operands have been referenced when recording LO_SUM references.
29586
29587 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29588
29589 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29590
29591 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29592
29593 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29594 Enable for generic and recent AMD targets.
29595
29596 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29597
29598 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29599 ARG_SIZE note when adjustment was eliminated.
29600
29601 2014-01-22 Jeff Law <law@redhat.com>
29602
29603 PR tree-optimization/59597
29604 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29605 in file. Accept new argument REGISTERING and use it to modify
29606 dump output appropriately.
29607 (register_jump_thread): Corresponding changes.
29608 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29609 thread paths involving joiner blocks. Add code to dump cancelled
29610 jump threading paths.
29611
29612 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29613
29614 PR rtl-optimization/59477
29615 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29616 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29617
29618 2014-01-22 Tom Tromey <tromey@redhat.com>
29619
29620 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29621 PARAMS.
29622 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29623
29624 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29625
29626 PR rtl-optimization/59896
29627 * lra-constraints.c (process_alt_operands): Check unused note for
29628 matched operands of insn with no output reloads.
29629
29630 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29631
29632 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29633 (mips_move_from_gpr_cost): Likewise.
29634
29635 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29636
29637 PR rtl-optimization/59858
29638 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29639 ira_class_hard_regs_num.
29640 (process_alt_operands): Increase reject for dying matched operand.
29641
29642 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29643
29644 PR target/59003
29645 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29646 smaller than size, perform several stores or loads and stores
29647 at dst + count - size to store or copy all of size bytes, rather
29648 than just last modesize bytes.
29649
29650 2014-01-20 DJ Delorie <dj@redhat.com>
29651
29652 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29653 that CLOBBERs are REGs before propogating their values.
29654
29655 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29656
29657 PR middle-end/59789
29658 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29659 (cgraph_inline_failed_type): New function.
29660 * cgraph.h (DEFCIFCODE): Add type.
29661 (cgraph_inline_failed_type_t): New enum.
29662 (cgraph_inline_failed_type): New prototype.
29663 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29664 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29665 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29666 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29667 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29668 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29669 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29670 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29671 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29672 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29673 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29674 OPTIMIZATION_MISMATCH.
29675 * tree-inline.c (expand_call_inline): Emit errors during
29676 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29677
29678 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29679
29680 PR target/59685
29681 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29682 mode attribute in insn output.
29683
29684 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29685
29686 * output.h (output_constant): Delete.
29687 * varasm.c (output_constant): Make private.
29688
29689 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29690
29691 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29692
29693 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29694
29695 PR middle-end/59860
29696 * tree.h (fold_builtin_strcat): New prototype.
29697 * builtins.c (fold_builtin_strcat): No longer static. Add len
29698 argument, if non-NULL, don't call c_strlen. Optimize
29699 directly into __builtin_memcpy instead of __builtin_strcpy.
29700 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29701 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29702
29703 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29704
29705 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29706 for SImode_address_operand operands, having only a REG argument.
29707
29708 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29709
29710 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29711 loader name using mbig-endian.
29712 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29713
29714 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29715
29716 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29717 (-mtune): Likewise.
29718 (-mcpu): Likewise.
29719
29720 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29721
29722 * config/aarch64/aarch64-protos.h
29723 (aarch64_cannot_change_mode_class_ptr): Declare.
29724 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29725 aarch64_cannot_change_mode_class_ptr): New.
29726 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29727 backend hook aarch64_cannot_change_mode_class.
29728
29729 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29730
29731 * common/config/aarch64/aarch64-common.c
29732 (aarch64_handle_option): Don't handle any option order logic here.
29733 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29734 selected_cpu, warn on architecture version mismatch.
29735 (aarch64_override_options): Fix parsing order for option strings.
29736
29737 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29738 Iain Sandoe <iain@codesourcery.com>
29739
29740 PR bootstrap/59496
29741 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29742 warning. Amend comment to reflect current functionality.
29743
29744 2014-01-20 Richard Biener <rguenther@suse.de>
29745
29746 PR middle-end/59860
29747 * builtins.c (fold_builtin_strcat): Remove case better handled
29748 by tree-ssa-strlen.c.
29749
29750 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29751
29752 * config/aarch64/aarch64.opt
29753 (mcpu, march, mtune): Make case-insensitive.
29754
29755 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29756
29757 PR target/59880
29758 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29759 if operands[1] is a REG or ZERO_EXTEND of a REG.
29760
29761 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29762
29763 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29764
29765 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29766
29767 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29768 long non-pic millicode calls.
29769
29770 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29771
29772 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29773
29774 2014-01-19 Kito Cheng <kito@0xlab.org>
29775
29776 * builtins.c (expand_movstr): Check movstr expand done or fail.
29777
29778 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29779 H.J. Lu <hongjiu.lu@intel.com>
29780
29781 PR target/59379
29782 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29783 to DImode for zero-extended addresses.
29784
29785 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29786
29787 PR rtl-optimization/57763
29788 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29789 on the new indirect jump_insn and increment LABEL_NUSES (label).
29790
29791 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29792
29793 PR bootstrap/59580
29794 PR bootstrap/59583
29795 * config.gcc (x86_archs): New variable.
29796 (x86_64_archs): Likewise.
29797 (x86_cpus): Likewise.
29798 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29799 --with-arch/--with-cpu= options.
29800 Support --with-arch=/--with-cpu={nehalem,westmere,
29801 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29802
29803 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29804
29805 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29806 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29807
29808 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29809
29810 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29811
29812 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29813
29814 PR target/58944
29815 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29816 clear cpp_get_options (parse_in)->warn_unused_macros for
29817 ix86_target_macros_internal with cpp_define.
29818
29819 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29820
29821 * jump.c (delete_related_insns): Keep (use (insn))s.
29822 * reorg.c (redundant_insn): Check for barriers too.
29823
29824 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29825
29826 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29827
29828 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29829
29830 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29831 call to $$dyncall when TARGET_LONG_CALLS is true.
29832
29833 2014-01-17 Jeff Law <law@redhat.com>
29834
29835 * ree.c (combine_set_extension): Temporarily disable test for
29836 changing number of hard registers.
29837
29838 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29839
29840 PR middle-end/58125
29841 * ipa-inline-analysis.c (inline_free_summary):
29842 Do not free summary of aliases.
29843
29844 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29845
29846 PR middle-end/59706
29847 * gimplify.c (gimplify_expr): Use create_tmp_var
29848 instead of create_tmp_var_raw. If cond doesn't have
29849 integral type, don't add the IFN_ANNOTATE builtin at all.
29850
29851 2014-01-17 Martin Jambor <mjambor@suse.cz>
29852
29853 PR ipa/59736
29854 * ipa-cp.c (prev_edge_clone): New variable.
29855 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29856 Also resize prev_edge_clone vector.
29857 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29858 (ipcp_edge_removal_hook): New function.
29859 (ipcp_driver): Register ipcp_edge_removal_hook.
29860
29861 2014-01-17 Andrew Pinski <apinski@cavium.com>
29862 Steve Ellcey <sellcey@mips.com>
29863
29864 PR target/59462
29865 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29866 of operator mode.
29867
29868 2014-01-17 Jeff Law <law@redhat.com>
29869
29870 PR middle-end/57904
29871 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29872 so that pass_ccp runs first.
29873
29874 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29875
29876 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29877 (ix86_adjust_cost): Use !TARGET_XXX.
29878 (do_reorder_for_imul): Likewise.
29879 (swap_top_of_ready_list): Likewise.
29880 (ix86_sched_reorder): Likewise.
29881
29882 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29883
29884 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29885 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29886 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29887 (intel_memset): New. Duplicate slm_memset.
29888 (intel_cost): New. Duplicate slm_cost.
29889 (m_INTEL): New macro.
29890 (processor_target_table): Add "intel".
29891 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29892 with PROCESSOR_INTEL for "intel".
29893 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29894 PROCESSOR_SILVERMONT.
29895 (ix86_issue_rate): Likewise.
29896 (ix86_adjust_cost): Likewise.
29897 (ia32_multipass_dfa_lookahead): Likewise.
29898 (swap_top_of_ready_list): Likewise.
29899 (ix86_sched_reorder): Likewise.
29900 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29901 instead of TARGET_OPT_AGU.
29902 * config/i386/i386.h (TARGET_INTEL): New.
29903 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29904 (processor_type): Add PROCESSOR_INTEL.
29905 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29906 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29907
29908 2014-01-17 Marek Polacek <polacek@redhat.com>
29909
29910 PR c/58346
29911 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29912 size is zero.
29913
29914 2014-01-17 Richard Biener <rguenther@suse.de>
29915
29916 PR tree-optimization/46590
29917 * opts.c (default_options_table): Add entries for
29918 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29919 all enabled at -O1 but not for -Og.
29920 * common.opt (fbranch-count-reg): Remove Init(1).
29921 (fmove-loop-invariants): Likewise.
29922 (ftree-pta): Likewise.
29923
29924 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29925
29926 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29927 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29928 decls to at least the GCC 4.8 used alignments.
29929
29930 PR fortran/59440
29931 * tree-nested.c (convert_nonlocal_reference_stmt,
29932 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29933 of GIMPLE_BIND stmts, adjust associated decls.
29934
29935 2014-01-17 Richard Biener <rguenther@suse.de>
29936
29937 PR tree-optimization/46590
29938 * vec.h (vec<>::bseach): New member function implementing
29939 binary search according to C89 bsearch.
29940 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29941 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29942 bitmap pointer again. Make accesses_in_loop a flat array.
29943 (mem_ref_obstack): New global.
29944 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29945 (mark_ref_stored): Likewise.
29946 (ref_indep_loop_p_2): Likewise.
29947 (set_ref_stored_in_loop): New helper function.
29948 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29949 (memref_free): Adjust.
29950 (record_mem_ref_loc): Simplify.
29951 (gather_mem_refs_stmt): Adjust.
29952 (sort_locs_in_loop_postorder_cmp): New function.
29953 (analyze_memory_references): Sort accesses_in_loop after
29954 loop postorder number.
29955 (find_ref_loc_in_loop_cmp): New function.
29956 (for_all_locs_in_loop): Find relevant cluster of locs in
29957 accesses_in_loop and iterate without recursion.
29958 (execute_sm): Avoid uninit warning.
29959 (struct ref_always_accessed): Simplify.
29960 (ref_always_accessed::operator ()): Likewise.
29961 (ref_always_accessed_p): Likewise.
29962 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29963 loop postorder numbers here.
29964 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29965 numbers.
29966
29967 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29968
29969 PR c++/57945
29970 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29971 on decls for which assemble_alias has been called.
29972
29973 2014-01-17 Nick Clifton <nickc@redhat.com>
29974
29975 * config/msp430/msp430.opt: (mcpu): New option.
29976 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29977 (msp430_option_override): Parse target_cpu. If the MCU name
29978 matches a generic string, clear target_mcu.
29979 (msp430_attr): Allow numeric interrupt values up to 63.
29980 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29981 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29982 option.
29983 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29984 Add mcpu matches.
29985 * config/msp430/msp430.md (popm): Use %J rather than %I.
29986 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29987 (addhi_cy_i): Use immediate_operand for operand 2.
29988 * doc/invoke.texi: Document -mcpu option.
29989
29990 2014-01-17 Richard Biener <rguenther@suse.de>
29991
29992 PR rtl-optimization/38518
29993 * df.h (df_analyze_loop): Declare.
29994 * df-core.c: Include cfgloop.h.
29995 (df_analyze_1): Split out main part of df_analyze.
29996 (df_analyze): Adjust.
29997 (loop_inverted_post_order_compute): New function.
29998 (loop_post_order_compute): Likewise.
29999 (df_analyze_loop): New function avoiding whole-function
30000 postorder computes.
30001 * loop-invariant.c (find_defs): Use df_analyze_loop.
30002 (find_invariants): Adjust.
30003 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30004
30005 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
30006
30007 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30008 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30009
30010 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30011
30012 * ipa-ref.c (ipa_remove_stmt_references): Fix references
30013 traversal when removing references.
30014
30015 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
30016
30017 PR ipa/59775
30018 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30019
30020 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
30021
30022 PR middle-end/56791
30023 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30024 pushing a reload for an autoinc when we had previously reloaded an
30025 inner part of the address.
30026
30027 2014-01-16 Jakub Jelinek <jakub@redhat.com>
30028
30029 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30030 field.
30031 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30032 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30033 when not giving up or versioning for alias only because of
30034 loop->safelen.
30035 (vect_analyze_data_ref_dependences): Set to true.
30036 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30037 is a GIMPLE_PHI.
30038 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30039 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30040 to the condition.
30041
30042 PR middle-end/58344
30043 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30044
30045 PR target/59839
30046 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30047 operand 0 predicate for gathers, use a new pseudo as subtarget.
30048
30049 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30050
30051 PR middle-end/59609
30052 * lra-constraints.c (process_alt_operands): Add printing debug info.
30053 Check absence of input/output reloads for matched operands too.
30054
30055 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30056
30057 PR rtl-optimization/59835
30058 * ira.c (ira_init_register_move_cost): Increase cost for
30059 impossible modes.
30060
30061 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
30062
30063 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30064
30065 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30066
30067 PR target/59780
30068 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30069 non-register objects. Use gen_(high/low)part more consistently.
30070 Fix assertions.
30071
30072 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30073
30074 PR target/59844
30075 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30076 endian support, remove tests for WORDS_BIG_ENDIAN.
30077 (p8_mfvsrd_3_<mode>): Likewise.
30078 (reload_gpr_from_vsx<mode>): Likewise.
30079 (reload_gpr_from_vsxsf): Likewise.
30080 (p8_mfvsrd_4_disf): Likewise.
30081
30082 2014-01-16 Richard Biener <rguenther@suse.de>
30083
30084 PR rtl-optimization/46590
30085 * lcm.c (compute_antinout_edge): Use postorder iteration.
30086 (compute_laterin): Use inverted postorder iteration.
30087
30088 2014-01-16 Nick Clifton <nickc@redhat.com>
30089
30090 PR middle-end/28865
30091 * varasm.c (output_constant): Return the number of bytes actually
30092 emitted.
30093 (output_constructor_array_range): Update the field size with the
30094 number of bytes emitted by output_constant.
30095 (output_constructor_regular_field): Likewise. Also do not
30096 complain if the total number of bytes emitted is now greater
30097 than the expected fieldpos.
30098 * output.h (output_constant): Update prototype and descriptive comment.
30099
30100 2014-01-16 Marek Polacek <polacek@redhat.com>
30101
30102 PR middle-end/59827
30103 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30104 it is error_mark_node.
30105
30106 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30107
30108 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30109 VALID_AVX256_REG_OR_OI_MODE.
30110
30111 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30112
30113 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30114 current procedure should be profiled.
30115
30116 2014-01-15 Andrew Pinski <apinski@cavium.com>
30117
30118 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30119 of moving from/to the STACK_REG register class.
30120
30121 2014-01-15 Richard Henderson <rth@redhat.com>
30122
30123 PR debug/54694
30124 * reginfo.c (global_regs_decl): Globalize.
30125 * rtl.h (global_regs_decl): Declare.
30126 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30127 reserved via global_regs.
30128
30129 2014-01-15 Teresa Johnson <tejohnson@google.com>
30130
30131 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30132
30133 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30134
30135 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30136 and vmulosh rather than call gen_vec_widen_smult_*.
30137 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30138 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30139 (vec_widen_smult_even_v16qi): Likewise.
30140 (vec_widen_umult_even_v8hi): Likewise.
30141 (vec_widen_smult_even_v8hi): Likewise.
30142 (vec_widen_umult_odd_v16qi): Likewise.
30143 (vec_widen_smult_odd_v16qi): Likewise.
30144 (vec_widen_umult_odd_v8hi): Likewise.
30145 (vec_widen_smult_odd_v8hi): Likewise.
30146 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30147 vmuloub rather than call gen_vec_widen_umult_*.
30148 (vec_widen_umult_lo_v16qi): Likewise.
30149 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30150 vmulosb rather than call gen_vec_widen_smult_*.
30151 (vec_widen_smult_lo_v16qi): Likewise.
30152 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30153 rather than call gen_vec_widen_umult_*.
30154 (vec_widen_umult_lo_v8hi): Likewise.
30155 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30156 rather than call gen_vec_widen_smult_*.
30157 (vec_widen_smult_lo_v8hi): Likewise.
30158
30159 2014-01-15 Jeff Law <law@redhat.com>
30160
30161 PR tree-optimization/59747
30162 * ree.c (find_and_remove_re): Properly handle case where a second
30163 eliminated extension requires widening a copy created for elimination
30164 of a prior extension.
30165 (combine_set_extension): Ensure that the number of hard regs needed
30166 for a destination register does not change when we widen it.
30167
30168 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30169
30170 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30171 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30172 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30173 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30174 (avr-*-rtems*): Likewise.
30175 (bfin*-rtems*): Likewise.
30176 (moxie-*-rtems*): Likewise.
30177 (h8300-*-rtems*): Likewise.
30178 (i[34567]86-*-rtems*): Likewise.
30179 (lm32-*-rtems*): Likewise.
30180 (m32r-*-rtems*): Likewise.
30181 (m68k-*-rtems*): Likewise.
30182 (microblaze*-*-rtems*): Likewise.
30183 (mips*-*-rtems*): Likewise.
30184 (powerpc-*-rtems*): Likewise.
30185 (sh-*-rtems*): Likewise.
30186 (sparc-*-rtems*): Likewise.
30187 (sparc64-*-rtems*): Likewise.
30188 (v850-*-rtems*): Likewise.
30189 (m32c-*-rtems*): Likewise.
30190
30191 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30192
30193 PR rtl-optimization/59511
30194 * ira.c (ira_init_register_move_cost): Use memory costs for some
30195 cases of register move cost calculations.
30196 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30197 instead of BB frequency.
30198 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30199 * lra-assigns.c (find_hard_regno_for): Ditto.
30200
30201 2014-01-15 Richard Biener <rguenther@suse.de>
30202
30203 PR tree-optimization/59822
30204 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30205 (vectorizable_load): Use it to hoist defs of uses of invariant
30206 loads out of the loop.
30207
30208 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30209 Kugan Vivekanandarajah <kuganv@linaro.org>
30210
30211 PR target/59695
30212 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30213 truncation.
30214
30215 2014-01-15 Richard Biener <rguenther@suse.de>
30216
30217 PR rtl-optimization/59802
30218 * lcm.c (compute_available): Use inverted postorder to seed
30219 the initial worklist.
30220
30221 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30222
30223 PR target/59803
30224 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30225 ADDR_REGS for invalid symrefs in non-PIC code.
30226
30227 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30228
30229 PR other/58712
30230 * builtins.c (determine_block_size): Initialize *probable_max_size
30231 even if len_rtx is CONST_INT.
30232
30233 2014-01-14 Andrew Pinski <apinski@cavium.com>
30234
30235 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30236 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30237 (cortexa53_tunings): Likewise.
30238 (aarch64_sched_issue_rate): New function.
30239 (TARGET_SCHED_ISSUE_RATE): Define.
30240
30241 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30242
30243 * ira-costs.c (find_costs_and_classes): Add missed
30244 ira_init_register_move_cost_if_necessary.
30245
30246 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30247
30248 PR target/59787
30249 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30250
30251 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30252
30253 PR target/59794
30254 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30255 to indicate if type is used for function return value. Warn ABI
30256 change if the vector mode isn't available for function return value.
30257 (ix86_function_arg_advance): Pass false to type_natural_mode.
30258 (ix86_function_arg): Likewise.
30259 (ix86_gimplify_va_arg): Likewise.
30260 (function_arg_32): Don't warn ABI change.
30261 (ix86_function_value): Pass true to type_natural_mode.
30262 (ix86_return_in_memory): Likewise.
30263 (ix86_struct_value_rtx): Removed.
30264 (TARGET_STRUCT_VALUE_RTX): Likewise.
30265
30266 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30267
30268 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30269 converting a conditional jump into a conditional return.
30270
30271 2014-01-14 Richard Biener <rguenther@suse.de>
30272
30273 PR tree-optimization/58921
30274 PR tree-optimization/59006
30275 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30276 hoisting invariant stmts.
30277 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30278 invariant loads on the preheader edge if possible.
30279
30280 2014-01-14 Joey Ye <joey.ye@arm.com>
30281
30282 * doc/plugin.texi (Building GCC plugins): Update to C++.
30283
30284 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30285
30286 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30287 (_mm_rcp28_round_ss): Ditto.
30288 (_mm_rsqrt28_round_sd): Ditto.
30289 (_mm_rsqrt28_round_ss): Ditto.
30290 (_mm_rcp28_sd): Ditto.
30291 (_mm_rcp28_ss): Ditto.
30292 (_mm_rsqrt28_sd): Ditto.
30293 (_mm_rsqrt28_ss): Ditto.
30294 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30295 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30296 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30297 (IX86_BUILTIN_RCP28SD): Ditto.
30298 (IX86_BUILTIN_RCP28SS): Ditto.
30299 (IX86_BUILTIN_RSQRT28SD): Ditto.
30300 (IX86_BUILTIN_RSQRT28SS): Ditto.
30301 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30302 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30303 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30304 (ix86_expand_special_args_builtin): Expand new FTYPE.
30305 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30306 (srcp14<mode>): Make insn unary.
30307 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30308 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30309 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30310 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30311 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30312 Fix rounding: make it SAE only.
30313 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30314 Ditto.
30315 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30316 Ditto.
30317 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30318 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30319 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30320 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30321 (round_saeonly_mask_scalar_operand4): Ditto.
30322 (round_saeonly_mask_scalar_op3): Ditto.
30323 (round_saeonly_mask_scalar_op4): Ditto.
30324
30325 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30326
30327 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30328 Implement -maltivec=be for vec_insert and vec_extract.
30329
30330 2014-01-10 DJ Delorie <dj@redhat.com>
30331
30332 * config/msp430/msp430.md (call_internal): Don't allow memory
30333 references with SP as the base register.
30334 (call_value_internal): Likewise.
30335 * config/msp430/constraints.md (Yc): New. For memory references
30336 that don't use SP as a base register.
30337
30338 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30339 "an integer without a # prefix"
30340 * config/msp430/msp430.md (epilogue_helper): Use it.
30341
30342 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30343
30344 PR target/59617
30345 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30346 AVX512F gather builtins.
30347 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30348 on gather decls with INTEGER_TYPE masktype.
30349 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30350 directly into the builtin rather than hoisting it before loop.
30351
30352 PR tree-optimization/59387
30353 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30354 (scev_const_prop): If folded_casts and type has undefined overflow,
30355 use force_gimple_operand instead of force_gimple_operand_gsi and
30356 for each added stmt if it is assign with
30357 arith_code_with_undefined_signed_overflow, call
30358 rewrite_to_defined_overflow.
30359 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30360 gimple-fold.h instead.
30361 (arith_code_with_undefined_signed_overflow,
30362 rewrite_to_defined_overflow): Moved to ...
30363 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30364 rewrite_to_defined_overflow): ... here. No longer static.
30365 Include gimplify-me.h.
30366 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30367 rewrite_to_defined_overflow): New prototypes.
30368
30369 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30370
30371 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30372
30373 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30374
30375 * builtins.c (get_object_alignment_2): Minor tweak.
30376 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30377
30378 2014-01-13 Christian Bruel <christian.bruel@st.com>
30379
30380 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30381 optimized non constant lengths.
30382
30383 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30384
30385 PR libgomp/59194
30386 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30387 load as __atomic_load_N if possible.
30388
30389 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30390
30391 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30392 target parameter.
30393 (rs6000_expand_builtin): Adjust call.
30394
30395 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30396
30397 PR target/58115
30398 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30399 * config/rs6000/rs6000.c: Include target-globals.h.
30400 (rs6000_set_current_function): Instead of doing target_reinit
30401 unconditionally, use save_target_globals_default_opts and
30402 restore_target_globals.
30403
30404 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30405 FPSCR.
30406 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30407 (rs6000_expand_builtin): Handle mffs and mtfsf.
30408 (rs6000_init_builtins): Define mffs and mtfsf.
30409 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30410 (rs6000_mffs): New pattern.
30411 (rs6000_mtfsf): New pattern.
30412
30413 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30414
30415 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30416 Start narrowing with START. Apply candidate-use pair
30417 and check overall cost in narrowing.
30418 (iv_ca_prune): Pass new argument.
30419
30420 2014-01-10 Jeff Law <law@redhat.com>
30421
30422 PR middle-end/59743
30423 * ree.c (combine_reaching_defs): Ensure the defining statement
30424 occurs before the extension when optimizing extensions with
30425 different source and destination hard registers.
30426
30427 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30428
30429 PR ipa/58585
30430 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30431 vtables into the type inheritance graph.
30432
30433 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30434
30435 PR rtl-optimization/59754
30436 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30437 modes in the REGNO != REGNO case.
30438
30439 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30440
30441 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30442
30443 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30444
30445 PR tree-optimization/59745
30446 * tree-predcom.c (tree_predictive_commoning_loop): Call
30447 free_affine_expand_cache if giving up because components is NULL.
30448
30449 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30450 GC in payload of target_globals struct instead of allocating them on
30451 the heap and the larger structs separately using GC.
30452 * target-globals.h (struct target_globals): Make regs, hard_regs,
30453 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30454 of GTY((skip)) and change type to void *.
30455 (reset_target_globals): Cast loads from those fields to corresponding
30456 types.
30457
30458 2014-01-10 Steve Ellcey <sellcey@mips.com>
30459
30460 PR plugins/59335
30461 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30462 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30463 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30464
30465 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30466
30467 PR target/59744
30468 * aarch64-modes.def (CC_Zmode): New flags mode.
30469 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30470 represents an equality.
30471 (aarch64_get_condition_code): Handle CC_Zmode.
30472 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30473
30474 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30475
30476 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30477 extraction in good case.
30478
30479 2014-01-10 Richard Biener <rguenther@suse.de>
30480
30481 PR tree-optimization/59374
30482 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30483 checking after SLP discovery. Mark stmts not participating
30484 in any SLP instance properly.
30485
30486 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30487
30488 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30489 when handling a SET rtx.
30490
30491 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30492
30493 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30494 (cortex-a57): Likewise.
30495 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30496
30497 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30498
30499 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30500 non-iwmmxt builtins.
30501
30502 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30503
30504 PR ipa/58252
30505 PR ipa/59226
30506 * ipa-devirt.c record_target_from_binfo): Take as argument
30507 stack of binfos and lookup matching one for virtual inheritance.
30508 (possible_polymorphic_call_targets_1): Update.
30509
30510 2014-01-10 Huacai Chen <chenhc@lemote.com>
30511
30512 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30513 kernel strings for Loongson-2E/2F/3A.
30514
30515 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30516
30517 PR middle-end/59670
30518 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30519 is_gimple_call before calling gimple_call_internal_p.
30520
30521 2014-01-09 Steve Ellcey <sellcey@mips.com>
30522
30523 * Makefile.in (TREE_FLOW_H): Remove.
30524 (TREE_SSA_H): Add file names from tree-flow.h.
30525 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30526 * tree.h: Remove tree-flow.h reference.
30527 * hash-table.h: Remove tree-flow.h reference.
30528 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30529 reference with tree-ssa-loop.h.
30530
30531 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30532
30533 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30534 default element-order behavior for -maltivec.
30535 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30536 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30537 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30538 when targeting big endian, at least for now.
30539 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30540
30541 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30542
30543 PR middle-end/47735
30544 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30545 var satisfies use_register_for_decl, just take into account type
30546 alignment, rather than decl alignment.
30547
30548 PR tree-optimization/59622
30549 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30550 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30551 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30552 Don't devirtualize for inplace at all. For targets.length () == 1,
30553 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30554
30555 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30556
30557 * config/i386/i386.md (cpu): Remove the unused btver1.
30558
30559 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30560
30561 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30562
30563 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30564
30565 PR target/58115
30566 * tree-core.h (struct target_globals): New forward declaration.
30567 (struct tree_target_option): Add globals field.
30568 * tree.h (TREE_TARGET_GLOBALS): Define.
30569 (prepare_target_option_nodes_for_pch): New prototype.
30570 * target-globals.h (struct target_globals): Define even if
30571 !SWITCHABLE_TARGET.
30572 * tree.c (prepare_target_option_node_for_pch,
30573 prepare_target_option_nodes_for_pch): New functions.
30574 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30575 * config/i386/i386.c: Include target-globals.h.
30576 (ix86_set_current_function): Instead of doing target_reinit
30577 unconditionally, use save_target_globals_default_opts and
30578 restore_target_globals.
30579
30580 2014-01-09 Richard Biener <rguenther@suse.de>
30581
30582 PR tree-optimization/59715
30583 * tree-cfg.h (split_critical_edges): Declare.
30584 * tree-cfg.c (split_critical_edges): Export.
30585 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30586
30587 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30588
30589 * cfgexpand.c (expand_stack_vars): Optionally disable
30590 asan stack protection.
30591 (expand_used_vars): Likewise.
30592 (partition_stack_vars): Likewise.
30593 * asan.c (asan_emit_stack_protection): Optionally disable
30594 after return stack usage.
30595 (instrument_derefs): Optionally disable memory access instrumentation.
30596 (instrument_builtin_call): Likewise.
30597 (instrument_strlen_call): Likewise.
30598 (asan_protect_global): Optionally disable global variables protection.
30599 * doc/invoke.texi: Added doc for new options.
30600 * params.def: Added new options.
30601 * params.h: Likewise.
30602
30603 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30604
30605 PR rtl-optimization/59724
30606 * ifcvt.c (cond_exec_process_if_block): Don't call
30607 flow_find_head_matching_sequence with 0 longest_match.
30608 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30609 non-active insns if !stop_after.
30610 (try_head_merge_bb): Revert 2014-01-07 changes.
30611
30612 2014-01-08 Jeff Law <law@redhat.com>
30613
30614 * ree.c (get_sub_rtx): New function, extracted from...
30615 (merge_def_and_ext): Here.
30616 (combine_reaching_defs): Use get_sub_rtx.
30617
30618 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30619
30620 * cgraph.h (varpool_variable_node): Do not choke on null node.
30621
30622 2014-01-08 Catherine Moore <clm@codesourcery.com>
30623
30624 * config/mips/mips.md (simple_return): Attempt to use JRC
30625 for microMIPS.
30626 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30627
30628 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30629
30630 PR rtl-optimization/59137
30631 * reorg.c (steal_delay_list_from_target): Call update_block for
30632 elided insns.
30633 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30634
30635 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30636
30637 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30638 two duplicate entries.
30639
30640 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30641
30642 Revert:
30643 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30644
30645 * config/mips/mips.c (mips_truncated_op_cost): New function.
30646 (mips_rtx_costs): Adjust test for BADDU.
30647 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30648
30649 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30650
30651 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30652 (*baddu_si): ...this new pattern.
30653
30654 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30655
30656 PR ipa/59722
30657 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30658
30659 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30660
30661 PR middle-end/57748
30662 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30663 inner_reference_p.
30664 (expand_expr, expand_normal): Adjust.
30665 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30666 inner_reference_p. Use inner_reference_p to expand inner references.
30667 (store_expr): Adjust.
30668 * cfgexpand.c (expand_call_stmt): Adjust.
30669
30670 2014-01-08 Rong Xu <xur@google.com>
30671
30672 * gcov-io.c (gcov_var): Move from gcov-io.h.
30673 (gcov_position): Ditto.
30674 (gcov_is_error): Ditto.
30675 (gcov_rewrite): Ditto.
30676 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30677 only part to libgcc/libgcov.h.
30678
30679 2014-01-08 Marek Polacek <polacek@redhat.com>
30680
30681 PR middle-end/59669
30682 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30683
30684 2014-01-08 Marek Polacek <polacek@redhat.com>
30685
30686 PR sanitizer/59667
30687 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30688
30689 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30690
30691 PR rtl-optimization/59649
30692 * stor-layout.c (get_mode_bounds): For BImode return
30693 0 and STORE_FLAG_VALUE.
30694
30695 2014-01-08 Richard Biener <rguenther@suse.de>
30696
30697 PR middle-end/59630
30698 * gimple.h (is_gimple_builtin_call): Remove.
30699 (gimple_builtin_call_types_compatible_p): New.
30700 (gimple_call_builtin_p): New overload.
30701 * gimple.c (is_gimple_builtin_call): Remove.
30702 (validate_call): Rename to ...
30703 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30704 check return types.
30705 (validate_type): New static function.
30706 (gimple_call_builtin_p): New overload and adjust.
30707 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30708 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30709 (gimple_fold_stmt_to_constant_1): Likewise.
30710 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30711
30712 2014-01-08 Richard Biener <rguenther@suse.de>
30713
30714 PR middle-end/59471
30715 * gimplify.c (gimplify_expr): Gimplify register-register type
30716 VIEW_CONVERT_EXPRs to separate stmts.
30717
30718 2014-01-07 Jeff Law <law@redhat.com>
30719
30720 PR middle-end/53623
30721 * ree.c (combine_set_extension): Handle case where source
30722 and destination registers in an extension insn are different.
30723 (combine_reaching_defs): Allow source and destination registers
30724 in extension to be different under limited circumstances.
30725 (add_removable_extension): Remove restriction that the
30726 source and destination registers in the extension are the same.
30727 (find_and_remove_re): Emit a copy from the extension's
30728 destination to its source after the defining insn if
30729 the source and destination registers are different.
30730
30731 PR middle-end/59285
30732 * ifcvt.c (merge_if_block): If we are merging a block with more than
30733 one successor with a block with no successors, remove any BARRIER
30734 after the second block.
30735
30736 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30737
30738 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30739
30740 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30741
30742 PR target/59652
30743 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30744 for 14-bit register offsets when INT14_OK_STRICT is false.
30745
30746 2014-01-07 Roland Stigge <stigge@antcom.de>
30747 Michael Meissner <meissner@linux.vnet.ibm.com>
30748
30749 PR 57386/target
30750 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30751 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30752
30753 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30754
30755 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30756 -mcpu.
30757
30758 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30759
30760 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30761 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30762 rtx is const0_rtx or not.
30763
30764 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30765
30766 PR target/58115
30767 * target-globals.c (save_target_globals): Remove this_fn_optab
30768 handling.
30769 * toplev.c: Include optabs.h.
30770 (target_reinit): Temporarily restore the global options if another
30771 set of options are in force.
30772
30773 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30774
30775 PR rtl-optimization/58668
30776 * cfgcleanup.c (flow_find_cross_jump): Don't count
30777 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30778 to determine what is counted.
30779 (flow_find_head_matching_sequence): Use active_insn_p to determine
30780 what is counted.
30781 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30782 counting change.
30783 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30784 determine what is counted.
30785
30786 PR tree-optimization/59643
30787 * tree-predcom.c (split_data_refs_to_components): If one dr is
30788 read and one write, determine_offset fails and the write isn't
30789 in the bad component, just put the read into the bad component.
30790
30791 2014-01-07 Mike Stump <mikestump@comcast.net>
30792 Jakub Jelinek <jakub@redhat.com>
30793
30794 PR pch/59436
30795 * tree-core.h (struct tree_optimization_option): Change optabs
30796 type from unsigned char * to void *.
30797 * optabs.c (init_tree_optimization_optabs): Adjust
30798 TREE_OPTIMIZATION_OPTABS initialization.
30799
30800 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30801
30802 PR target/59644
30803 * config/i386/i386.h (struct machine_function): Add
30804 no_drap_save_restore field.
30805 * config/i386/i386.c (ix86_save_reg): Use
30806 !cfun->machine->no_drap_save_restore instead of
30807 crtl->stack_realign_needed.
30808 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30809 this function clears frame_pointer_needed. Set
30810 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30811 and DRAP reg is needed.
30812
30813 2014-01-06 Marek Polacek <polacek@redhat.com>
30814
30815 PR c/57773
30816 * doc/implement-c.texi: Mention that other integer types are
30817 permitted as bit-field types in strictly conforming mode.
30818
30819 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30820
30821 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30822 is newly allocated.
30823
30824 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30825
30826 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30827
30828 2014-01-06 Martin Jambor <mjambor@suse.cz>
30829
30830 PR ipa/59008
30831 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30832 to int.
30833 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30834
30835 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30836
30837 PR debug/59350
30838 PR debug/59510
30839 * var-tracking.c (add_stores): Preserve the value of the source even if
30840 we don't record the store.
30841
30842 2014-01-06 Terry Guo <terry.guo@arm.com>
30843
30844 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30845
30846 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30847
30848 PR bootstrap/59541
30849 * config/darwin.c (darwin_function_section): Adjust return values to
30850 correspond to optimisation changes made in r206070.
30851
30852 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30853
30854 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30855 from prefetch_block tune setting.
30856 (nocona_cost): Correct size of prefetch block to 64.
30857
30858 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30859
30860 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30861 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30862 used to save the static chain register in the computation of the offset
30863 from which the FP registers need to be restored.
30864
30865 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30866
30867 PR tree-optimization/59519
30868 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30869 ICE if get_current_def (current_new_name) is already non-NULL, as long
30870 as it is a phi result of some other phi in *new_exit_bb that has
30871 the same argument.
30872
30873 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30874 or vmovdqu* for misaligned_operand.
30875 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30876 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30877 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30878 aligned_mem for AVX512F masked aligned load and store builtins and for
30879 non-temporal moves.
30880
30881 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30882
30883 PR tree-optimization/59651
30884 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30885 Address range for negative step should be added by TYPE_SIZE_UNIT.
30886
30887 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30888
30889 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30890 overlapping registers also for registers other than the stack pointer.
30891
30892 2014-01-03 Marek Polacek <polacek@redhat.com>
30893
30894 PR other/59661
30895 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30896 __builtin_FILE.
30897
30898 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30899
30900 PR target/59625
30901 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30902 asm goto as jump.
30903
30904 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30905 (push splitter): Use <P:MODE_SIZE> instead of
30906 GET_MODE_SIZE (<P:MODE>mode).
30907 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30908 (mov -1, reg peephole2): Likewise.
30909 * config/i386/sse.md (*mov<mode>_internal,
30910 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30911 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30912 *<code><mode>3, *andnot<mode>3<mask_name>,
30913 <mask_codefor><code><mode>3<mask_name>): Likewise.
30914 * config/i386/subst.md (mask_mode512bit_condition,
30915 sd_mask_mode512bit_condition): Likewise.
30916
30917 2014-01-02 Xinliang David Li <davidxl@google.com>
30918
30919 PR tree-optimization/59303
30920 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30921 (dump_predicates): Better output format.
30922 (pred_equal_p): New function.
30923 (is_neq_relop_p): Ditto.
30924 (is_neq_zero_form_p): Ditto.
30925 (pred_expr_equal_p): Ditto.
30926 (pred_neg_p): Ditto.
30927 (simplify_pred): Ditto.
30928 (simplify_preds_2): Ditto.
30929 (simplify_preds_3): Ditto.
30930 (simplify_preds_4): Ditto.
30931 (simplify_preds): Ditto.
30932 (push_pred): Ditto.
30933 (push_to_worklist): Ditto.
30934 (get_pred_info_from_cmp): Ditto.
30935 (is_degenerated_phi): Ditto.
30936 (normalize_one_pred_1): Ditto.
30937 (normalize_one_pred): Ditto.
30938 (normalize_one_pred_chain): Ditto.
30939 (normalize_preds): Ditto.
30940 (normalize_cond_1): Remove function.
30941 (normalize_cond): Ditto.
30942 (is_gcond_subset_of): Ditto.
30943 (is_subset_of_any): Ditto.
30944 (is_or_set_subset_of): Ditto.
30945 (is_and_set_subset_of): Ditto.
30946 (is_norm_cond_subset_of): Ditto.
30947 (pred_chain_length_cmp): Ditto.
30948 (convert_control_dep_chain_into_preds): Type change.
30949 (find_predicates): Ditto.
30950 (find_def_preds): Ditto.
30951 (destroy_predicates_vecs): Ditto.
30952 (find_matching_predicates_in_rest_chains): Ditto.
30953 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30954 (is_pred_expr_subset): Ditto.
30955 (is_pred_chain_subset_of): Ditto.
30956 (is_included_in): Ditto.
30957 (is_superset_of): Ditto.
30958
30959 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30960
30961 Update copyright years.
30962
30963 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30964
30965 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30966 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30967 config/arc/arc.md, config/arc/arc.opt,
30968 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30969 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30970 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30971 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30972 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30973 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30974 vtable-verify.c, vtable-verify.h: Use the standard form for the
30975 copyright notice.
30976
30977 2014-01-02 Tobias Burnus <burnus@net-b.de>
30978
30979 * gcc.c (process_command): Update copyright notice dates.
30980 * gcov-dump.c: Ditto.
30981 * gcov.c: Ditto.
30982 * doc/cpp.texi: Bump @copying's copyright year.
30983 * doc/cppinternals.texi: Ditto.
30984 * doc/gcc.texi: Ditto.
30985 * doc/gccint.texi: Ditto.
30986 * doc/gcov.texi: Ditto.
30987 * doc/install.texi: Ditto.
30988 * doc/invoke.texi: Ditto.
30989
30990 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30991
30992 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30993
30994 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30995
30996 * config/i386/sse.md (*mov<mode>_internal): Guard
30997 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30998
30999 PR rtl-optimization/59647
31000 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31001 new_rtx into UNSIGNED_FLOAT rtxes.
31002 \f
31003 Copyright (C) 2014 Free Software Foundation, Inc.
31004
31005 Copying and distribution of this file, with or without modification,
31006 are permitted in any medium without royalty provided the copyright
31007 notice and this notice are preserved.