AVX-512. Extend ashrv insn patterns.
[gcc.git] / gcc / ChangeLog
1 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
2 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3 Anna Tikhonova <anna.tikhonova@intel.com>
4 Ilya Tocar <ilya.tocar@intel.com>
5 Andrey Turetskiy <andrey.turetskiy@intel.com>
6 Ilya Verbin <ilya.verbin@intel.com>
7 Kirill Yukhin <kirill.yukhin@intel.com>
8 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9
10 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
11 New.
12 (define_mode_iterator VI24_AVX512BW_1): Ditto.
13 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
14 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
15 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
16 also for TARGET_AVX512VL.
17 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
18
19 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
20
21 * doc/install.texi (Options specification): add
22 --disable-libsanitizer item.
23
24 2014-09-14 James Clarke <jrtc27@jrtc27.com>
25 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
26
27 PR target/61407
28 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
29 and above.
30 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
31 kernel version check to avoid incrementing it after every major OS X
32 release.
33 (darwin_default_min_version): Avoid static memory buffer.
34
35 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
36
37 * tree.c (need_assembler_name_p): Store C++ type mangling only
38 for aggregates.
39
40 2014-09-13 Marek Polacek <polacek@redhat.com>
41
42 * tree.c (protected_set_expr_location): Don't check whether T is
43 non-null here.
44
45 2014-09-12 DJ Delorie <dj@redhat.com>
46
47 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
48 (extend_and_shift1_hipsi2): Likewise.
49 (extend_and_shift2_hipsi2): Likewise.
50
51 2014-09-12 David Malcolm <dmalcolm@redhat.com>
52
53 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
54 with NULL when dealing with an insn.
55 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
56 from rtx to rtx_insn *.
57 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
58 const_rtx to const rtx_insn *.
59 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
60
61 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
62
63 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
64 assert.
65
66 2014-09-12 Joseph Myers <joseph@codesourcery.com>
67
68 * target.def (libgcc_floating_mode_supported_p): New hook.
69 * targhooks.c (default_libgcc_floating_mode_supported_p): New
70 function.
71 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
72 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
73 (LIBGCC2_HAS_TF_MODE): Remove.
74 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
75 * doc/tm.texi: Regenerate.
76 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
77 machine mode.
78 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
79 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
80 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
81 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
82 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
83 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
84 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
85 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
86 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
87 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
88 function.
89 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
90 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
91 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
92 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
93 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
94 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
95 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
96 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
97 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
98 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
99 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
100 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
101 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
102 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
103 Remove.
104 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
105 New macro.
106 (ia64_libgcc_floating_mode_supported_p): New function.
107 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
108 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
109 (IA64_NO_LIBGCC_TFMODE): Define.
110 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
111 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
112 macro.
113 (pdp11_scalar_mode_supported_p): New function.
114 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
115 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
116
117 2014-09-12 Richard Biener <rguenther@suse.de>
118
119 PR middle-end/63237
120 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
121
122 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
123
124 * tree.c (integer_each_onep): New function.
125 * tree.h (integer_each_onep): Declare it.
126 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
127 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
128 (X & 1) == 0 for vector and complex.
129
130 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
131
132 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
133 for A57.
134 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
135 cost to spilling from integer to FP registers.
136
137 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
138
139 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
140 move handling.
141 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
142 are now handled correctly.
143
144 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
145
146 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
147 handling of CALLER_SAVE_REGS and POINTER_REGS.
148
149 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
150
151 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
152 the number of hard registers.
153
154 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
155 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
156 Anna Tikhonova <anna.tikhonova@intel.com>
157 Ilya Tocar <ilya.tocar@intel.com>
158 Andrey Turetskiy <andrey.turetskiy@intel.com>
159 Ilya Verbin <ilya.verbin@intel.com>
160 Kirill Yukhin <kirill.yukhin@intel.com>
161 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
162
163 * config/i386/sse.md
164 (define_mode_iterator VI48_AVX512VL): New.
165 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
166 "avx512f_vternlog<mode>_maskz" and update mode iterator.
167 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
168 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
169 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
170 "avx512f_vternlog<mode>_mask" and update mode iterator.
171 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
172 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
173 iterator.
174 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
175 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
176 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
177 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
178 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
179 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
180
181 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
182 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
183 Anna Tikhonova <anna.tikhonova@intel.com>
184 Ilya Tocar <ilya.tocar@intel.com>
185 Andrey Turetskiy <andrey.turetskiy@intel.com>
186 Ilya Verbin <ilya.verbin@intel.com>
187 Kirill Yukhin <kirill.yukhin@intel.com>
188 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
189
190 * config/i386/sse.md (VI128_256): Delete.
191 (define_mode_iterator VI124_256): New.
192 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
193 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
194 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
195 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
196 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
197 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
198 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
199 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
200 iterator.
201 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
202 in presence of AVX-512.
203
204 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
205 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
206 Anna Tikhonova <anna.tikhonova@intel.com>
207 Ilya Tocar <ilya.tocar@intel.com>
208 Andrey Turetskiy <andrey.turetskiy@intel.com>
209 Ilya Verbin <ilya.verbin@intel.com>
210 Kirill Yukhin <kirill.yukhin@intel.com>
211 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
212
213 * config/i386/sse.md
214 (define_expand "<avx512>_gathersi<mode>"): Rename from
215 "avx512f_gathersi<mode>".
216 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
217 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
218 (define_expand "<avx512>_gatherdi<mode>"): Rename from
219 "avx512f_gatherdi<mode>".
220 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
221 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
222 wide versions.
223 (define_expand "<avx512>_scattersi<mode>"): Rename from
224 "avx512f_scattersi<mode>".
225 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
226 (define_expand "<avx512>_scatterdi<mode>"): Rename from
227 "avx512f_scatterdi<mode>".
228 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
229
230 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
231
232 * ira.h (ira_finish_once): Delete.
233 * ira-int.h (target_ira_int::~target_ira_int): Declare.
234 (target_ira_int::free_ira_costs): Likewise.
235 (target_ira_int::free_register_move_costs): Likewise.
236 (ira_finish_costs_once): Delete.
237 * ira.c (free_register_move_costs): Replace with...
238 (target_ira_int::free_register_move_costs): ...this new function.
239 (target_ira_int::~target_ira_int): Define.
240 (ira_init): Call free_register_move_costs as a member function rather
241 than a global function.
242 (ira_finish_once): Delete.
243 * ira-costs.c (free_ira_costs): Replace with...
244 (target_ira_int::free_ira_costs): ...this new function.
245 (ira_init_costs): Call free_ira_costs as a member function rather
246 than a global function.
247 (ira_finish_costs_once): Delete.
248 * target-globals.c (target_globals::~target_globals): Call the
249 target_ira_int destructor.
250 * toplev.c: Include lra.h.
251 (finalize): Call lra_finish_once rather than ira_finish_once.
252
253 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
254
255 * common.opt (flto-odr-type-merging): New flag.
256 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
257 (types_same_for_odr): Likewise.
258 (odr_subtypes_equivalent_p): Likewise.
259 (add_type_duplicate): Do not walk type variants.
260 (register_odr_type): New function.
261 * ipa-utils.h (register_odr_type): Declare.
262 (odr_type_p): New function.
263 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
264 TYPE_DECLs
265 * doc/invoke.texi (-flto-odr-type-merging): Document.
266 * tree.c (need_assembler_name_p): Compute ODR names when asked
267 for it.
268 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
269
270 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
271
272 PR target/63228
273 * config/i386/i386.c (ix86_option_override_internal): Also turn
274 off OPTION_MASK_ABI_X32 for -m16.
275
276 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
277
278 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
279 GPR instead of P.
280
281 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
282
283 PR target/58757
284 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
285 Directly forward to __*_DENORM_MIN__.
286
287 2014-09-11 David Malcolm <dmalcolm@redhat.com>
288
289 * rtl.h (LABEL_REF_LABEL): New macro.
290
291 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
292 of XEXP (, 0), where we know that we have a LABEL_REF.
293 * cfgbuild.c (make_edges): Likewise.
294 (purge_dead_tablejump_edges): Likewise.
295 * cfgexpand.c (convert_debug_memory_address): Likewise.
296 * cfgrtl.c (patch_jump_insn): Likewise.
297 * combine.c (distribute_notes): Likewise.
298 * cse.c (hash_rtx_cb): Likewise.
299 (exp_equiv_p): Likewise.
300 (fold_rtx): Likewise.
301 (check_for_label_ref): Likewise.
302 * cselib.c (rtx_equal_for_cselib_1): Likewise.
303 (cselib_hash_rtx): Likewise.
304 * emit-rtl.c (mark_label_nuses): Likewise.
305 * explow.c (convert_memory_address_addr_space): Likewise.
306 * final.c (output_asm_label): Likewise.
307 (output_addr_const): Likewise.
308 * gcse.c (add_label_notes): Likewise.
309 * genconfig.c (walk_insn_part): Likewise.
310 * genrecog.c (validate_pattern): Likewise.
311 * ifcvt.c (cond_exec_get_condition): Likewise.
312 (noce_emit_store_flag): Likewise.
313 (noce_get_alt_condition): Likewise.
314 (noce_get_condition): Likewise.
315 * jump.c (maybe_propagate_label_ref): Likewise.
316 (mark_jump_label_1): Likewise.
317 (redirect_exp_1): Likewise.
318 (rtx_renumbered_equal_p): Likewise.
319 * lra-constraints.c (operands_match_p): Likewise.
320 * reload.c (operands_match_p): Likewise.
321 (find_reloads): Likewise.
322 * reload1.c (set_label_offsets): Likewise.
323 * reorg.c (get_branch_condition): Likewise.
324 * rtl.c (rtx_equal_p_cb): Likewise.
325 (rtx_equal_p): Likewise.
326 * rtlanal.c (reg_mentioned_p): Likewise.
327 (rtx_referenced_p): Likewise.
328 (get_condition): Likewise.
329 * sched-vis.c (print_value): Likewise.
330 * varasm.c (const_hash_1): Likewise.
331 (compare_constant): Likewise.
332 (const_rtx_hash_1): Likewise.
333 (output_constant_pool_1): Likewise.
334
335 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
336
337 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
338 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
339 instead of minus.
340 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
341 cr6_test_for_lt_reverse): Ditto.
342
343 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
344
345 PR c++/61489
346 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
347
348 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
349
350 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
351 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
352 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
353 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
354 Delete.
355
356 (aarch64_fold_builtin): Remove all reinterpret cases.
357
358 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
359
360 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
361
362 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
363 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
364 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
365 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
366 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
367 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
368 aarch64_reinterpretv2df<mode>): Delete.
369
370 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
371
372 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
373 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
374 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
375 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
376 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
377 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
378 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
379 vreinterpret_u32_f64): Use cast.
380
381 * config/aarch64/iterators.md (VD_RE): Delete.
382
383 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
384
385 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
386 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
387 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
388 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
389 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
390 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
391 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
392 Replace inline assembler with __aarch64_vset_lane_any.
393
394 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
395
396 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
397 types.
398 (vmull_high_lane_s32): Likewise.
399 (vmull_high_lane_u16): Likewise.
400 (vmull_high_lane_u32): Likewise.
401
402 2014-09-11 Jason Merrill <jason@redhat.com>
403
404 PR c++/58678
405 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
406
407 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
408
409 PR target/63223
410 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
411 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
412 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
413
414 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
415 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
416 Anna Tikhonova <anna.tikhonova@intel.com>
417 Ilya Tocar <ilya.tocar@intel.com>
418 Andrey Turetskiy <andrey.turetskiy@intel.com>
419 Ilya Verbin <ilya.verbin@intel.com>
420 Kirill Yukhin <kirill.yukhin@intel.com>
421 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
422
423 * config/i386/sse.md
424 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
425 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
426 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
427 New.
428 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
429 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
430 iterator.
431 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
432 New.
433 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
434 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
435 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
436 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
437 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
438 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
439 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
440 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
441 iterator.
442 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
443 New.
444 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
445 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
446 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
447
448 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
449
450 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
451 to access removed nodes.
452
453 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
454
455 PR tree-optimization/63186
456 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
457 (mark_nonssa_use): Likewise.
458 (verify_non_ssa_vars): Verify all header blocks for label
459 definitions.
460
461 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
462 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
463 Anna Tikhonova <anna.tikhonova@intel.com>
464 Ilya Tocar <ilya.tocar@intel.com>
465 Andrey Turetskiy <andrey.turetskiy@intel.com>
466 Ilya Verbin <ilya.verbin@intel.com>
467 Kirill Yukhin <kirill.yukhin@intel.com>
468 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
469
470 * config/i386/sse.md
471 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
472 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
473 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
474 "<avx2_avx512f>_permvar<mode><mask_name>".
475 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
476 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
477 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
478 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
479 Ditto.
480 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
481 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
482 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
483 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
484
485 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
486
487 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
488 V2DF, V4SF, DF, and DI modes.
489 (vsx_fmav2df2): Likewise.
490 (vsx_float_fix_<mode>2): Likewise.
491 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
492
493 2014-09-10 Xinliang David Li <davidxl@google.com>
494
495 PR target/63209
496 * config/arm/arm.md (movcond_addsi): Handle case where source
497 and target operands are the same.
498
499 2014-09-10 David Malcolm <dmalcolm@redhat.com>
500
501 * final.c (this_is_asm_operands): Strengthen this variable from
502 rtx to const rtx_insn *.
503 * output.h (this_is_asm_operands): Likewise.
504 * rtl-error.c (location_for_asm): Strengthen param "insn" from
505 const_rtx to const rtx_insn *.
506 (diagnostic_for_asm): Likewise.
507 * rtl-error.h (error_for_asm): Likewise.
508 (warning_for_asm): Likewise.
509
510 2014-09-10 David Malcolm <dmalcolm@redhat.com>
511
512 * genextract.c (print_header): When writing out insn_extract to
513 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
514 * recog.h (insn_extract): Strengthen the param from rtx to
515 rtx_insn *.
516
517 2014-09-10 Mike Stump <mikestump@comcast.net>
518
519 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
520 8.6.1.
521
522 2014-09-10 Martin Jambor <mjambor@suse.cz>
523
524 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
525 (analyze): Do not set analyze flag if expand_thunk returns false;.
526 (create_wrapper): Likewise.
527 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
528
529 2014-09-10 Martin Jambor <mjambor@suse.cz>
530
531 PR ipa/61654
532 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
533 new decl properly. Analyze the new thunk if it is expanded.
534
535 2014-09-10 Andreas Schwab <schwab@suse.de>
536
537 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
538 [USED_FOR_TARGET]: Define.
539
540 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
541
542 * config/mips/mips.c (mips_secondary_reload_class): Handle
543 regno < 0 case.
544
545 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
546
547 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
548 assignment.
549
550 2014-09-10 Jakub Jelinek <jakub@redhat.com>
551
552 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
553 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
554 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
555 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
556 flag_delete_null_pointer_checks for them.
557 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
558 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
559 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
560 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
561 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
562 stmt's iterator.
563 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
564 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
565 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
566 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
567 * doc/invoke.texi (-fsanitize=nonnull-attribute,
568 -fsanitize=returns-nonnull-attribute): Document.
569
570 * ubsan.h (struct ubsan_mismatch_data): Removed.
571 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
572 * ubsan.c (ubsan_source_location): For unknown locations,
573 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
574 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
575 Allow more than one location and arbitrary extra arguments passed
576 in ... instead of through MISMATCH pointer.
577 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
578 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
579 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
580 callers.
581
582 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
583 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
584 Anna Tikhonova <anna.tikhonova@intel.com>
585 Ilya Tocar <ilya.tocar@intel.com>
586 Andrey Turetskiy <andrey.turetskiy@intel.com>
587 Ilya Verbin <ilya.verbin@intel.com>
588 Kirill Yukhin <kirill.yukhin@intel.com>
589 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
590
591 * config/i386/sse.md
592 (define_mode_iterator VI48F): New.
593 (define_insn "<avx512>_compress<mode>_mask"): Rename from
594 "avx512f_compress<mode>_mask" and update mode iterator.
595 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
596 "avx512f_compressstore<mode>_mask" and update mode iterator.
597 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
598 "avx512f_expand<mode>_maskz" and update mode iterator.
599 (define_insn "<avx512>_expand<mode>_mask"): Rename from
600 "avx512f_expand<mode>_mask" and update mode iterator.
601
602 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
603 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
604 Anna Tikhonova <anna.tikhonova@intel.com>
605 Ilya Tocar <ilya.tocar@intel.com>
606 Andrey Turetskiy <andrey.turetskiy@intel.com>
607 Ilya Verbin <ilya.verbin@intel.com>
608 Kirill Yukhin <kirill.yukhin@intel.com>
609 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
610
611 * config/i386/i386.c
612 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
613 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
614 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
615 avx512dq_rangepv4sf_mask.
616 * config/i386/sse.md
617 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
618 UNSPEC_RANGE.
619 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
620 (define_insn "reduces<mode>"): Ditto.
621 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
622 Ditto.
623 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
624 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
625 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
626
627 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
628 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
629 Anna Tikhonova <anna.tikhonova@intel.com>
630 Ilya Tocar <ilya.tocar@intel.com>
631 Andrey Turetskiy <andrey.turetskiy@intel.com>
632 Ilya Verbin <ilya.verbin@intel.com>
633 Kirill Yukhin <kirill.yukhin@intel.com>
634 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
635
636 * config/i386/i386.c
637 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
638 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
639 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
640 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
641 avx512vl_getmantv2df_mask.
642 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
643 avx512f_vgetmantv4sf_round.
644 * config/i386/sse.md
645 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
646 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
647 mode iterator.
648 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
649 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
650 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
651 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
652 iterator..
653 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
654 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
655 update mode iterator.
656 (define_expand
657 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
658 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
659 mode iterator.
660 (define_insn
661 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
662 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
663 update mode iterator.
664 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
665 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
666 iterator..
667 (define_insn
668 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
669 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
670 mode iterator..
671 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
672 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
673 update mode iterator.
674 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
675 "avx512f_getmant<mode><round_saeonly_name>".
676
677 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
678
679 PR ipa/63166
680 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
681
682 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
683 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
684 Anna Tikhonova <anna.tikhonova@intel.com>
685 Ilya Tocar <ilya.tocar@intel.com>
686 Andrey Turetskiy <andrey.turetskiy@intel.com>
687 Ilya Verbin <ilya.verbin@intel.com>
688 Kirill Yukhin <kirill.yukhin@intel.com>
689 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
690
691 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
692 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
693 (define_mode_iterator FMAMODE_AVX512): New.
694 (define_mode_iterator FMAMODE): Remove conditions.
695 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
696 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
697 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
698 mode iterator.
699 (define_mode_iterator FMAMODE_NOVF512): Remove.
700 (define_insn "*fma_fmadd_<mode>"): Rename from
701 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
702 FMAMODE mode iterator.
703 (define_mode_iterator VF_SF_AVX512VL): New.
704 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
705 Use VF_SF_AVX512VL mode iterator.
706 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
707 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
708 iterator.
709 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
710 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
711 iterator.
712 (define_insn "*fma_fmsub_<mode>"): Rename from
713 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
714 FMAMODE mode iterator.
715 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
716 Use VF_SF_AVX512VL mode iterator.
717 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
718 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
719 iterator.
720 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
721 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
722 iterator.
723 (define_insn "*fma_fnmadd_<mode>"): Rename from
724 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
725 use FMAMODE mode iterator.
726 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
727 Use VF_SF_AVX512VL mode iterator.
728 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
729 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
730 iterator.
731 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
732 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
733 iterator.
734 (define_insn "*fma_fnmsub_<mode>"): Rename from
735 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
736 FMAMODE mode iterator.
737 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
738 Use VF_SF_AVX512VL mode iterator.
739 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
740 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
741 iterator.
742 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
743 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
744 iterator.
745 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
746 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
747 use VF_AVX512VL mode iterator.
748 (define_insn "*fma_fmaddsub_<mode>"): Rename from
749 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
750 remove subst usage.
751 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
752 Use VF_SF_AVX512VL mode iterator.
753 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
754 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
755 iterator.
756 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
757 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
758 iterator.
759 (define_insn "*fma_fmsubadd_<mode>"): Rename from
760 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
761 remove usage of subst.
762 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
763 Use VF_SF_AVX512VL mode iterator.
764 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
765 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
766 iterator.
767 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
768 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
769 iterator.
770
771 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
772
773 Revert r213751:
774 * calls.c (precompute_arguments): Check
775 promoted_for_signed_and_unsigned_p and set the promoted mode.
776 (promoted_for_signed_and_unsigned_p): New function.
777 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
778 and set the promoted mode.
779 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
780 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
781 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
782
783 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
784
785 * opth-gen.awk: Generate mapping from cpp message reasons to the
786 options that enable them.
787 * doc/options.texi (CppReason): Document.
788
789 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
790
791 * doc/invoke.texi (Wnormalized=): Update.
792
793 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
794
795 PR target/63195
796 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
797 operands. Split off the constant operand alternative to ...
798 (*bool<mode>3_imm): New.
799
800 2014-09-09 David Malcolm <dmalcolm@redhat.com>
801
802 * rtl.h (single_set_2): Strengthen first param from const_rtx to
803 const rtx_insn *, and move prototype to above...
804 (single_set): ...this. Convert this from a macro to an inline
805 function, enforcing the requirement that the param is a const
806 rtx_insn *.
807 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
808
809 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
810 Strengthen both params from rtx to rtx_insn *.
811 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
812 Likewise; introduce locals "producer_set", "consumer_set", using
813 them in place of "producer" and "consumer" when dealing with SET
814 rather than insn.
815 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
816 when invoking single_set in region guarded by INSN_P.
817 (avr_out_bitop): Likewise.
818 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
819 region guarded by GET_CODE check, using methods to strengthen
820 local "this_insn" from rtx to rtx_insn *, and for clarity.
821 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
822 Strengthen local "insn" from rtx to rtx_insn *.
823 (define_insn_and_split "xload<mode>_A"): Likewise.
824 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
825 "insn".
826 (find_load): Likewise for return type.
827 (workaround_speculation): Likewise for both locals named
828 "load_insn".
829 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
830 local "cc0_user".
831 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
832 for local "prev".
833 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
834 param 2.
835 * config/h8300/h8300.c (notice_update_cc): Likewise.
836 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
837 "insn" and "dep_insn".
838 (exact_store_load_dependency): Likewise for both params.
839 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
840 since this now clashes with inline function. Instead, delay
841 calling single_set until the point where its needed, and then
842 assign the result to "compare_set" and rework the conditional that
843 follows.
844 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
845 local "last" from rtx to rtx_insn *.
846 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
847 second param.
848 (mips_store_data_bypass_p): Likewise for both params.
849 * config/mips/mips.c (mips_load_store_insns): Likewise for second
850 param.
851 (mips_store_data_bypass_p): Likewise for both params.
852 (mips_orphaned_high_part_p): Likewise for param "insn".
853 * config/mn10300/mn10300.c (extract_bundle): Likewise.
854 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
855 Introduce local rtx "insn2_pat".
856 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
857 "ninsn".
858 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
859 Introduce local rtx "set", using it in place of "insn" for the
860 result of single_set. This appears to fix a bug, since the call
861 to find_regno_note on a SET does nothing.
862 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
863 params from rtx to rtx_insn *.
864 (set_to_load_agen): Likewise.
865 * config/s390/s390.c (s390_label_align): Likewise for local
866 "prev_insn". Introduce new rtx locals "set" and "src", using
867 them in place of "prev_insn" for the results of single_set
868 and SET_SRC respectively.
869 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
870 Introduce new rtx local "set" using in place of "jump" for the
871 result of single_set. Use SET_SRC (set) rather than plain
872 XEXP (set, 1).
873 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
874 rtx to rtx_insn *.
875 (noncall_uses_reg): Likewise.
876 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
877 guarded by GET_CODE check, using its methods for clarity, and to
878 enable strengthening local "this_insn" from rtx to rtx_insn *.
879 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
880 "insn" from rtx to rtx_insn *.
881 (define_expand "umulhisi3"): Likewise.
882 (define_expand "smulsi3_highpart"): Likewise.
883 (define_expand "umulsi3_highpart"): Likewise.
884 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
885 local "after". Replace GET_CODE check with a dyn_cast,
886 introducing new local rtx_sequence * "seq", using insn method for
887 typesafety.
888
889 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
890 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
891 place of "insn" once we're dealing with patterns rather than the
892 input insn.
893 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
894 (scan_trace): Likewise for local "elt", updating lookups within
895 sequence to use insn method rather than element method.
896 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
897 to rtx_insn *.
898 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
899 * ifcvt.c (noce_try_abs): Likewise for local "insn".
900 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
901 invoking single_set.
902 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
903 "insn" from rtx to rtx_insn *.
904 (skip_usage_debug_insns): Likewise for return type, adding a
905 checked cast.
906 (check_secondary_memory_needed_p): Likewise for local "insn".
907 (inherit_reload_reg): Likewise.
908 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
909 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
910 checked casts.
911 (store_data_bypass_p): Likewise for both params.
912 (if_test_bypass_p): Likewise.
913 * recog.h (store_data_bypass_p): Likewise for both params.
914 (if_test_bypass_p): Likewise.
915 * reload.c (find_equiv_reg): Likewise for local "where".
916 * reorg.c (delete_jump): Likewise for param "insn".
917 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
918 to const rtx_insn *.
919 * store-motion.c (replace_store_insn): Likewise for param "del".
920 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
921 and use its methods for clarity, and to strengthen local "del"
922 from rtx to rtx_insn *.
923 (build_store_vectors): Use insn method of "st" when calling
924 replace_store_insn for typesafety and clarity.
925
926 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
927
928 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
929 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
930 on how to make it legal in future.
931
932 2014-09-09 David Malcolm <dmalcolm@redhat.com>
933
934 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
935 to rtx_insn *.
936 (restinsn): Likewise.
937 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
938 Likewise for param.
939 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
940 Likewise.
941 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
942 first param.
943 (arc_hazard): Likewise for both params.
944 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
945 checked casts to rtx_sequence * and uses of the insn method for
946 type-safety.
947 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
948 (arc_adjust_insn_length): Likewise for param "insn".
949 (struct insn_length_parameters_s): Likewise for first param of
950 "get_variants" callback field.
951 (arc_get_insn_variants): Likewise for first param and local
952 "inner". Replace a check of GET_CODE with a dyn_cast to
953 rtx_sequence *, using methods for type-safety and clarity.
954 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
955 rtx_sequence * and uses of the insn method for type-safety when
956 invoking arc_adjust_insn_length.
957 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
958 for param.
959 (arm_address_offset_is_imm): Likewise.
960 (struct tune_params): Likewise for params 1 and 3 of the
961 "sched_adjust_cost" callback field.
962 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
963 params 1 and 3 ("insn" and "dep").
964 (xscale_sched_adjust_cost): Likewise.
965 (fa726te_sched_adjust_cost): Likewise.
966 (cortexa7_older_only): Likewise for param "insn".
967 (cortexa7_younger): Likewise.
968 (arm_attr_length_move_neon): Likewise.
969 (arm_address_offset_is_imm): Likewise.
970 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
971 * config/avr/avr.c (avr_notice_update_cc): Likewise.
972 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
973 (workaround_speculation): Likewise for local "last_condjump".
974 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
975 (shadow_or_blockage_p): Likewise.
976 (get_unit_reqs): Likewise.
977 (get_unit_operand_masks): Likewise.
978 (c6x_registers_update): Likewise.
979 (returning_call_p): Likewise.
980 (can_use_callp): Likewise.
981 (convert_to_callp): Likewise.
982 (find_last_same_clock): Likwise for local "t".
983 (reorg_split_calls): Likewise for local "shadow".
984 (hwloop_pattern_reg): Likewise for param "insn".
985 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
986 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
987 (frv_extract_membar): Likewise.
988 (frv_optimize_membar_local): Strengthen param "last_membar" from
989 rtx * to rtx_insn **.
990 (frv_optimize_membar_global): Strengthen param "membar" from rtx
991 to rtx_insn *.
992 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
993 to rtx_insn **.
994 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
995 both params from rtx to rtx_insn *.
996 (ia64_ld_address_bypass_p): Likewise.
997 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
998 "insn".
999 (ia64_safe_type): Likewise.
1000 (group_barrier_needed): Likewise.
1001 (safe_group_barrier_needed): Likewise.
1002 (ia64_single_set): Likewise.
1003 (is_load_p): Likewise.
1004 (record_memory_reference): Likewise.
1005 (get_mode_no_for_insn): Likewise.
1006 (important_for_bundling_p): Likewise.
1007 (unknown_for_bundling_p): Likewise.
1008 (ia64_st_address_bypass_p): Likewise for both params.
1009 (ia64_ld_address_bypass_p): Likewise.
1010 (expand_vselect): Introduce new local rtx_insn * "insn", using it
1011 in place of rtx "x" after the emit_insn call.
1012 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1013 Strengthen param from rtx to rtx_insn *.
1014 (ix86_agi_dependent): Likewise for both params.
1015 (ix86_attr_length_immediate_default): Likewise for param 1.
1016 (ix86_attr_length_address_default): Likewise for param.
1017 (ix86_attr_length_vex_default): Likewise for param 1.
1018 * config/i386/i386.c (ix86_attr_length_immediate_default):
1019 Likewise for param "insn".
1020 (ix86_attr_length_address_default): Likewise.
1021 (ix86_attr_length_vex_default): Likewise.
1022 (ix86_agi_dependent): Likewise for both params.
1023 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1024 (vselect_insn): Likewise for this variable.
1025 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1026 for param 1.
1027 (m68k_sched_attr_opy_type): Likewise.
1028 * config/m68k/m68k.c (sched_get_operand): Likewise.
1029 (sched_attr_op_type): Likewise.
1030 (m68k_sched_attr_opx_type): Likewise.
1031 (m68k_sched_attr_opy_type): Likewise.
1032 (sched_get_reg_operand): Likewise.
1033 (sched_get_mem_operand): Likewise.
1034 (m68k_sched_address_bypass_p): Likewise for both params.
1035 (sched_get_indexed_address_scale): Likewise.
1036 (m68k_sched_indexed_address_bypass_p): Likewise.
1037 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1038 (m68k_sched_indexed_address_bypass_p): Likewise.
1039 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1040 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1041 removing another.
1042 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1043 params from rtx to rtx_insn *.
1044 (mips_fmadd_bypass): Likewise.
1045 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1046 (mips_linked_madd_p): Likewise.
1047 (mips_macc_chains_last_hilo): Likewise for this variable.
1048 (mips_macc_chains_record): Likewise for param.
1049 (vr4130_last_insn): Likewise for this variable.
1050 (vr4130_swap_insns_p): Likewise for both params.
1051 (mips_ls2_variable_issue): Likewise for param.
1052 (mips_need_noat_wrapper_p): Likewise for param "insn".
1053 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1054 in place of "x" after the emit_insn.
1055 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1056 params from rtx to rtx_insn *.
1057 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1058 (pa_combine_instructions): Introduce local "par" for result of
1059 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1060 to make_insn_raw.
1061 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1062 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1063 (rl78_alloc_physical_registers_op1): Likewise.
1064 (rl78_alloc_physical_registers_op2): Likewise.
1065 (rl78_alloc_physical_registers_ro1): Likewise.
1066 (rl78_alloc_physical_registers_cmp): Likewise.
1067 (rl78_alloc_physical_registers_umul): Likewise.
1068 (rl78_alloc_address_registers_macax): Likewise.
1069 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1070 * config/s390/predicates.md (execute_operation): Likewise for
1071 local "insn".
1072 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1073 params.
1074 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1075 (addr_generation_dependency_p): Likewise for param "insn".
1076 (s390_agen_dep_p): Likewise for both params.
1077 (s390_fpload_toreg): Likewise for param "insn".
1078 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1079 * config/sh/sh.c (sh_loop_align): Likewise for param and local
1080 "next".
1081 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1082 * config/sh/sh_treg_combine.cc
1083 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1084 and local "i".
1085 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1086 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1087 "and_insn", "load", "shift".
1088 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1089 "insn".
1090 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1091 for XEXP (note, 0) of the REG_CC_SETTER note.
1092 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1093 rtx_insn *, eliminating a checked cast made redundant by this.
1094 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1095 to rtx_insn *.
1096 * genattr.c (main): When writing out the prototype to
1097 const_num_delay_slots, strengthen the param from rtx to
1098 rtx_insn *.
1099 * genattrtab.c (write_const_num_delay_slots): Likewise when
1100 writing out the implementation of const_num_delay_slots.
1101 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1102 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1103 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1104 favor of new rtx locals "src" and "set" and new local rtx_insn *
1105 "insn" and "seq".
1106 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1107 to rtx_insn *.
1108 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1109 locals "cond", "if_then_else", "set" and new rtx_insn * locals
1110 "insn" and "seq".
1111 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1112 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
1113 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
1114 the top-level scope, replacing with new more tightly-scoped rtx
1115 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1116 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1117 tightly-scoped.
1118 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1119 rtx_insn *.
1120 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1121 "move_insn".
1122 (ira_setup_alts): Likewise for param "insn".
1123 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1124 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1125 and an rtx_insn *.
1126 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1127 new more-tightly scoped rtx locals "add3_insn", "insn",
1128 "add2_insn" and rtx_insn * "move_insn".
1129 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1130 checked cast on result of gen_move_insn when invoking
1131 extract_insn.
1132 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1133 rtx_insn *.
1134 (verify_changes): Add a checked cast on "object" when invoking
1135 insn_invalid_p.
1136 (extract_insn_cached): Strengthen param "insn" from rtx to
1137 rtx_insn *.
1138 (extract_constrain_insn_cached): Likewise.
1139 (extract_insn): Likewise.
1140 * recog.h (insn_invalid_p): Likewise for param 1.
1141 (recog_memoized): Likewise for param.
1142 (extract_insn): Likewise.
1143 (extract_constrain_insn_cached): Likewise.
1144 (extract_insn_cached): Likewise.
1145 * reload.c (can_reload_into): Likewise for local "test_insn".
1146 * reload.h (cleanup_subreg_operands): Likewise for param.
1147 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1148 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1149 result of emit_insn. Remove a checked cast made redundant by this
1150 change.
1151 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1152 rtx to rtx_insn *.
1153 * sel-sched.c (get_reg_class): Likewise.
1154
1155 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1156 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1157
1158 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1159 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1160 Define.
1161 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1162
1163 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1164
1165 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1166 const rtx_insn *, and from rtx to rtx_insn * for the other
1167 overloaded variant.
1168 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1169 INSN_LOCATION, since we know INSN_P holds.
1170 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1171 (insn_file): Likewise.
1172 (insn_scope): Likewise.
1173 (insn_location): Likewise.
1174
1175 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1176 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1177 for the result of gen_load_const_gp.
1178 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1179 param from rtx to rtx_insn *.
1180 * config/rs6000/rs6000.c (output_call): Likewise.
1181 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1182 introducing a checked cast to rtx_sequence * and use of the insn
1183 method.
1184 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1185 from rtx to rtx_insn *.
1186 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1187 (insn_line): Likewise.
1188 (insn_file): Likewise.
1189 (insn_location): Likewise.
1190 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1191 from rtx to rtx_insn *.
1192 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1193 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1194 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1195 via a checked cast.
1196 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1197 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1198
1199 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1200
1201 * combine.c (try_combine): Eliminate checked cast on result of
1202 gen_rtx_INSN.
1203 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1204 autogenerated one by strengthening the return type and params 2 and 3
1205 from rtx to rtx_insn *, and by naming the params.
1206 * gengenrtl.c (special_rtx): Add INSN to those that are
1207 special-cased.
1208 * rtl.h (gen_rtx_INSN): New prototype.
1209
1210 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1211
1212 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1213 than NULL_RTX.
1214 (no_equiv): Likewise.
1215 (update_equiv_regs): Likewise.
1216 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1217 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1218 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1219 clarity.
1220 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1221 from rtx to rtx_insn_list *.
1222 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1223 rtx_insn_list * and use methods for clarity and typesafety.
1224 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1225 "list".
1226 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1227 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1228 an INSN_LIST, not an insn.
1229 (reverse_equiv_p): Strengthen local "insns" from rtx to
1230 rtx_insn_list * and use methods for clarity and typesafety.
1231 (contains_reloaded_insn_p): Likewise for local "list".
1232
1233 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1234
1235 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1236 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1237 (arm_builtin_vectorized_function): Likewise.
1238 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1239 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1240
1241 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1242
1243 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1244 * builtins.h (default_target_builtins): Likewise.
1245 * gcse.h (default_target_gcse): Likewise.
1246 * target-globals.h (target_globals): Add a destructor. Convert
1247 void-pointer fields back to their real type and change from
1248 GTY((atomic)) to GTY((skip)).
1249 (restore_target_globals): Remove casts accordingly.
1250 * target-globals.c (save_target_globals): Use XCNEW rather than
1251 ggc_internal_cleared_alloc to allocate non-GC structures.
1252 Use ggc_cleared_alloc to allocate the target_globals structure
1253 itself.
1254 (target_globals::~target_globals): Define.
1255
1256 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1257
1258 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1259 mnemonic instead of fldmfdd.
1260 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1261 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1262 Output vpush when address register is SP.
1263 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1264 (vfp_output_vstmd): ... This.
1265 * config/arm/vfp.md (push_multi_vfp): Update call to
1266 vfp_output_vstmd.
1267
1268 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1269
1270 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1271
1272 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1273
1274 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1275 (*sqrtdf2_vfp): Likewise.
1276 (*cmpsf_vfp): Likewise.
1277 (*cmpsf_trap_vfp): Likewise.
1278 (*cmpdf_vfp): Likewise.
1279 (*cmpdf_trap_vfp): Likewise.
1280
1281 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1282
1283 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1284 (*truncdfsf2_vfp): Likewise.
1285 (*truncsisf2_vfp): Likewise.
1286 (*truncsidf2_vfp): Likewise.
1287 (fixuns_truncsfsi2): Likewise.
1288 (fixuns_truncdfsi2): Likewise.
1289 (*floatsisf2_vfp): Likewise.
1290 (*floatsidf2_vfp): Likewise.
1291 (floatunssisf2): Likewise.
1292 (floatunssidf2): Likewise.
1293
1294 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1295
1296 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1297 (*muldf3_vfp): Likewise.
1298 (*mulsf3negsf_vfp): Likewise.
1299 (*muldf3negdf_vfp): Likewise.
1300 (*mulsf3addsf_vfp): Likewise.
1301 (*muldf3adddf_vfp): Likewise.
1302 (*mulsf3subsf_vfp): Likewise.
1303 (*muldf3subdf_vfp): Likewise.
1304 (*mulsf3negsfaddsf_vfp): Likewise.
1305 (*fmuldf3negdfadddf_vfp): Likewise.
1306 (*mulsf3negsfsubsf_vfp): Likewise.
1307 (*muldf3negdfsubdf_vfp): Likewise.
1308
1309 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1310
1311 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1312 (*absdf2_vfp): Likewise.
1313 (*negsf2_vfp): Likewise.
1314 (*negdf2_vfp): Likewise.
1315 (*addsf3_vfp): Likewise.
1316 (*adddf3_vfp): Likewise.
1317 (*subsf3_vfp): Likewise.
1318 (*subdf3_vfp): Likewise.
1319 (*divsf3_vfp): Likewise.
1320 (*divdf3_vfp): Likewise.
1321
1322 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1323
1324 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1325 multiple.
1326 (arm_print_operand): Don't convert real values to decimal
1327 representation in default case.
1328 (fp_immediate_constant): Delete.
1329 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1330 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1331 syntax.
1332 (*thumb2_movsi_vfp): Likewise.
1333 (*movdi_vfp): Likewise.
1334 (*movdi_vfp_cortexa8): Likewise.
1335 (*movhf_vfp_neon): Likewise.
1336 (*movhf_vfp): Likewise.
1337 (*movsf_vfp): Likewise.
1338 (*thumb2_movsf_vfp): Likewise.
1339 (*movdf_vfp): Likewise.
1340 (*thumb2_movdf_vfp): Likewise.
1341 (*movsfcc_vfp): Likewise.
1342 (*thumb2_movsfcc_vfp): Likewise.
1343 (*movdfcc_vfp): Likewise.
1344 (*thumb2_movdfcc_vfp): Likewise.
1345
1346 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1347
1348 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1349 (-mtune): Likewise.
1350 (-mcpu): Likewise.
1351
1352 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1353
1354 PR target/61749
1355 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1356 Use qualifier_immediate for last operand. Rename to...
1357 (aarch64_types_ternop_lane_qualifiers): ... This.
1358 (TYPES_QUADOP): Rename to...
1359 (TYPES_TERNOP_LANE): ... This.
1360 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1361 error. Change return of 0 to return of NULL_RTX.
1362 (aarch64_crc32_expand_builtin): Likewise.
1363 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1364 ICE when expanding unknown builtin.
1365 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1366 TERNOP_LANE qualifiers.
1367 (sqdmlsl_lane): Likewise.
1368 (sqdmlal_laneq): Likewise.
1369 (sqdmlsl_laneq): Likewise.
1370 (sqdmlal2_lane): Likewise.
1371 (sqdmlsl2_lane): Likewise.
1372 (sqdmlal2_laneq): Likewise.
1373 (sqdmlsl2_laneq): Likewise.
1374
1375 2014-09-09 Nick Clifton <nickc@redhat.com>
1376
1377 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1378 end of a line.
1379 (S/390 and zSeries Options): Remove superfluous word from the
1380 description of the -mhotpatch option.
1381
1382 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1383
1384 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1385 * ira.c: #include "shrink-wrap.h"
1386 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1387 * ifcvt.c: #include "shrink-wrap.h"
1388 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1389
1390 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1391
1392 * common/config/picochip/picochip-common.c: Remove.
1393 * config.gcc: Remove support for picochip.
1394 * config/picochip/constraints.md: Remove.
1395 * config/picochip/dfa_space.md: Remove.
1396 * config/picochip/dfa_speed.md: Remove.
1397 * config/picochip/picochip-protos.h: Remove.
1398 * config/picochip/picochip.c: Remove.
1399 * config/picochip/picochip.h: Remove.
1400 * config/picochip/picochip.md: Remove.
1401 * config/picochip/picochip.opt: Remove.
1402 * config/picochip/predicates.md: Remove.
1403 * config/picochip/t-picochip: Remove.
1404 * doc/md.texi: Don't document picochi.
1405
1406 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1407
1408 * basic-block.h (control_flow_insn_p): Strengthen param from
1409 const_rtx to const rtx_insn *.
1410 * cfgbuild.c (control_flow_insn_p): Likewise.
1411
1412 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1413
1414 * gcse.c (modify_mem_list): Strengthen this variable from
1415 vec<rtx> * to vec<rtx_insn *> *.
1416 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1417 vec<rtx_insn *>.
1418 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1419 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1420 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1421 rtx_insn *.
1422 (record_last_set_info): Likewise for local "last_set_insn".
1423
1424 2014-09-08 DJ Delorie <dj@redhat.com>
1425
1426 * doc/invoke.texi (MSP430 Options): Add -minrt.
1427
1428 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1429
1430 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1431 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1432 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1433 handling SH_SPLAT.
1434 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1435 of extracted lane.
1436 (adjust_splat): New function.
1437 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1438 (dump_swap_insn_table): Add case for SH_SPLAT.
1439
1440 2014-09-08 Richard Biener <rguenther@suse.de>
1441
1442 PR ipa/63196
1443 * tree-inline.c (copy_loops): The source loop header should
1444 always be non-NULL.
1445 (tree_function_versioning): If loops need fixup after removing
1446 unreachable blocks fix them.
1447 * omp-low.c (simd_clone_adjust): Do not add incr block to
1448 loop under construction.
1449
1450 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1451
1452 * config/aarch64/aarch64-builtins.c
1453 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1454
1455 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1456
1457 * config/i386/cygming.h (TF_SIZE): Remove.
1458 * config/i386/darwin.h (TF_SIZE): Remove.
1459 * config/i386/dragonfly.h (TF_SIZE): Remove.
1460 * config/i386/freebsd.h (TF_SIZE): Remove.
1461 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1462 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1463 * config/i386/sol2.h (TF_SIZE): Remove.
1464 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1465 * config/ia64/linux.h (TF_SIZE): Remove.
1466 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1467 * doc/tm.texi: Regenerate.
1468 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1469
1470 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1471
1472 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1473 Remove.
1474 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1475 Remove.
1476 * doc/tm.texi: Regenerate.
1477 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1478 Poison.
1479 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1480 * config/cris/cris.h (__make_dp): Remove.
1481
1482 2014-09-08 Richard Biener <rguenther@suse.de>
1483
1484 PR bootstrap/63204
1485 * cfgloop.c (mark_loop_for_removal): Track former header
1486 unconditionally.
1487 * cfgloop.h (struct loop): Add former_header member unconditionally.
1488 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1489 diagnostic unconditionally.
1490
1491 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1492
1493 PR target/63190
1494 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1495 constraint for operand0 and remove write only modifier from operand3.
1496
1497 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1498
1499 PR rtl-optimization/62208
1500 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1501 rather than const0_rtx in eq/ne-xor simplifications.
1502
1503 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1504
1505 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1506 (arc_output_mi_thunk): Likewise.
1507
1508 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1509 arguments to silence bogus warning.
1510
1511 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1512
1513 PR middle-end/63171
1514 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1515
1516 2014-09-06 Tom de Vries <tom@codesourcery.com>
1517
1518 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1519 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1520 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1521
1522 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1523
1524 PR target/63188
1525 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1526 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1527
1528 2014-09-05 Easwaran Raman <eraman@google.com>
1529
1530 PR rtl-optimization/62146
1531 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1532 hoisted instruction unconditional.
1533
1534 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1535
1536 PR target/63187
1537 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1538 Do not allow any_mask_operand for operands[2].
1539 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1540
1541 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1542
1543 * config/arc/arc.c (arc_print_operand): Use insn method of
1544 final_sequence for type-safety.
1545 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1546 "insn" from rtx to rtx_insn *.
1547 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1548 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1549 Likewise for locals "branch", "label".
1550 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1551 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1552 (same_cmp_following_p): Likewise for locals "i2", "i3".
1553 * config/sh/sh_optimize_sett_clrt.cc
1554 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1555 param "cbranch_insn".
1556 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1557 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1558 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1559 const rtx_insn *.
1560 (condjump_p): Likewise.
1561 (condjump_in_parallel_p): Likewise.
1562 (pc_set): Likewise.
1563 (any_uncondjump_p): Likewise.
1564 (any_condjump_p): Likewise.
1565 (condjump_label): Likewise.
1566 (returnjump_p): Strengthen param "insn" from rtx to
1567 const rtx_insn *.
1568 (onlyjump_p): Strengthen param "insn" from const_rtx to
1569 const rtx_insn *.
1570 (jump_to_label_p): Likewise.
1571 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1572 (invert_jump): Likewise.
1573 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1574 simplejump_p.
1575 (get_jump_flags): Strengthen param "insn" from rtx to
1576 const rtx_insn *.
1577 (get_branch_condition): Likewise.
1578 (condition_dominates_p): Likewise.
1579 (make_return_insns): Move declaration of local "pat" earlier, to
1580 after we've handled NONJUMP_INSN_P and non-sequences, using its
1581 methods to simplify the code and for type-safety.
1582 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1583 const rtx_insn *.
1584 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1585 (condjump_p): Strengthen param from const_rtx to
1586 const rtx_insn *.
1587 (any_condjump_p): Likewise.
1588 (any_uncondjump_p): Likewise.
1589 (pc_set): Likewise.
1590 (condjump_label): Likewise.
1591 (simplejump_p): Likewise.
1592 (returnjump_p): Likewise.
1593 (onlyjump_p): Likewise.
1594 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1595 (invert_jump): Likewise.
1596 (condjump_in_parallel_p): Strengthen param from const_rtx to
1597 const rtx_insn *.
1598 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1599 to const rtx_insn *.
1600 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1601 to const rtx_insn *.
1602 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1603
1604 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1605
1606 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1607 above the conditional, and convert the check on GET_CODE to a
1608 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1609 the conditional. Simplify the conditional by using methods of
1610 "trial_seq".
1611
1612 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1613
1614 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1615 "link" from rtx to rtx_insn_list *, and use its methods for
1616 clarity and type-safety.
1617 (toggle_cancelled_flags): Likewise.
1618 (restore_last_backtrack_point): Likewise.
1619 (queue_to_ready): Use insn method of "link" in one place.
1620 (schedule_block): Strengthen local "link" from rtx to
1621 rtx_insn_list *, and use its methods for clarity and type-safety.
1622
1623 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1624
1625 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1626 param "insn" from const_rtx to const rtx_insn *.
1627 (sched_get_reverse_condition_uncached): Likewise.
1628 (sched_get_condition_with_rev): Likewise.
1629 (sched_has_condition_p): Likewise.
1630 (sched_insns_conditions_mutex_p): Likewise for both params.
1631 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1632 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1633 (setup_insn_reg_uses): Move local "list" to be more tightly
1634 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1635 its methods for clarity and type-safety.
1636 (sched_analyze_1): Strengthen local "pending" from rtx to
1637 rtx_insn_list *, and local "pending_mem" from rtx to
1638 rtx_expr_list *. Use methods of each for clarity and type-safety.
1639 (sched_analyze_2): Likewise.
1640 (sched_analyze_insn): Likewise.
1641
1642 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1643 param from const_rtx to const rtx_insn *.
1644 (sched_insns_conditions_mutex_p): Likewise for both params.
1645 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1646 param.
1647
1648 * system.h (CONST_CAST_RTX_INSN): New macro.
1649
1650 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1651
1652 * recog.c (peep2_attempt): Strengthen return type from rtx to
1653 rtx_insn *.
1654 (peep2_update_life): Likewise for params "last", "prev", removing
1655 a checked cast made redundant by this.
1656 (peephole2_optimize): Likewise for local "last".
1657
1658 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1659
1660 * basic-block.h (set_block_for_insn): Eliminate this macro in
1661 favor of...
1662 * rtl.h (set_block_for_insn): New inline function, imposing the
1663 requirement that the "insn" param is an rtx_insn *.
1664
1665 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1666
1667 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1668 rtx to rtx_insn *.
1669 * final.c (get_call_reg_set_usage): Likewise for first param,
1670 eliminating a checked cast.
1671 * regs.h (get_call_reg_set_usage): Likewise for first param.
1672 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1673 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1674 cast, replacing references to "x" with "call_insn" where
1675 appropriate.
1676 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1677 rtx_insn *, adding a checked cast.
1678
1679 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1680
1681 * output.h (final_scan_insn): Strengthen first param from rtx to
1682 rtx_insn *.
1683
1684 * final.c (final_scan_insn): Likewise, renaming it back from
1685 "uncast_insn" to "insn", eliminating the checked cast.
1686
1687 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1688 "vec" with an rtx_sequence * "seq", taking a copy of
1689 "final_sequence", and using methods of "seq" for clarity, and for
1690 type-safety in the calls to final_scan_insn.
1691 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1692 of "final_sequence" for clarity, and for type-safety in the call to
1693 final_scan_insn.
1694 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1695 rtx_sequence * and rename from "insn" to "seq".
1696
1697 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1698
1699 * jump.c (delete_related_insns): Introduce a new local "table" by
1700 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1701 get_labels method of "table" to simplify access to the labels in
1702 the jump table.
1703
1704 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1705
1706 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1707 f_minmaxs, f_minmaxd types.
1708
1709 2014-09-05 Richard Biener <rguenther@suse.de>
1710
1711 * cfgloop.c (mark_loop_for_removal): Record former header
1712 when ENABLE_CHECKING.
1713 * cfgloop.h (strut loop): Add former_header member when
1714 ENABLE_CHECKING.
1715 * loop-init.c (fix_loop_structure): Sanity check loops
1716 marked for removal if they re-appeared.
1717
1718 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1719
1720 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1721 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1722
1723 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1724 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1725 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1726 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1727 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1728 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1729 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1730 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1731 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1732 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1733 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1734 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1735 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1736 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1737 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1738 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1739 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1740 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1741 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1742 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1743 with int{32,16,8}_t.
1744
1745 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1746
1747 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1748 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1749 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1750 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1751 Remove temporary __asm__ and reimplement.
1752
1753 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1754
1755 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1756 handling cmge, cmgt, cmeq, cmtst.
1757
1758 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1759 cmlt, cmgeu, cmgtu, cmtst): Remove.
1760
1761 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1762 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1763 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1764 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1765
1766 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1767
1768 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1769 TYPES_TST): Define.
1770 (aarch64_fold_builtin): Update pattern for cmtst.
1771
1772 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1773 Declare.
1774
1775 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1776
1777 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1778 Switch operands, separate out more cases, refactor.
1779
1780 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1781
1782 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1783 argument; rename old version to...
1784 (aarch64_const_vec_all_same_in_range_p): ...this.
1785 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1786
1787 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1788
1789 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1790
1791 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1792 Remove qualifier_const_pointer, update comment.
1793
1794 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1795
1796 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1797
1798 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1799
1800 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1801 varargs with pointer parameter.
1802 (aarch64_simd_expand_builtin): pass pointer into previous.
1803
1804 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1805
1806 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1807 alus_ext.
1808
1809 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1810
1811 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1812 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1813 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1814 Replace temporary asm with call to builtin.
1815 (vrbit_p8, vrbitq_p8): New functions.
1816
1817 2014-09-05 Richard Biener <rguenther@suse.de>
1818
1819 * cfgloop.c (mark_loop_for_removal): New function.
1820 * cfgloop.h (mark_loop_for_removal): Declare.
1821 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1822 (merge_blocks): Likewise.
1823 (duplicate_block): Likewise.
1824 * except.c (sjlj_emit_dispatch_table): Likewise.
1825 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1826 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1827 (thread_through_loop_header): Likewise.
1828
1829 2014-09-05 Richard Biener <rguenther@suse.de>
1830
1831 PR middle-end/63148
1832 * fold-const.c (try_move_mult_to_index): Remove.
1833 (fold_binary_loc): Do not call it.
1834 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1835 from the base object again.
1836
1837 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1838
1839 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1840 DImode.
1841
1842 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1843
1844 PR target/55701
1845 * config/arm/arm.md (setmem): New pattern.
1846 * config/arm/arm-protos.h (struct tune_params): New fields.
1847 (arm_gen_setmem): New prototype.
1848 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1849 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1850 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1851 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1852 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1853 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1854 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1855 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1856 (arm_const_inline_cost): New function.
1857 (arm_block_set_max_insns): New function.
1858 (arm_block_set_non_vect_profit_p): New function.
1859 (arm_block_set_vect_profit_p): New function.
1860 (arm_block_set_unaligned_vect): New function.
1861 (arm_block_set_aligned_vect): New function.
1862 (arm_block_set_unaligned_non_vect): New function.
1863 (arm_block_set_aligned_non_vect): New function.
1864 (arm_block_set_vect, arm_gen_setmem): New functions.
1865
1866 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1867
1868 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1869
1870 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1871
1872 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1873
1874 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1875
1876 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1877 an rtx.
1878 * valtrack.h: Adjust.
1879
1880 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1881
1882 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1883 an rtx.
1884 (emit_jump_insn_before_noloc): Likewise.
1885 (emit_call_insn_before_noloc): Likewise.
1886 (emit_label_before): Likewise.
1887 (emit_label_after): Likewise.
1888 (emit_insn_before_setloc): Likewise.
1889 (emit_jump_insn_before_setloc): Likewise.
1890 (emit_call_insn_before_setloc): Likewise.
1891 (emit_call_insn_before): Likewise.
1892 * rtl.h: Adjust.
1893
1894 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1895
1896 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1897 rtx_insn *, eliminating a checked cast.
1898
1899 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1900
1901 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1902 const_rtx to const rtx_insn *.
1903 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1904 cast.
1905
1906 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1907
1908 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1909 fixup_args_size_notes.
1910 * expr.c (fixup_args_size_notes): Strengthen first two params from
1911 rtx to rtx_insn *, eliminating a checked cast.
1912 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1913 rtx to rtx_insn *.
1914
1915 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1916
1917 * haifa-sched.c (get_ready_element): Strengthen return type from
1918 rtx to rtx_insn *.
1919 * sched-int.h (get_ready_element): Likewise.
1920
1921 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1922
1923 PR target/63165
1924 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1925 indexed_or_indirect_operand instead of memory_operand.
1926 (floatsi<mode>2_lfiwzx_mem): Ditto.
1927
1928 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1929
1930 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1931 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1932 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1933
1934 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1935
1936 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1937 rtx.
1938 (get_last_nonnote_insn): Likewise.
1939 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1940 * resource.c (find_basic_block): Likewise.
1941 * rtl.h: Adjust.
1942 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1943 const_rtx.
1944
1945 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1946
1947 * genattr.c (main): Within the prototype of insn_latency written
1948 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1949 * genautomata.c (output_internal_maximal_insn_latency_func):
1950 Within the implementation of insn_latency written out to
1951 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1952 eliminating a pair of checked casts.
1953
1954 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1955
1956 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1957 rtx_insn *.
1958
1959 * rtl.h (eh_returnjump_p): Likewise.
1960
1961 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1962
1963 * Makefile.in (TAGS): Handle constructs in timevar.def.
1964
1965 2014-09-04 Guozhi Wei <carrot@google.com>
1966
1967 PR target/62040
1968 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1969 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1970 it into two patterns.
1971 (move_lo_quad_internal_be_<mode>): Likewise.
1972
1973 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1974
1975 * doc/options.texi: Document that Var and Init are required if CPP
1976 is given.
1977 * optc-gen.awk: Require Var and Init if CPP is given.
1978 * common.opt (Wpedantic): Use Init.
1979
1980 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1981
1982 * config/rs6000/rs6000.c (special_handling_values): Add
1983 SH_EXTRACT.
1984 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1985 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1986 as swappable with special handling SH_EXTRACT. Remove
1987 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1988 optimization.
1989 (adjust_extract): New function.
1990 (handle_special_swappables): Add default to case statement; add
1991 case for SH_EXTRACT that calls adjust_extract.
1992 (dump_swap_insn_table): Handle SH_EXTRACT.
1993
1994 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1995
1996 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1997 selection of 0th memory doubleword, regardless of endianness.
1998
1999 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2000
2001 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2002
2003 2014-09-04 Alan Modra <amodra@gmail.com>
2004
2005 PR debug/60655
2006 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2007 can't be output.
2008
2009 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
2010
2011 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2012 * targhooks.c (default_dwarf_frame_reg_mode): New function.
2013 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2014 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2015 * doc/tm.texi: Regenerate.
2016 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2017 selection logic to default_dwarf_frame_reg_mode.
2018
2019 2014-09-03 Marek Polacek <polacek@redhat.com>
2020
2021 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2022 by -Wall.
2023
2024 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2025
2026 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2027 the automodified register.
2028
2029 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2030
2031 * output.h (get_some_local_dynamic_name): Declare.
2032 * final.c (some_local_dynamic_name): New variable.
2033 (get_some_local_dynamic_name): New function.
2034 (final_end_function): Clear some_local_dynamic_name.
2035 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2036 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2037 (print_operand): Report an error if '%&' is used inappropriately.
2038 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2039 (get_some_local_dynamic_name_1): Delete.
2040 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2041 (rs6000_get_some_local_dynamic_name): Delete.
2042 (rs6000_get_some_local_dynamic_name_1): Delete.
2043 (print_operand): Report an error if '%&' is used inappropriately.
2044 * config/s390/s390.c (machine_function): Remove some_ld_name.
2045 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2046 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2047 * config/sparc/sparc.c: Include rtl-iter.h.
2048 (machine_function): Remove some_ld_name.
2049 (sparc_print_operand): Report an error if '%&' is used inappropriately.
2050 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2051
2052 2014-09-03 Richard Henderson <rth@redhat.com>
2053
2054 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2055 (aarch64_popwb_pair_reg): Remove.
2056 (aarch64_set_frame_expr): Remove.
2057 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2058 the restore ops performed by the insns generated.
2059 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2060 insn. Perform the calls_eh_return addition later; do not attempt to
2061 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
2062 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2063 special markup at all. Load cfun->machine->frame.hard_fp_offset
2064 into a local variable.
2065 (aarch64_frame_pointer_required): Don't check calls_alloca.
2066
2067 2014-09-03 Richard Biener <rguenther@suse.de>
2068
2069 * opts.c (default_options_optimization): Adjust
2070 max-combine-insns to 2 for -Og.
2071
2072 2014-09-03 Martin Jambor <mjambor@suse.cz>
2073
2074 PR ipa/62015
2075 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2076 pass-trough jump functions correctly.
2077
2078 2014-09-03 Martin Jambor <mjambor@suse.cz>
2079
2080 PR ipa/61986
2081 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2082 created replacements in ascending order of offsets.
2083 (known_aggs_to_agg_replacement_list): Likewise.
2084
2085 2014-09-03 Martin Liska <mliska@suse.cz>
2086
2087 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2088 is set to set uninitialized value for vnresult.
2089
2090 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2091
2092 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2093 for TARGET_MUST_PASS_IN_STACK.
2094
2095 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2096
2097 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2098 for TARGET_ARG_PARTIAL_BYTES.
2099
2100 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2101
2102 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2103 instructions for varargs implementation.
2104 (nds32_expand_epilogue): Emit stack adjustment instructions for
2105 varargs implementation.
2106
2107 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2108
2109 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2110 optimization detection.
2111
2112 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2113
2114 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2115 arguments.
2116 (nds32_function_arg_advance): Deal with nameless arguments.
2117 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2118 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2119 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2120
2121 2014-09-03 Richard Biener <rguenther@suse.de>
2122
2123 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2124 (struct bb_bitmap_sets): Remove deferred member.
2125 (BB_DEFERRED): Remove.
2126 (defer_or_phi_translate_block): Remove.
2127 (compute_antic_aux): Remove deferring of blocks, assert
2128 proper iteration order.
2129 (compute_antic): Do not set BB_DEFERRED.
2130 (eliminate): Allocate el_avail of proper size initially.
2131
2132 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2133
2134 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2135 according to the value of crtl->args.pretend_args_size.
2136
2137 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2138
2139 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2140 varargs information.
2141
2142 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2143
2144 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2145 implementation for TARGET_SETUP_INCOMING_VARARGS.
2146 (nds32_strict_argument_naming): Refine comment.
2147 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2148 Define for future implementation.
2149
2150 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2151
2152 * config/i386/adxintrin.h (_subborrow_u32): New.
2153 (_addcarry_u32): Ditto.
2154 (_subborrow_u64): Ditto.
2155 (_addcarry_u64): Ditto.
2156 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2157 IX86_BUILTIN_SBB64.
2158 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2159 __builtin_ia32_sbb_u64
2160
2161 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2162
2163 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2164 GPR-specific stuff.
2165 (nds32_function_arg_advance): Likewise.
2166 (nds32_init_cumulative_args): Likewise.
2167 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2168 (NDS32_FIRST_GPR_REGNUM): Define.
2169 (NDS32_LAST_GPR_REGNUM): Define.
2170 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2171 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2172 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2173 (machine_function): Use GRP-specific stuff.
2174
2175 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2176
2177 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2178 (nds32_expand_epilogue): Likewise.
2179 (nds32_expand_prologue_v3push): Likewise.
2180 (nds32_expand_epilogue_v3pop): Likewise.
2181
2182 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2183
2184 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2185 v3push/v3pop for variadic function.
2186 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2187
2188 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2189
2190 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2191 Check rtx for varargs implementation.
2192 (nds32_output_stack_pop): Likewise.
2193 * config/nds32/nds32-protos.h: Have a rtx argument for
2194 nds32_output_stack_push and nds32_output_stack_pop.
2195 * config/nds32/nds32.md: Likewise.
2196
2197 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2198
2199 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2200 to check if FUNC is an interrupt service routine.
2201 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2202
2203 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2204
2205 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2206 arguments implementation.
2207
2208 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2209
2210 * config/nds32/nds32-predicates.c
2211 (nds32_valid_stack_push_pop): Rename to ...
2212 (nds32_valid_stack_push_pop_p): ... this.
2213 * config/nds32/nds32-protos.h: Likewise.
2214 * config/nds32/predicates.md: Likewise.
2215
2216 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2217
2218 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2219 (nds32_emit_stack_v3push): ... this.
2220 (nds32_gen_stack_v3pop): Rename to ...
2221 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2222 information.
2223
2224 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2225
2226 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2227 (nds32_emit_stack_push_multiple): ... this.
2228 (nds32_gen_stack_pop_multiple): Rename to ...
2229 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2230 information.
2231
2232 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2233
2234 PR target/61078
2235 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2236 and add a second splitter to handle the remaining cases.
2237
2238 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2239
2240 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2241
2242 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2243
2244 * cfgexpand.c (label_rtx_for_bb): Change type to
2245 hash_map<basic_block, rtx_code_label *> *.
2246 (expand_gimple_basic_block): Adjust.
2247 (pass_expand::execute): Likewise.
2248
2249 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2250
2251 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2252 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2253 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2254 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2255 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2256 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2257 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2258 of rtx.
2259
2260 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2261
2262 * alloc-pool.c: Include coretypes.h.
2263 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2264 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2265 hash_set instead of htab.
2266 * ggc-page.c (in_gc): New variable.
2267 (ggc_free): Do nothing if a collection is taking place.
2268 (ggc_collect): Set in_gc appropriately.
2269 * ggc.h (gt_ggc_mx(const char *)): New function.
2270 (gt_pch_nx(const char *)): Likewise.
2271 (gt_ggc_mx(int)): Likewise.
2272 (gt_pch_nx(int)): Likewise.
2273 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2274 (hash_map::hash_entry::pch_nx): Likewise.
2275 (hash_map::hash_entry::pch_nx_helper): Likewise.
2276 (hash_map::hash_map): Adjust.
2277 (hash_map::create_ggc): New function.
2278 (gt_ggc_mx): Likewise.
2279 (gt_pch_nx): Likewise.
2280 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2281 (default_hashset_traits::pch_nx): Likewise.
2282 (hash_set::hash_entry::ggc_mx): Likewise.
2283 (hash_set::hash_entry::pch_nx): Likewise.
2284 (hash_set::hash_entry::pch_nx_helper): Likewise.
2285 (hash_set::hash_set): Adjust.
2286 (hash_set::create_ggc): New function.
2287 (hash_set::elements): Likewise.
2288 (gt_ggc_mx): Likewise.
2289 (gt_pch_nx): Likewise.
2290 * hash-table.h (hash_table::hash_table): Adjust.
2291 (hash_table::m_ggc): New member.
2292 (hash_table::~hash_table): Adjust.
2293 (hash_table::expand): Likewise.
2294 (hash_table::empty): Likewise.
2295 (gt_ggc_mx): New function.
2296 (hashtab_entry_note_pointers): Likewise.
2297 (gt_pch_nx): Likewise.
2298
2299 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2300
2301 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2302 built-in definition.
2303 (XVCVUXDDP_SCALE): Likewise.
2304 (XVCVDPSXDS_SCALE): Likewise.
2305 (XVCVDPUXDS_SCALE): Likewise.
2306 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2307 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2308 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2309 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2310 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2311 prototype.
2312 * config/rs6000/rs6000.c (real.h): New include.
2313 (rs6000_scale_v2df): New function.
2314 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2315 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2316 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2317 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2318 (vsx_xvcvsxddp_scale): New define_expand.
2319 (vsx_xvcvsxddp): New define_insn.
2320 (vsx_xvcvuxddp_scale): New define_expand.
2321 (vsx_xvcvuxddp): New define_insn.
2322 (vsx_xvcvdpsxds_scale): New define_expand.
2323 (vsx_xvcvdpsxds): New define_insn.
2324 (vsx_xvcvdpuxds_scale): New define_expand.
2325 (vsx_xvcvdpuxds): New define_insn.
2326 * doc/extend.texi (vec_ctf): Add new prototypes.
2327 (vec_cts): Likewise.
2328 (vec_ctu): Likewise.
2329 (vec_splat): Likewise.
2330 (vec_div): Likewise.
2331 (vec_mul): Likewise.
2332
2333 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2334
2335 PR target/62275
2336 * config/arm/neon.md
2337 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2338 <v_cmp_result>): New pattern.
2339 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2340 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2341 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2342 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2343 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2344 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2345
2346 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2347
2348 PR target/62275
2349 * config/arm/iterators.md (FIXUORS): New code iterator.
2350 (VCVT): New int iterator.
2351 (su_optab): New code attribute.
2352 (su): Likewise.
2353 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2354
2355 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2356
2357 * config/aarch64/predicates.md (aarch64_comparison_operation):
2358 New special predicate.
2359 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2360 aarch64_comparison_operation instead of matching an operator.
2361 Update operand numbers.
2362 (csinc3<mode>_insn): Likewise.
2363 (*csinv3<mode>_insn): Likewise.
2364 (*csneg3<mode>_insn): Likewise.
2365 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2366 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2367 Return -1 instead of aborting on invalid condition codes.
2368 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2369 to assert that the returned condition code is valid.
2370 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2371
2372 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2373
2374 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2375 tree.def, and gimple.def
2376
2377 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2378 Balaji V. Iyer <balaji.v.iyer@intel.com>
2379 Igor Zamyatin <igor.zamyatin@intel.com>
2380
2381 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2382 (__cilkrts_cilk_for_64): Likewise.
2383 * cilk-common.c (declare_cilk_for_builtin): New function.
2384 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2385 __cilkrts_cilk_for_64 bultins.
2386 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2387 CILK_TI_F_LOOP_64.
2388 (cilk_for_32_fndecl): New define.
2389 (cilk_for_64_fndecl): Likewise.
2390 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2391 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2392 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2393 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2394 GF_OMP_FOR_COMBINED_INTO.
2395 * gimplify.c (gimplify_scan_omp_clauses): Added
2396 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2397 (gimplify_adjust_omp_clauses): Ditto.
2398 (gimplify_omp_for): Added CILK_FOR case.
2399 (gimplify_expr): Ditto.
2400 * omp-low.c: Include cilk.h.
2401 (extract_omp_for_data): Set appropriate kind for
2402 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2403 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2404 (create_omp_child_function_name): Added second argument to handle
2405 cilk_for case.
2406 (cilk_for_check_loop_diff_type): New function.
2407 (expand_cilk_for_call): Likewise.
2408 (expand_cilk_for): Likewise.
2409 (create_omp_child_function): Set cilk_for_count; handle the cases when
2410 it is true; call create_omp_child_function_name with second argument.
2411 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2412 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2413 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2414 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2415 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2416 (convert_local_omp_clauses): Ditto.
2417 * tree-pretty-print.c (dump_omp_clause): Added
2418 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2419 (dump_generic_node): Added CILK_FOR case.
2420 * tree.c (omp_clause_num_ops): New element
2421 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2422 (omp_clause_code_name): New element _Cilk_for_count_.
2423 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2424 * tree.def: Add tree code for CILK_FOR.
2425
2426 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2427
2428 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2429 (ppc403-compare): Add "exts with dot" case.
2430 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2431 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2432 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2433 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2434 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2435 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2436 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2437 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2438 cell-cmp-microcoded): Similarly.
2439 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2440 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2441 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2442 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2443 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2444 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2445 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2446 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2447 (power6-compare): Add "exts with dot" case.
2448 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2449 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2450 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2451
2452 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2453 if avoiding Cell microcode.
2454 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2455 (is_cracked_insn): Ditto.
2456 (insn_must_be_first_in_group): Ditto.
2457 * config/rs6000/rs6000.md (dot): Adjust comment.
2458 (cell_micro): Handle exts+dot.
2459 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2460 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2461 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2462 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2463 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2464 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2465 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2466
2467 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2468
2469 * config/rs6000/rs6000.md (QHSI): Delete.
2470 (EXTQI, EXTHI, EXTSI): New mode iterators.
2471 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2472 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2473 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2474 9 anonymous instructions, and 8 splitters): Delete.
2475 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2476 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2477 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2478 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2479 *zero_extendsi<mode>2_dot2): New.
2480
2481 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2482
2483 * config/rs6000/rs6000.md (any_extend): New code iterator.
2484 (u, su): New code attributes.
2485 (dmode, DMODE): New mode attributes.
2486 (<su>mul<mode>3_highpart): New.
2487 (*<su>mul<mode>3_highpart): New.
2488 (<su>mulsi3_highpart_le): New.
2489 (<su>muldi3_highpart_le): New.
2490 (<su>mulsi3_highpart_64): New.
2491 (<u>mul<mode><dmode>3): New.
2492 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2493 splitters): Delete.
2494 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2495 splitters): Delete.
2496
2497 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2498
2499 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2500 *mulsi3_internal2, and two splitters): Delete.
2501 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2502 Delete.
2503 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2504
2505 2014-09-02 Richard Biener <rguenther@suse.de>
2506
2507 PR tree-optimization/62695
2508 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2509 vector truncate.
2510
2511 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2512
2513 PR target/62312
2514 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2515
2516 2014-09-01 Andi Kleen <ak@linux.intel.com>
2517
2518 * file-find.c (add_prefix_begin): Add.
2519 (do_add_prefix): Rename from add_prefix with first argument.
2520 (add_prefix): Add new wrapper.
2521 * file-find.h (add_prefix_begin): Add.
2522 * gcc-ar.c (main): Support -B option.
2523
2524 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2525
2526 * genemit.c: Include dumpfile.h.
2527 (gen_split): Print name of splitter function to dump file.
2528
2529 2014-09-01 Richard Biener <rguenther@suse.de>
2530
2531 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2532 Use stack auto_vecs for constraint expressions.
2533 (find_func_aliases_for_call): Likewise.
2534 (find_func_aliases): Likewise.
2535 (find_func_clobbers): Likewise.
2536
2537 2014-09-01 Richard Biener <rguenther@suse.de>
2538
2539 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2540 operands vector in most cases. Remove redundant code.
2541
2542 2014-09-01 Olivier Hainque <hainque@adacore.com>
2543
2544 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2545 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2546 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2547
2548 2014-09-01 Richard Biener <rguenther@suse.de>
2549
2550 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2551 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2552 vn_reference_compute_hash, vn_reference_insert): Remove.
2553 (vn_reference_lookup_call): New function.
2554 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2555 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2556 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2557 (create_reference_ops_from_call): Remove.
2558 (vn_reference_lookup_3): Properly update shared_lookup_references.
2559 (vn_reference_lookup_pieces): Assert that we updated
2560 shared_lookup_references properly.
2561 (vn_reference_lookup): Likewise.
2562 (vn_reference_lookup_call): New function.
2563 (visit_reference_op_call): Use it. Avoid re-building the
2564 reference ops.
2565 (visit_reference_op_load): Remove redundant lookup.
2566 (visit_reference_op_store): Perform special tail-merging work
2567 only when possibly doing tail-merging.
2568 (visit_use): Likewise.
2569 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2570
2571 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2572
2573 PR target/62025
2574 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2575 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2576 (find_inc): Revert 2014-08-13 change.
2577
2578 2014-09-01 Marek Polacek <polacek@redhat.com>
2579
2580 PR middle-end/61903
2581 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2582 Change the type of V to unsigned HOST_WIDE_INT.
2583
2584 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2585
2586 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2587 the size of byte markers.
2588 (do_shift_rotate): Fix confusion between host, target and marker byte
2589 size.
2590 (verify_symbolic_number_p): Likewise.
2591 (find_bswap_or_nop_1): Likewise.
2592 (find_bswap_or_nop): Likewise.
2593
2594 2014-09-01 Olivier Hainque <hainque@adacore.com>
2595
2596 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2597 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2598
2599 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2600
2601 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2602 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2603 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2604
2605 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2606
2607 PR sanitizer/61897
2608 PR sanitizer/62140
2609 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2610 (build_check_stmt): Likewise.
2611 (instrument_strlen_call): Likewise.
2612 (asan_expand_check_ifn): Likewise and fix types.
2613 (maybe_cast_to_ptrmode): New function.
2614
2615 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2616
2617 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2618
2619 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2620
2621 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2622
2623 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2624
2625 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2626 prefix to function labels when generating fast indirect calls.
2627
2628 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2629
2630 PR bootstrap/62304
2631
2632 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2633 param back from rtx_insn * to rtx. Rename param from "label" to
2634 "label_or_return", reintroducing "label" as an rtx_insn * after
2635 we've ensured it's not a RETURN.
2636 (first_active_target_insn): Likewise for return type and param;
2637 add a checked cast to rtx_insn * once we've ensured "insn" is not
2638 a RETURN.
2639 (steal_delay_list_from_target): Convert param "pnew_thread" back
2640 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2641 with JUMP_LABEL.
2642 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2643 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2644 cast once we've established we're not dealing with a RETURN,
2645 renaming subsequent uses of "thread" to "thread_insn".
2646 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2647 to JUMP_LABEL.
2648 (follow_jumps): Convert return type and param "label" from
2649 rtx_insn * back to rtx. Move initialization of "value" to after
2650 the handling for ANY_RETURN_P, adding a checked cast there to
2651 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2652 rename to "this_label_or_return", reintroducing "this_label" as
2653 an rtx_insn * once we've handled the case where it could be an
2654 ANY_RETURN_P.
2655 (fill_slots_from_thread): Rename param "thread" to
2656 "thread_or_return", converting from an rtx_insn * back to an rtx.
2657 Reintroduce name "thread" as an rtx_insn * local with a checked
2658 cast once we've handled the case of it being an ANY_RETURN_P.
2659 Convert local "new_thread" from an rtx_insn * back to an rtx.
2660 Add a checked cast when assigning to "trial" from "new_thread".
2661 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2662 checked cast to rtx_insn * from "new_thread" when invoking
2663 get_label_before.
2664 (fill_eager_delay_slots): Convert locals "target_label",
2665 "insn_at_target" from rtx_insn * back to rtx.
2666 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2667 (relax_delay_slots): Convert locals "trial", "target_label" from
2668 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2669 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2670 invoking update_block.
2671 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2672 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2673
2674 * resource.h (mark_target_live_regs): Undo erroneous conversion
2675 of second param of r214693, converting it back from rtx_insn * to
2676 rtx, since it could be a RETURN.
2677
2678 * resource.c (find_dead_or_set_registers): Similarly, convert
2679 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2680 could be writing back a RETURN. Rename local rtx_insn * "next" to
2681 "next_insn", and introduce "lab_or_return" as a local rtx,
2682 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2683 (mark_target_live_regs): Undo erroneous conversion
2684 of second param of r214693, converting it back from rtx_insn * to
2685 rtx, since it could be a RETURN. Rename it from "target" to
2686 "target_maybe_return", reintroducing the name "target" as a local
2687 rtx_insn * with a checked cast, after we've handled the case of
2688 ANY_RETURN_P.
2689
2690 2014-08-29 DJ Delorie <dj@redhat.com>
2691
2692 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2693 pointer size up to a power of two.
2694 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2695 (POINTER_SIZE_UNITS): New, rounded up value.
2696 * dwarf2asm.c (size_of_encoded_value): Use it.
2697 (dw2_output_indirect_constant_1): Likewise.
2698 * expmed.c (init_expmed_one_conv): We now know the sizes of
2699 partial int modes.
2700 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2701 * optabs.c (expand_float): Use precision, not size.
2702 (expand_fix): Likewise.
2703 * simplify-rtx (simplify_unary_operation_1): Likewise.
2704 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2705 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2706 (default_assemble_integer) Likewise.
2707 (dump_tm_clone_pairs): Likewise.
2708 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2709 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2710 (prepare_call_arguments): Likewise.
2711 * stor-layout.c (finalize_type_size): Preserve precision.
2712 (layout_type): Use precision, not size.
2713
2714 * expr.c (convert_move): If the target has an explicit converter,
2715 use it.
2716
2717 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2718
2719 * gdbinit.in: Skip various inline functions in rtl.h when
2720 stepping.
2721
2722 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2723
2724 PR bootstrap/62301
2725 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2726
2727 2014-08-29 Richard Biener <rguenther@suse.de>
2728
2729 PR tree-optimization/62291
2730 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2731 exactly the vector size needed and use quick_push.
2732 (phi_translate_1): Adjust comment.
2733 (valid_in_sets): Remove block argument and remove pointless
2734 checking of NAMEs.
2735 (dependent_clean): Adjust for removal of block argument.
2736 (clean): Likewise.
2737 (compute_antic_aux): Likewise.
2738 (compute_partial_antic_aux): Likewise.
2739
2740 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2742 Anna Tikhonova <anna.tikhonova@intel.com>
2743 Ilya Tocar <ilya.tocar@intel.com>
2744 Andrey Turetskiy <andrey.turetskiy@intel.com>
2745 Ilya Verbin <ilya.verbin@intel.com>
2746 Kirill Yukhin <kirill.yukhin@intel.com>
2747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2748
2749 * config/i386/sse.md
2750 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2751 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2752 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2753 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2754
2755 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2756 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2757 Anna Tikhonova <anna.tikhonova@intel.com>
2758 Ilya Tocar <ilya.tocar@intel.com>
2759 Andrey Turetskiy <andrey.turetskiy@intel.com>
2760 Ilya Verbin <ilya.verbin@intel.com>
2761 Kirill Yukhin <kirill.yukhin@intel.com>
2762 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2763
2764 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2765 * config/i386/sse.md
2766 (define_mode_iterator VI4_128_8_256): New.
2767 (define_mode_iterator VI2_128_4_256): Ditto.
2768 (define_mode_iterator PMOV_DST_MODE): Rename into
2769 (define_mode_iterator PMOV_DST_MODE_1): this.
2770 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2771 Use PMOV_DST_MODE_1 mode iterator.
2772 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2773 Ditto.
2774 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2775 Ditto.
2776 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2777 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2778 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2779 (define_mode_iterator PMOV_DST_MODE_2): New.
2780 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2781 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2782 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2783 Ditto.
2784 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2785 (define_mode_attr pmov_dst_3): Ditto.
2786 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2787 (define_mode_attr pmov_suff_3): Ditto.
2788 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2789 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2790 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2791 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2792 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2793 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2794 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2795 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2796 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2797 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2798 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2799 (define_mode_attr pmov_dst_4): Ditto.
2800 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2801 (define_mode_attr pmov_suff_4): Ditto.
2802 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2803 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2804 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2805 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2806 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2807 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2808 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2809 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2810 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2811 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2812 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2813
2814 2014-08-29 Richard Biener <rguenther@suse.de>
2815
2816 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2817 NON_LVALUE_EXPR in gimple.
2818
2819 2014-08-29 Richard Biener <rguenther@suse.de>
2820
2821 PR middle-end/62292
2822 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2823 from previous refactoring.
2824 (gimple_fold_builtin_strncpy): Likewise.
2825
2826 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2827
2828 PR bootstrap/62300
2829 * function.c (assign_parm_setup_reg): Remove erroneous checked
2830 cast to rtx_insn * on result of gen_extend_insn in favor of
2831 introducing a new local rtx "pat".
2832
2833 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2834
2835 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2836 to silence warning.
2837 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2838
2839 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2840
2841 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2842 (next_insn): Likewise.
2843 * emit-rtl.c (next_insn): Likewise.
2844 (previous_insn): Likewise.
2845 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2846 "insn" and "next" from rtx to rtx_insn *.
2847 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2848 "insn", "insn1", "vliw_start", "prologue_end_note",
2849 "last_insn_in_packet".
2850
2851 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2852
2853 * shrink-wrap.h (active_insn_between): Strengthen both params from
2854 rtx to rtx_insn *.
2855 * function.c (active_insn_between): Likewise.
2856
2857 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2858
2859 * genattr.c (main): When writing out insn-attr.h, strengthen param
2860 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2861 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2862 writing out the definition of dfa_clear_single_insn_cache to the
2863 generated insn-automata.c
2864
2865 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2866
2867 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2868 rtx to rtx_insn *.
2869 (incr_ticks_for_insn): Likewise.
2870 (init_resource_info): Likewise.
2871
2872 * resource.c (init_resource_info): Likewise.
2873 (clear_hashed_info_for_insn): Likewise.
2874 (incr_ticks_for_insn): Likewise.
2875
2876 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2877 rtx to rtx_insn *.
2878 (steal_delay_list_from_target): Use methods of "seq".
2879 (try_merge_delay_insns): Use methods of "merged_insns".
2880 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2881 (reorg_redirect_jump): Likewise for param "jump".
2882
2883 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2884
2885 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2886 rtx to rtx_insn *.
2887 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2888 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2889 "set_insn".
2890 (s390_mainpool_finish): In three places, split out a local rtx
2891 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2892 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2893 and split another local rtx "insn" out into rtx "pat" and
2894 rtx_insn * "insn".
2895 * config/sh/sh.c (output_branchy_insn): Rather than working
2896 directly on operands[9], introduce local rtx_code_label *
2897 variables named "lab" in two places, working on them, and then
2898 assigning them to operands[9], so that the intervening operations
2899 are known by the type system to be on insns.
2900
2901 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2902
2903 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2904 const rtx_insn *.
2905
2906 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2907 in invocation of INSN_HAS_LOCATION.
2908
2909 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2910
2911 * config/rs6000/altivec.h (vec_xl): New #define.
2912 (vec_xst): Likewise.
2913 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2914 (XXSPLTD_V2DI): Likewise.
2915 (DIV_V2DI): Likewise.
2916 (UDIV_V2DI): Likewise.
2917 (MUL_V2DI): Likewise.
2918 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2919 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2920 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2921 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2922 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2923 (UNSPEC_VSX_DIVSD): Likewise.
2924 (UNSPEC_VSX_DIVUD): Likewise.
2925 (UNSPEC_VSX_MULSD): Likewise.
2926 (vsx_mul_v2di): New insn-and-split.
2927 (vsx_div_v2di): Likewise.
2928 (vsx_udiv_v2di): Likewise.
2929 (vsx_xxspltd_<mode>): New insn.
2930
2931 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2932
2933 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2934 NEXT_INSN.
2935 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2936 (NEXT_INSN): Likewise.
2937 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2938 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2939 const rtx_insn *.
2940 (no_labels_between_p): Likewise for both params.
2941
2942 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2943 cast when using NEXT_INSN on operands[2].
2944 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2945 "insn" from rtx to rtx_insn *, adding a checked cast.
2946 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2947 rtx_insn *.
2948 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2949 for third param.
2950 (arc_text_label): Likewise for param "insn".
2951 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2952 "insn".
2953 (arc_ccfsm_record_condition): Likewise for param "jump".
2954 (arc_text_label): Likewise for local "label".
2955 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2956 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2957 a method for typesafety. Add a checked cast.
2958 * config/arc/constraints.md (Clb): Add a checked cast when getting
2959 the CODE_LABEL from a LABEL_REF.
2960 * config/arm/arm.c (require_pic_register): Strengthen locals
2961 "seq", "insn" from rtx to rtx_insn *.
2962 (create_fix_barrier): Likewise for locals "selected", "next".
2963 (thumb1_reorg): Likewise for locals "prev", "insn".
2964 (arm_expand_prologue): Likewise for local "last".
2965 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2966 operands[0].
2967 (thumb2_output_casesi): Likewise for operands[2].
2968 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2969 strengthen local "insn" from rtx to rtx_insn *.
2970 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2971 type and param "insn".
2972 (find_prev_insn_start): Likewise.
2973 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2974 "prev".
2975 (gen_one_bundle): Likewise for loal "t".
2976 (find_load): Likewise for param "insn".
2977 (workaround_speculation): Likewise for locals "insn", "next",
2978 "target", "next_tgt".
2979 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2980 and for locals "insn", "within", "last".
2981 (count_unit_reqs): Likewise for params "head", "tail" and local
2982 "insn".
2983 (try_rename_operands): Likewise for params "head", "tail".
2984 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2985 (struct c6x_sched_context): Likewise for fields
2986 "last_scheduled_insn", "last_scheduled_iter0".
2987 (init_sched_state): Replace NULL_RTX with NULL.
2988 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2989 to rtx_insn *.
2990 (undo_split_delayed_nonbranch): Likewise for param and for local
2991 "prev".
2992 (conditionalize_after_sched): Likewise for local "insn".
2993 (bb_earliest_end_cycle): Likewise.
2994 (filter_insns_above): Likewise for locals "insn", "next".
2995 (hwloop_optimize): Remove redundant checked cast.
2996 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2997 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2998 NULL_RTX with NULL.
2999 (cris_simple_epilogue): Likewise.
3000 (cris_expand_prologue): Likewise.
3001 (cris_expand_epilogue): Likewise.
3002 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3003 local "insn" from rtx to rtx_insn *.
3004 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3005 (struct frv_packet_group): Likewise for the elements within array
3006 fields "insns", "sorted", and for field "nop".
3007 (frv_packet): Likewise for the elements within array field
3008 "insns".
3009 (frv_add_insn_to_packet): Likewise for param "insn".
3010 (frv_insert_nop_in_packet): Likewise for param "insn" and local
3011 "last".
3012 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3013 (frv_sort_insn_group_1): Likewise for local "insn".
3014 (frv_optimize_membar_local): Likewise.
3015 (frv_align_label): Likewise for locals "x", "last", "barrier",
3016 "label".
3017 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3018 local.
3019 (ia64_sched_init): Likewise for local "insn".
3020 (scheduled_good_insn): Likewise for param "last".
3021 (struct _ia64_sched_context): Likewise for field
3022 "last_scheduled_insn".
3023 (ia64_init_sched_context): Replace NULL_RTX with NULL.
3024 (struct bundle_state): Likewise for field "insn".
3025 (issue_nops_and_insn): Likewise for param "insn".
3026 (get_next_important_insn): Likewise for return type and both
3027 params.
3028 (ia64_add_bundle_selector_before): Likewise for param "insn".
3029 (bundling): Likewise for params "prev_head_insn", "tail" and
3030 locals "insn", "next_insn", "b". Eliminate top-level local rtx
3031 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3032 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3033 Strengthen final param from rtx to rtx_insn *.
3034 (iq2000_move_1word): Likewise for second param.
3035 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3036 param "cur_insn" and local "next_insn".
3037 (iq2000_move_1word): Likewise for param "insn".
3038 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3039 casts when using NEXT_INSN on operands[1].
3040 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3041 "insn" from rtx to rtx_insn *.
3042 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3043 "x", introducing local rtx_insn * "insn" for when working with the
3044 CODE_LABEL of the LABEL_REF.
3045 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3046 rtx_insn *.
3047 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3048 param.
3049 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3050 type.
3051 (conditionalize_block): Likewise for return type and param.
3052 (mcore_is_dead): Likewise for param "first" and local "insn".
3053 (emit_new_cond_insn): Likewise for return type.
3054 (conditionalize_block): Likewise for return type, param, and
3055 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3056 "newinsn".
3057 (conditionalize_optimization): Likewise for local "insn".
3058 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3059 using NEXT_INSN.
3060 * config/microblaze/microblaze.md: Add checked casts when using
3061 NEXT_INSN.
3062 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3063 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3064 and rtx_insn * "insn".
3065 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3066 checked cast when using NEXT_INSN on operands[2].
3067 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3068 local "insn" from rtx to rtx_insn *.
3069 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3070 Likewise.
3071 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3072 Add a checked cast when using NEXT_INSN on operands[1].
3073 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3074 rtx to rtx_insn *.
3075 (pa_output_cbranch): Likewise for final param.
3076 (pa_output_lbranch): Likewise for second param.
3077 (pa_output_bb): Likewise for third param.
3078 (pa_output_bvb): Likewise.
3079 (pa_output_dbra): Likewise for second param.
3080 (pa_output_movb): Likewise.
3081 (pa_output_parallel_movb): Likewise.
3082 (pa_output_parallel_addb): Likewise.
3083 (pa_output_millicode_call): Likewise for first param.
3084 (pa_output_mul_insn): Likewise for second param.
3085 (pa_output_div_insn): Likewise for third param.
3086 (pa_output_mod_insn): Likewise for second param.
3087 (pa_jump_in_call_delay): Likewise for param.
3088 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3089 (pa_output_div_insn): Likewise.
3090 (pa_output_mod_insn): Likewise.
3091 (pa_output_cbranch): Likewise.
3092 (pa_output_lbranch): Likewise.
3093 (pa_output_bb): Likewise.
3094 (pa_output_bvb): Likewise.
3095 (pa_output_dbra): Likewise.
3096 (pa_output_movb): Likewise.
3097 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3098 to simplify and for typesafety.
3099 (pa_output_call): Use method of rtx_sequence *.
3100 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3101 (pa_jump_in_call_delay): Likewise.
3102 (pa_output_parallel_movb): Likewise.
3103 (pa_output_parallel_addb): Likewise.
3104 (pa_following_call): Likewise.
3105 (pa_combine_instructions): Likewise for locals "anchor",
3106 "floater".
3107 (pa_can_combine_p): Likewise for params "anchor", "floater" and
3108 locals "start", "end".
3109 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3110 param "insn" and local "local_insn".
3111 (picochip_final_prescan_insn): Likewise for local "local_insn".
3112 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3113 local "insn".
3114 (uses_TOC): Likewise.
3115 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3116 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3117 splitting out to more tightly-scoped locals, 3 as rtx and one as
3118 rtx_insn *.
3119 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3120 to rtx_insn *.
3121 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3122 where needed.
3123 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3124 to rtx_insn *.
3125 (fixup_addr_diff_vecs): Likewise.
3126 (reg_unused_after): Likewise for param 2.
3127 (sh_can_redirect_branch): Likewise for both params.
3128 (check_use_sfunc_addr): Likewise for param 1.
3129 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3130 (find_barrier): Likewise for local "last_got".
3131 (gen_block_redirect): Likewise for return type, param "jump" and
3132 locals "prev", "scan", "next", "insn".
3133 (struct far_branch): Likewise for fields "near_label",
3134 "insert_place", "far_label".
3135 (gen_far_branch): Likewise for local "jump".
3136 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3137 "insn", "prev".
3138 (barrier_align): Likewise for param and for locals "prev", "x".
3139 Introduce local rtx_sequence * "prev_seq" and use insn method for
3140 typesafety and clarity.
3141 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3142 (get_dest_uid): Likewise for local "dest".
3143 (split_branches): Likewise for locals "next", "beyond", "label",
3144 "block", "far_label". Add checked casts when assigning to
3145 bp->far_label and "far_label".
3146 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3147 (sequence_insn_p): Likewise.
3148 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3149 more loop-scoped rtx "insn" when walking LABEL_REFS.
3150 (sh_can_redirect_branch): Strengthen both params from rtx to
3151 rtx_insn *.
3152 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3153 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3154 for clarity and typesafety.
3155 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3156 "insn" from rtx to rtx_insn *.
3157 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3158 when using NEXT_INSN on the CODE_LABEL in operands[2].
3159 (define_insn "casesi_worker_2"): Likewise.
3160 (define_insn "casesi_shift_media"): Likewise.
3161 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3162 operands[3].
3163 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3164 Strengthen field "insn" from rtx to rtx_insn *.
3165 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3166 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3167 param "start_insn" and local "start_insn".
3168 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3169 field "insn".
3170 (find_set_of_reg_bb): Likewise for param "insn".
3171 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3172 (trace_reg_uses): Likewise for param "start_insn".
3173 (sh_treg_combine::cbranch_trace): Likewise for field
3174 "cbranch_insn".
3175 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3176 param "insn".
3177 (sh_treg_combine::record_set_of_reg): Likewise for param
3178 "start_insn" and local "i".
3179 (sh_treg_combine::can_remove_cstore): Likewise for local
3180 "prev_insn".
3181 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3182 "insn".
3183 (sh_treg_combine::execute): Likewise for local "i".
3184 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3185 param.
3186 (sparc_check_64): Likewise for second param.
3187 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3188 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3189 dyn_cast, using its insn method for typesafety and clarity.
3190 (empty_delay_slot): Strengthen param "insn" from rtx to
3191 rtx_insn *.
3192 (set_extends): Likewise.
3193 (sparc_check_64): Likewise.
3194 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3195 for locals "seq", "last_insn".
3196 (combine_bnp): Likewise for param "insn".
3197 (xstormy16_reorg): Likewise for local "insn".
3198 * config/v850/v850.c (substitute_ep_register): Likewise for params
3199 "first_insn", "last_insn" and local "insn".
3200 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3201 elements of "regs" array, and local "insn".
3202 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3203 * final.c (final_sequence): Strengthen this global from rtx to
3204 rtx_sequence *.
3205 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3206 rtx_insn *.
3207 (final_scan_insn): Update assignment to "final_sequence" to be
3208 from "seq", the cast version of "body", for type-safety.
3209 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3210 "insns" from rtx to rtx_insn *.
3211 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3212 * genattr.c (main): When writing out generated insn-attr.h,
3213 strengthen params 1 and 3 of eligible_for_delay,
3214 eligible_for_annul_true, eligible_for_annul_false from rtx to
3215 rtx_insn *.
3216 * genattrtab.c (write_eligible_delay): Likewise when writing out
3217 generated insn-attrtab.c; also local "insn" the generated
3218 functions.
3219 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3220 to rtx_insn *.
3221 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3222 "start_label" from rtx to rtx_insn *.
3223 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3224 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3225 "insns" and local "insn".
3226 (validate_equiv_mem): Likewise for param "start" and local "insn".
3227 (memref_used_between_p): Likewise for params "start", "end" and
3228 local "insn".
3229 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3230 final param.
3231 * loop-doloop.c (doloop_optimize): Within region guarded by
3232 INSN_P (doloop_pat), introduce a new local rtx_insn *
3233 "doloop_insn" via a checked cast, and use it for typesafety,
3234 eventually writing the value back into doloop_pat.
3235 * output.h (final_sequence): Strengthen this global from rtx to
3236 rtx_sequence *.
3237 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3238 reintroducing "insn" as an rtx_insn * via a checked cast.
3239 Strengthen param "attempt" and local "new_insn"from rtx to
3240 rtx_insn *.
3241 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3242 to rtx_insn *.
3243 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3244 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3245 "p" in favor of more tightly-scoped replacements, sometimes rtx
3246 and sometimes rtx_insn *, as appropriate.
3247 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3248 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3249 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3250 local "trial" from rtx to rtx_insn *.
3251 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3252 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3253 rtx_sequence * and use methods for clarity and typesafety.
3254 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3255 rtx to rtx_insn *. Strenghten local "li" from rtx to
3256 rtx_insn_list * and use its methods for clarity and typesafety.
3257 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3258 to rtx_insn *.
3259 (steal_delay_list_from_fallthrough): Likewise.
3260 (try_merge_delay_insns): Likewise for param "thread" and locals
3261 "trial", "next_trial", "delay_insn".
3262 (redundant_insn): Likewise for param "target" and local "trial".
3263 (own_thread_p): Likewise for param "thread" and locals
3264 "active_insn", "insn".
3265 (get_label_before): Likewise for param "insn".
3266 (fill_simple_delay_slots): Likewise for local "new_label"; use
3267 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3268 (label_before_next_insn): Strengthen return type and local "insn"
3269 from rtx to rtx_insn *.
3270 (relax_delay_slots): Likewise for locals "other", "tmp".
3271 (make_return_insns): Likewise for param "first" and locals "insn",
3272 "jump_insn", "prev". Move declaration of "pat" to its assignment
3273 and strengthen from rtx to rtx_sequence *. Use its methods for
3274 clarity and typesafety.
3275 * rtlanal.c (no_labels_between_p): Strengthen params from
3276 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3277 rtx_insn *.
3278 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3279 from const_rtx to const rtx_insn *.
3280 (reg_set_between_p): Rename param "from_insn" to
3281 "uncast_from_insn", and reintroduce "from_insn" as a
3282 const rtx_insn * via a checked cast.
3283 (modified_between_p): Likewise for param "start" as "uncast_start".
3284 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3285 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3286 "tmp", head" from rtx to rtx_insn *.
3287 (recompute_rev_top_order): Likewise for local "insn".
3288 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3289 * store-motion.c (build_store_vectors): Likewise for local "insn".
3290 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3291 for clarity and typesafety.
3292 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3293 rtx to rtx_insn *.
3294 (computation_cost): Likewise for local "seq".
3295 (get_address_cost): Likewise.
3296
3297 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3298
3299 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3300 const rtx_insn *.
3301 (label_is_jump_target_p): Likewise for second param.
3302
3303 * rtlanal.c (tablejump_p): Likewise for param "insn".
3304 (label_is_jump_target_p): Likewise for param "jump_insn".
3305
3306 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3307
3308 * rtl.h (find_first_parameter_load): Strengthen return type and
3309 both params from rtx to rtx_insn *.
3310 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3311 both params and locals "before", "first_set" from rtx to
3312 rtx_insn *. Remove now-redundant cast.
3313 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3314
3315 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3316
3317 * rtl.h (find_last_value): Delete.
3318 * rtlanal.c (find_last_value): Delete.
3319
3320 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3321
3322 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3323 from rtx to rtx_insn *.
3324 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3325 rtx "note" with new local rtx_insn * "new_head" when calculating
3326 head insn of new basic block.
3327 * combine.c (combine_split_insns): Strengthen return type and local
3328 "ret" from rtx to rtx_insn *.
3329 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3330 (try_combine): Eliminate local "m_split", splitting into new
3331 locals "m_split_insn" and "m_split_pat".
3332 (find_split_point): Strengthen local "seq" from rtx into
3333 rtx_insn *.
3334 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3335 locals "label", "branch".
3336 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3337 for local "insn".
3338 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3339 * dse.c (note_add_store_info): Likewise for fields "first",
3340 "current".
3341 (note_add_store): Likewise for local "insn".
3342 (emit_inc_dec_insn_before): Likewise for locals "insn",
3343 "new_insn", "cur".
3344 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3345 (replace_read): Likewise for locals "insns", "this_insn".
3346 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3347 (notice_eh_throw): Likewise for param "insn".
3348 (before_next_cfi_note): Likewise for return type, param, and local
3349 "prev".
3350 (connect_traces): Likewise for local "note".
3351 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3352 (verify_rtl_sharing): Likewise.
3353 (unshare_all_rtl_in_chain): Likewise for param "insn".
3354 (get_first_nonnote_insn): Likewise for local "insn".
3355 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3356 "seq" and use its methods to clarify things.
3357 (next_insn): Strengthen return type from rtx to rtx_insn *.
3358 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3359 local rtx_insn * using a checked cast, dropping a checked cast
3360 made redundant by this change. Use a cast to and method of
3361 rtx_sequence to clarify the code.
3362 (previous_insn): Rename param "insn" to "uncast_insn" and
3363 reintroduce "insn" as a local rtx_insn * using a checked cast,
3364 dropping a checked cast made redundant by this change. Use a cast
3365 to and method of rtx_sequence to clarify the code.
3366 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3367 reintroduce "insn" as a local rtx_insn * using a checked cast,
3368 dropping a checked cast made redundant by this change.
3369 (next_nonnote_insn_bb): Likewise.
3370 (prev_nonnote_insn): Likewise.
3371 (prev_nonnote_insn_bb): Likewise.
3372 (next_nondebug_insn): Likewise.
3373 (prev_nondebug_insn): Likewise.
3374 (next_nonnote_nondebug_insn): Likewise.
3375 (prev_nonnote_nondebug_insn): Likewise.
3376 (next_real_insn): Likewise.
3377 (prev_real_insn): Likewise.
3378 (next_active_insn): Likewise.
3379 (prev_active_insn): Likewise.
3380 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3381 clarity.
3382 (prev_cc0_setter): Likewise.
3383 (try_split): Rename param "trial" to "uncast_trial" and
3384 reintroduce "insn" as a local rtx_insn * using a checked cast,
3385 dropping checked casts made redundant by this change.
3386 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3387 rtx to rtx_insn *.
3388 (remove_insn): Rename param "insn" to "uncast_insn" and
3389 reintroduce "insn" as a local rtx_insn * using a checked cast.
3390 (emit_pattern_after_setloc): Likewise for param "after", as
3391 "uncast_after".
3392 (emit_pattern_after): Likewise. Strengthen local "prev" from
3393 rtx to rtx_insn *.
3394 (emit_pattern_before_setloc): Rename param "before" to
3395 "uncast_before" and reintroduce "before" as a local rtx_insn *
3396 using a checked cast. Strengthen locals "first", "last" from
3397 rtx to rtx_insn *.
3398 (emit_pattern_before): Likewise rename/cast param "before" to
3399 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3400 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3401 "first" and local "insn" from rtx to rtx_insn *.
3402 (copy_reg_eh_region_note_backward): Likewise for param "last"
3403 and local "insn".
3404 * expr.c (fixup_args_size_notes): Rename param "last" to
3405 "uncast_last" and reintroduce "last" as a local rtx_insn *
3406 using a checked cast. Strengthen local "insn" from rtx to
3407 rtx_insn *.
3408 * function.c (set_insn_locations): Strengthen param "insn" from
3409 rtx to rtx_insn *.
3410 (record_insns): Likewise for param "insns" and local "tmp".
3411 (active_insn_between): Rename param "tail" to
3412 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3413 using a checked cast.
3414 (thread_prologue_and_epilogue_insns): Split out top-level local
3415 rtx "seq" into three different rtx_insn * locals. Strengthen
3416 local "prologue_seq" from rtx to rtx_insn *.
3417 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3418 from rtx to rtx_insn *.
3419 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3420 (priority): Likewise for locals "prev_first", "twin".
3421 (setup_insn_max_reg_pressure): Likewise for param "after".
3422 (sched_setup_bb_reg_pressure_info): Likewise.
3423 (no_real_insns_p): Strengthen params from const_rtx to
3424 const rtx_insn *.
3425 (schedule_block): Strengthen local "next_tail" from rtx to
3426 rtx_insn *.
3427 * ifcvt.c (find_active_insn_before): Strengthen return type and
3428 param "insn" from rtx to rtx_insn *.
3429 (find_active_insn_after): Likewise.
3430 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3431 (cond_exec_process_if_block): Likewise for locals "then_start",
3432 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3433 (noce_process_if_block): Likewise for local "jump".
3434 (merge_if_block): Likewise for two locals named "end".
3435 (cond_exec_find_if_block): Likewise for local "last_insn".
3436 * jump.c (delete_related_insns): Rename param "insn" to
3437 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3438 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3439 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3440 NULL.
3441 (split_reg): Likewise.
3442 * lra.c (lra_process_new_insns): Likewise.
3443 * modulo-sched.c (permute_partial_schedule): Strengthen param
3444 "last" from rtx to rtx_insn *.
3445 * optabs.c (add_equal_note): Likewise for param "insns" and local
3446 "last_insn".
3447 (expand_binop_directly): Add checked casts to rtx_insn * within
3448 NEXT_INSN (pat) uses.
3449 (expand_unop_direct): Likewise.
3450 (maybe_emit_unop_insn): Likewise.
3451 * recog.c (peep2_attempt): Strengthen locals "last",
3452 "before_try", "x" from rtx to rtx_insn *.
3453 * reorg.c (optimize_skip): Strengthen return type and local
3454 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3455 and locals "trial", "next_trial" from rtx to rtx_insn *.
3456 * resource.c (next_insn_no_annul): Strengthen return type and
3457 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3458 rtx_sequence to clarify the code.
3459 (mark_referenced_resources): Add a checked cast to rtx_insn *
3460 within PREV_INSN (x).
3461 (find_dead_or_set_registers): Strengthen return type, param
3462 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3463 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3464 to rtx_insn **.
3465 (mark_target_live_regs): Strengthen params "insns" and "target",
3466 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3467 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3468 the code.
3469 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3470 from rtx to rtx_insn *.
3471 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3472 from rtx to rtx_insn *.
3473 (copy_reg_eh_region_note_backward): Likewise.
3474 (unshare_all_rtl_in_chain): Likewise for sole param.
3475 (dump_rtl_slim): Strengthen second and third params from const_rtx
3476 to const rtx_insn *.
3477 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3478 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3479 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3480 "next_tail" from rtx to rtx_insn *.
3481 (begin_move_insn): Likewise for local "next".
3482 * sched-int.h (sched_free_deps): Likewise for first and second
3483 params.
3484 (no_real_insns_p): Strengthen both params from const_rtx to
3485 const rtx_insn *.
3486 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3487 rtx to rtx_insn *.
3488 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3489 "next_tail".
3490 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3491 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3492 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3493 rtx_insn *.
3494 (debug_rtl_slim): Strengthen params "first" and "last" from
3495 const_rtx to const rtx_insn *.
3496 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3497 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3498 (convert_to_simple_return): Likewise for param "returnjump".
3499 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3500 "prologue_seq".
3501 (convert_to_simple_return): Likewise for param "returnjump".
3502 * valtrack.c (propagate_for_debug): Likewise for params
3503 "insn", "last".
3504 * valtrack.h (propagate_for_debug): Likewise for second param.
3505
3506 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3507
3508 * output.h (insn_current_reference_address): Strengthen param
3509 from rtx to rtx_insn *.
3510 * final.c (insn_current_reference_address): Likewise.
3511
3512 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3513
3514 * basic-block.h (inside_basic_block_p): Strengthen param from
3515 const_rtx to const rtx_insn *.
3516 * cfgbuild.c (inside_basic_block_p): Likewise.
3517
3518 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3519
3520 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3521 rtx_insn *.
3522 (get_trace_info): Likewise for param "insn".
3523 (save_point_p): Likewise.
3524 (maybe_record_trace_start): Likewise for both params.
3525 (maybe_record_trace_start_abnormal): Likewise.
3526 (create_trace_edges): Likewise for sole param and for three of the
3527 locals named "lab".
3528 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3529 to rtx_insn *, and update a call to pat->element to pat->insn.
3530
3531 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3532
3533 * function.h (struct expr_status): Convert field "x_forced_labels"
3534 from rtx_expr_list * to rtx_insn_list *.
3535
3536 * cfgbuild.c (make_edges): Convert local "x" from an
3537 rtx_expr_list * to an rtx_insn_list *, replacing use of
3538 "element" method with "insn" method.
3539 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3540 * except.c (sjlj_emit_dispatch_table): Replace use of
3541 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3542 forced_labels.
3543 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3544 rtx_expr_list * to an rtx_insn_list *, replacing use of
3545 "element" method with "insn" method.
3546 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3547 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3548 rtx_insn *, adding a checked cast. Replace use of
3549 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3550 forced_labels.
3551 (expand_label): Likewise for local "label_r".
3552
3553 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3554
3555 * function.h (struct rtl_data): Convert field
3556 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3557 rtx_insn_list *.
3558 * rtl.h (remove_node_from_insn_list): New prototype.
3559
3560 * builtins.c (expand_builtin): When prepending to
3561 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3562 gen_rtx_EXPR_LIST.
3563 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3564 to rtx_insn_list *, and use its "insn" method rather than
3565 "element" method.
3566 * cfgrtl.c (delete_insn): Use new function
3567 remove_node_from_insn_list rather than
3568 remove_node_from_expr_list.
3569 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3570 to rtx_insn_list *, and use its "insn" method rather than
3571 "element" method.
3572 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3573 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3574 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3575 from remove_node_from_expr_list.
3576 * stmt.c (expand_label): When prepending to
3577 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3578 gen_rtx_EXPR_LIST.
3579
3580 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3581
3582 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3583 and "x_naked_return_label" from rtx to rtx_code_label *.
3584
3585 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3586
3587 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3588 (SET_NEXT_INSN): Likewise.
3589 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3590
3591 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3592 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3593 to split out the SEQUENCE from local "bundle", strengthening the
3594 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3595 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3596 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3597 and the type of the elements of the "slot" array from rtx to
3598 rtx_insn *.
3599 (reorg_split_calls): Likewise for locals "insn" and "next", and
3600 the type of the elements of the "slot" array.
3601
3602 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3603 array.
3604 (frv_function_prologue): Likewise for locals "insn", "next",
3605 "last_call".
3606 (frv_register_nop): Introduce a local "nop_insn" to be the
3607 rtx_insn * containing rtx "nop".
3608
3609 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3610 used as an insn and sometimes as a pattern, so rename it to
3611 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3612 using it where dealing with the core insn.
3613
3614 * config/picochip/picochip.c (reorder_var_tracking_notes):
3615 Strengthen locals "insn", "next", "last_insn", "queue",
3616 "next_queue", "prev" from rtx to rtx_insn *.
3617
3618 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3619 the second param is an rtx_insn ** rather than an rtx **.
3620 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3621 from rtx to rtx_sequence *, and introduce local named "sequence",
3622 using methods of rtx_sequence to clarify the code.
3623 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3624 use its methods.
3625 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3626 Rename param "after" to "uncast_after", reintroducing "after" as a
3627 local rtx_insn * with a checked cast.
3628 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3629 reintroducing "after" as a local rtx_insn * with a checked cast.
3630 Strengthen local "last" from rtx to rtx_insn * and remove the
3631 now-redundant checked casts.
3632 (copy_delay_slot_insn): Strengthen return type and param from rtx
3633 to rtx_insn *.
3634
3635 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3636 "last" from rtx to rtx_insn *.
3637
3638 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3639
3640 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3641 param from rtx to rtx_insn *.
3642
3643 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3644
3645 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3646 and local "insn" from rtx to rtx_insn *.
3647 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3648 (unfilled_slots_next): Likewise.
3649 (function_return_label): Strengthen from rtx to rtx_code_label *.
3650 (function_simple_return_label): Likewise.
3651 (first_active_target_insn): Strengthen return type and param from
3652 rtx to rtx_insn *.
3653 (find_end_label): Strengthen return type from rtx to
3654 rtx_code_label *; strengthen locals as appropriate.
3655 (emit_delay_sequence): Strengthen return type, param "insn" and
3656 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3657 and local "li" from rtx to rtx_insn_list *, using methods of
3658 rtx_insn_list for clarity and typesafety.
3659 (add_to_delay_list): Strengthen return type and param "insn" from
3660 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3661 rtx_insn_list * and use methods of rtx_insn_list.
3662 (delete_from_delay_slot): Strengthen return type, param "insn",
3663 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3664 Strengthen local "seq" from rtx to rtx_sequence *, and local
3665 "delay_list" from rtx to rtx_insn_list *, using methods of
3666 rtx_sequence for clarity and type-safety.
3667 (delete_scheduled_jump): Add checked cast when invoking
3668 delete_from_delay_slot. Strengthen local "trial" from rtx to
3669 rtx_insn *.
3670 (optimize_skip): Strengthen return type and local "delay_list"
3671 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3672 rtx_insn *.
3673 (steal_delay_list_from_target): Strengthen return type, param
3674 "delay_list" and local "new_delay_list" from rtx to
3675 rtx_insn_list *. Strengthen param "seq" from rtx to
3676 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3677 rtx_insn **.
3678 Split out local "temp" into multiple more-tightly scoped locals:
3679 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3680 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3681 Strengthen locals named "trial" from rtx to rtx_insn *.
3682 (steal_delay_list_from_fallthrough): Strengthen return type and
3683 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3684 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3685 Strengthen local "trial" from rtx to rtx_insn *.
3686 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3687 to rtx_insn_list * and use its methods. Strengthen local "pat"
3688 from rtx to rtx_sequence * and use its methods. Strengthen locals
3689 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3690 (get_label_before): Strengthen return type and local "label" from
3691 rtx to rtx_insn *.
3692 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3693 "next_trial", "next", prev". Strengthen local "delay_list" from
3694 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3695 rtx_insn **.
3696 (follow_jumps): Strengthen return type, param "label" and locals
3697 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3698 (fill_slots_from_thread): Strengthen return type, param
3699 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3700 "insn", "thread", "opposite_thread" and locals "new_thread",
3701 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3702 "sequence" from a checked cast to rtx_sequence so that we can call
3703 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3704 with an rtx_sequence *.
3705 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3706 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3707 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3708 (relax_delay_slots): Strengthen param "first" and locals "insn",
3709 "next", "trial", "delay_insn", "target_label" from rtx to
3710 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3711 Introduce a local "trial_seq" for PATTERN (trial) of type
3712 rtx_sequence *, in both cases using methods of rtx_sequence.
3713 (dbr_schedule): Strengthen param "first" and locals "insn",
3714 "next", "epilogue_insn" from rtx to rtx_insn *.
3715
3716 2014-08-28 Richard Biener <rguenther@suse.de>
3717
3718 PR tree-optimization/62283
3719 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3720 Do not peel loops for alignment where the vector loop likely
3721 doesn't run at least VF times.
3722
3723 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3724
3725 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3726 important_candidates. Consider all important candidates if
3727 IVS doesn't give any result. Remove check on ivs->upto.
3728 (try_add_cand_for): Call iv_ca_add_use only once.
3729
3730 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3731 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3732 Anna Tikhonova <anna.tikhonova@intel.com>
3733 Ilya Tocar <ilya.tocar@intel.com>
3734 Andrey Turetskiy <andrey.turetskiy@intel.com>
3735 Ilya Verbin <ilya.verbin@intel.com>
3736 Kirill Yukhin <kirill.yukhin@intel.com>
3737 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3738
3739 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3740 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3741 masking.
3742 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3743 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3744 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3745 (define_insn "*mul<mode>3"): Add EVEX version.
3746
3747 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3748 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3749 Anna Tikhonova <anna.tikhonova@intel.com>
3750 Ilya Tocar <ilya.tocar@intel.com>
3751 Andrey Turetskiy <andrey.turetskiy@intel.com>
3752 Ilya Verbin <ilya.verbin@intel.com>
3753 Kirill Yukhin <kirill.yukhin@intel.com>
3754 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3755
3756 * config/i386/sse.md
3757 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3758 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3759 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3760 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3761 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3762 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3763 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3764 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3765 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3766 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3767 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3768 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3769 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3770 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3771 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3772 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3773
3774 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3775 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3776 Anna Tikhonova <anna.tikhonova@intel.com>
3777 Ilya Tocar <ilya.tocar@intel.com>
3778 Andrey Turetskiy <andrey.turetskiy@intel.com>
3779 Ilya Verbin <ilya.verbin@intel.com>
3780 Kirill Yukhin <kirill.yukhin@intel.com>
3781 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3782
3783 * config/i386/sse.md
3784 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3785 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3786 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3787
3788 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3789 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3790 Anna Tikhonova <anna.tikhonova@intel.com>
3791 Ilya Tocar <ilya.tocar@intel.com>
3792 Andrey Turetskiy <andrey.turetskiy@intel.com>
3793 Ilya Verbin <ilya.verbin@intel.com>
3794 Kirill Yukhin <kirill.yukhin@intel.com>
3795 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3796
3797 * config/i386/sse.md
3798 (define_mode_iterator VI128_256): New.
3799 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3800
3801 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3802 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3803 Anna Tikhonova <anna.tikhonova@intel.com>
3804 Ilya Tocar <ilya.tocar@intel.com>
3805 Andrey Turetskiy <andrey.turetskiy@intel.com>
3806 Ilya Verbin <ilya.verbin@intel.com>
3807 Kirill Yukhin <kirill.yukhin@intel.com>
3808 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3809
3810 * config/i386/sse.md
3811 (define_mode_iterator VI8_256_512): New.
3812 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3813 Ditto.
3814 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3815 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3816 Ditto.
3817 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3818
3819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3820
3821 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3822 pointer to the cumulative reloc value and return the value for
3823 this reloc instead.
3824 (compute_reloc_for_rtx): Take a const_rtx. Call
3825 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3826 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3827 for_each_rtx for the CONST case.
3828
3829 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3830
3831 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3832 (mark_constants_in_pattern): ...this new function to iterate over
3833 all the subrtxes.
3834 (mark_constants): Update accordingly.
3835
3836 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3837
3838 * varasm.c: Include rtl-iter.h.
3839 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3840 Remove the pointer to the cumulative hashval_t and just return
3841 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3842 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3843 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3844
3845 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3846
3847 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3848 Give real type of data parameter. Remove return value.
3849 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3850 to iterate over subrtxes.
3851
3852 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3853
3854 * var-tracking.c (use_narrower_mode_test): Turn from being a
3855 for_each_rtx callback to being a function that examines each
3856 subrtx itself.
3857 (adjust_mems): Update accordingly.
3858
3859 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3860
3861 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3862 callback to being a function that examines each subrtx itself.
3863 Remove handling of null rtxes.
3864 (add_uses): Update accordingly.
3865
3866 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3867
3868 * var-tracking.c: Include rtl-iter.h.
3869 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3870 to being a function that examines each subrtx itself.
3871 (use_type): Update accordingly.
3872
3873 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3874
3875 * store-motion.c: Include rtl-iter.h.
3876 (extract_mentioned_regs_1): Delete.
3877 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3878 for_each_rtx to iterate over subrtxes.
3879
3880 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3881
3882 * sel-sched.c: Include rtl-iter.h
3883 (count_occurrences_1): Delete.
3884 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3885 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3886
3887 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3888
3889 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3890 * rtlanal.c (tls_referenced_p_1): Delete.
3891 (tls_referenced_p): Take a const_rtx rather than an rtx.
3892 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3893
3894 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3895
3896 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3897 (for_each_inc_dec): Take an rtx rather than an rtx *.
3898 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3899 (cselib_record_sets): Likewise.
3900 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3901 (check_for_inc_dec): Likewise.
3902 * rtlanal.c (for_each_inc_dec_ops): Delete.
3903 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3904 rather than a pointer to the memory address. Replace
3905 for_each_inc_dec_ops argument with separate function and data
3906 arguments. Abort on non-autoinc addresses.
3907 (for_each_inc_dec_find_mem): Delete.
3908 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3909 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3910
3911 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3912
3913 * rtl.h (find_all_hard_regs): Declare.
3914 * rtlanal.c (find_all_hard_regs): New function.
3915 (record_hard_reg_uses_1): Delete.
3916 (record_hard_reg_uses): Use find_all_hard_regs.
3917
3918 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3919
3920 * rtl.h (replace_label_data): Delete.
3921 (replace_label): Take the old label, new label and update-nuses flag
3922 as direct arguments. Return void.
3923 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3924 * rtlanal.c (replace_label): Update interface as above. Handle
3925 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3926 iterator. Use FOR_EACH_SUBRTX_PTR.
3927
3928 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3929
3930 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3931 with const_rtx parameters.
3932 * varasm.c (get_pool_constant): Likewise.
3933 * rtlanal.c (rtx_referenced_p_1): Delete.
3934 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3935 Assert that the rtx we're looking for is nonnull. Allow searches
3936 for constant pool SYMBOL_REFs.
3937
3938 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3939
3940 * reload1.c: Include rtl-iter.h.
3941 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3942 to being a function that examines each subrtx itself.
3943 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3944
3945 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3946
3947 * regcprop.c (cprop_find_used_regs_1): Delete.
3948 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3949
3950 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3951
3952 * regcprop.c: Include rtl-iter.h.
3953 (kill_value): Take a const_rtx.
3954 (kill_autoinc_value): Turn from being a for_each_rtx callback
3955 to being a function that examines each subrtx itself.
3956 (copyprop_hardreg_forward_1): Update accordingly.
3957
3958 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3959
3960 * reg-stack.c: Include rtl-iter.h.
3961 (subst_stack_regs_in_debug_insn): Delete.
3962 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3963 instead of for_each_rtx.
3964
3965 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3966
3967 * lower-subreg.c (find_decomposable_subregs): Turn from being
3968 a for_each_rtx callback to being a function that examines each
3969 subrtx itself. Remove handling of null rtxes.
3970 (decompose_multiword_subregs): Update accordingly.
3971
3972 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3973
3974 * lower-subreg.c (adjust_decomposed_uses): Delete.
3975 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3976 Remove handling of null rtxes.
3977
3978 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3979
3980 * lower-subreg.c: Include rtl-iter.h.
3981 (resolve_subreg_use): Turn from being a for_each_rtx callback
3982 to being a function that examines each subrtx itself. Remove
3983 handling of null rtxes.
3984 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3985 (decompose_multiword_subregs): Likewise.
3986
3987 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3988
3989 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3990 to being a function that examines each subrtx itself.
3991 (simplify_using_condition, simplify_using_initial_values): Update
3992 accordingly.
3993
3994 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3995
3996 * loop-iv.c: Include rtl-iter.h.
3997 (find_single_def_src): New function.
3998 (replace_single_def_regs): Turn from being a for_each_rtx callback
3999 to being a function that examines each subrtx itself.
4000 (replace_in_expr, simplify_using_initial_values): Update accordingly.
4001
4002 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4003
4004 * jump.c (eh_returnjump_p_1): Delete.
4005 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4006 Remove handling of null rtxes.
4007
4008 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4009
4010 * jump.c: Include rtl-iter.h.
4011 (returnjump_p_1): Delete.
4012 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4013 Remove handling of null rtxes.
4014
4015 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4016
4017 * ira.c: Include rtl-iter.h.
4018 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4019 to being a function that examines each subrtx itself. Remove
4020 handling of null rtxes.
4021 (update_equiv_regs): Update call accordingly.
4022
4023 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4024
4025 * fwprop.c: Include rtl-iter.h.
4026 (varying_mem_p): Turn from being a for_each_rtx callback to being
4027 a function that examines each subrtx itself.
4028 (propagate_rtx): Update accordingly.
4029
4030 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4031
4032 * function.c: Include rtl-iter.h
4033 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4034 callback to being a function that examines each subrtx itself.
4035 Return the changed flag.
4036 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4037 (instantiate_virtual_regs): Update calls accordingly.
4038
4039 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4040
4041 * final.c: Include rtl-iter.h.
4042 (mark_symbol_ref_as_used): Delete.
4043 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4044 for_each_rtx.
4045
4046 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4047
4048 * emit-rtl.c: Include rtl-iter.h.
4049 (find_auto_inc): Turn from being a for_each_rtx callback to being
4050 a function that examines each subrtx itself. Assume the first operand
4051 to an RTX_AUTOINC is the automodified register.
4052 (try_split): Update call accordingly.
4053
4054 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4055
4056 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4057 Return a bool, inverting the result so that 0/false means "not ok".
4058 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4059 subrtxes of a CONST.
4060 (mem_loc_descriptor, add_const_value_attribute)
4061 (resolve_addr_in_expr): Update calls accordingly.
4062
4063 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4064
4065 * dwarf2out.c: Include rtl-iter.h.
4066 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4067 Remove unused data parameter. Return a bool, inverting the result
4068 so that 0/false means "not ok".
4069 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
4070 instead of for_each_rtx.
4071
4072 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4073
4074 * dse.c: Include rtl-iter.h.
4075 (check_mem_read_rtx): Change void * parameter to real type.
4076 Remove return value.
4077 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
4078 for_each_rtx. Don't handle null rtxes.
4079
4080 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4081
4082 * df-problems.c: Include rtl-iter.h.
4083 (find_memory): Turn from being a for_each_rtx callback to being
4084 a function that examines each subrtx itself. Continue to look for
4085 volatile references even after a nonvolatile one has been found.
4086 (can_move_insns_across): Update calls accordingly.
4087
4088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4089
4090 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4091 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4092 to iterate over subrtxes. Return a bool rather than an int.
4093
4094 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4095
4096 * ddg.c: Include rtl-iter.h.
4097 (mark_mem_use_1): Rename to...
4098 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
4099 instead of for_each_rtx.
4100 (mem_read_insn_p): Update accordingly.
4101
4102 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4103
4104 * cse.c (change_cc_mode_args): Delete.
4105 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4106 a function that examines each subrtx itself. Take the fields of
4107 change_cc_mode_args as argument and return void.
4108 (cse_change_cc_mode_insn): Update calls accordingly.
4109
4110 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4111
4112 * cse.c (is_dead_reg): Change argument to const_rtx.
4113 (dead_debug_insn_data): Delete.
4114 (is_dead_debug_insn): Expand commentary. Turn from being a
4115 for_each_rtx callback to being a function that examines
4116 each subrtx itself. Take the fields of dead_debug_insn_data
4117 as argument.
4118 (delete_trivially_dead_insns): Update call accordingly.
4119
4120 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4121
4122 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4123 being a for_each_rtx callback to being a function that examines
4124 each subrtx itself.
4125 (cse_extended_basic_block): Update call accordingly.
4126
4127 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4128
4129 * cse.c (check_dependence_data): Delete.
4130 (check_dependence): Change from being a for_each_rtx callback to being
4131 a function that examines all subrtxes itself. Don't handle null rtxes.
4132 (invalidate): Update call accordingly.
4133
4134 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4135
4136 * cse.c: Include rtl-iter.h.
4137 (approx_reg_cost_1): Delete.
4138 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4139 Don't handle null rtxes.
4140
4141 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4142
4143 * cfgcleanup.c: Include rtl-iter.h.
4144 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4145 to being a function that examines each subrtx itself.
4146 (thread_jump): Update accordingly.
4147
4148 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4149
4150 * combine-stack-adj.c: Include rtl-iter.h.
4151 (record_stack_refs_data): Delete.
4152 (record_stack_refs): Turn from being a for_each_rtx callback
4153 to being a function that examines each subrtx itself.
4154 Take a pointer to the reflist. Invert sense of return value
4155 so that true means success and false means failure. Don't
4156 handle null rtxes.
4157 (combine_stack_adjustments_for_block): Update accordingly.
4158
4159 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4160
4161 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4162 callback to a function that takes an rtx and returns a bool
4163 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4164 for_each_rtx.
4165
4166 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4167
4168 * combine.c: Include rtl-iter.h.
4169 (unmentioned_reg_p_1): Delete.
4170 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4171 Don't handle null rtxes.
4172
4173 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4174
4175 * calls.c: Include rtl-iter.h.
4176 (internal_arg_pointer_based_exp_1): Delete.
4177 (internal_arg_pointer_based_exp): Take a const_rtx.
4178 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4179
4180 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4181
4182 * caller-save.c: Include rtl-iter.h.
4183 (add_used_regs_1): Delete.
4184 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4185 to iterate over subrtxes. Assert that any remaining pseudos
4186 have been spilled.
4187
4188 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4189
4190 * bt-load.c: Include rtl-iter.h.
4191 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4192 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4193 to iterate over subrtxes.
4194 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4195 find_btr_use rather than btr_referenced_p.
4196
4197 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4198
4199 * alias.c: Include rtl-iter.h.
4200 (refs_newer_value_cb): Delete.
4201 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4202
4203 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4204
4205 * rtl-iter.h: New file.
4206 * rtlanal.c: Include it.
4207 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4208 (generic_subrtx_iterator <T>::add_single_to_queue)
4209 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4210 (generic_subrtx_iterator <T>::free_array): New functions.
4211 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4212 (generic_subrtx_iterator <const_rtx_accessor>)
4213 (generic_subrtx_iterator <rtx_var_accessor>
4214 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4215 (setup_reg_subrtx_bounds): New function.
4216 (init_rtlanal): Call it.
4217
4218 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4219
4220 PR target/62261
4221 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4222 TARGET_SHMEDIA.
4223 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4224
4225 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4226
4227 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4228
4229 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4230
4231 * rtl.h (JUMP_LABEL_AS_INSN): New.
4232
4233 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4234
4235 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4236 rtx_expr_list **.
4237 (alloc_EXPR_LIST): Strengthen return type from rtx to
4238 rtx_expr_list *.
4239 (remove_free_EXPR_LIST_node): Likewise for param.
4240 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4241 from rtx to rtx_expr_list *.
4242 * sched-int.h (struct deps_desc): Strengthen fields
4243 "pending_read_mems" and "pending_write_mems" from rtx to
4244 rtx_expr_list *.
4245
4246 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4247 rtx to rtx_expr_list *.
4248 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4249 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4250 rtx_expr_list **.
4251 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4252 from rtx to rtx_expr_list *.
4253 * loop-iv.c (simplify_using_initial_values): Strengthen local
4254 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4255 "pnote_next" from rtx * to rtx_expr_list **.
4256 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4257 param "exprp" from rtx * to rtx_expr_list **.
4258 (add_insn_mem_dependence): Strengthen local "mem_list" from
4259 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4260 to rtx_expr_list *.
4261 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4262 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4263 param "old_mems_p" from rtx * to rtx_expr_list **.
4264 * var-tracking.c (struct adjust_mem_data): Strengthen field
4265 "side_effects" from rtx to rtx_expr_list *.
4266 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4267 rtx_expr_list *.
4268 (prepare_call_arguments): Likewise.
4269
4270 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4271
4272 * function.h (struct rtl_data): Strengthen field
4273 "x_stack_slot_list" from rtx to rtx_expr_list *.
4274
4275 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4276 when assigning to stack_slot_list.
4277
4278 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4279
4280 * function.h (struct rtl_data): Strengthen field
4281 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4282 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4283 rtx * to rtx_expr_list **.
4284
4285 * cfgbuild.c (make_edges): In loop over
4286 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4287 rtx_expr_list *, and use methods of the latter class to clarify
4288 the code.
4289 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4290 rtx_expr_list *, and use methods of the latter class to clarify
4291 the code.
4292 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4293 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4294 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4295 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4296 to rtx_expr_list *. Use methods of the latter class to clarify
4297 the code.
4298
4299 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4300
4301 * function.h (struct expr_status): Strengthen field
4302 "x_forced_labels" from rtx to rtx_expr_list *.
4303
4304 * cfgbuild.c (make_edges): Split local "x" into two locals,
4305 strengthening one from rtx to rtx_expr_list *, and using methods
4306 of said class.
4307 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4308 loop over forced_labels, introduce strengthen it from rtx to
4309 rtx_expr_list *, using methods to clarify the code.
4310 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4311 to rtx_expr_list *, using methods of said class to clarify the
4312 code.
4313 * reload1.c (set_initial_label_offsets): Split local "x" into two
4314 per-loop variables, strengthening the first from rtx to
4315 rtx_expr_list * and using methods.
4316
4317 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4318
4319 * coretypes.h (class rtx_expr_list): Add forward declaration.
4320 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4321 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4322 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4323 invariant: GET_CODE (X) == EXPR_LIST.
4324 (is_a_helper <rtx_expr_list *>::test): New.
4325 (rtx_expr_list::next): New.
4326 (rtx_expr_list::element): New.
4327 (gen_rtx_EXPR_LIST): New.
4328
4329 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4330
4331 * varasm.c (mark_constants): Convert a GET_CODE check into a
4332 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4333 Use methods of rtx_sequence to clarify the code.
4334
4335 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4336
4337 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4338 local "seq" via a checked cast, and use methods of rtx_sequence
4339 to simplify the code.
4340
4341 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4342
4343 * resource.c (mark_referenced_resources): Strengthen local
4344 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4345 using methods of rtx_sequence to clarify the code.
4346 (find_dead_or_set_registers): Within the switch statement, convert
4347 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4348 the JUMP_P handling, introduce another local "seq", adding a
4349 checked cast to rtx_sequence *. In both cases, use methods of
4350 rtx_sequence to clarify the code.
4351 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4352 via a checked cast, and use methods of rtx_sequence to simplify
4353 the code.
4354
4355 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4356
4357 * reorg.c (redundant_insn): In two places in the function, replace
4358 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4359 usings methods of rtx_sequence to clarify the code.
4360
4361 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4362
4363 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4364 local "seq" with a checked cast, and use methods of rtx_sequence
4365 to clarify the code.
4366
4367 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4368
4369 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4370 with a checked cast, in the region for where we know it's a
4371 SEQUENCE. Use methods of rtx_sequence.
4372
4373 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4374
4375 * final.c (get_attr_length_1): Replace GET_CODE check with a
4376 dyn_cast, introducing local "seq" and the use of methods of
4377 rtx_sequence.
4378 (shorten_branches): Likewise, introducing local "body_seq".
4379 Strengthen local "inner_insn" from rtx to rtx_insn *.
4380 (reemit_insn_block_notes): Replace GET_CODE check with a
4381 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4382 Use methods of rtx_sequence.
4383 (final_scan_insn): Likewise, introducing local "seq" for when
4384 "body" is known to be a SEQUENCE, using its methods.
4385
4386 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4387
4388 * except.c (can_throw_external): Strengthen local "seq" from rtx
4389 to rtx_sequence *. Use methods of rtx_sequence.
4390 (insn_nothrow_p): Likewise.
4391
4392 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4393
4394 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4395 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4396 Use methods of rtx_sequence.
4397 (scan_trace): Likewise for local "pat".
4398
4399 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4400
4401 * coretypes.h (class rtx_sequence): Add forward declaration.
4402 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4403 invariant: GET_CODE (X) == SEQUENCE.
4404 (is_a_helper <rtx_sequence *>::test): New.
4405 (is_a_helper <const rtx_sequence *>::test): New.
4406 (rtx_sequence::len): New.
4407 (rtx_sequence::element): New.
4408 (rtx_sequence::insn): New.
4409
4410 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4411
4412 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4413 rtx_insn_list **.
4414 (alloc_INSN_LIST): Strengthen return type from rtx to
4415 rtx_insn_list *.
4416 (copy_INSN_LIST): Likewise for return type and param.
4417 (concat_INSN_LIST): Likewise for both params and return type.
4418 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4419 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4420 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4421 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4422
4423 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4424 "implicit_sets", "control_uses", "clobbers" from rtx to
4425 rtx_insn_list *.
4426 (struct deps_desc): Likewise for fields "pending_read_insns",
4427 "pending_write_insns", "pending_jump_insns",
4428 "last_pending_memory_flush", "last_function_call",
4429 "last_function_call_may_noreturn", "sched_before_next_call",
4430 "sched_before_next_jump".
4431 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4432 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4433
4434 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4435 from rtx to rtx_insn_list *.
4436 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4437 rtx_insn_list *.
4438
4439 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4440 to rtx_insn_list **.
4441 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4442 rtx_insn_list *.
4443 (queue_insn): Likewise for local "link".
4444 (struct haifa_saved_data): Strengthen field "insn_queue" from
4445 rtx * to rtx_insn_list **.
4446 (save_backtrack_point): Update allocation of save->insn_queue to
4447 reflect the strengthening of elements from rtx to rtx_insn_list *.
4448 (queue_to_ready): Strengthen local "link" from rtx to
4449 rtx_insn_list *; use methods "next" and "insn" when traversing the
4450 list.
4451 (early_queue_to_ready): Likewise for locals "link", "next_link",
4452 "prev_link".
4453 (schedule_block): Update allocation of insn_queue to reflect the
4454 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4455 local "link" from rtx to rtx_insn_list *, and use methods when
4456 working it.
4457 (add_to_speculative_block): Strengthen locals "twins" and
4458 "next_node" from rtx to rtx_insn_list *, and use methods when
4459 working with them. Strengthen local "twin" from rtx to
4460 rtx_insn *, eliminating a checked cast.
4461 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4462 from rtx to rtx_insn_list *, and use methods when working with
4463 them.
4464
4465 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4466 from rtx to rtx_insn_list *, adding a checked cast.
4467 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4468 rtx_insn_list **.
4469 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4470 "newlink" from rtx to rtx_insn_list *. Strengthen local
4471 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4472 from rtx to rtx_insn *.
4473 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4474 from rtx to rtx_insn_list *. Use methods of the latter class.
4475 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4476 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4477 (remove_free_INSN_LIST_node): Strengthen return type and local
4478 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4479 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4480 rtx_insn_list *, using "insn" method.
4481
4482 * sched-deps.c (add_dependence_list): Strengthen param "list"
4483 from rtx to rtx_insn_list *, and use methods when working with it.
4484 (add_dependence_list_and_free): Strengthen param "listp" from
4485 rtx * to rtx_insn_list **.
4486 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4487 to rtx_insn_list **, and use methods when working with *listp.
4488 (remove_from_both_dependence_lists): Strengthen param "listp" from
4489 rtx * to rtx_insn_list **
4490 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4491 to rtx_insn_list **. Eliminate local "link", in favor of two new
4492 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4493 respectively.
4494 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4495 by introducing local "cond_deps".
4496 (remove_from_deps): Strengthen param "insn" from rtx to
4497 rtx_insn *.
4498
4499 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4500 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4501 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4502 Use methods of rtx_insn_list.
4503
4504 * store-motion.c (struct st_expr): Strengthen fields
4505 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4506 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4507 rtx_insn_list *.
4508 (find_moveable_store): Split out "tmp" into multiple more-tightly
4509 scoped locals. Use methods of rtx_insn_list *.
4510 (compute_store_table): Strengthen local "tmp" from rtx to
4511 rtx_insn *. Use methods of rtx_insn_list *.
4512
4513 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4514
4515 * coretypes.h (class rtx_insn_list): Add forward declaration.
4516 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4517 (is_a_helper <rtx_insn_list *>::test): New.
4518 (rtx_insn_list::next): New.
4519 (rtx_insn_list::insn): New.
4520 (gen_rtx_INSN_LIST): Add prototype.
4521 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4522 * gengenrtl.c (special_rtx): Add INSN_LIST.
4523
4524 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4525
4526 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4527 "prev" from rtx to rtx_insn *.
4528
4529 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4530
4531 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4532 functions. Require merely an rtx for now, not an rtx_insn *.
4533 (BLOCK_FOR_INSN): Likewise.
4534 (INSN_LOCATION): Likewise.
4535 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4536
4537 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4538
4539 * rtl.h (PATTERN): Convert this macro into a pair of inline
4540 functions, for now, requiring const_rtx and rtx.
4541
4542 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4543
4544 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4545 rtx_insn *.
4546 (final_postscan_insn): Likewise.
4547 (adjust_cost): Likewise.
4548 (adjust_priority): Likewise.
4549 (variable_issue): Likewise.
4550 (macro_fusion_pair_p): Likewise.
4551 (dfa_post_cycle_insn): Likewise.
4552 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4553 (first_cycle_multipass_issue): Likewise.
4554 (dfa_new_cycle): Likewise.
4555 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4556 (speculate_insn): Likewise for param "insn".
4557 (gen_spec_check): Likewise for params "insn" and "label".
4558 (get_insn_spec_ds): Likewise for param "insn".
4559 (get_insn_checked_ds): Likewise.
4560 (dispatch_do): Likewise.
4561 (dispatch): Likewise.
4562 (cannot_copy_insn_p): Likewise.
4563 (invalid_within_doloop): Likewise.
4564 (legitimate_combined_insn): Likewise.
4565 (needed): Likewise.
4566 (after): Likewise.
4567
4568 * doc/tm.texi: Automatically updated to reflect changes to
4569 target.def.
4570
4571 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4572 working with insn.
4573 (schedule_block): Likewise.
4574 (sched_init): Likewise.
4575 (sched_speculate_insn): Strengthen param "insn" from rtx to
4576 rtx_insn *.
4577 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4578 working with insn.
4579 * hooks.c (hook_bool_rtx_true): Rename to...
4580 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4581 rtx to rtx_insn *.
4582 (hook_constcharptr_const_rtx_null): Rename to...
4583 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4584 first param from const_rtx to const rtx_insn *.
4585 (hook_bool_rtx_int_false): Rename to...
4586 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4587 param from rtx to rtx_insn *.
4588 (hook_void_rtx_int): Rename to...
4589 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4590 rtx to rtx_insn *.
4591
4592 * hooks.h (hook_bool_rtx_true): Rename to...
4593 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4594 rtx to rtx_insn *.
4595 (hook_bool_rtx_int_false): Rename to...
4596 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4597 param from rtx to rtx_insn *.
4598 (hook_void_rtx_int): Rename to...
4599 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4600 rtx to rtx_insn *.
4601 (hook_constcharptr_const_rtx_null): Rename to...
4602 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4603 first param from const_rtx to const rtx_insn *.
4604
4605 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4606 and local "prev" from rtx to rtx_insn *.
4607
4608 * sched-int.h (sched_speculate_insn): Strengthen first param from
4609 rtx to rtx_insn *.
4610
4611 * sel-sched.c (create_speculation_check): Likewise for local "label".
4612 * targhooks.c (default_invalid_within_doloop): Strengthen param
4613 "insn" from const_rtx to const rtx_insn *.
4614 * targhooks.h (default_invalid_within_doloop): Strengthen param
4615 from const_rtx to const rtx_insn *.
4616
4617 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4618 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4619
4620 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4621 "insn".
4622 (arc_invalid_within_doloop): Likewise, with const.
4623
4624 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4625 (arm_cannot_copy_insn_p): Likewise for param "insn".
4626 (arm_unwind_emit): Likewise.
4627
4628 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4629 "dep_insn".
4630
4631 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4632 (c6x_variable_issue): Likewise. Removed now-redundant checked
4633 cast.
4634 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4635
4636 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4637 Likewise for param "insn".
4638 (epiphany_mode_after): Likewise.
4639 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4640 params "insn", "dep_insn".
4641 (epiphany_mode_needed): Likewise for param "insn".
4642 (epiphany_mode_after): Likewise.
4643
4644 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4645 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4646 (ix86_avx_u128_mode_needed): Likewise.
4647 (ix86_i387_mode_needed): Likewise.
4648 (ix86_mode_needed): Likewise.
4649 (ix86_avx_u128_mode_after): Likewise.
4650 (ix86_mode_after): Likewise.
4651 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4652 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4653 (ix86_adjust_priority): Likewise for param "insn".
4654 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4655 (do_dispatch): Likewise.
4656 (has_dispatch): Likewise.
4657 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4658
4659 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4660 reflect renaming of default hook implementation from
4661 hook_constcharptr_const_rtx_null to
4662 hook_constcharptr_const_rtx_insn_null.
4663 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4664 rtx to rtx_insn *.
4665 (ia64_variable_issue): Likewise for param "insn".
4666 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4667 (ia64_dfa_new_cycle): Likewise.
4668 (ia64_get_insn_spec_ds): Likewise.
4669 (ia64_get_insn_checked_ds): Likewise.
4670 (ia64_speculate_insn): Likewise.
4671 (ia64_gen_spec_check): Likewise for params "insn", "label".
4672 (ia64_asm_unwind_emit): Likewise for param "insn".
4673
4674 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4675
4676 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4677 "insn", "def_insn".
4678 (m68k_sched_variable_issue): Likewise for param "insn".
4679
4680 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4681 "def_insn".
4682
4683 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4684 Likewise for params "insn", "dep".
4685
4686 * config/mips/mips.c (mips_adjust_cost): Likewise.
4687 (mips_variable_issue): Likewise for param "insn".
4688 (mips_final_postscan_insn): Likewise.
4689
4690 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4691 for params "insn", "dep".
4692
4693 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4694 "dep_insn".
4695 (pa_adjust_priority): Likewise for param "insn".
4696
4697 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4698 Likewise for params "insn", "dep_insn".
4699
4700 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4701 param "insn".
4702 (rs6000_variable_issue): Likewise.
4703 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4704 (rs6000_debug_adjust_cost): Likewise.
4705 (rs6000_adjust_priority): Likewise for param "insn".
4706 (rs6000_use_sched_lookahead_guard): Likewise.
4707 (get_next_active_insn): Likewise for return type and both params.
4708 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4709 and locals "insn", "next_insn".
4710 (pad_groups): Likewise.
4711
4712 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4713 "insn".
4714 (s390_cannot_copy_insn_p): Likewise.
4715 (s390_sched_variable_issue): Likewise for third param, eliminating
4716 checked cast.
4717 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4718 default hook implementation from hook_constcharptr_const_rtx_null
4719 to hook_constcharptr_const_rtx_insn_null.
4720
4721 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4722 from rtx to rtx_insn *.
4723 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4724 (sh_variable_issue): Likewise for param "insn".
4725 (sh_dfa_new_cycle): Likewise.
4726 (sh_mode_needed): Likewise.
4727 (sh_mode_after): Likewise.
4728
4729 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4730 params "insn", "dep_insn".
4731 (hypersparc_adjust_cost): Likewise.
4732 (sparc_adjust_cost): Likewise.
4733
4734 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4735 param, eliminated checked cast.
4736 (spu_sched_adjust_cost): Likewise for first and third params.
4737
4738 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4739 params "insn" and "dep_insn" from rtx to rtx_insn *.
4740
4741 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4742
4743 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4744
4745 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4746 (set_is_load_p): ...this, updating to work on a SET pattern rather
4747 than an insn.
4748 (is_store_insn): Rename to...
4749 (set_is_store_p): ...this, updating to work on a SET pattern
4750 rather than an insn.
4751 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4752 top of function to where it is needed. Rewrite the bogus
4753 condition that checks for "insn" and "dep" being PARALLEL to
4754 instead use single_set, introducing locals "insn_set" and
4755 "dep_set". Given that we only ever returned "cost" for a non-pair
4756 of SETs, bail out early if we don't have a pair of SET.
4757 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4758 use the new locals "insn_set" and "dep_set", and update calls to
4759 is_load_insn and is_store_insn to be calls to set_is_load_p and
4760 set_is_store_p.
4761
4762 2014-08-27 Guozhi Wei <carrot@google.com>
4763
4764 PR target/62262
4765 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4766 amount before using it.
4767
4768 2014-08-27 Richard Biener <rguenther@suse.de>
4769
4770 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4771 get_maxval_strlen inside a more useful API.
4772 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4773 (gimple_fold_builtin): ... caller.
4774 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4775 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4776 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4777 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4778 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4779 gimple_fold_builtin_sprintf): Adjust to compute maxval
4780 themselves.
4781
4782 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4783
4784 PR other/62248
4785 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
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_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4798 Use `concat_tg_mode' attribute to determine asm register size.
4799
4800 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4801 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4802 Anna Tikhonova <anna.tikhonova@intel.com>
4803 Ilya Tocar <ilya.tocar@intel.com>
4804 Andrey Turetskiy <andrey.turetskiy@intel.com>
4805 Ilya Verbin <ilya.verbin@intel.com>
4806 Kirill Yukhin <kirill.yukhin@intel.com>
4807 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4808
4809 * config/i386/sse.md
4810 (define_mode_iterator VI48_AVX512VL): New.
4811 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4812 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4813 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4814 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4815 with VI1): Change mode iterator.
4816 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4817 with VI_ULOADSTORE_BW_AVX512VL): New.
4818 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4819 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4820 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4821 with VI1): Change mode iterator.
4822 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4823 with VI_ULOADSTORE_BW_AVX512VL): New.
4824 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4825 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4826 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4827 with VI1): Change mode iterator.
4828 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4829 with VI_ULOADSTORE_BW_AVX512VL): New.
4830 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4831 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4832 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4833 (define_insn "<avx512>_storedqu<mode>_mask" with
4834 VI48_AVX512VL): New.
4835 (define_insn "<avx512>_storedqu<mode>_mask" with
4836 VI12_AVX512VL): Ditto.
4837
4838 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4839 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4840 Anna Tikhonova <anna.tikhonova@intel.com>
4841 Ilya Tocar <ilya.tocar@intel.com>
4842 Andrey Turetskiy <andrey.turetskiy@intel.com>
4843 Ilya Verbin <ilya.verbin@intel.com>
4844 Kirill Yukhin <kirill.yukhin@intel.com>
4845 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4846
4847 * config/i386/sse.md
4848 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4849 (define_mode_iterator VI48_AVX512BW): New.
4850 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4851 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4852 with VI48_AVX2_48_AVX512F): New.
4853 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4854 with VI2_AVX512VL): Ditto.
4855
4856 2014-08-27 Richard Biener <rguenther@suse.de>
4857
4858 PR middle-end/62239
4859 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4860 (fold_builtin_3): Do not fold strcat_chk here.
4861 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4862 from builtins.c.
4863 (gimple_fold_builtin): Fold strcat_chk here.
4864
4865 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4866
4867 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4868 * dwarf2out.c (dwarf2out_decl): Make static.
4869
4870 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4871
4872 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4873
4874 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4875
4876 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4877 from rtx to rtx_insn *.
4878 (cselib_lookup_from_insn): Likewise for final param.
4879 (cselib_subst_to_values_from_insn): Likewise.
4880 (cselib_add_permanent_equiv): Likewise.
4881
4882 * cselib.c (cselib_current_insn): Likewise for this variable.
4883 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4884 (cselib_lookup_from_insn): Likewise.
4885 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4886 "save_cselib_current_insn".
4887 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4888
4889 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4890 from rtx to rtx_insn *.
4891
4892 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4893
4894 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4895 rtx_insn *.
4896
4897 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4898
4899 * df.h (df_dump_insn_problem_function): Strengthen first param of
4900 this callback from const_rtx to const rtx_insn *.
4901 (struct df_insn_info): Strengthen field "insn" from rtx to
4902 rtx_insn *.
4903 (DF_REF_INSN): Eliminate this function, reinstating the older
4904 macro definition.
4905 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4906 (df_reg_defined): Likewise.
4907 (df_find_use): Likewise.
4908 (df_reg_used): Likewise.
4909 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4910 const rtx_insn *.
4911 (df_dump_insn_bottom): Likewise.
4912 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4913 (df_insn_debug_regno): Likewise.
4914 (debug_df_insn): Likewise.
4915 (df_rd_simulate_one_insn): Likewise for param 2.
4916 (df_word_lr_simulate_defs): Likewise for param 1.
4917 (df_word_lr_simulate_uses): Likewise.
4918 (df_md_simulate_one_insn): Likewise for param 2.
4919 (df_simulate_find_noclobber_defs): Likewise for param 1.
4920 (df_simulate_find_defs): Likewise.
4921 (df_simulate_defs): Likewise.
4922 (df_simulate_uses): Likewise.
4923 (df_simulate_one_insn_backwards): Likewise for param 2.
4924 (df_simulate_one_insn_forwards): Likewise.
4925 (df_uses_create): Likewise for param 2.
4926 (df_insn_create_insn_record): Likewise for param 1.
4927 (df_insn_delete): Likewise.
4928 (df_insn_rescan): Likewise.
4929 (df_insn_rescan_debug_internal): Likewise.
4930 (df_insn_change_bb): Likewise.
4931 (df_notes_rescan): Likewise.
4932 * rtl.h (remove_death): Likewise for param 2.
4933 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4934 const rtx_insn *.
4935 * sched-int.h (reemit_notes): Strengthen param from rtx to
4936 rtx_insn *.
4937 * valtrack.h (propagate_for_debug): Likewise for param 1.
4938
4939 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4940 local "tmp_rtx" from const_rtx to const rtx_insn *.
4941 * combine.c (remove_death): Strengthen param "insn" from rtx to
4942 rtx_insn *.
4943 (move_deaths): Likewise for local "where_dead".
4944 * cse.c (delete_trivially_dead_insns): Introduce local
4945 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4946 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4947 rtx_insn *.
4948 (df_reg_defined): Likewise.
4949 (df_find_use): Likewise.
4950 (df_reg_used): Likewise.
4951 (df_dump_insn_problem_data): Strengthen param "insn" from
4952 const_rtx to const rtx_insn *.
4953 (df_dump_insn_top): Likewise.
4954 (df_dump_insn_bottom): Likewise.
4955 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4956 (df_insn_debug_regno): Likewise.
4957 (debug_df_insn): Likewise.
4958 (DF_REF_INSN): Delete.
4959 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4960 from rtx to rtx_insn *.
4961 (df_chain_insn_top_dump): Strengthen param "insn" from
4962 const_rtx to const rtx_insn *.
4963 (df_chain_insn_bottom_dump): Likewise.
4964 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4965 rtx_insn *.
4966 (df_word_lr_simulate_uses): Likewise.
4967 (df_print_note): Likewise.
4968 (df_remove_dead_and_unused_notes): Likewise.
4969 (df_set_unused_notes_for_mw): Likewise.
4970 (df_set_dead_notes_for_mw): Likewise.
4971 (df_create_unused_note): Likewise.
4972 (df_simulate_find_defs): Likewise.
4973 (df_simulate_find_uses): Likewise.
4974 (df_simulate_find_noclobber_defs): Likewise.
4975 (df_simulate_defs): Likewise.
4976 (df_simulate_uses): Likewise.
4977 (df_simulate_one_insn_backwards): Likewise.
4978 (df_simulate_one_insn_forwards): Likewise.
4979 (df_md_simulate_one_insn): Likewise.
4980 * df-scan.c (df_uses_create): Likewise.
4981 (df_insn_create_insn_record): Likewise.
4982 (df_insn_delete): Likewise.
4983 (df_insn_rescan): Likewise.
4984 (df_insn_rescan_debug_internal): Likewise.
4985 (df_insn_change_bb): Likewise.
4986 (df_notes_rescan): Likewise.
4987 (df_refs_add_to_chains): Likewise.
4988 (df_insn_refs_verify): Likewise.
4989 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4990 when invoking df_insn_delete.
4991 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4992 (set_unique_reg_note): Add checked cast.
4993 * final.c (cleanup_subreg_operands): Likewise.
4994 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4995 "insn" from rtx to rtx_insn *.
4996 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4997 "last" from rtx to rtx_insn *.
4998 * ira-emit.c (change_regs_in_insn): New function.
4999 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5000 Invoke change_regs_in_insn rather than change_regs.
5001 * ira.c (update_equiv_regs): Strengthen locals "insn",
5002 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
5003 for_each_rtx_in_insn rather than for_each_rtx.
5004 * recog.c (confirm_change_group): Add checked casts.
5005 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5006 Add checked cast.
5007 (peep2_fill_buffer): Add checked cast.
5008 * rtlanal.c (remove_note): Likewise.
5009 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5010 locals "next" "end" from rtx to rtx_insn *.
5011
5012 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5013
5014 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5015 to rtx_insn *.
5016 (struct reg_use_data): Likewise for field "insn".
5017 (insn_cost): Likewise for param.
5018 (real_insn_for_shadow): Likewise for return type and param.
5019 (increase_insn_priority): Likewise for param 1.
5020 (debug_dependencies): Likewise for both params.
5021
5022 * haifa-sched.c (insn_delay): Likewise for param "insn".
5023 (real_insn_for_shadow): Likewise for return type and param "insn".
5024 (update_insn_after_change): Likewise for param "insn".
5025 (recompute_todo_spec): Likewise for param "next" and locals "pro",
5026 "other".
5027 (insn_cost): Likewise for param "insn".
5028 (increase_insn_priority): Likewise.
5029 (calculate_reg_deaths): Likewise.
5030 (setup_insn_reg_pressure_info): Likewise.
5031 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5032 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5033 (model_recompute): Likewise.
5034 (must_restore_pattern_p): Likewise for param "next".
5035 (model_excess_cost): Likewise for param "insn".
5036 (queue_remove): Likewise.
5037 (adjust_priority): Likewise for param "prev".
5038 (update_register_pressure): Likewise for param "insn".
5039 (setup_insn_max_reg_pressure): Likewise for local "insn".
5040 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5041 (model_add_to_schedule): Likewise.
5042 (model_reset_queue_indices): Likewise for local "insn".
5043 (unschedule_insns_until): Strengthen local "recompute_vec" from
5044 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
5045 "con" from rtx to rtx_insn *.
5046 (restore_last_backtrack_point): Likewise for both locals "x". Add
5047 checked casts.
5048 (estimate_insn_tick): Likewise for param "insn".
5049 (commit_schedule): Likewise for params "prev_head", "tail" and
5050 local "x".
5051 (verify_shadows): Likewise for locals "i1", "i2".
5052 (dump_insn_stream): Likewise for params "head", "tail" and locals
5053 "next_tail", "insn".
5054 (schedule_block): Likewise for locals "insn", "x". Add a checked
5055 cast.
5056 (fix_inter_tick): Likewise for params "head", "tail".
5057 (create_check_block_twin): Likewise for local "jump".
5058 (haifa_change_pattern): Likewise for param "insn".
5059 (haifa_speculate_insn): Likewise.
5060 (dump_new_block_header): Likewise for params "head", "tail".
5061 (fix_jump_move): Likewise for param "jump".
5062 (move_block_after_check): Likewise.
5063 (sched_init_insn_luid): Likewise for param "insn".
5064 (sched_init_luids): Likewise for local "insn".
5065 (insn_luid): Likewise for param "insn".
5066 (init_h_i_d): Likewise.
5067 (haifa_init_h_i_d): Likewise for local "insn".
5068 (haifa_init_insn): Likewise for param "insn".
5069 * sched-deps.c (add_dependence): Likewise for local "real_pro",
5070 "other".
5071 (create_insn_reg_use): Likewise for param "insn".
5072 (setup_insn_reg_uses): Likewise. Add a checked cast.
5073 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5074 "tail" from rtx to rtx_insn *.
5075 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5076 "insn", "next_tail".
5077
5078 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5079
5080 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5081 from rtx to rtx_insn *.
5082 (model_add_to_schedule): Likewise for locals "start", "end",
5083 "iter".
5084
5085 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5086
5087 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5088 rtx_insn *.
5089 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
5090 "to" and locals "insn", "next", "copy". Remove now-redundant
5091 checked cast.
5092
5093 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5094
5095 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5096 rtx_insn * and param 4 from rtx * to rtx_insn **.
5097 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5098 param 2 from rtx * to rtx_insn **.
5099
5100 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5101 rtx_insn * and final param from rtx * to rtx_insn **.
5102
5103 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5104 from rtx to rtx_insn *.
5105 (try_head_merge_bb): Likewise for both locals named "move_upto".
5106 * df-problems.c (can_move_insns_across): Likewise for params
5107 "from", "to", "across_from", "across_to" and locals "insn",
5108 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
5109 rtx_insn **.
5110 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5111 from rtx to rtx_insn *.
5112 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5113 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5114 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5115 rtx_insn *.
5116 (noce_try_abs): Likewise.
5117 (noce_get_condition): Likewise for param "jump". Strengthen param
5118 "earliest" from rtx * to rtx_insn **.
5119 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5120 rtx_insn *.
5121 (find_cond_trap): Likewise.
5122 (dead_or_predicable): Likewise for local "earliest".
5123 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5124 checked cast.
5125 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5126 and local "prev". Strengthen param "earliest" from rtx * to
5127 rtx_insn **.
5128 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5129 Strengthen param "earliest" from rtx * to rtx_insn **.
5130
5131 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5132
5133 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5134 "to" and local "insn" from rtx to rtx_insn *.
5135
5136 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5137
5138 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5139 from rtx to rtx_insn *.
5140 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5141 (code_motion_path_driver): Likewise for local "last_insn".
5142 (simplify_changed_insns): Likewise for local "insn".
5143
5144 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5145
5146 * rtl.h (push_to_sequence): Strengthen param from rtx to
5147 rtx_insn *.
5148 (push_to_sequence2): Likewise for both params.
5149 (delete_insns_since): Likewise for param.
5150 (reorder_insns_nobb): Likewise for all three params.
5151 (set_new_first_and_last_insn): Likewise for both params.
5152
5153 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5154 rtx_insn *. Remove now-redundant cast.
5155 (set_last_insn): Likewise.
5156
5157 * builtins.c (expand_builtin_return): Strengthen local
5158 "call_fusage" from rtx to rtx_insn *.
5159 * cfgrtl.c (create_basic_block_structure): Likewise for local
5160 "after".
5161 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5162 "first", "last" and local "insn".
5163 (delete_insns_since): Likewise for param "from".
5164 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5165 and local "x".
5166 (push_to_sequence): Likewise for param "first" and local "last".
5167 (push_to_sequence2): Likewise for params "first" and "last".
5168 * lra.c (emit_add3_insn): Likewise for local "last".
5169 (lra_emit_add): Likewise.
5170 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5171 "last_insn".
5172 (process_address_1): Likewise for locals "insn", last".
5173 * modulo-sched.c (ps_first_note): Likewise for return type.
5174 * optabs.c (expand_binop_directly): Likewise for param "last".
5175
5176 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5177
5178 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5179 to rtx_insn*.
5180 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5181
5182 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5183
5184 * function.h (struct sequence_stack): Strengthen fields "first"
5185 and "last" from rtx to rtx_insn *.
5186 (struct emit_status): Likewise for fields "x_first_insn" and
5187 "x_last_insn".
5188
5189 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5190 (set_first_insn): Add checked cast.
5191 (get_last_insn): Remove now-redundant checked cast.
5192 (set_last_insn): Add checked cast.
5193
5194 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5195 "saved_first" and "saved_last" from rtx to rtx_insn *.
5196
5197 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5198
5199 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5200 (unlink_insn_chain): Strengthen both params from rtx to
5201 rtx_insn *.
5202
5203 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5204 variable.
5205 (unlink_insn_chain): Likewise for params "first" and "last".
5206 Remove now-redundant checked cast.
5207 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5208 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5209 rtx_insn *.
5210 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5211 params.
5212 (add_insn): Likewise for param "insn" and local "prev".
5213 (add_insn_after_nobb): Likewise for both params and local "next".
5214 (add_insn_before_nobb): Likewise for both params and local "prev".
5215 (add_insn_after): Rename param "after" to "uncast_after",
5216 introducing local "after" with another checked cast.
5217 (add_insn_before): Rename params "insn" and "before", giving them
5218 "uncast_" prefixes, adding the old names back using checked casts.
5219 (emit_note_after): Likewise for param "after".
5220 (emit_note_before): Likewise for param "before".
5221 (emit_label): Add a checked cast.
5222
5223 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5224
5225 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5226 "insn" from rtx to rtx_insn *.
5227
5228 * cselib.c (cselib_record_sets_hook): Likewise.
5229
5230 * var-tracking.c (add_with_sets): Likewise, renaming back from
5231 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5232 to rtx_insn *.
5233
5234 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5235
5236 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5237 and "header_" from rtx to rtx_insn *.
5238 (struct basic_block_d): Likewise for field "head_" within "x"
5239 field of union basic_block_il_dependent.
5240 (BB_HEAD): Drop function...
5241 (SET_BB_HEAD): ...and this function in favor of...
5242 (BB_HEAD): ...reinstate macro.
5243 (BB_END): Drop function...
5244 (SET_BB_END): ...and this function in favor of...
5245 (BB_END): ...reinstate macro.
5246 (BB_HEADER): Drop function...
5247 (SET_BB_HEADER): ...and this function in favor of...
5248 (BB_HEADER): ...reinstate macro.
5249
5250 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5251 (fix_crossing_unconditional_branches): Likewise.
5252 * caller-save.c (save_call_clobbered_regs): Likewise.
5253 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5254 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5255 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5256 (merge_blocks_move_successor_nojumps): Likewise.
5257 (outgoing_edges_match): Update use of for_each_rtx to
5258 for_each_rtx_in_insn.
5259 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5260 (expand_gimple_cond): Likewise.
5261 (expand_gimple_tailcall): Likewise.
5262 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5263 SET_BB_END.
5264 (construct_exit_block): Drop use of SET_BB_END.
5265 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5266 rtx_insn *.
5267 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5268 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5269 SET_BB_HEAD and SET_BB_END.
5270 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5271 SET_BB_END.
5272 (rtl_delete_block): Drop use of SET_BB_HEAD.
5273 (rtl_split_block): Drop use of SET_BB_END.
5274 (emit_nop_for_unique_locus_between): Likewise.
5275 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5276 (block_label): Drop use of SET_BB_HEAD.
5277 (fixup_abnormal_edges): Drop use of SET_BB_END.
5278 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5279 (relink_block_chain): Likewise.
5280 (fixup_reorder_chain): Drop use of SET_BB_END.
5281 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5282 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5283 rtx_insn **. Drop use of SET_BB_HEADER.
5284 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5285 SET_BB_HEAD.
5286 (BB_HEAD): Delete this function.
5287 (SET_BB_HEAD): Likewise.
5288 (BB_END): Likewise.
5289 (SET_BB_END): Likewise.
5290 (BB_HEADER): Likewise.
5291 (SET_BB_HEADER): Likewise.
5292 * emit-rtl.c (add_insn_after): Rename param "insn" to
5293 "uncast_insn", adding a new local "insn" and a checked cast to
5294 rtx_insn *. Drop use of SET_BB_END.
5295 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5296 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5297 (reorder_insns): Drop use of SET_BB_END.
5298 (emit_insn_after_1): Strengthen param "first" and locals "last",
5299 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5300 (emit_pattern_after_noloc): Add checked cast.
5301 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5302 (restore_other_notes): Likewise.
5303 (move_insn): Likewise.
5304 (sched_extend_bb): Likewise.
5305 (fix_jump_move): Likewise.
5306 * ifcvt.c (noce_process_if_block): Likewise.
5307 (dead_or_predicable): Likewise.
5308 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5309 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5310 * sel-sched-ir.c (sel_move_insn): Likewise.
5311 * sel-sched.c (move_nop_to_previous_block): Likewise.
5312
5313 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5314 SET_BB_END.
5315 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5316
5317 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5318
5319 * basic-block.h (create_basic_block_structure): Strengthen params
5320 1 "head" and 2 "end" from rtx to rtx_insn *.
5321 * cfgrtl.c (create_basic_block_structure): Likewise.
5322 (rtl_create_basic_block): Update casts from void * to rtx to
5323 rtx_insn *, so that we can pass them as rtx_insn * to
5324 create_basic_block_structure.
5325 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5326
5327 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5328
5329 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5330 rtx_insn **.
5331 (check_for_inc_dec): Strengthen param "insn" from rtx to
5332 rtx_insn *.
5333
5334 * cselib.h (cselib_process_insn): Likewise.
5335
5336 * cselib.c (cselib_record_sets): Likewise.
5337 (cselib_process_insn): Likewise.
5338
5339 * dse.c (struct insn_info): Likewise for field "insn".
5340 (check_for_inc_dec_1): Likewise for local "insn".
5341 (check_for_inc_dec): Likewise for param "insn".
5342 (scan_insn): Likewise.
5343 (dse_step1): Likewise for local "insn".
5344
5345 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5346 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5347
5348 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5349
5350 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5351 from rtx to rtx_insn *.
5352 (DEP_PRO): Delete this function and...
5353 (SET_DEP_PRO): ...this function in favor of...
5354 (DEP_PRO): ...reinstate this macro.
5355 (DEP_CON): Delete this function and...
5356 (SET_DEP_CON): ...this function in favor of...
5357 (DEP_CON): ...reinstate this old macro.
5358 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5359 (init_dep): Likewise.
5360 (set_priorities): Likewise for both params.
5361 (sd_copy_back_deps): Likewise for params 1 and 2.
5362
5363 * haifa-sched.c (priority): Likewise for param "insn" and local
5364 "next".
5365 (set_priorities): Likewise for params "head" and "tail" and local
5366 "insn".
5367 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5368 local "consumer".
5369 (add_to_speculative_block): Add a checked cast.
5370 (create_check_block_twin): Drop use of SET_DEP_CON.
5371 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5372 rtx to rtx_insn *.
5373
5374 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5375 Drop use of SET_DEP_PRO
5376 (init_dep): Strengthen params "pro" and "con" from rtx to
5377 rtx_insn *.
5378 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5379 use of SET_DEP_CON.
5380 (DEP_PRO): Delete.
5381 (DEP_CON): Delete.
5382 (SET_DEP_PRO): Delete.
5383 (SET_DEP_CON): Delete.
5384
5385 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5386
5387 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5388 from rtx to rtx_insn *.
5389 (VINSN_INSN_RTX): Eliminate rvalue function and...
5390 (SET_VINSN_INSN): ...lvalue function in favor of...
5391 (VINSN_INSN_RTX): reinstate this old macro.
5392
5393 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5394 in favor of VINSN_INSN_RTX.
5395 (VINSN_INSN_RTX): Delete this function.
5396 (SET_VINSN_INSN_RTX): Likewise.
5397
5398 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5399
5400 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5401 (BND_TO): Delete this function and...
5402 (SET_BND_TO): ...this functions in favor of...
5403 (BND_TO): ...reinstating this macro.
5404 (struct _fence): Strengthen field "executing_insns" from
5405 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5406 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5407 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5408 and param "insn" from rtx to insn_t.
5409 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5410 rtx_insn *.
5411
5412 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5413 vec<rtx_insn *> .
5414 (rtx_vec_t): Likewise.
5415 (struct sched_deps_info_def): Strengthen param of "start_insn"
5416 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5417 "note_mem_dep" callback and first param of "note_dep" callback.
5418
5419 * haifa-sched.c (add_to_speculative_block): Strengthen param
5420 "insn" from rtx to rtx_insn *.
5421 (clear_priorities): Likewise.
5422 (calc_priorities): Likewise for local "insn".
5423
5424 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5425 Remove redundant checked cast.
5426 (haifa_note_mem_dep): Likewise for param "pending_insn".
5427 (haifa_note_dep): Likewise for param "elem".
5428 (note_mem_dep): Likewise for param "e".
5429 (sched_analyze_1): Add checked casts.
5430 (sched_analyze_2): Likewise.
5431
5432 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5433 from rtx to rtx_insn *.
5434 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5435 from vec<rtx> * to vec<rtx_insn *> *.
5436
5437 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5438 scaffolding.
5439 (flist_add): Strengthen param "executing_insns" from
5440 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5441 (advance_deps_context): Remove now-redundant checked cast.
5442 (init_fences): Replace uses of NULL_RTX with NULL.
5443 (merge_fences): Strengthen params "last_scheduled_insn" and
5444 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5445 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5446 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5447 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5448 an instruction, rather than doing double-duty as a pattern.
5449 (return_nop_to_pool): Update for change of insn_t.
5450 (deps_init_id): Remove now-redundant checked cast.
5451 (struct sched_scan_info_def): Strengthen param of "init_insn"
5452 callback from rtx to insn_t.
5453 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5454 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5455 NULL.
5456 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5457 "end" from rtx to rtx_insn *.
5458 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5459 (rtx insn_rtx, bool force_unique_p)
5460 (BND_TO): Delete function.
5461 (SET_BND_TO): Delete function.
5462
5463 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5464 rtx to rtx_insn *.
5465 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5466 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5467 rtx to rtx_insn *.
5468 (undo_transformations): Likewise for param "insn".
5469 (update_liveness_on_insn): Likewise.
5470 (compute_live_below_insn): Likewise for param "insn" and local
5471 "succ".
5472 (update_data_sets): Likewise for param "insn".
5473 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5474 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5475 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5476 rtx_insn *.
5477 (move_cond_jump): Likewise for param "insn".
5478 (move_cond_jump): Drop use of SET_BND_TO.
5479 (compute_av_set_on_boundaries): Likewise.
5480 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5481 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5482 from rtx to rtx_insn *.
5483 (maybe_emit_renaming_copy): Likewise for param "insn".
5484 (maybe_emit_speculative_check): Likewise.
5485 (handle_emitting_transformations): Likewise.
5486 (remove_insn_from_stream): Likewise.
5487 (code_motion_process_successors): Strengthen local "succ" from rtx
5488 to insn_t.
5489
5490 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5491
5492 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5493 ilist_t, not _xlist_t;
5494 (ILIST_INSN): Define in terms of new union field "insn".
5495 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5496 _XLIST_NEXT.
5497 (struct _list_node): Add new field "insn" to the union, of type
5498 insn_t.
5499 (ilist_add): Replace macro with an inline function, requiring an
5500 insn_t.
5501 (ilist_remove): Define this macro directly in terms of
5502 _list_remove, rather than indirectly via _xlist_remove.
5503 (ilist_clear): Likewise, in terms of _list_clear rather than
5504 _xlist_clear.
5505 (ilist_is_in_p): Replace macro with an inline function, requiring
5506 an insn_t.
5507 (_list_iter_cond_insn): New function.
5508 (ilist_iter_remove): Define this macro directly in terms of
5509 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5510 (ilist_iterator): Define directly in terms of _list_iterator
5511 rather than indirectly through _xlist_iterator.
5512 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5513 than in terms of _FOR_EACH_X.
5514 (FOR_EACH_INSN_1): Likewise.
5515
5516 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5517
5518 PR target/60606
5519 PR target/61330
5520 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5521 DECL_HARD_REGISTER and return for invalid register specifications.
5522 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5523 DECL_HARD_REGISTER, call expand_one_error_var.
5524 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5525 CC_REGNUM with non-MODE_CC modes.
5526 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5527
5528 2014-08-26 Marek Polacek <polacek@redhat.com>
5529
5530 PR c/61271
5531 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5532
5533 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5534
5535 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5536 qi cost; add di cost.
5537 (cortexa57_addrcost_table): Likewise.
5538
5539 2014-08-26 Marek Polacek <polacek@redhat.com>
5540
5541 PR c/61271
5542 * expr.c (is_aligning_offset): Remove logical not.
5543
5544 2014-08-26 Marek Polacek <polacek@redhat.com>
5545
5546 PR c/61271
5547 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5548 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5549
5550 2014-08-26 Richard Biener <rguenther@suse.de>
5551
5552 PR tree-optimization/62175
5553 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5554 expand possibly trapping operations.
5555
5556 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5557
5558 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5559 "insn" from rtx to rtx_insn *.
5560 (permute_load): Likewise for param "insn".
5561 (permute_store): Likewise.
5562 (handle_special_swappables): Likewise for local "insn".
5563 (replace_swap_with_copy): Likewise for locals "insn" and
5564 "new_insn".
5565 (rs6000_analyze_swaps): Likewise for local "insn".
5566
5567 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5568
5569 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5570 to rtx_insn *.
5571
5572 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5573
5574 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5575 "note_list" from rtx to rtx_insn *.
5576 (BB_NOTE_LIST): Replace this function and...
5577 (SET_BB_NOTE_LIST): ...this function with...
5578 (BB_NOTE_LIST): ...the former macro implementation.
5579
5580 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5581 local "from_start" from rtx to rtx_insn *. Strengthen param
5582 "to_endp" from rtx * to rtx_insn **.
5583
5584 * haifa-sched.c (concat_note_lists): Likewise.
5585 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5586 BB_NOTE_LIST.
5587 (sel_restore_notes): Likewise.
5588 (move_bb_info): Likewise.
5589 (BB_NOTE_LIST): Delete this function.
5590 (SET_BB_NOTE_LIST): Delete this function.
5591 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5592 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5593
5594 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5595
5596 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5597 from rtx * to rtx_insn **.
5598 (reorder2): Likewise.
5599 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5600 from rtx to rtx_insn *.
5601
5602 * doc/tm.texi: Update mechanically for above change to target.def.
5603
5604 * sched-int.h (note_list): Strengthen this variable from rtx to
5605 rtx_insn *.
5606 (remove_notes): Likewise for both params.
5607 (restore_other_notes): Likewise for return type and first param.
5608 (struct ready_list): Strengthen field "vec" from rtx * to
5609 rtx_insn **.
5610 (struct dep_replacement): Strenghten field "insn" from rtx to
5611 rtx_insn *.
5612 (struct deps_desc): Likewise for fields "last_debug_insn",
5613 "last_args_size".
5614 (struct haifa_sched_info): Likewise for callback field
5615 "can_schedule_ready_p"'s param, for first param of "new_ready"
5616 callback field, for both params of "rank" callback field, for
5617 first field of "print_insn" callback field (with a const), for
5618 both params of "contributes_to_priority" callback, for param
5619 of "insn_finishes_block_p" callback, for fields "prev_head",
5620 "next_tail", "head", "tail", for first param of "add_remove_insn"
5621 callback, for first param of "begin_schedule_ready" callback, for
5622 both params of "begin_move_insn" callback, and for second param
5623 of "advance_target_bb" callback.
5624 (add_dependence): Likewise for params 1 and 2.
5625 (sched_analyze): Likewise for params 2 and 3.
5626 (deps_analyze_insn): Likewise for param 2.
5627 (ready_element): Likewise for return type.
5628 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5629 (try_ready): Strenghten param from rtx to rtx_insn *.
5630 (sched_emit_insn): Likewise for return type.
5631 (record_delay_slot_pair): Likewise for params 1 and 2.
5632 (add_delay_dependencies): Likewise for param.
5633 (contributes_to_priority): Likewise for both params.
5634 (find_modifiable_mems): Likewise.
5635
5636 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5637 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5638 "first_older_only_insn" from rtx to rtx_insn *.
5639 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5640 rtx_insn **.
5641
5642 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5643 "last_scheduled_iter0" from rtx to rtx_insn *.
5644 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5645 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5646 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5647 "insn" from rtx to rtx_insn *.
5648 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5649 rtx_insn **.
5650 (c6x_sched_reorder2): Strengthen param "ready" and locals
5651 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5652 "insn" from rtx to rtx_insn *.
5653 (c6x_variable_issue): Add a checked cast when assigning from insn
5654 to ss.last_scheduled_iter0.
5655 (split_delayed_branch): Strengthen param "insn" and local "i1"
5656 from rtx to rtx_insn *.
5657 (split_delayed_nonbranch): Likewise.
5658 (undo_split_delayed_nonbranch): Likewise for local "insn".
5659 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5660 "entry_after", "end_packet", "head_insn", "tail_insn",
5661 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5662 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5663 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5664 but add a checked cast on loop->start_label. Consolidate calls to
5665 avoid assigning result of gen_spkernel to "insn", now an
5666 rtx_insn *.
5667
5668 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5669 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5670 rtx to rtx_insn *.
5671 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5672 rtx_insn **. Strengthen locals "top", "next" from rtx to
5673 rtx_insn *.
5674 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5675 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5676 (add_parameter_dependencies): Strengthen params "call", "head" and
5677 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5678 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5679 (add_dependee_for_func_arg): Likewise for param "arg" and local
5680 "insn".
5681 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5682 "tail" and locals "insn", "first_arg".
5683
5684 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5685 for params "head", "tail" and locals "insn", "next", "next_tail".
5686 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5687 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5688 "insn", "lowest", "highest" from rtx to rtx_insn *.
5689 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5690 rtx_insn **.
5691 (ia64_sched_reorder2): Likewise.
5692
5693 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5694 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5695 from rtx * to rtx_insn **.
5696 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5697 rtx_insn **.
5698 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5699 rtx_insn *.
5700 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5701 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5702 to rtx_insn *.
5703
5704 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5705 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5706 to rtx_insn *.
5707 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5708 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5709 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5710 rtx_insn **.
5711 (vr4130_reorder): Likewise.
5712 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5713 rtx to rtx_insn *.
5714 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5715 rtx_insn **.
5716 (mips_sched_reorder): Likewise.
5717 (mips_sched_reorder2): Likewise.
5718
5719 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5720
5721 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5722 Strengthen local "tmp" from rtx to rtx_insn *.
5723 (rs6000_sched_reorder2): Likewise.
5724
5725 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5726 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5727 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5728 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5729
5730 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5731 "tmp2" from rtx to rtx_insn *.
5732 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5733 Strengthen local "insn" from rtx to rtx_insn *.
5734 (ready_reorder): Strengthen param "ready" from rtx * to
5735 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5736 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5737 (sh_reorder2): Likewise.
5738
5739 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5740 local "insn" from rtx to rtx_insn *.
5741
5742 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5743 rtx_insn *.
5744 (scheduled_insns): Strengthen this variable from vec<rtx> to
5745 vec<rtx_insn *>.
5746 (set_modulo_params): Likewise for locals "i1", "i2".
5747 (record_delay_slot_pair): Likewise for params "i1", "i2".
5748 (add_delay_dependencies): Likewise for param "insn".
5749 (cond_clobbered_p): Likewise.
5750 (recompute_todo_spec): Likewise for local "prev".
5751 (last_scheduled_insn): Likewise for this variable.
5752 (nonscheduled_insns_begin): Likewise.
5753 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5754 rtx_insn **.
5755 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5756 rtx_insn *.
5757 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5758 Strengthen local "insn" from rtx to rtx_insn *.
5759 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5760 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5761 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5762 (ready_remove_first): Likewise for return type and local "t".
5763 (ready_element): Likewise for return type.
5764 (ready_remove): Likewise for return type and local "t".
5765 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5766 (check_clobbered_conditions): Strengthen local "x" from rtx to
5767 rtx_insn *, adding a checked cast.
5768 (schedule_insn): Likewise for param "insn".
5769 (remove_notes): Likewise for params "head", "tail" and locals
5770 "next_tail", "insn", "next".
5771 (struct haifa_saved_data): Likewise for fields
5772 "last_scheduled_insn", "nonscheduled_insns_begin".
5773 (save_backtrack_point): Update for change to field "vec" of
5774 struct ready_list.
5775 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5776 rtx_insn **.
5777 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5778 from rtx to rtx_insn *
5779 (resolve_dependencies): Strengthen param "insn" from rtx to
5780 rtx_insn *
5781 (restore_other_notes): Likewise for return type, for param "head"
5782 and local "note_head".
5783 (undo_all_replacements): Likewise for local "insn".
5784 (first_nonscheduled_insn): Likewise for return type and local "insn".
5785 (queue_to_ready): Likewise for local "insn", adding checked casts.
5786 (early_queue_to_ready): Likewise for local "insn".
5787 (debug_ready_list_1): Strengthen local "p" from rtx * to
5788 rtx_insn **.
5789 (move_insn): Strengthen param "insn" and local "note" from rtx to
5790 rtx_insn *
5791 (insn_finishes_cycle_p): Likewise for param "insn".
5792 (max_issue): Likewise for local "insn".
5793 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5794 to rtx_insn **.
5795 (commit_schedule): Strengthen param "prev_head" and local "insn"
5796 from rtx to rtx_insn *
5797 (prune_ready_list): Likewise for local "insn".
5798 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5799 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5800 (set_priorities): Likewise for local "prev_head".
5801 (try_ready): Likewise for param "next".
5802 (fix_tick_ready): Likewise.
5803 (change_queue_index): Likewise.
5804 (sched_extend_ready_list): Update for change to field "vec" of
5805 struct ready_list.
5806 (generate_recovery_code): Strengthen param "insn" from rtx to
5807 rtx_insn *.
5808 (begin_speculative_block): Likewise.
5809 (create_check_block_twin): Likewise for param "insn" and locals
5810 "label", "check", "twin". Introduce local "check_pat" to avoid
5811 "check" being used as a plain rtx before being used as an insn.
5812 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5813 extracting elements from ready_list.
5814 (sched_remove_insn): Strengthen param "insn" from rtx to
5815 rtx_insn *.
5816 (sched_emit_insn): Likewise for return type.
5817 (ready_remove_first_dispatch): Likewise for return type and local
5818 "insn".
5819
5820 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5821
5822 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5823 const rtx_insn *.
5824
5825 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5826 from rtx to rtx_insn *.
5827 (add_dependence_list): Likewise for param "insn". Add a checked
5828 cast.
5829 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5830 to rtx_insn *. Strengthen param "list_p" from rtx * to
5831 rtx_insn **.
5832 (chain_to_prev_insn): Strengthen param "insn" and locals
5833 "prec_nonnote", "i" from rtx to rtx_insn *.
5834 (flush_pending_lists): Likewise for param "insn".
5835 (cur_insn): Likewise for this variable.
5836 (haifa_start_insn): Add a checked cast.
5837 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5838 (sched_analyze_reg): Likewise for param "insn".
5839 (sched_analyze_1): Likewise.
5840 (sched_analyze_2): Likewise. Add checked casts.
5841 (sched_analyze_insn): Likewise. Also for local "prev".
5842 (deps_analyze_insn): Likewise for param "insn".
5843 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5844 (add_dependence_1): Likewise for params "insn", "elem".
5845 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5846 (parse_add_or_inc): Likewise for param "insn".
5847 (find_inc): Likewise for local "inc_cand".
5848 (find_modifiable_mems): Likewise for params "head", "tail" and
5849 locals "insn", "next_tail".
5850
5851 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5852 (begin_schedule_ready): Likewise for param "insn".
5853 (begin_move_insn): Likewise for params "insn" and "last".
5854 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5855 const rtx_insn *.
5856 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5857 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5858 (ebb_add_remove_insn): Likewise for param "insn".
5859 (advance_target_bb): Likewise.
5860
5861 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5862 "insn".
5863 (check_live): Likewise for param "insn".
5864 (init_ready_list): Likewise for local "insn".
5865 (can_schedule_ready_p): Likewise for param "insn".
5866 (begin_schedule_ready): Likewise.
5867 (new_ready): Likewise for param "next".
5868 (rgn_print_insn): Likewise for param "insn".
5869 (rgn_rank): Likewise for params "insn1", "insn2".
5870 (contributes_to_priority): Likewise for params "next", "insn".
5871 (rgn_insn_finishes_block_p): Likewise for param "insn".
5872 (add_branch_dependences): Likewise for params "head", "tail" and
5873 locals "insn", "last".
5874 (rgn_add_remove_insn): Likewise for param "insn".
5875 (advance_target_bb): Likewise.
5876
5877 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5878 const_rtx to const rtx_insn *.
5879
5880 * sel-sched-dump.h (sel_print_insn): Likewise.
5881
5882 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5883 (deps_init_id): Likewise.
5884
5885 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5886 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5887 rtx_insn **.
5888
5889 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5890
5891 * output.h (final_start_function): Strengthen param 1 from rtx to
5892 rtx_insn *.
5893
5894 * final.c (final_start_function): Likewise, renaming back from
5895 "uncast_first" to "first", and dropping the checked cast from rtx
5896 to rtx_insn *.
5897
5898 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5899
5900 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5901 * final.c (final): Likewise. Rename param back from
5902 "uncast_first" to "first" and eliminate the checked cast from rtx
5903 to rtx_insn *.
5904
5905 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5906
5907 * output.h (shorten_branches): Strengthen param from rtx to
5908 rtx_insn *.
5909
5910 * final.c (shorten_branches): Likewise, renaming param back from
5911 "uncast_first" to "first", and dropping the checked cast from rtx
5912 to rtx_insn *.
5913
5914 * genattr.c (gen_attr): Likewise when writing out the prototype of
5915 shorten_branches.
5916
5917 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5918
5919 * sched-int.h (struct haifa_sched_info): Strengthen fields
5920 "prev_head" and "next_tail" from rtx to rtx_insn *.
5921
5922 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5923
5924 * rtl.h (rtx_jump_table_data::get_labels): New method.
5925 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5926 with use of the new rtx_jump_table_data::get_labels method.
5927 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5928 to rtx_jump_table_data *. Simplify by using get_labels method.
5929 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5930 a dyn_cast, introducing local "table", using it to replace
5931 label-lookup logic with a get_labels method call.
5932 (patch_jump_insn): Simplify using get_labels method.
5933 * dwarf2cfi.c (create_trace_edges): Likewise.
5934 * rtlanal.c (label_is_jump_target_p): Likewise.
5935
5936 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5937
5938 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5939 to rtx_insn *.
5940
5941 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5942 (unshare_all_rtl_again): Likewise, also for local "p".
5943
5944 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5945
5946 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5947 to rtx_insn *.
5948 * cfgrtl.c (delete_insn_and_edges): Likewise.
5949
5950 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5951
5952 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5953 from rtx to rtx_insn *.
5954
5955 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5956
5957 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5958
5959 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5960 locals "returnjump", "epilogue_end", "insn", "next".
5961
5962 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5963 "returnjump" from rtx * to rtx_insn **.
5964 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5965
5966 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5967
5968 * basic-block.h (struct edge_def). Strengthen "r" within
5969 union edge_def_insns from rtx to rtx_insn *.
5970
5971 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5972 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5973 rtx_insn *.
5974 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5975 from rtx to rtx_insn *.
5976 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5977 rtx_insn *.
5978 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5979 (reg_used_on_edge): Likewise.
5980 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5981 (gt_pch_nx): New overload for rtx_insn *&.
5982 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5983 from rtx to rtx_insn *.
5984
5985 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5986
5987 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5988 from rtx to rtx_insn *.
5989 (BB_FOOTER): Replace function with access macro.
5990 (SET_BB_FOOTER): Delete.
5991
5992 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5993 with BB_FOOTER.
5994 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5995 (emit_barrier_after_bb): Likewise.
5996 (record_effective_endpoints): Likewise.
5997 (relink_block_chain): Likewise.
5998 (fixup_fallthru_exit_predecessor): Likewise.
5999 (cfg_layout_duplicate_bb): Likewise.
6000 (cfg_layout_split_block): Likewise.
6001 (cfg_layout_delete_block): Likewise.
6002 (cfg_layout_merge_blocks): Likewise.
6003 (BB_FOOTER): Delete function.
6004 (SET_BB_FOOTER): Delete function.
6005 * combine.c (update_cfg_for_uncondjump): Replace uses of
6006 SET_BB_FOOTER with BB_FOOTER.
6007
6008 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6009
6010 * except.h (struct eh_landing_pad_d): Strengthen field
6011 "landing_pad" from rtx to rtx_code_label *.
6012
6013 * except.c (sjlj_emit_dispatch_table): Likewise for param
6014 "dispatch_label"
6015 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6016
6017 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6018
6019 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6020 first param from rtx to rtx_insn *.
6021 * config/xtensa/xtensa.c (struct machine_function): Likewise for
6022 field "set_frame_ptr_insn".
6023 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6024 "csend" from rtx to rtx_code_label *.
6025 (xtensa_expand_atomic): Likewise for local "csloop".
6026 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6027 rtx_insn *.
6028 (xtensa_call_tls_desc): Likewise for return type and locals
6029 "call_insn", "insns".
6030 (xtensa_legitimize_tls_address): Likewise for local "insns".
6031 (xtensa_expand_prologue): Likewise for locals "insn", "first".
6032
6033 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6034
6035 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6036 first param from rtx to rtx_insn *.
6037 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6038 "insn".
6039
6040 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6041
6042 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6043 Strengthen param 1 from rtx to rtx_insn *.
6044 (tilepro_output_cbranch): Likewise.
6045 (tilepro_adjust_insn_length): Likewise.
6046 (tilepro_final_prescan_insn): Likewise for sole param.
6047
6048 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6049 Likewise for local "last".
6050 (cbranch_predicted_p): Likewise for param "insn".
6051 (tilepro_output_simple_cbranch_with_opcode): Likewise.
6052 (tilepro_output_cbranch_with_opcode): Likewise.
6053 (tilepro_output_cbranch): Likewise.
6054 (frame_emit_load): Likewise for return type and locals "seq",
6055 "insn".
6056 (emit_sp_adjust): Likewise for return type and local "insn".
6057 (tilepro_expand_epilogue): Likewise for locals "last_insn",
6058 "insn".
6059 (tilepro_adjust_insn_length): Likewise for param "insn".
6060 (next_insn_to_bundle): Likewise for return type and params
6061 "r", "end".
6062 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6063 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6064 local "new_insns".
6065 (match_addli_pcrel): Likewise for param "insn".
6066 (replace_addli_pcrel): Likewise.
6067 (match_auli_pcrel): Likewise.
6068 (replace_auli_pcrel): Likewise.
6069 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6070 "next_insn".
6071 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6072 "queue", "next_queue", "prev".
6073 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6074 (tilepro_final_prescan_insn): Likewise for param "insn".
6075
6076 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6077
6078 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6079 Strengthen param 1 from rtx to rtx_insn *.
6080 (tilegx_output_cbranch): Likewise.
6081 (tilegx_adjust_insn_length): Likewise.
6082 (tilegx_final_prescan_insn): Likewise for sole param.
6083
6084 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6085 or local "last".
6086 (cbranch_predicted_p): Likewise for param "insn".
6087 (tilegx_output_simple_cbranch_with_opcode): Likewise.
6088 (tilegx_output_cbranch_with_opcode): Likewise.
6089 (tilegx_output_cbranch): Likewise.
6090 (frame_emit_load): Likewise for return type.
6091 (set_frame_related_p): Likewise for locals "seq", "insn".
6092 (emit_sp_adjust): Likewise for return type, and for local "insn".
6093 Introduce local "pat" for use in place of "insn" where the latter
6094 isn't an instruction.
6095 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6096 from rtx to rtx_insn *.
6097 (tilegx_adjust_insn_length): Likewise for param "insn".
6098 (next_insn_to_bundle): Likewise for return type and params "r" and
6099 "end".
6100 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6101 "end".
6102 (replace_insns): Likewise for params "old_insn", "new_insns".
6103 (replace_mov_pcrel_step1): Likewise for param "insn" and local
6104 "new_insns".
6105 (replace_mov_pcrel_step2): Likewise.
6106 (replace_mov_pcrel_step3): Likewise.
6107 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6108 "next_insn".
6109 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6110 "queue", "next_queue", "prev".
6111 (tilegx_output_mi_thunk): Likewise for local "insn".
6112 (tilegx_final_prescan_insn): Likewise for param "insn".
6113
6114 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6115
6116 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6117 rtx to rtx_insn *.
6118 (frame_emit_load): Likewise.
6119 (frame_emit_add_imm): Likewise, also for local "insn".
6120 (spu_expand_prologue): Likewise for local "insn".
6121 (struct spu_bb_info): Likewise for field "prop_jump".
6122 (emit_nop_for_insn): Likewise for param "insn" and local
6123 "new_insn".
6124 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6125 "hbr_insn".
6126 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6127 locals "hint", "insn".
6128 (get_branch_target): Likewise for param "branch".
6129 (insn_clobbers_hbr): Likewise for param "insn".
6130 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6131 locals "insn", "before_4", "before_16".
6132 (insert_hbrp): Likewise for local "insn".
6133 (spu_machine_dependent_reorg): Likewise for locals "branch",
6134 "insn", "next", "bbend".
6135 (uses_ls_unit): Likewise for param "insn".
6136 (get_pipe): Likewise.
6137 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6138 introducing a checked cast.
6139 (spu_sched_adjust_cost): Likewise for params "insn" and
6140 "dep_insn".
6141 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6142 (spu_sms_res_mii): Likewise.
6143
6144 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6145
6146 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6147 from rtx to rtx_insn *.
6148 (output_cbranch): Likewise for param 6.
6149 (output_return): Likewise for param 1.
6150 (output_sibcall): Likewise.
6151 (output_v8plus_shift): Likewise.
6152 (output_v8plus_mult): Likewise.
6153 (output_v9branch): Likewise for param 7.
6154 (output_cbcond): Likewise for param 3.
6155
6156 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6157 for local "insn".
6158 (sparc_legitimize_pic_address): Likewise.
6159 (sparc_emit_call_insn): Likewise.
6160 (emit_save_or_restore_regs): Likewise.
6161 (emit_window_save): Likewise for return type and local "insn".
6162 (sparc_expand_prologue): Likewise for local "insn".
6163 (sparc_flat_expand_prologue): Likewise.
6164 (output_return): Likewise for param "insn".
6165 (output_sibcall): Likewise for param "insn" and local "delay".
6166 (output_ubranch): Likewise for param "insn".
6167 (output_cbranch): Likewise.
6168 (output_cbcond): Likewise.
6169 (output_v9branch): Likewise.
6170 (output_v8plus_shift): Likewise.
6171 (sparc_output_mi_thunk): Likewise for local "insn".
6172 (get_some_local_dynamic_name): Likewise.
6173 (output_v8plus_mult): Likewise for param "insn".
6174
6175 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6176
6177 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6178 from rtx to rtx_insn *.
6179 (output_branchy_insn): Likewise for param 3.
6180 (output_far_jump): Likewise for param 1.
6181 (final_prescan_insn): Likewise.
6182 (sh_insn_length_adjustment): Likewise for sole param.
6183
6184 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6185 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6186 rtx_code_label *.
6187 (sh_emit_compare_and_set): Likewise for local "lab".
6188 (output_far_jump): Strengthen param "insn" and local "prev" from
6189 rtx to rtx_insn *.
6190 (output_branchy_insn): Likewise for param "insn" and local
6191 "next_insn".
6192 (output_ieee_ccmpeq): Likewise for param "insn".
6193 (struct label_ref_list_d): Strengthen field "label" from rtx to
6194 rtx_code_label *.
6195 (pool_node): Likewise.
6196 (pool_window_label): Likewise for this global.
6197 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6198 (dump_table): Strengthen params "start", "barrier" and local
6199 "scan" from rtx to rtx_insn *.
6200 (broken_move): Likewise for param "insn".
6201 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6202 Strengthen param "first_mova" from rtx * to rtx_insn **.
6203 (mova_p): Likewise for param "insn".
6204 (fixup_mova): Likewise for param "mova".
6205 (find_barrier): Likewise for return type, params "mova" and
6206 "from", and locals "barrier_before_mova", "found_barrier",
6207 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6208 "label" from rtx to rtx_code_label *.
6209 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6210 rtx to rtx_insn *.
6211 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6212 (split_branches): Likewise for param "first" and local "insn".
6213 (final_prescan_insn): Likewise for param "insn".
6214 (sequence_insn_p): Likewise for locals "prev", "next".
6215 (sh_insn_length_adjustment): Likewise for param "insn".
6216 (sh_can_redirect_branch): Likewise for local "insn".
6217 (find_r0_life_regions): Likewise for locals "end", "insn".
6218 (sh_output_mi_thunk): Likewise for local "insns".
6219
6220 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6221
6222 * config/score/score.c (score_output_mi_thunk): Strengthen local
6223 "insn" from rtx to rtx_insn *.
6224 (score_prologue): Likewise.
6225
6226 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6227
6228 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6229 1 from rtx to rtx_insn *.
6230 (s390_emit_jump): Likewise for return type.
6231 (s390_emit_call): Likewise.
6232 (s390_load_got): Likewise.
6233
6234 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6235 variable.
6236 (s390_match_ccmode): Likewise for param "insn".
6237 (s390_emit_jump): Likewise for return type.
6238 (s390_split_branches): Likewise for local "label".
6239 (struct constant): Strengthen field "label" from rtx to
6240 rtx_code_label *.
6241 (struct constant_pool): Likewise for field "label". Strengthen
6242 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6243 rtx_insn *.
6244 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6245 insns.
6246 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6247 (s390_end_pool): Likewise.
6248 (s390_dump_pool): Likewise for local "insn".
6249 (s390_mainpool_start): Likewise.
6250 (s390_chunkify_start): Likewise.
6251 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6252 with insns. Strengthen locals "label", "jump", "barrier", "next",
6253 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6254 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6255 rtx_insn *.
6256 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6257 "jump", "label", "next_insn".
6258 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6259 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6260 "tbegin_insn".
6261 (s390_load_got): Likewise for return type and local "insns".
6262 (s390_save_gprs_to_fprs): Likewise for local "insn".
6263 (s390_restore_gprs_from_fprs): Likewise.
6264 (pass_s390_early_mach::execute): Likewise.
6265 (s390_emit_prologue): Likewise for local "insns".
6266 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6267 rtx_code_label *.
6268 (s390_emit_call): Strengthen return type and local "insn" from
6269 rtx to rtx_insn *.
6270 (s390_emit_tpf_eh_return): Likewise for local "insn".
6271 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6272 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6273 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6274 local "cur_insn".
6275 (s390_non_addr_reg_read_p): Likewise for param "insn".
6276 (find_cond_jump): Likewise for return type and param "insn".
6277 (s390_swap_cmp): Likewise for param "insn".
6278 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6279 "prev_insn", "next_insn".
6280 (s390_reorg): Likewise for locals "insn", "target".
6281 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6282 (s390_sched_variable_issue): For now, rename param "insn" to
6283 "uncast_insn", introducing a checked cast.
6284 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6285 insn.
6286 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6287 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6288
6289 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6290
6291 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6292 param from rtx to rtx_insn *.
6293 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6294
6295 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6296
6297 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6298 4 from rtx to rtx_insn *.
6299 (rs6000_final_prescan_insn): Likewise for first param.
6300 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6301 local "insn".
6302 (rs6000_get_some_local_dynamic_name): Likewise.
6303 (output_cbranch): Likewise for param "insn".
6304 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6305 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6306 (rs6000_emit_allocate_stack): Likewise for local "insn".
6307 (load_cr_save): Likewise.
6308 (restore_saved_cr): Likewise.
6309 (restore_saved_lr): Likewise.
6310 (emit_cfa_restores): Likewise.
6311 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6312 "deleted_debug_label".
6313 (rs6000_output_mi_thunk): Likewise for local "insn".
6314 (rs6000_final_prescan_insn): Likewise for param "insn".
6315
6316 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6317
6318 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6319 Strengthen param "insn" from rtx to rtx_insn *.
6320 * config/picochip/picochip.c (picochip_current_prescan_insn):
6321 Likewise for this variable.
6322 (picochip_final_prescan_insn): Likewise for param "insn".
6323
6324 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6325
6326 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6327 from rtx to rtx_insn *.
6328 (pa_output_indirect_call): Likewise.
6329 (pa_adjust_insn_length): Likewise.
6330 (pa_attr_length_millicode_call): Likewise.
6331 (pa_attr_length_call): Likewise.
6332 (pa_attr_length_indirect_call): Likewise.
6333
6334 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6335 "insn".
6336 (pa_attr_length_millicode_call): Likewise.
6337 (pa_attr_length_call): Likewise.
6338 (pa_output_call): Likewise.
6339 (pa_attr_length_indirect_call): Likewise.
6340 (pa_output_indirect_call): Likewise.
6341
6342 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6343
6344 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6345 Strengthen first param from rtx to rtx_insn *.
6346 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6347 param "insn".
6348
6349 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6350
6351 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6352 type from rtx to rtx_insn *.
6353 (mips_expand_call): Likewise.
6354 (mips_adjust_insn_length): Likewise for first param.
6355 (mips_output_conditional_branch): Likewise.
6356 (mips_output_order_conditional_branch): Likewise.
6357 (mips_final_prescan_insn): Likewise.
6358
6359 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6360 rtx_insn * for the SEQUENCE case.
6361 (SEQ_END): Likewise.
6362 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6363 (mips_emit_call_insn): Likewise, also for local "insn".
6364 (mips16_gp_pseudo_reg): Likewise for local "scan".
6365 (mips16_build_call_stub): Likewise for return type and for local
6366 "insn". Introduce a new local "pattern" so that "insn" can indeed
6367 be an insn.
6368 (mips_expand_call): Strengthen return type and local "insn" from
6369 rtx to rtx_insn *.
6370 (mips_block_move_loop): Strengthen local "label" from rtx to
6371 rtx_code_label *.
6372 (mips_expand_synci_loop): Likewise for locals "label",
6373 "end_label".
6374 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6375 rtx_insn *.
6376 (mips16e_collect_argument_saves): Likewise for locals "insn",
6377 "next".
6378 (mips_find_gp_ref): Likewise for param of callback for "pred"
6379 param, and for local "insn".
6380 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6381 (mips_insn_has_flexible_gp_ref_p): Likewise.
6382 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6383 local "insn".
6384 (mips_epilogue_set_cfa): Likewise for local "insn".
6385 (mips_expand_epilogue): Likewise.
6386 (mips_adjust_insn_length): Likewise for param "insn".
6387 (mips_output_conditional_branch): Likewise.
6388 (mips_output_order_conditional_branch): Likewise.
6389 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6390 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6391 "falu2_turn_enabled_insn".
6392 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6393 "done_label" from rtx to rtx_code_label *.
6394 (struct mips16_constant): Likewise for field "label".
6395 (mips16_add_constant): Likewise for return type.
6396 (mips16_emit_constants_1): Strengthen return type and param "insn"
6397 from rtx to rtx_insn *.
6398 (mips16_emit_constants): Likewise for param "insn".
6399 (mips16_insn_length): Likewise.
6400 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6401 to rtx_code_label *.
6402 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6403 from rtx to rtx_insn *.
6404 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6405 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6406 (r10k_simplify_address): Strengthen param "insn" and local
6407 "def_insn" from rtx to rtx_insn *.
6408 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6409 rtx_insn *.
6410 (r10k_needs_protection_p_1): Update target type of cast of data
6411 from to rtx to rtx_insn *.
6412 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6413 rtx * to rtx_insn **.
6414 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6415 rtx_insn *.
6416 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6417 (mips_call_expr_from_insn): Likewise for param "insn".
6418 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6419 (mips_find_pic_call_symbol): Likewise for param "insn".
6420 (mips_annotate_pic_calls): Likewise for local "insn".
6421 (mips_sim_insn): Likewise for this variable.
6422 (struct mips_sim): Likewise for field "insn" within elements of
6423 last_set array.
6424 (mips_sim_wait_reg): Likewise for param "insn".
6425 (mips_sim_wait_regs): Likewise.
6426 (mips_sim_wait_units): Likewise.
6427 (mips_sim_wait_insn): Likewise.
6428 (mips_sim_issue_insn): Likewise.
6429 (mips_sim_finish_insn): Likewise.
6430 (mips_seq_time): Likewise for param "seq" and local "insn".
6431 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6432 locals "first", "second".
6433 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6434 "last", "last2", "next".
6435 (mips_avoid_hazard): Likewise for params "after", "insn".
6436 (mips_reorg_process_insns): Likewise for locals "insn",
6437 "last_insn", "subinsn", "next_insn".
6438 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6439 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6440 "jump_sequence".
6441 (mips_output_mi_thunk): Likewise for local "insn".
6442 (mips_final_prescan_insn): Likewise for param "insn".
6443
6444 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6445
6446 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6447 Strengthen return type and local "insns" from rtx to rtx_insn *.
6448 (microblaze_legitimize_tls_address): Likewise for local "insns".
6449 (microblaze_block_move_loop): Strengthen local "label" from rtx
6450 to rtx_code_label *.
6451 (microblaze_expand_prologue): Strengthen two locals named "insn"
6452 from rtx to rtx_insn *.
6453 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6454 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6455 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6456 to rtx_code_label *.
6457
6458 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6459
6460 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6461 param from rtx to rtx_insn *.
6462 (mep_reuse_lo): Likewise for third param.
6463 (mep_use_post_modify_p): Likewise for first param.
6464 (mep_core_address_length): Likewise.
6465 (mep_cop_address_length): Likewise.
6466 (mep_final_prescan_insn): Likewise.
6467 (mep_store_data_bypass_p): Likewise for both params.
6468 (mep_mul_hilo_bypass_p): Likewise.
6469 (mep_ipipe_ldc_p): Likewise for param.
6470
6471 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6472 (mep_rewrite_mult): Likewise.
6473 (mep_rewrite_mulsi3): Likewise.
6474 (mep_rewrite_maddsi3): Likewise.
6475 (mep_reuse_lo_p_1): Likewise.
6476 (mep_reuse_lo_p): Likewise.
6477 (mep_frame_expr): Likewise.
6478 (mep_make_parallel): Likewise for both params.
6479 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6480 local "insn".
6481 (mep_use_post_modify_p): Likewise for param "insn".
6482 (mep_core_address_length): Likewise.
6483 (mep_cop_address_length): Likewise.
6484 (mep_reg_set_in_function): Likewise for local "insn".
6485 (mep_asm_without_operands_p): Likewise.
6486 (F): Likewise for return type and param "x".
6487 (add_constant): Likewise for local "insn".
6488 (maybe_dead_move): Likewise for return type and local "insn".
6489 (mep_expand_prologue): Likewise for local "insn".
6490 (mep_final_prescan_insn): Likewise for param "insn".
6491 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6492 "next", "follow", "x".
6493 (mep_insert_repeat_label_last): Likewise for return type, param
6494 "last_insn", and locals "next", "prev". Strengthen param "label"
6495 from rtx to rtx_code_label *.
6496 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6497 rtx_insn *.
6498 (struct mep_doloop_end): Likewise for fields "insn" and
6499 "fallthrough".
6500 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6501 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6502 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6503 rtx_insn *.
6504 (mep_invert_branch): Likewise for params "insn" and "after".
6505 (mep_reorg_erepeat): Likewise for param "insns" and locals
6506 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6507 "l" from rtx to rtx_code_label *.
6508 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6509 from rtx to rtx_insn *.
6510 (mep_reorg_addcombine): Likewise for param "insns" and locals
6511 "i", "n".
6512 (add_sp_insn_p): Likewise for param "insn".
6513 (mep_reorg_noframe): Likewise for param "insns" and locals
6514 "start_frame_insn", "end_frame_insn", "next".
6515 (mep_reorg): Likewise for local "insns".
6516 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6517 cast.
6518 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6519 (mep_mul_hilo_bypass_p): Likewise.
6520 (mep_ipipe_ldc_p): Likewise for param "insn".
6521 (mep_make_bundle): Likewise for return type, param "cop" and local
6522 "insn", splitting out the latter into a new local "seq" for when it
6523 is a SEQUENCE rather than an insn.
6524 (core_insn_p): Likewise for param "insn".
6525 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6526 "last", "first", "note", "prev", "core_insn".
6527
6528 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6529
6530 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6531 rtx to rtx_insn *.
6532 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6533 (m68k_final_prescan_insn): Likewise for first param.
6534
6535 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6536 (m68k_set_frame_related): Likewise for param "insn".
6537 (output_btst): Likewise for param "insn".
6538 (m68k_final_prescan_insn): Likewise.
6539 (m68k_move_to_reg): Likewise for local "insn".
6540 (m68k_call_tls_get_addr): Likewise for local "insns".
6541 (m68k_call_m68k_read_tp): Likewise.
6542 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6543 (m68k_output_mi_thunk): Likewise for local "insn".
6544
6545 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6546
6547 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6548 first param from rtx to rtx_insn *.
6549 (iq2000_adjust_insn_length): Likewise.
6550 (iq2000_output_conditional_branch): Likewise.
6551 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6552 "insn" and local "nop_insn".
6553 (iq2000_annotate_frame_insn): Likewise for param "insn".
6554 (iq2000_expand_prologue): Likewise for both locals "insn".
6555 (iq2000_adjust_insn_length): Likewise for param "insn".
6556 (iq2000_output_conditional_branch): Likewise.
6557
6558 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6559
6560 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6561 "insns" from rtx to rtx_insn *.
6562 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6563 (struct spill_fill_data): Likewise for field "init_after" and for
6564 elements of array field "prev_insn".
6565 (spill_restore_mem): Likewise for locals "insn", "first".
6566 (do_spill): Likewise for local "insn".
6567 (do_restore): Likewise.
6568 (ia64_expand_prologue): Likewise.
6569 (ia64_expand_epilogue): Likewise.
6570 (emit_insn_group_barriers): Likewise for locals "insn",
6571 "last_label".
6572 (emit_all_insn_group_barriers): Likewise for locals "insn",
6573 "last".
6574 (dfa_stop_insn): Likewise for this global.
6575 (dfa_pre_cycle_insn): Likewise.
6576 (ia64_nop): Likewise.
6577 (final_emit_insn_group_barriers): Likewise for locals "insn",
6578 "last".
6579 (emit_predicate_relation_info): Likewise for locals "head", "n",
6580 "insn", "b", "a".
6581 (ia64_reorg): Likewise for local "insn".
6582 (ia64_output_mi_thunk): Likewise.
6583 (expand_vec_perm_interleave_2): Likewise for local "seq".
6584
6585 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6586
6587 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6588 param 1 "insn" from rtx to rtx_insn *.
6589 (ix86_use_lea_for_mov): Likewise.
6590 (ix86_avoid_lea_for_addr): Likewise.
6591 (ix86_split_lea_for_addr): Likewise.
6592 (ix86_lea_for_add_ok): Likewise.
6593 (ix86_output_call_insn): Likewise.
6594
6595 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6596 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6597 (ix86_output_function_epilogue): Likewise for locals "insn",
6598 "deleted_debug_label".
6599 (legitimize_tls_address): Likewise for local "insn".
6600 (get_some_local_dynamic_name): Likewise.
6601 (increase_distance): Likewise for params "prev", "next".
6602 (distance_non_agu_define_in_bb): Likewise for params "insn",
6603 "start" and locals "prev", "next".
6604 (distance_non_agu_define): Likewise for param "insn".
6605 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6606 locals "next", "prev".
6607 (distance_agu_use): Likewise for param "insn".
6608 (ix86_lea_outperforms): Likewise.
6609 (ix86_ok_to_clobber_flags): Likewise.
6610 (ix86_avoid_lea_for_add): Likewise.
6611 (ix86_use_lea_for_mov): Likewise.
6612 (ix86_avoid_lea_for_addr): Likewise.
6613 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6614 (ix86_split_lea_for_addr): Likewise for param "insn".
6615 (ix86_lea_for_add_ok): Likewise for param "insn".
6616 (ix86_expand_carry_flag_compare): Likewise for local
6617 "compare_seq".
6618 (ix86_expand_int_movcc): Likewise.
6619 (ix86_output_call_insn): Likewise for param "insn".
6620 (ix86_output_call_insn): Likewise for local "i".
6621 (x86_output_mi_thunk): Introduce local "insn", using it in place
6622 of "tmp" when dealing with insns.
6623 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6624 "start".
6625 (ix86_pad_returns): Likewise for locals "ret", "prev".
6626 (ix86_count_insn_bb): Likewise for local "insn".
6627 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6628 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6629 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6630 (expand_vec_perm_interleave2): Likewise for local "seq".
6631 (expand_vec_perm_vperm2f128_vblend): Likewise.
6632 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6633 call to for_each_rtx with for_each_rtx_in_insn.
6634
6635 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6636
6637 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6638 "label" from rtx to rtx_code_label *.
6639 (ix86_expand_prologue): Likewise.
6640 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6641 "varargs_label".
6642 (ix86_split_idivmod): Likewise for locals "end_label" and
6643 "qimode_label".
6644 (ix86_expand_branch): Likewise for local "label2".
6645 (ix86_expand_aligntest): Likewise for return type and local "label".
6646 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6647 "top_label".
6648 (expand_movmem_epilogue): Likewise for the various locals named
6649 "label".
6650 (expand_setmem_epilogue): Likewise.
6651 (expand_small_movmem_or_setmem): Likewise for local "label".
6652 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6653 Strengthen param "done_label" from rtx * to rtx_code_label **.
6654 Strengthen locals "loop_label" and "label" from rtx to
6655 rtx_code_label *.
6656 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6657 Likewise for locals "loop_label", "label".
6658 (ix86_expand_set_or_movmem): Likewise for locals "label",
6659 "jump_around_label", "hot_label".
6660 (ix86_expand_strlensi_unroll_1): Likewise for locals
6661 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6662 "end_2_label".
6663 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6664 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6665 "label2", "jump_label".
6666 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6667 local "label".
6668 (ix86_expand_lfloorceil): Likewise for local "label".
6669 (ix86_expand_rint): Likewise.
6670 (ix86_expand_floorceildf_32): Likewise.
6671 (ix86_expand_floorceil): Likewise.
6672 (ix86_expand_rounddf_32): Likewise.
6673 (ix86_expand_trunc): Likewise.
6674 (ix86_expand_truncdf_32): Likewise.
6675 (ix86_expand_round): Likewise.
6676
6677 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6678
6679 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6680 first param from rtx to rtx_insn *.
6681 (h8300_insn_length_from_table): Likewise.
6682 * config/h8300/h8300.c (F): Likewise for return type and param
6683 "x".
6684 (Fpa): Add a checked cast to rtx_insn *.
6685 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6686 rtx_insn *.
6687 (final_prescan_insn): Likewise for param "insn".
6688 (h8300_binary_length): Likewise.
6689 (h8300_insn_length_from_table): Likewise.
6690
6691 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6692
6693 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6694 Strengthen first param "insn" from rtx to rtx_insn *.
6695
6696 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6697 Likewise.
6698 (frame_insn): Likewise for return type. Introduce local "insn"
6699 for use in place of local "x" for use as an rtx_insn *.
6700 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6701 (epiphany_expand_prologue): Likewise for local "insn".
6702 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6703 * config/epiphany/resolve-sw-modes.c
6704 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6705 "seq".
6706
6707 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6708
6709 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6710 param from rtx to rtx_insn *.
6711 (c6x_final_prescan_insn): Likewise for first param.
6712
6713 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6714 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6715 (c6x_expand_compare): Strengthen local "insns" from rtx to
6716 rtx_insn *.
6717 (c6x_get_unit_specifier): Likewise for param "insn".
6718 (c6x_print_unit_specifier_field): Likewise.
6719 (c6x_final_prescan_insn): Likewise.
6720 (emit_add_sp_const): Likewise for local "insn".
6721 (c6x_expand_prologue): Likewise.
6722
6723 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6724
6725 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6726 param 1 from rtx to rtx_insn *.
6727 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6728 the various locals named "insn".
6729 (expand_epilogue_reg_restore): Likewise.
6730 (frame_related_constant_load): Likewise.
6731 (add_to_reg): Likewise.
6732 (emit_link_insn): Likewise.
6733 (do_link): Likewise.
6734 (expand_interrupt_handler_prologue): Likewise.
6735 (branch_dest): Likewise for param "branch".
6736 (asm_conditional_branch): Likewise for param "insn".
6737 (gen_one_bundle): Likewise for elements of param "slot" and local
6738 "t".
6739 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6740 elements of local "slot".
6741 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6742 "queue", "next_queue", "prev".
6743 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6744 (add_sched_insns_for_speculation): Likewise for local "insn".
6745
6746 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6747
6748 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6749 from rtx to rtx_insn *.
6750 (output_movhi): Likewise.
6751 (output_movsisf): Likewise.
6752 (avr_out_tstsi): Likewise.
6753 (avr_out_tsthi): Likewise.
6754 (avr_out_tstpsi): Likewise.
6755 (avr_out_compare): Likewise.
6756 (avr_out_compare64): Likewise.
6757 (avr_out_movpsi): Likewise.
6758 (ashlqi3_out): Likewise.
6759 (ashlhi3_out): Likewise.
6760 (ashlsi3_out): Likewise.
6761 (ashrqi3_out): Likewise.
6762 (ashrhi3_out): Likewise.
6763 (ashrsi3_out): Likewise.
6764 (lshrqi3_out): Likewise.
6765 (lshrhi3_out): Likewise.
6766 (lshrsi3_out): Likewise.
6767 (avr_out_ashlpsi3): Likewise.
6768 (avr_out_ashrpsi3): Likewise.
6769 (avr_out_lshrpsi3): Likewise.
6770 (avr_out_fract): Likewise.
6771 (avr_out_sbxx_branch): Likewise.
6772 (avr_out_round): Likewise.
6773 (avr_out_xload): Likewise.
6774 (avr_out_movmem): Likewise.
6775 (adjust_insn_length): Likewise.
6776 (avr_out_lpm): Likewise.
6777 (reg_unused_after): Likewise.
6778 (_reg_unused_after): Likewise.
6779 (avr_jump_mode): Likewise for second param.
6780 (jump_over_one_insn): Likewise for first param.
6781 (avr_final_prescan_insn): Likewise.
6782 (out_shift_with_cnt): Likewise for second param.
6783
6784 * config/avr/avr.c (get_sequence_length): Likewise for param
6785 "insns" and local "insn".
6786 (emit_push_byte): Likewise for local "insn".
6787 (emit_push_sfr): Likewise.
6788 (avr_prologue_setup_frame): Likewise for locals "insn",
6789 "fp_plus_insns", "sp_plus_insns".
6790 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6791 "sp_plus_insns".
6792 (avr_jump_mode): Likewise for param "insn".
6793 (avr_final_prescan_insn): Likewise.
6794 (avr_find_unused_d_reg): Likewise.
6795 (avr_out_lpm_no_lpmx): Likewise.
6796 (avr_out_lpm): Likewise.
6797 (avr_out_xload): Likewise.
6798 (output_movqi): Likewise.
6799 (output_movhi): Likewise.
6800 (out_movqi_r_mr): Likewise.
6801 (out_movhi_r_mr): Likewise.
6802 (out_movsi_r_mr): Likewise.
6803 (out_movsi_mr_r): Likewise.
6804 (output_movsisf): Likewise.
6805 (avr_out_load_psi): Likewise.
6806 (avr_out_store_psi): Likewise.
6807 (avr_out_movpsi): Likewise.
6808 (out_movqi_mr_r): Likewise.
6809 (avr_out_movhi_mr_r_xmega): Likewise.
6810 (out_movhi_mr_r): Likewise.
6811 (compare_condition): Likewise for param "insn" and local "next".
6812 (compare_sign_p): Likewise for param "insn".
6813 (compare_diff_p): Likewise.
6814 (compare_eq_p): Likewise.
6815 (avr_out_compare): Likewise.
6816 (avr_out_compare64): Likewise.
6817 (avr_out_tsthi): Likewise.
6818 (avr_out_tstpsi): Likewise.
6819 (avr_out_tstsi): Likewise.
6820 (out_shift_with_cnt): Likewise.
6821 (ashlqi3_out): Likewise.
6822 (ashlhi3_out): Likewise.
6823 (avr_out_ashlpsi3): Likewise.
6824 (ashlsi3_out): Likewise.
6825 (ashrqi3_out): Likewise.
6826 (ashrhi3_out): Likewise.
6827 (avr_out_ashrpsi3): Likewise.
6828 (ashrsi3_out): Likewise.
6829 (lshrqi3_out): Likewise.
6830 (lshrhi3_out): Likewise.
6831 (avr_out_lshrpsi3): Likewise.
6832 (lshrsi3_out): Likewise.
6833 (avr_out_fract): Likewise.
6834 (avr_out_round): Likewise.
6835 (avr_adjust_insn_length): Likewise.
6836 (reg_unused_after): Likewise.
6837 (_reg_unused_after): Likewise.
6838 (avr_compare_pattern): Likewise.
6839 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6840 and locals "branch1", "branch2", "insn2", "jump".
6841 (avr_reorg): Likewise for local "insn".
6842 (avr_2word_insn_p): Likewise for param "insn".
6843 (jump_over_one_insn_p): Likewise.
6844 (avr_out_sbxx_branch): Likewise.
6845 (avr_out_movmem): Likewise.
6846
6847 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6848
6849 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6850 param from rtx to rtx_insn *.
6851 (thumb1_final_prescan_insn): Likewise.
6852 (thumb2_final_prescan_insn): Likewise.
6853
6854 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6855 rtx to rtx_insn *.
6856 (struct minipool_node): Likewise for field "insn".
6857 (dump_minipool): Likewise for param "scan".
6858 (create_fix_barrier): Likewise for local "from". Strengthen local
6859 "label" from rtx to rtx_code_label *.
6860 (push_minipool_barrier): Strengthen param "insn" from rtx to
6861 rtx_insn *.
6862 (push_minipool_fix): Likewise.
6863 (note_invalid_constants): Likewise.
6864 (thumb2_reorg): Likewise for local "insn".
6865 (arm_reorg): Likewise.
6866 (thumb2_final_prescan_insn): Likewise for param
6867 "insn" and local "first_insn".
6868 (arm_final_prescan_insn): Likewise for param "insn" and locals
6869 "start_insn", "this_insn".
6870 (arm_debugger_arg_offset): Likewise for param "insn".
6871 (thumb1_emit_multi_reg_push): Likewise for return type and local
6872 "insn".
6873 (thumb1_final_prescan_insn): Likewise for param "insn".
6874 (thumb_far_jump_used_p): Likewise for local "insn".
6875 (thumb1_expand_prologue): Likewise.
6876 (arm_expand_epilogue_apcs_frame): Likewise.
6877 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6878 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6879 from rtx to rtx_code_label *.
6880 (arm_split_atomic_op): Likewise for local "label".
6881 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6882
6883 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6884
6885 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6886 first param from rtx to rtx_insn *.
6887 (arc_verify_short): Likewise.
6888 (arc_short_long): Likewise.
6889 (arc_need_delay): Likewise.
6890
6891 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6892 "target_insn".
6893 (arc_ccfsm_advance): Likewise for param "insn" and locals
6894 "start_insn", "this_insn".
6895 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6896 (arc_ccfsm_post_advance): Likewise for param "insn".
6897 (arc_next_active_insn): Likewise for return type and param "insn".
6898 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6899 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6900 (output_short_suffix): Likewise for local "insn".
6901 (arc_final_prescan_insn): Likewise for param "insn". Remove
6902 now-redundant checked cast.
6903 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6904 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6905 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6906 for use where lc_set became an insn.
6907 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6908 rtx to rtx_insn *.
6909 (arc_get_insn_variants): Likewise for local "prev".
6910 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6911 "next".
6912 (arc_predicate_delay_insns): Likewise for local "insn".
6913 (arc_pad_return): Likewise for local "prev". For now, add a
6914 checked cast when extracting the insn from "final_sequence".
6915 (arc_short_long): Likewise for param "insn".
6916 (arc_need_delay): Likewise for param "insn" and local "next".
6917 (arc_label_align): Likewise for locals "prev", "next".
6918
6919 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6920
6921 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6922 "insn" from rtx to rtx_insn *.
6923 (alpha_gp_save_rtx): Likewise for local "seq".
6924 (alpha_instantiate_decls): Likewise for local "top".
6925 (get_some_local_dynamic_name): Likewise for local "insn".
6926 (alpha_does_function_need_gp): Likewise.
6927 (set_frame_related_p): Likewise for return type and for locals
6928 "seq" and "insn".
6929 (emit_frame_store_1): Likewise for local "insn".
6930 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6931 (alpha_end_function): Likewise for local "insn".
6932 (alpha_output_mi_thunk_osf): Likewise.
6933 (alphaev4_insn_pipe): Likewise for param "insn".
6934 (alphaev5_insn_pipe): Likewise.
6935 (alphaev4_next_group): Likewise for return type and param 1
6936 "insn".
6937 (alphaev5_next_group): Likewise.
6938 (alpha_align_insns_1): Likewise for return type and param 1 of
6939 callback param "next_group", and for locals "i", "next", "prev",
6940 "where", "where2", "insn".
6941
6942 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6943
6944 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6945 rather than modifying the stmt.
6946
6947 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6948
6949 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6950 cgraph_state conversion.
6951
6952 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6953
6954 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6955 Strengthen local "insns" from rtx to rtx_insn *.
6956 (aarch64_set_frame_expr): Likewise for local "insn".
6957 (aarch64_save_or_restore_fprs): Likewise.
6958 (aarch64_save_or_restore_callee_save_registers): Likewise.
6959 (aarch64_expand_prologue): Likewise.
6960 (aarch64_expand_epilogue): Likewise.
6961 (aarch64_output_mi_thunk): Likewise.
6962 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6963 "label2" from rtx to rtx_code_label *.
6964 (aarch64_split_atomic_op): Likewise for local "label".
6965
6966 2014-08-25 Martin Liska <mliska@suse.cz>
6967
6968 * cgraph.h (symtab_node):
6969 (bool needed_p (void)): created from decide_is_symbol_needed
6970 (bool referred_to_p (void)): created from referred_to_p
6971 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6972 * cgraph.h (cgraph_node):
6973 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6974 (void expand (void)): created from expand_function
6975 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6976 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6977 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6978 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6979 * cgraph.h (varpool_node):
6980 (static void add (tree decl): created from varpool_add_new_variable
6981 * cgraph.h (cgraph_edge):
6982 void remove (void);
6983 (void remove_caller (void)): created from cgraph_edge_remove_caller
6984 (void remove_callee (void)): created from cgraph_edge_remove_callee
6985 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6986 created from cgraph_set_call_stmt
6987 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6988 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6989 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6990 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6991 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6992 created from cgraph_speculative_call_info
6993 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6994 int freq_scale, bool update_original)): created from cgraph_clone_edge
6995 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6996 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6997 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6998 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6999 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7000 (static void rebuild_references (void)): created from cgraph_rebuild_references
7001 * cgraph.h (symbol_table):
7002 (create_reference): renamed from add_reference
7003 (maybe_create_reference): renamed from maybe_add_reference
7004 (void register_symbol (symtab_node *node)): new function
7005 (void clear_asm_symbols (void)): new function
7006 (void unregister (symtab_node *node)): new function
7007 (void release_symbol (cgraph_node *node, int uid)): new function
7008 (cgraph_node * allocate_cgraph_symbol (void)): new function
7009 (void initialize (void)): created from cgraph_init
7010 (symtab_node *first_symbol (void)):new function
7011 (asm_node *first_asm_symbol (void)):new function
7012 (symtab_node *first_defined_symbol (void)):new function
7013 (varpool_node *first_variable (void)):new function
7014 (varpool_node *next_variable (varpool_node *node)):new function
7015 (varpool_node *first_static_initializer (void)):new function
7016 (varpool_node *next_static_initializer (varpool_node *node)):new function
7017 (varpool_node *first_defined_variable (void)):new function
7018 (varpool_node *next_defined_variable (varpool_node *node)):new function
7019 (cgraph_node *first_defined_function (void)):new function
7020 (cgraph_node *next_defined_function (cgraph_node *node)):new function
7021 (cgraph_node *first_function (void)):new function
7022 (cgraph_node *next_function (cgraph_node *node)):new function
7023 (cgraph_node *first_function_with_gimple_body (void)):new function
7024 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7025 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7026 created from symtab_remove_unreachable_nodes
7027 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7028 (void process_new_functions (void)): created from cgraph_process_new_functions
7029 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7030 (bool output_variables (void)): created from varpool_node::output_variables
7031 (void output_asm_statements (void)): created from output_asm_statements
7032 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7033 (void compile (void)): created from compile
7034 (void output_weakrefs (void)): created from output_weakrefs
7035 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7036 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7037 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7038 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7039 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7040 created from cgraph_next_function_with_gimple_body
7041 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7042 created from cgraph_remove_edge_removal_hook
7043 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7044 created from cgraph_add_node_removal_hook
7045 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7046 created from cgraph_remove_node_removal_hook
7047 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7048 created from varpool_add_node_removal_hook
7049 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7050 created from varpool_remove_node_removal_hook
7051 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7052 created from cgraph_add_function_insertion_hook
7053 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7054 created from cgraph_remove_function_insertion_hook
7055 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7056 created from varpool_add_variable_insertion_hook
7057 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7058 created from varpool_remove_variable_insertion_hook
7059 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7060 created from cgraph_add_edge_duplication_hook
7061 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7062 created from cgraph_remove_edge_duplication_hook
7063 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7064 created from cgraph_add_node_duplication_hook
7065 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7066 created from cgraph_remove_node_duplication_hook
7067 (void call_edge_removal_hooks (cgraph_edge *e)):
7068 created from cgraph_call_edge_removal_hooks
7069 (void call_cgraph_insertion_hooks (cgraph_node *node)):
7070 created from call_function_insertion_hooks
7071 (void call_cgraph_removal_hooks (cgraph_node *node)):
7072 created from cgraph_call_node_removal_hooks
7073 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7074 created from cgraph_node::call_duplication_hooks
7075 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7076 created from cgraph_call_edge_duplication_hooks
7077 (void call_varpool_removal_hooks (varpool_node *node)):
7078 created from varpool_call_node_removal_hooks
7079 (void call_varpool_insertion_hooks (varpool_node *node)):
7080 created from varpool_call_variable_insertion_hooks
7081 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7082 created from insert_to_assembler_name_hash
7083 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7084 created from unlink_from_assembler_name_hash
7085 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7086 created from symtab_prevail_in_asm_name_hash
7087 (void symtab_initialize_asm_name_hash (void)):
7088 created from symtab_initialize_asm_name_hash
7089 (void change_decl_assembler_name (tree decl, tree name)):
7090 created from change_decl_assembler_name
7091 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7092 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7093 created from decl_assembler_name_hash
7094 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7095 created from decl_assembler_name_equal
7096 (static hashval_t hash_node_by_assembler_name (const void *p)):
7097 created from hash_node_by_assembler_name
7098 (static int eq_assembler_name (const void *p1, const void *p2)):
7099 created from eq_assembler_name
7100
7101 2014-08-25 Marek Polacek <polacek@redhat.com>
7102
7103 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7104
7105 2014-08-25 Petr Murzin <petr.murzin@intel.com>
7106
7107 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7108 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7109 SWI1248_AVX512BW mode iterator.
7110
7111 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
7112
7113 PR target/62111
7114 * config/sh/predicates.md (general_extend_operand): Disable
7115 TRUNCATE before reload completes.
7116
7117 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7118
7119 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7120
7121 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7122
7123 PR target/61996
7124 * config/sh/sh.opt (musermode): Allow negative form.
7125 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7126 targets that don't support it.
7127 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7128 Document -mno-usermode option.
7129
7130 2014-08-24 Kito Cheng <kito@0xlab.org>
7131
7132 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7133 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7134 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7135 * doc/tm.texi: Regenerate.
7136
7137 2014-08-24 Kito Cheng <kito@0xlab.org>
7138
7139 * ira.c: Fix typo in comment.
7140
7141 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7142
7143 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7144 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7145
7146 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7147
7148 PR target/62038
7149 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7150 last_address when the current function is a thunk.
7151 (pa_asm_output_mi_thunk): When we don't have named sections or they
7152 are not being used, check that thunk can reach the stub table with a
7153 short branch.
7154
7155 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7156
7157 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7158 rtx_insn *.
7159 (pass_web::execute): Likewise for local "insn".
7160
7161 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7162
7163 * var-tracking.c (struct micro_operation_def): Strengthen field
7164 "insn" from rtx to rtx_insn *.
7165 (struct emit_note_data_def): Likewise.
7166 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7167 (vt_stack_adjustments): Likewise for local "insn".
7168 (adjust_insn): Likewise for param "insn".
7169 (val_store): Likewise.
7170 (val_resolve): Likewise.
7171 (struct count_use_info): Likewise for field "insn".
7172 (log_op_type): Likewise for param "insn".
7173 (reverse_op): Likewise.
7174 (prepare_call_arguments): Likewise.
7175 (add_with_sets): The initial param takes an insn, but we can't
7176 yet strengthen it from rtx to rtx_insn * since it's used as a
7177 cselib_record_sets_hook callback. For now rename initial param
7178 from "insn" to "uncast_insn", and introduce a local "insn" of
7179 the stronger rtx_insn * type, with a checked cast.
7180 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7181 rtx_insn *.
7182 (emit_note_insn_var_location): Likewise.
7183 (emit_notes_for_changes): Likewise.
7184 (emit_notes_for_differences): Likewise.
7185 (next_non_note_insn_var_location): Likewise for return type and
7186 for param "insn".
7187 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7188 (vt_initialize): Likewise for local "insn".
7189 (delete_debug_insns): Likewise for locals "insn" and "next".
7190
7191 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7192
7193 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7194 rtx_insn *.
7195 (mark_constant_pool): Likewise for local "insn".
7196
7197 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7198
7199 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7200 rtx to rtx_insn *.
7201 (dead_debug_promote_uses): Likewise.
7202 (dead_debug_insert_temp): Likewise.
7203
7204 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7205
7206 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7207 from const_rtx to const rtx_insn *.
7208 (store_killed_after): Likewise. Strengthen locals "last", "act"
7209 from rtx to rtx_insn *.
7210 (store_killed_before): Strengthen param "insn" from const_rtx to
7211 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7212 (find_moveable_store): Strengthen param "insn" from rtx to
7213 rtx_insn *.
7214 (compute_store_table): Likewise for local "insn".
7215 (insert_insn_start_basic_block): Likewise for param "insn" and
7216 locals "prev", "before", "insn".
7217 (insert_store): For now, add a checked cast to rtx_insn * on the
7218 result of gen_move_insn.
7219 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7220 to rtx_insn *.
7221 (replace_store_insn): Likewise. For now, add a checked cast to
7222 rtx_insn * on the result of gen_move_insn.
7223
7224 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7225
7226 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7227 rtx_insn *.
7228 (expand_sjlj_dispatch_table): Likewise.
7229
7230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7231
7232 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7233 "insn" from rtx to rtx_insn *.
7234
7235 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7236
7237 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7238 "insn" from rtx to rtx_insn *.
7239 (dup_block_and_redirect): Likewise for param 3 "before".
7240
7241 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7242 from rtx to rtx_insn *.
7243 (move_insn_for_shrink_wrap): Likewise.
7244 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7245 (dup_block_and_redirect): Likewise for param "before" and local
7246 "insn".
7247 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7248 "end".
7249 (convert_to_simple_return): Likewise for local "start".
7250
7251 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7252 Strengthen local "insn" from rtx to rtx_insn *, for use when
7253 invoking requires_stack_frame_p.
7254
7255 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7256
7257 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7258 rtx_insn *.
7259 (speculate_expr): Likewise for locals "orig_insn_rtx",
7260 "spec_insn_rtx".
7261 (eq_transformed_insns): Likewise for locals "i1", "i2".
7262 (check_for_new_jump): Likewise for return type and local "end".
7263 (find_new_jump): Likewise for return type and local "jump".
7264 (sel_split_edge): Likewise for local "jump".
7265 (sel_create_recovery_block): Likewise.
7266 (sel_redirect_edge_and_branch_force): Likewise.
7267 (sel_redirect_edge_and_branch): Likewise.
7268
7269 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7270
7271 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7272 "new_insn" from rtx to rtx_insn *.
7273 (create_insn_rtx_with_rhs): Likewise for return type and for local
7274 "insn_rtx".
7275 (create_insn_rtx_with_lhs): Likewise.
7276 (create_speculation_check): Likewise for local "insn_rtx".
7277 (implicit_clobber_conflict_p): Likewise for local "insn".
7278 (get_expr_cost): Likewise.
7279 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7280 (move_cond_jump): Likewise for locals "next", "prev", "link",
7281 "head", "from", "to".
7282
7283 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7284
7285 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7286 "next" from rtx to rtx_insn *.
7287 (find_conditional_protection): Likewise for local "next".
7288 (is_conditionally_protected): Likewise for local "insn1".
7289 (is_pfree): Likewise for locals "insn1", "insn2".
7290
7291 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7292
7293 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7294 from rtx to rtx_insn *.
7295
7296 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7297 locals "insn1", "insn2" from rtx to rtx_insn *.
7298 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7299 locals "insn", "prev", "last_jump", "next_tail".
7300 (schedule_ebb): Likewise for params "head", "tail".
7301 (schedule_ebbs): Likewise for locals "tail", "head".
7302
7303 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7304 to rtx_insn on "last_insn" in one of the invocations of
7305 schedule_ebb.
7306
7307 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7308
7309 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7310 "elem", "insn" from rtx to rtx_insn *.
7311 (change_spec_dep_to_hard): Likewise.
7312 (get_back_and_forw_lists): Likewise for local "con".
7313 (sd_add_dep): Likewise for locals "elem", "insn".
7314 (sd_resolve_dep): Likewise for locals "pro", "con".
7315 (sd_unresolve_dep): Likewise.
7316 (sd_delete_dep): Likewise.
7317 (chain_to_prev_insn): Likewise for local "pro".
7318 (find_inc): Likewise for locals "pro", "con".
7319
7320 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7321
7322 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7323 to rtx_insn *.
7324 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7325 const rtx_insn *.
7326 (modified_between_p): Strengthen local "insn" from rtx to
7327 rtx_insn *.
7328 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7329 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7330 const rtx_insn *.
7331
7332 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7333
7334 * resource.c (next_insn_no_annul): Strengthen local "next" from
7335 rtx to rtx_insn *.
7336 (mark_referenced_resources): Likewise for local "insn".
7337
7338 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7339
7340 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7341 to rtx_insn *.
7342 (find_reloads): Likewise for param 1.
7343 (subst_reloads): Likewise for sole param.
7344 (find_equiv_reg): Likwise for param 2.
7345 (regno_clobbered_p): Likwise for param 2.
7346 (reload): Likewise for param 1.
7347
7348 * caller-save.c (save_call_clobbered_regs): Strengthen local
7349 "insn" from rtx to rtx_insn *.
7350 (insert_one_insn): Likewise for local "insn".
7351
7352 * reload.c (this_insn): Likewise for this global.
7353 (find_reloads): Likewise for param "insn".
7354 (find_reloads_toplev): Likewise.
7355 (find_reloads_address): Likewise.
7356 (subst_reg_equivs): Likewise.
7357 (update_auto_inc_notes): Likewise.
7358 (find_reloads_address_1): Likewise.
7359 (find_reloads_subreg_address): Likewise.
7360 (subst_reloads): Likewise.
7361 (find_equiv_reg): Likewise, also for local "p".
7362 (regno_clobbered_p): Likewise for param "insn".
7363
7364 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7365 array.
7366 (spill_reg_store): Likewise for the elements of this array.
7367 (remove_init_insns): Likewise for local "equiv_insn".
7368 (will_delete_init_insn_p): Likewise for param "insn".
7369 (reload): Likewise for param ""first" and local "insn".
7370 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7371 rtx_insn *.
7372 (calculate_elim_costs_all_insns): Likewise.
7373 (delete_caller_save_insns): Likewise.
7374 (spill_failure): Likewise for param "insn".
7375 (delete_dead_insn): Likewise.
7376 (set_label_offsets): Likewise.
7377 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7378 "prev_insn".
7379 (elimination_costs_in_insn): Likewise for param "insn".
7380 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7381 when referring to an insn.
7382 (set_initial_label_offsets): Likewise.
7383 (set_offsets_for_label): Strengthen param "insn" from rtx to
7384 rtx_insn *.
7385 (init_eliminable_invariants): Likewise for param "first" and local
7386 "insn".
7387 (fixup_eh_region_note): Likewise for param "insn".
7388 (reload_as_needed): Likewise for locals "prev", "insn",
7389 "old_next", "old_prev", "next".
7390 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7391 "last".
7392 (reload_inheritance_insn): Strengthen elements of this array from
7393 rtx to rtx_insn *.
7394 (failed_reload): Likewise for param "insn".
7395 (choose_reload_regs): Likewise for local "insn". Replace use of
7396 NULL_RTX with NULL when referring to an insn.
7397 (input_reload_insns): Strengthen elements of this array from rtx
7398 to rtx_insn *.
7399 (other_input_address_reload_insns): Likewise for this global.
7400 (other_input_reload_insns): Likewise for this global.
7401 (input_address_reload_insns): Likwise for the elements of this
7402 array.
7403 (inpaddr_address_reload_insns): Likwise for the elements of this
7404 array.
7405 (output_reload_insns): Likewise for the elements of this array.
7406 (output_address_reload_insns): Likewise for the elements of this
7407 array.
7408 (outaddr_address_reload_insns): Likewise for the elements of this
7409 array.
7410 (operand_reload_insns): Likewise for this global.
7411 (other_operand_reload_insns): Likewise for this global.
7412 (other_output_reload_insns): Likewise for the elements of this
7413 array.
7414 (new_spill_reg_store): Likewise for the elements of this
7415 array.
7416 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7417 Strengthen local "where" from rtx * to rtx_insn **.
7418 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7419 from rtx to rtx_insn *.
7420 (do_input_reload): Likewise for local "insn".
7421 (do_output_reload): Likewise for local "insn".
7422 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7423 (emit_insn_if_valid_for_reload): Likewise for return type and local
7424 "last". Add checked cast to rtx_insn when returning "insn" since
7425 this has been through emit_insn.
7426 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7427 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7428 returning "insn" since it's been through
7429 emit_insn_if_valid_for_reload at this point.
7430 (delete_output_reload): Strengthen param "insn" and locals
7431 "output_reload_insn", "i2" from rtx to rtx_insn *.
7432 (delete_address_reloads): Likewise for params "dead_insn",
7433 "current_insn" and locals "prev", "next".
7434 (delete_address_reloads_1): Likewise for params "dead_insn",
7435 "current_insn" and locals "prev", "i2".
7436 (inc_for_reload): Likewise for locals "last", "add_insn".
7437 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7438 rtx_insn *.
7439
7440 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7441 param of this duplicate of the prototype from reload.h
7442
7443 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7444
7445 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7446 rtx to rtx_insn *.
7447 (regstat_bb_compute_calls_crossed): Likewise.
7448
7449 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7450
7451 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7452 to rtx_insn *.
7453 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7454 with an insn.
7455 (regrename_analyze): Strengthen local "insn" from rtx to
7456 rtx_insn *.
7457 (scan_rtx_reg): Likewise for param "insn".
7458 (scan_rtx_address): Likewise.
7459 (scan_rtx): Likewise.
7460 (restore_operands): Likewise.
7461 (record_out_operands): Likewise.
7462 (build_def_use): Likewise for local "insn". Replace use of
7463 NULL_RTX with NULL when dealing with an insn.
7464
7465 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7466
7467 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7468 * reginfo.c (reg_scan): Likewise, also for local "insn".
7469 (reg_scan_mark_refs): Likewise for param "insn".
7470 (init_subregs_of_mode): Likewise for local "insn".
7471
7472 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7473
7474 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7475 "insn" from rtx to rtx_insn *.
7476 (replace_oldest_value_reg): Likewise for param "insn".
7477 (replace_oldest_value_addr): Likewise.
7478 (replace_oldest_value_mem): Likewise.
7479 (apply_debug_insn_changes): Likewise for local "last_insn".
7480 (copyprop_hardreg_forward_1): Likewise for local "insn".
7481
7482 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7483
7484 * reg-stack.c (next_flags_user): Strengthen return type and param
7485 "insn" from rtx to rtx_insn *.
7486 (straighten_stack): Likewise for param "insn".
7487 (check_asm_stack_operands): Likewise.
7488 (remove_regno_note): Likewise.
7489 (emit_pop_insn): Likewise for return type, param "insn", local
7490 "pop_insn".
7491 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7492 "limit" from rtx to rtx_insn *.
7493 (swap_to_top): Likewise for param "insn".
7494 (move_for_stack_reg): Likewise.
7495 (move_nan_for_stack_reg): Likewise.
7496 (swap_rtx_condition): Likewise.
7497 (compare_for_stack_reg): Likewise.
7498 (subst_all_stack_regs_in_debug_insn): Likewise.
7499 (subst_stack_regs_pat): Likewise, and local "insn2".
7500 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7501 rtx_insn *.
7502 (subst_stack_regs): Likewise.
7503 (change_stack): Likewise.
7504 (convert_regs_1): Likewise for locals "insn", "next".
7505
7506 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7507
7508 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7509 rtx_insn *.
7510 (combine_set_extension): Likewise for param "curr_insn".
7511 (transform_ifelse): Likewise for param "def_insn".
7512 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7513 from vec<rtx> * to vec<rtx_insn *> *.
7514 (is_cond_copy_insn): Likewise for param "insn".
7515 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7516 to vec<rtx_insn *>.
7517 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7518 local "def_insn" from rtx to rtx_insn *.
7519 (get_sub_rtx): Likewise for param "def_insn".
7520 (merge_def_and_ext): Likewise.
7521 (combine_reaching_defs): Likewise.
7522 (add_removable_extension): Likewise for param "insn".
7523 (find_removable_extensions): Likewise for local "insn".
7524 (find_and_remove_re): Likewise for locals "curr_insn" and
7525 "def_insn". Strengthen locals "reinsn_del_list" and
7526 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7527
7528 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7529
7530 * recog.c (split_insn): Strengthen param "insn" and locals
7531 "first", "last" from rtx to rtx_insn *.
7532 (split_all_insns): Likewise for locals "insn", "next".
7533 (split_all_insns_noflow): Likewise.
7534
7535 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7536
7537 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7538 const rtx_insn *.
7539 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7540 (debug_rtx_find): Likewise for param 1 "x".
7541
7542 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7543 const_rtx to const rtx_insn *. Likewise for local "insn".
7544 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7545 (debug_rtx_find): Likewise for param 1 "x".
7546 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7547 from const_rtx to const rtx_insn * within the appropriate cases of
7548 the switch statement.
7549
7550 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7551 Strengthen local "insns" from rtx to rtx_insn * since this is
7552 passed to a call to debug_rtx_list.
7553
7554 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7555
7556 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7557 to rtx_insn *.
7558
7559 * function.c (stack_protect_epilogue): Add checked cast to
7560 rtx_insn for now when invoking predict_insn_def.
7561
7562 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7563 rtx_insn *.
7564 (predict_insn_def): Likewise.
7565 (rtl_predict_edge): Likewise for local "last_insn".
7566 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7567 const rtx_insn *.
7568 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7569 to rtx_insn *.
7570 (bb_estimate_probability_locally): Likewise for local "last_insn".
7571 (expensive_function_p): Likewise for local "insn".
7572
7573 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7574 local "jmp", since this is used when invoking predict_insn_def.
7575
7576 2014-08-22 Marek Polacek <polacek@redhat.com>
7577
7578 PR c++/62199
7579 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7580
7581 2014-08-22 Marek Polacek <polacek@redhat.com>
7582
7583 PR c/61271
7584 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7585 a comparison in parens.
7586 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7587 in parens.
7588
7589 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7590
7591 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7592 rtx_insn *.
7593
7594 * cprop.c (fis_get_condition): Likewise.
7595
7596 * postreload.c (reload_cse_regs): Likewise for param "first".
7597 (reload_cse_simplify): Likewise for param "insn".
7598 (reload_cse_regs_1): Likewise for local "insn".
7599 (reload_cse_simplify_set): Likewise for param "insn".
7600 (reload_cse_simplify_operands): Likewise.
7601 (struct reg_use): Likewise for field "insn".
7602 (reload_combine_purge_insn_uses): Likewise for param "insn".
7603 (fixup_debug_insns): Likewise for params "from", "to" and local
7604 "insn".
7605 (try_replace_in_use): Likewise for local "use_insn".
7606 (reload_combine_recognize_const_pattern): Likewise for param
7607 "insn" and locals "add_moved_after_insn", "use_insn".
7608 (reload_combine_recognize_pattern): Likewise for param "insn" and
7609 local "prev".
7610 (reload_combine): Likewise for locals "insn", "prev".
7611 (reload_combine_note_use): Likewise for param "insn".
7612 (move2add_use_add2_insn): Likewise.
7613 (move2add_use_add3_insn): Likewise.
7614 (reload_cse_move2add): Likewise, also for local "next".
7615 (move2add_note_store): Likewise for local "insn".
7616
7617 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7618
7619 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7620 rtx to rtx_insn *.
7621 (struct unoccr): Likewise.
7622 (struct modifies_mem): Likewise.
7623 (alloc_mem): Likewise for local "insn".
7624 (insert_expr_in_table): Likewise for param "insn".
7625 (dump_expr_hash_table_entry): Likewise for local "insn".
7626 (oprs_unchanged_p): Likewise for param "insn".
7627 (load_killed_in_block_p): Likewise for local "setter".
7628 (record_last_reg_set_info): Likewise for param "insn".
7629 (record_last_reg_set_info_regno): Likewise.
7630 (record_last_mem_set_info): Likewise.
7631 (record_last_set_info): Likewise for local "last_set_insn".
7632 (record_opr_changes): Likewise for param "insn".
7633 (hash_scan_set): Likewise.
7634 (compute_hash_table): Likewise for local "insn".
7635 (get_avail_load_store_reg): Likewise for param "insn".
7636 (eliminate_partially_redundant_load): Likewise, also for locals
7637 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7638 RTX for insns.
7639 (eliminate_partially_redundant_loads): Likewise for local "insn".
7640
7641 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7642
7643 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7644 rtx to rtx_insn *.
7645 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7646 (expand_twoval_unop): Likewise for locals entry_last", "last".
7647 (expand_twoval_binop): Likewise.
7648 (expand_twoval_binop_libfunc): Likewise for local "insns".
7649 (widen_leading): Likewise for local "last".
7650 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7651 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7652 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7653 (expand_parity): Likewise for locals "last" and "seq".
7654 (expand_ffs): Likewise for local "seq". Strengthen local
7655 "nonzero_label" from rtx to rtx_code_label *.
7656 (expand_absneg_bit): Strengthen local "insns" from rtx to
7657 rtx_insn *.
7658 (expand_unop_direct): Likewise for local "last".
7659 (expand_unop): Likewise for locals "last", "insns".
7660 (expand_abs_nojump): Likewise for local "last".
7661 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7662 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7663 rtx_insn *.
7664 (expand_copysign_absneg): Strengthen local "label" from rtx to
7665 rtx_code_label *.
7666 (expand_copysign_bit): Strengthen local "insns" from rtx to
7667 rtx_insn *.
7668 (struct no_conflict_data): Likewise for fields "first", "insn".
7669 (emit_libcall_block_1): Likewise for param "insns" and locals
7670 "next", "last", "insn".
7671 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7672 on "insns" when invoking emit_libcall_block_1. Ultimately we
7673 want to strengthen insns itself.
7674 (prepare_cmp_insn): Strengthen local "last" from rtx to
7675 rtx_insn *.
7676 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7677 (prepare_float_lib_cmp): Likewise for local "insns".
7678 (emit_conditional_move): Likewise for local "last".
7679 (emit_conditional_add): Likewise.
7680 (have_sub2_insn): Likewise for local "seq".
7681 (expand_float): Likewise for local "insns". Strengthen locals
7682 "label", "neglabel" from rtx to rtx_code_label *.
7683 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7684 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7685 (expand_fixed_convert): Likewise for local "insns" (to
7686 rtx_insn *).
7687 (expand_sfix_optab): Likewise for local "last".
7688 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7689 to rtx_code_label *.
7690 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7691 from rtx to rtx_insn *.
7692 (expand_atomic_fetch_op): Likewise for local "insn".
7693 (maybe_legitimize_operand_same_code): Likewise for local "last".
7694 (maybe_legitimize_operands): Likewise.
7695
7696 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7697
7698 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7699 "insn" from rtx to rtx_insn *.
7700 (ps_rtl_insn): Likewise for return type.
7701 (doloop_register_get): Likewise for params "head", "tail" and
7702 locals "insn", "first_insn_not_to_check".
7703 (schedule_reg_move): Likewise for local "this_insn".
7704 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7705 of gen_move_insn for now.
7706 (reset_sched_times): Strengthen local "insn" from rtx to
7707 rtx_insn *.
7708 (permute_partial_schedule): Likewise.
7709 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7710 (dump_insn_location): Likewise for param "insn".
7711 (loop_canon_p): Likewise for local "insn".
7712 (sms_schedule): Likewise.
7713 (print_partial_schedule): Likewise.
7714 (ps_has_conflicts): Likewise.
7715
7716 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7717
7718 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7719 "tailp" from rtx * to rtx_insn **.
7720
7721 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7722 from rtx to rtx_insn *.
7723 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7724 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7725 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7726 rtx to rtx_insn *.
7727 * modulo-sched.c (const_iteration_count): Strengthen return type
7728 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7729 use of NULL_RTX with NULL when working with insns.
7730 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7731 to rtx_insn *.
7732 (sms_schedule): Likewise.
7733 * sched-rgn.c (init_ready_list): Likewise, also for locals
7734 "src_head" and "src_next_tail".
7735 (compute_block_dependences): Likewise.
7736 (free_block_dependencies): Likewise.
7737 (debug_rgn_dependencies): Likewise.
7738 (free_rgn_deps): Likewise.
7739 (compute_priorities): Likewise.
7740 (schedule_region): Likewise.
7741 * sel-sched.c (find_ebb_boundaries): Likewise.
7742
7743 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7744 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7745
7746 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7747
7748 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7749 from rtx to rtx_insn *.
7750 (new_seginfo): Likewise for param "insn".
7751 (create_pre_exit): Likewise for locals "last_insn",
7752 "before_return_copy", "return_copy".
7753 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7754 "mode_set".
7755
7756 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7757
7758 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7759 from rtx to rtx_insn *.
7760 (lra_push_insn): Likewise for 1st param.
7761 (lra_push_insn_and_update_insn_regno_info): Likewise.
7762 (lra_pop_insn): Likewise for return type.
7763 (lra_invalidate_insn_data): Likewise for 1st param.
7764 (lra_set_insn_deleted): Likewise.
7765 (lra_delete_dead_insn): Likewise.
7766 (lra_process_new_insns): Likewise for first 3 params.
7767 (lra_set_insn_recog_data): Likewise for 1st param.
7768 (lra_update_insn_recog_data): Likewise.
7769 (lra_set_used_insn_alternative): Likewise.
7770 (lra_invalidate_insn_regno_info): Likewise.
7771 (lra_update_insn_regno_info): Likewise.
7772 (lra_former_scratch_operand_p): Likewise.
7773 (lra_eliminate_regs_1): Likewise.
7774 (lra_get_insn_recog_data): Likewise.
7775
7776 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7777 rtx to rtx_insn *.
7778
7779 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7780 "mv1" and "mv2".
7781 (substitute_within_insn): New.
7782 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7783 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7784 Replace call to "substitute" with call to substitute_within_insn.
7785
7786 * lra-constraints.c (curr_insn): Strengthen from rtx to
7787 rtx_insn *.
7788 (get_equiv_with_elimination): Likewise for param "insn".
7789 (match_reload): Strengthen params "before" and "after" from rtx *
7790 to rtx_insn **.
7791 (emit_spill_move): Likewise for return type. Add a checked cast
7792 to rtx_insn * on result of gen_move_insn for now.
7793 (check_and_process_move): Likewise for local "before". Replace
7794 NULL_RTX with NULL when referring to insns.
7795 (process_addr_reg): Strengthen params "before" and "after" from
7796 rtx * to rtx_insn **.
7797 (insert_move_for_subreg): Likewise.
7798 (simplify_operand_subreg): Strengthen locals "before" and "after"
7799 from rtx to rtx_insn *.
7800 (process_address_1): Strengthen params "before" and "after" from
7801 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7802 rtx to rtx_insn *.
7803 (process_address): Strengthen params "before" and "after" from
7804 rtx * to rtx_insn **.
7805 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7806 (curr_insn_transform): Strengthen locals "before" and "after"
7807 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7808 to insns.
7809 (loc_equivalence_callback): Update cast of "data", changing
7810 resulting type from rtx to rtx_insn *.
7811 (substitute_pseudo_within_insn): New.
7812 (inherit_reload_reg): Strengthen param "insn" from rtx to
7813 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7814 NULL when referring to insns. Add a checked cast to rtx_insn *
7815 when using usage_insn to invoke lra_update_insn_regno_info.
7816 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7817 likewise for locals "restore", "save". Add checked casts to
7818 rtx_insn * when using usage_insn to invoke
7819 lra_update_insn_regno_info and lra_process_new_insns. Replace
7820 NULL_RTX with NULL when referring to insns.
7821 (split_if_necessary): Strengthen param "insn" from rtx to
7822 rtx_insn *.
7823 (update_ebb_live_info): Likewise for params "head", "tail" and local
7824 "prev_insn".
7825 (get_last_insertion_point): Likewise for return type and local "insn".
7826 (get_live_on_other_edges): Likewise for local "last".
7827 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7828 "prev_insn", "next_insn", "restore".
7829 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7830 (undo_optional_reloads): Likewise for local "insn".
7831
7832 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7833 "insn".
7834 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7835 insns.
7836 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7837 rtx_insn *.
7838 (spill_pseudos): Likewise for local "insn".
7839 (init_elimination): Likewise.
7840 (process_insn_for_elimination): Likewise for param "insn".
7841
7842 * lra-lives.c (curr_insn): Likewise.;
7843
7844 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7845 (remove_pseudos): Likewise for param "insn".
7846 (spill_pseudos): Likewise for local "insn".
7847 (lra_final_code_change): Likewise for locals "insn", "curr".
7848
7849 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7850 (lra_set_insn_deleted): Likewise.
7851 (lra_delete_dead_insn): Likewise, and for local "prev".
7852 (new_insn_reg): Likewise for param "insn".
7853 (lra_set_insn_recog_data): Likewise.
7854 (lra_update_insn_recog_data): Likewise.
7855 (lra_set_used_insn_alternative): Likewise.
7856 (get_insn_freq): Likewise.
7857 (invalidate_insn_data_regno_info): Likewise.
7858 (lra_invalidate_insn_regno_info): Likewise.
7859 (lra_update_insn_regno_info): Likewise.
7860 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7861 vec<rtx_insn *>.
7862 (lra_push_insn_1): Strengthen param "insn" from rtx to
7863 rtx_insn *.
7864 (lra_push_insn): Likewise.
7865 (lra_push_insn_and_update_insn_regno_info): Likewise.
7866 (lra_pop_insn): Likewise for return type and local "insn".
7867 (push_insns): Likewise for params "from", "to", and local "insn".
7868 (setup_sp_offset): Likewise for params "from", "last" and locals
7869 "before", "insn".
7870 (lra_process_new_insns): Likewise for params "insn", "before",
7871 "after" and local "last".
7872 (struct sloc): Likewise for field "insn".
7873 (lra_former_scratch_operand_p): Likewise for param "insn".
7874 (remove_scratches): Likewise for locals "insn", "last".
7875 (check_rtl): Likewise for local "insn".
7876 (add_auto_inc_notes): Likewise for param "insn".
7877 (update_inc_notes): Likewise for local "insn".
7878 (lra): Replace NULL_RTX with NULL when referring to insn.
7879
7880 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7881
7882 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7883 to rtx_insn *.
7884 (resolve_reg_notes): Likewise.
7885 (resolve_simple_move): Likewise for return type, param "insn", and
7886 locals "insns", "minsn".
7887 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7888 (resolve_use): Likewise.
7889 (resolve_debug): Likewise.
7890 (find_decomposable_shift_zext): Likewise.
7891 (resolve_shift_zext): Likewise for return type, param "insn", and
7892 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7893 (decompose_multiword_subregs): Likewise for local "insn",
7894 "orig_insn", "decomposed_shift", "end".
7895
7896 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7897
7898 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7899 param "insns" from rtx to rtx_insn *.
7900
7901 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7902 rtx to rtx_insn *.
7903 (struct iv_to_split): Likewise.
7904 (loop_exit_at_end_p): Likewise for local "insn".
7905 (split_edge_and_insert): Likewise for param "insns".
7906 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7907 and locals "seq", "jump".
7908 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7909 "branch_code"; update invocations of compare_and_jump_seq to
7910 eliminate NULL_RTX in favor of NULL.
7911 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7912 rtx to rtx_insn *.
7913 (reset_debug_uses_in_loop): Likewise.
7914 (analyze_insn_to_expand_var): Likewise for param "insn".
7915 (analyze_iv_to_split_insn): Likewise.
7916 (analyze_insns_in_loop): Likewise for local "insn".
7917 (insert_base_initialization): Likewise for param
7918 "insn" and local "seq".
7919 (split_iv): Likewise for param "insn" and local "seq".
7920 (expand_var_during_unrolling): Likewise for param "insn".
7921 (insert_var_expansion_initialization): Likewise for local "seq".
7922 (combine_var_copies_in_loop_exit): Likewise.
7923 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7924 "insn".
7925 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7926 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7927 "next".
7928
7929 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7930
7931 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7932 rtx_insn *.
7933 (iv_analyze_result): Likewise.
7934 (iv_analyze_expr): Likewise.
7935 (biv_p): Likewise.
7936
7937 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7938 local "def_insn" from rtx to rtx_insn *.
7939 (get_biv_step_1): Likewise for local "insn".
7940 (iv_analyze_expr): Likewise for param "insn".
7941 (iv_analyze_def): Likewise for local "insn".
7942 (iv_analyze_op): Likewise for param "insn".
7943 (iv_analyze): Likewise.
7944 (iv_analyze_result): Likewise.
7945 (biv_p): Likewise.
7946 (suitable_set_for_replacement): Likewise.
7947 (simplify_using_initial_values): Likewise for local "insn".
7948 (iv_number_of_iterations): Likewise for param "insn".
7949 (check_simple_exit): Add checked cast to rtx_insn when invoking
7950 iv_number_of_iterations for now (until get_condition is
7951 strengthened).
7952
7953 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7954 "insn" from rtx to rtx_insn *.
7955 (analyze_insns_in_loop): Likewise for local "insn".
7956
7957 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7958
7959 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7960 to rtx_insn *.
7961 (struct invariant): Likewise.
7962 (hash_invariant_expr_1): Likewise for param "insn".
7963 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7964 (find_exits): Likewise for local "insn".
7965 (create_new_invariant): Likewise for param "insn".
7966 (check_dependencies): Likewise.
7967 (find_invariant_insn): Likewise.
7968 (record_uses): Likewise.
7969 (find_invariants_insn): Likewise.
7970 (find_invariants_bb): Likewise for local "insn".
7971 (get_pressure_class_and_nregs): Likewise for param "insn".
7972 (calculate_loop_reg_pressure): Likewise for local "insn".
7973
7974 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7975
7976 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7977 to rtx_insn *.
7978 (add_test): Likewise for locals "seq", "jump".
7979 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7980
7981 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7982
7983 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7984 rtx_insn *.
7985 (rebuild_jump_labels_chain): Likewise for param "chain".
7986
7987 * cfgexpand.c (pass_expand::execute): Add checked cast to
7988 rtx_insn * when calling rebuild_jump_labels_chain in region where
7989 we know e->insns.r is non-NULL.
7990
7991 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7992 rtx_insn *.
7993 (rebuild_jump_labels): Likewise.
7994 (rebuild_jump_labels_chain): Likewise for param "chain".
7995 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7996 (init_label_info): Likewise for param "f".
7997 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7998 "prev_nonjump_insn".
7999 (mark_all_labels): Likewise for param "f" and locals "insn",
8000 "prev_nonjump_insn".
8001
8002 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8003
8004 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8005 from rtx to rtx_insn *insn.
8006 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8007 (ira_add_allocno_copy): Likewise.
8008 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8009 rtx to rtx_insn *.
8010 (ira_create_copy): Likewise.
8011 (ira_add_allocno_copy): Likewise.
8012 (create_bb_allocnos): Likewise for local "insn".
8013 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8014 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8015 process_regs_for_copy for rtx_insn * param.
8016 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8017 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
8018 process_regs_for_copy for rtx_insn * param.
8019 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8020 * ira-costs.c (record_reg_classes): Likewise for param "insn".
8021 (record_operand_costs): Likewise.
8022 (scan_one_insn): Likewise for return type, and for param "insn".
8023 (process_bb_for_costs): Likewise for local "insn".
8024 (process_bb_node_for_hard_reg_moves): Likewise.
8025 * ira-emit.c (struct move): Likewise for field "insn".
8026 (create_move): Eliminate use of NULL_RTX when dealing with an
8027 rtx_insn *.
8028 (emit_move_list): Strengthen return type and locals "result",
8029 "insn" from rtx to rtx_insn *insn.
8030 (emit_moves): Likewise for locals "insns", "tmp".
8031 (ira_emit): Likewise for local "insn".
8032 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8033 "insn".
8034 (find_call_crossed_cheap_reg): Likewise.
8035 (process_bb_node_lives): Likewise for local "insn".
8036 * ira.c (decrease_live_ranges_number): Likewise.
8037 (compute_regs_asm_clobbered): Likewise.
8038 (build_insn_chain): Likewise.
8039 (find_moveable_pseudos): Likewise, also locals "def_insn",
8040 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
8041 to rtx_insn **. Add a checked cast when assigning from
8042 "closest_use" into closest_uses array in a region where we know
8043 it's a non-NULL insn.
8044 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8045 to rtx_insn *.
8046 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8047 "last_interesting_insn", "uin".
8048 (move_unallocated_pseudos): Likewise for locals "def_insn",
8049 "move_insn", "newinsn".
8050
8051 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8052
8053 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8054 Strengthen locals "done_label", "do_error" from rtx to
8055 rtx_code_label *.
8056 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8057 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
8058 rtx_code_label *.
8059 (ubsan_expand_si_overflow_neg_check): Likewise for locals
8060 "done_label", "do_error" to rtx_code_label * and local "last" to
8061 rtx_insn *.
8062 (ubsan_expand_si_overflow_mul_check): Likewise for locals
8063 "done_label", "do_error", "large_op0", "small_op0_large_op1",
8064 "one_small_one_large", "both_ops_large", "after_hipart_neg",
8065 "after_lopart_neg", "do_overflow", "hipart_different" to
8066 rtx_code_label * and local "last" to rtx_insn *.
8067
8068 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8069
8070 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8071 "insn" and "move_insn" from rtx to rtx_insn *.
8072
8073 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8074
8075 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8076 rtx_insn *.
8077 (cheap_bb_rtx_cost_p): Likewise.
8078 (first_active_insn): Likewise for return type and local "insn".
8079 (last_active_insn): Likewise for return type and locals "insn",
8080 "head".
8081 (struct noce_if_info): Likewise for fields "jump", "insn_a",
8082 "insn_b".
8083 (end_ifcvt_sequence): Likewise for return type and locals "insn",
8084 "seq".
8085 (noce_try_move): Likewise for local "seq".
8086 (noce_try_store_flag): Likewise.
8087 (noce_try_store_flag_constants): Likewise.
8088 (noce_try_addcc): Likewise.
8089 (noce_try_store_flag_mask): Likewise.
8090 (noce_try_cmove): Likewise.
8091 (noce_try_minmax): Likewise.
8092 (noce_try_abs): Likewise.
8093 (noce_try_sign_mask): Likewise.
8094 (noce_try_bitop): Likewise.
8095 (noce_can_store_speculate_p): Likewise for local "insn".
8096 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8097 seq".
8098 (check_cond_move_block): Likewise for local "insn".
8099 (cond_move_convert_if_block): Likewise.
8100 (cond_move_process_if_block): Likewise for locals "seq",
8101 "loc_insn".
8102 (noce_find_if_block): Likewise for local "jump".
8103 (merge_if_block): Likewise for local "last".
8104 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8105 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8106 (block_has_only_trap): Likewise for return type and local "trap".
8107 (find_if_case_1): Likewise for local "jump".
8108 (dead_or_predicable): Likewise for locals "head", "end", "jump",
8109 "insn".
8110
8111 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8112
8113 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8114 "last_insn", "loop_end" from rtx to rtx_insn *.
8115
8116 * hw-doloop.c (scan_loop): Likewise for local "insn".
8117 (discover_loop): Likewise for param "tail_insn".
8118 (discover_loops): Likewise for local "tail".
8119
8120 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8121 cast to rtx_insn * when assigning from an rtx local to a
8122 hwloop_info's "last_insn" field.
8123
8124 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8125
8126 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8127 (add_delay_dependencies): Strengthen local "pro" from rtx to
8128 rtx_insn *.
8129 (recompute_todo_spec): Likewise.
8130 (dep_cost_1): Likewise for locals "insn", "used".
8131 (schedule_insn): Likewise for local "dbg".
8132 (schedule_insn): Likewise for locals "pro", "next".
8133 (unschedule_insns_until): Likewise for local "con".
8134 (restore_pattern): Likewise for local "next".
8135 (estimate_insn_tick): Likewise for local "pro".
8136 (resolve_dependencies): Likewise for local "next".
8137 (fix_inter_tick): Likewise.
8138 (fix_tick_ready): Likewise for local "pro".
8139 (add_to_speculative_block): Likewise for locals "check", "twin",
8140 "pro".
8141 (sched_extend_bb): Likewise for locals "end", "insn".
8142 (init_before_recovery): Likewise for local "x".
8143 (sched_create_recovery_block): Likewise for local "barrier".
8144 (create_check_block_twin): Likewise for local "pro".
8145 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8146 "consumer".
8147 (unlink_bb_notes): Update for change to type of bb_header.
8148 Strengthen locals "prev", "label", "note", "next" from rtx to
8149 rtx_insn *.
8150 (clear_priorities): Likewise for local "pro".
8151
8152 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8153
8154 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8155 rtx_insn *.
8156 (test_insn): Likewise for this global.
8157 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8158 const rtx_insn *.
8159 (oprs_anticipatable_p): Likewise.
8160 (oprs_available_p): Likewise.
8161 (insert_expr_in_table): Strengthen param "insn" from rtx to
8162 rtx_insn *.
8163 (hash_scan_set): Likewise.
8164 (hash_scan_clobber): Likewise.
8165 (hash_scan_call): Likewise.
8166 (hash_scan_insn): Likewise.
8167 (compute_hash_table_work): Likewise for local "insn".
8168 (process_insert_insn): Likewise for return type and local "pat".
8169 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8170 "pat", "pat_end", "maybe_cc0_setter".
8171 (pre_edge_insert): Likewise for local "insn".
8172 (pre_insert_copy_insn): Likewise for param "insn".
8173 (pre_insert_copies): Likewise for local "insn".
8174 (struct set_data): Likewise for field "insn".
8175 (single_set_gcse): Likewise for param "insn".
8176 (gcse_emit_move_after): Likewise.
8177 (pre_delete): Likewise for local "insn".
8178 (update_bb_reg_pressure): Likewise for param "from" and local
8179 "insn".
8180 (should_hoist_expr_to_dom): Likewise for param "from".
8181 (hoist_code): Likewise for local "insn".
8182 (get_pressure_class_and_nregs): Likewise for param "insn".
8183 (calculate_bb_reg_pressure): Likewise for local "insn".
8184 (compute_ld_motion_mems): Likewise.
8185
8186 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8187
8188 * genpeep.c (main): Rename param back from "uncast_ins1" to
8189 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8190 checked cast.
8191
8192 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8193
8194 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8195
8196 PR target/62195
8197 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8198 documentation to state it is only for VSX operations.
8199
8200 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8201 constraint only active if VSX.
8202
8203 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8204 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8205 (lfiwzx): Likewise.
8206
8207 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8208
8209 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8210 Strengthen local "insn" from rtx to rtx_insn *.
8211 (use_killed_between): Likewise for param "target_insn".
8212 (all_uses_available_at): Likewise for param "target_insn" and
8213 local "next".
8214 (update_df_init): Likewise for params "def_insn", "insn".
8215 (update_df): Likewise for param "insn".
8216 (try_fwprop_subst): Likewise for param "def_insn" and local
8217 "insn".
8218 (free_load_extend): Likewise for param "insn".
8219 (forward_propagate_subreg): Likewise for param "def_insn" and
8220 local "use_insn".
8221 (forward_propagate_asm): Likewise for param "def_insn" and local
8222 "use_insn".
8223 (forward_propagate_and_simplify): Likewise for param "def_insn"
8224 and local "use_insn".
8225 (forward_propagate_into): Likewise for locals "def_insn" and
8226 "use_insn".
8227
8228 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8229
8230 * function.c (emit_initial_value_sets): Strengthen local "seq"
8231 from rtx to rtx_insn *.
8232 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8233 local "seq".
8234 (instantiate_virtual_regs): Likewise for local "insn".
8235 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8236 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8237 (expand_function_end): Likewise for locals "insn" and "seq".
8238 (epilogue_done): Likewise for local "insn".
8239 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8240 "last", "trial".
8241 (reposition_prologue_and_epilogue_notes): Likewise for locals
8242 "insn", "last", "note", "first".
8243 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8244 (pass_match_asm_constraints::execute): Likewise for local "insn".
8245
8246 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8247
8248 * output.h (final_scan_insn): Strengthen return type from rtx to
8249 rtx_insn *.
8250 (final_forward_branch_p): Likewise for param.
8251 (current_output_insn): Likewise for this global.
8252
8253 * final.c (rtx debug_insn): Likewise for this variable.
8254 (current_output_insn): Likewise.
8255 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8256 adding "insn" back in as an rtx_insn * with a checked cast, so
8257 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8258 first param.
8259 (compute_alignments): Strengthen local "label" from rtx to
8260 rtx_insn *.
8261 (shorten_branches): Rename param from "first" to "uncast_first",
8262 introducing a new local rtx_insn * "first" using a checked cast to
8263 effectively strengthen "first" from rtx to rtx_insn * without
8264 affecting the type signature. Strengthen locals "insn", "seq",
8265 "next", "label" from rtx to rtx_insn *.
8266 (change_scope): Strengthen param "orig_insn" and local "insn" from
8267 rtx to rtx_insn *.
8268 (final_start_function): Rename param from "first" to "uncast_first",
8269 introducing a new local rtx_insn * "first" using a checked cast to
8270 effectively strengthen "first" from rtx to rtx_insn * without
8271 affecting the type signature. Strengthen local "insn" from rtx to
8272 rtx_insn *.
8273 (dump_basic_block_info): Strengthen param "insn" from rtx to
8274 rtx_insn *.
8275 (final): Rename param from "first" to "uncast_first",
8276 introducing a new local rtx_insn * "first" using a checked cast to
8277 effectively strengthen "first" from rtx to rtx_insn * without
8278 affecting the type signature. Strengthen locals "insn", "next"
8279 from rtx to rtx_insn *.
8280 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8281 rtx_insn *.
8282 (call_from_call_insn): Strengthen param "insn" from rtx to
8283 rtx_call_insn *.
8284 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8285 introducing a new local rtx_insn * "insn" using a checked cast to
8286 effectively strengthen "insn" from rtx to rtx_insn * without
8287 affecting the type signature. Strengthen return type and locals
8288 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8289 now-redundant checked cast to rtx_insn * from both invocations of
8290 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8291 introducing a local "call_insn" for use when invoking
8292 call_from_call_insn.
8293 (notice_source_line): Strengthen param "insn" from rtx to
8294 rtx_insn *.
8295 (leaf_function_p): Likewise for local "insn".
8296 (final_forward_branch_p): Likewise.
8297 (leaf_renumber_regs): Likewise for param "first".
8298 (rest_of_clean_state): Likewise for locals "insn" and "next".
8299 (self_recursive_call_p): Likewise for param "insn".
8300 (collect_fn_hard_reg_usage): Likewise for local "insn".
8301 (get_call_fndecl): Likewise for param "insn".
8302 (get_call_cgraph_rtl_info): Likewise.
8303 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8304 introducing a new local rtx_insn * "insn" using a checked cast to
8305 effectively strengthen "insn" from rtx to rtx_insn * without
8306 affecting the type signature.
8307
8308 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8309 cast when assigning from param "insn" to current_output_insn.
8310 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8311 so that we can assign it back to current_output_insn.
8312
8313 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8314
8315 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8316 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8317 atmxt540s and atmxt540sreva devices.
8318 * config/avr/avr-tables.opt: Regenerate.
8319 * config/avr/t-multilib: Regenerate.
8320 * doc/avr-mmcu.texi: Regenerate.
8321
8322 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8323
8324 * expr.c (convert_move): Strengthen local "insns" from rtx to
8325 rtx_insn *.
8326 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8327 "top_label" from rtx to rtx_code_label *.
8328 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8329 rtx_insn *.
8330 (emit_single_push_insn): Likewise for locals "prev", "last".
8331 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8332 to rtx_code_label *.
8333 (store_constructor): Likewise for locals "loop_start", "loop_end".
8334 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8335 rtx_insn *.
8336 (expand_expr_real_2): Likewise.
8337 (expand_expr_real_1): Strengthen local "label" from rtx to
8338 rtx_code_label *.
8339
8340 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8341
8342 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8343 from rtx to rtx_insn *.
8344 (store_bit_field_1): Likewise.
8345 (extract_bit_field_1): Likewise.
8346 (expand_mult_const): Likewise for local "insns".
8347 (expmed_mult_highpart): Strengthen local "label" from rtx to
8348 rtx_code_label *.
8349 (expand_smod_pow2): Likewise.
8350 (expand_sdiv_pow2): Likewise.
8351 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8352 rtx_insn *. Strengthen locals "label", "label1", "label2",
8353 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8354 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8355 (emit_store_flag): Likewise.
8356 (emit_store_flag_force): Strengthen local "label" from rtx to
8357 rtx_code_label *.
8358 (do_cmp_and_jump): Likewise for param "label".
8359
8360 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8361
8362 * explow.c (force_reg): Strengthen local "insn" from rtx to
8363 rtx_insn *.
8364 (adjust_stack_1): Likewise.
8365 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8366 "final_label", "available_label", "space_available" from rtx to
8367 rtx_code_label *.
8368 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8369 (anti_adjust_stack_and_probe): Likewise.
8370
8371 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8372
8373 * except.h (sjlj_emit_function_exit_after): Strengthen param
8374 "after" from rtx to rtx_insn *. This is only called with
8375 result of get_last_insn (in function.c) so type-change should be
8376 self-contained.
8377
8378 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8379 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8380 to rtx_insn *. These fields are only used from except.c so this
8381 type-change should be self-contained to this patch.
8382
8383 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8384 local "last" from rtx to rtx_insn *.
8385 (dw2_build_landing_pads): Likewise for local "seq".
8386 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8387 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8388 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8389 rtx to rtx_insn *.
8390 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8391 to rtx_insn *.
8392 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8393 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8394 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8395 referring to an insn. Strengthen local "dispatch_label" from
8396 rtx to rtx_code_label *.
8397 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8398 rtx_insn *.
8399 (expand_eh_return): Strengthen local "around_label" from
8400 rtx to rtx_code_label *.
8401 (convert_to_eh_region_ranges): Strengthen locals "iter",
8402 "last_action_insn", "first_no_action_insn",
8403 "first_no_action_insn_before_switch",
8404 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8405
8406 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8407
8408 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8409 from rtx to rtx_insn *.
8410 (cached_next_real_insn): Likewise.
8411 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8412 working with insns.
8413 (dwarf2out_var_location): Strengthen locals "next_real",
8414 "next_note", "expected_next_loc_note", "last_start", "insn" from
8415 rtx to rtx_insn *.
8416
8417 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8418
8419 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8420 from rtx to rtx_insn *.
8421 (create_pseudo_cfg): Likewise for local "insn".
8422
8423 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8424
8425 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8426 from rtx to rtx_insn *.
8427 (df_bb_regno_last_def_find): Likewise.
8428
8429 * df-problems.c (df_rd_bb_local_compute): Likewise.
8430 (df_lr_bb_local_compute): Likewise.
8431 (df_live_bb_local_compute): Likewise.
8432 (df_chain_remove_problem): Likewise.
8433 (df_chain_create_bb): Likewise.
8434 (df_word_lr_bb_local_compute): Likewise.
8435 (df_remove_dead_eq_notes): Likewise for param "insn".
8436 (df_note_bb_compute): Likewise for local "insn".
8437 (simulate_backwards_to_point): Likewise.
8438 (df_md_bb_local_compute): Likewise.
8439
8440 * df-scan.c (df_scan_free_bb_info): Likewise.
8441 (df_scan_start_dump): Likewise.
8442 (df_scan_start_block): Likewise.
8443 (df_install_ref_incremental): Likewise for local "insn".
8444 (df_insn_rescan_all): Likewise.
8445 (df_reorganize_refs_by_reg_by_insn): Likewise.
8446 (df_reorganize_refs_by_insn_bb): Likewise.
8447 (df_recompute_luids): Likewise.
8448 (df_bb_refs_record): Likewise.
8449 (df_update_entry_exit_and_calls): Likewise.
8450 (df_bb_verify): Likewise.
8451
8452 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8453
8454 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8455 "first_note" from rtx to rtx_insn *.
8456 (get_node_of_insn): Likewise for param 2 "insn".
8457 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8458
8459 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8460 rtx_insn *.
8461 (mem_write_insn_p): Likewise.
8462 (mem_access_insn_p): Likewise.
8463 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8464 (def_has_ccmode_p): Likewise for param "insn".
8465 (add_cross_iteration_register_deps): Likewise for locals
8466 "def_insn" and "use_insn".
8467 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8468 (build_intra_loop_deps): Likewise for local "src_insn".
8469 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8470 to rtx_insn *.
8471 (get_node_of_insn): Likewise for param "insn".
8472
8473 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8474
8475 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8476 (deletable_insn_p): Strengthen param "insn" from rtx to
8477 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8478 find_call_stack_args, since this is guarded by CALL_P (insn).
8479 (marked_insn_p): Strengthen param "insn" from rtx to
8480 rtx_insn *.
8481 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8482 invoking find_call_stack_args, since this is guarded by
8483 CALL_P (insn).
8484 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8485 rtx_insn *; we know this is an insn since this was called by
8486 mark_nonreg_stores.
8487 (mark_nonreg_stores_2): Likewise.
8488 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8489 rtx_insn *.
8490 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8491 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8492 to rtx_insn *.
8493 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8494 from rtx to rtx_insn *.
8495 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8496 "next", "ref_insn".
8497 (delete_unmarked_insns): Likewise for locals "insn", "next".
8498 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8499 (mark_reg_dependencies): Likewise for param "insn".
8500 (rest_of_handle_ud_dce): Likewise for local "insn".
8501 (word_dce_process_block): Likewise.
8502 (dce_process_block): Likewise.
8503
8504 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8505
8506 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8507 from rtx to rtx_insn *.
8508 (struct change_cc_mode_args): Likewise for field "insn".
8509 (this_insn): Strengthen from rtx to rtx_insn *.
8510 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8511 with insn.
8512 (validate_canon_reg): Strengthen param "insn" from rtx to
8513 rtx_insn *.
8514 (canon_reg): Likewise.
8515 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8516 dealing with insn.
8517 (record_jump_equiv): Strengthen param "insn" from rtx to
8518 rtx_insn *.
8519 (try_back_substitute_reg): Likewise, also for locals "prev",
8520 "bb_head".
8521 (find_sets_in_insn): Likewise for param "insn".
8522 (canonicalize_insn): Likewise.
8523 (cse_insn): Likewise. Add a checked cast.
8524 (invalidate_from_clobbers): Likewise for param "insn".
8525 (invalidate_from_sets_and_clobbers): Likewise.
8526 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8527 dealing with insn.
8528 (cse_prescan_path): Strengthen local "insn" from rtx to
8529 rtx_insn *.
8530 (cse_extended_basic_block): Likewise for locals "insn" and
8531 "prev_insn".
8532 (cse_main): Likewise for param "f".
8533 (check_for_label_ref): Likewise for local "insn".
8534 (set_live_p): Likewise for second param ("insn").
8535 (insn_live_p): Likewise for first param ("insn") and for local
8536 "next".
8537 (cse_change_cc_mode_insn): Likewise for first param "insn".
8538 (cse_change_cc_mode_insns): Likewise for first and second params
8539 "start" and "end".
8540 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8541 and "end".
8542 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8543 "cc_src_insn".
8544
8545 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8546 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8547 Anna Tikhonova <anna.tikhonova@intel.com>
8548 Ilya Tocar <ilya.tocar@intel.com>
8549 Andrey Turetskiy <andrey.turetskiy@intel.com>
8550 Ilya Verbin <ilya.verbin@intel.com>
8551 Kirill Yukhin <kirill.yukhin@intel.com>
8552 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8553
8554 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8555 New.
8556 * config/i386/sse.md
8557 (define_mode_iterator VI248_AVX2): Delete.
8558 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8559 (define_mode_iterator VI48_AVX2): Ditto.
8560 (define_insn <shift_insn><mode>3): Delete.
8561 (define_insn "<shift_insn><mode>3<mask_name>" with
8562 VI2_AVX2_AVX512BW): New.
8563 (define_insn "<shift_insn><mode>3<mask_name>" with
8564 VI48_AVX2): Ditto.
8565
8566 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8567 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8568 Anna Tikhonova <anna.tikhonova@intel.com>
8569 Ilya Tocar <ilya.tocar@intel.com>
8570 Andrey Turetskiy <andrey.turetskiy@intel.com>
8571 Ilya Verbin <ilya.verbin@intel.com>
8572 Kirill Yukhin <kirill.yukhin@intel.com>
8573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8574
8575 * config/i386/sse.md
8576 (define_mode_iterator VI4F_BRCST32x2): New.
8577 (define_mode_attr 64x2_mode): Ditto.
8578 (define_mode_attr 32x2mode): Ditto.
8579 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8580 with VI4F_BRCST32x2): Ditto.
8581 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8582 with V16FI mode iterator): Ditto.
8583 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8584 with V16FI): Ditto.
8585 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8586 with VI8F_BRCST64x2): Ditto.
8587
8588 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8589 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8590 Anna Tikhonova <anna.tikhonova@intel.com>
8591 Ilya Tocar <ilya.tocar@intel.com>
8592 Andrey Turetskiy <andrey.turetskiy@intel.com>
8593 Ilya Verbin <ilya.verbin@intel.com>
8594 Kirill Yukhin <kirill.yukhin@intel.com>
8595 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8596
8597 * config/i386/sse.md
8598 (define_mode_iterator VI8_AVX512VL): New.
8599 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8600
8601 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8602
8603 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8604 (define_mode_iterator V48_AVX512VL): New.
8605 (define_mode_iterator V12_AVX512VL): Ditto.
8606 (define_insn <avx512>_load<mode>_mask): Split into two similar
8607 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8608 Refactor output template.
8609 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8610
8611 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8612
8613 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8614 rtx_insn *.
8615 (reg_available_p): Likewise for param "insn".
8616 (insert_set_in_table): Likewise.
8617 (hash_scan_set): Likewise.
8618 (hash_scan_insn): Likewise.
8619 (make_set_regs_unavailable): Likewise.
8620 (compute_hash_table_work): Likewise for local "insn".
8621 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8622 const rtx_insn *.
8623 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8624 (try_replace_reg): Likewise.
8625 (find_avail_set): Likewise.
8626 (cprop_jump): Likewise for params "setcc", "jump".
8627 (constprop_register): Likewise for param "insn".
8628 (cprop_insn): Likewise.
8629 (do_local_cprop): Likewise.
8630 (local_cprop_pass): Likewise for local "insn".
8631 (bypass_block): Likewise for params "setcc" and "jump".
8632 (bypass_conditional_jumps): Likewise for locals "setcc" and
8633 "insn".
8634 (one_cprop_pass): Likewise for local "insn".
8635
8636 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8637
8638 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8639 from rtx to rtx_insn *.
8640 (struct comparison): Likewise, also for field "prev_clobber".
8641 (conforming_compare): Likewise for param "insn".
8642 (arithmetic_flags_clobber_p): Likewise.
8643 (find_flags_uses_in_insn): Likewise.
8644 (find_comparison_dom_walker::before_dom_children): Likewise for
8645 locals "insn", "next", "last_clobber".
8646 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8647
8648 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8649
8650 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8651 "insn" from rtx to rtx_insn *.
8652 (single_set_for_csa): Likewise for param "insn".
8653 (record_one_stack_ref): Likewise.
8654 (try_apply_stack_adjustment): Likewise.
8655 (struct record_stack_refs_data): Likewise for field "insn".
8656 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8657 (prev_active_insn_bb): Likewise for return type and param "insn".
8658 (next_active_insn_bb): Likewise.
8659 (force_move_args_size_note): Likewise for params "prev" and "last"
8660 and locals "test", "next_candidate", "prev_candidate".
8661 (combine_stack_adjustments_for_block): Strengthen locals
8662 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8663 rtx_insn *.
8664
8665 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8666
8667 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8668 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8669 (subst_insn): Likewise for this variable.
8670 (added_links_insn): Likewise.
8671 (struct insn_link): Likewise for field "insn".
8672 (alloc_insn_link): Likewise for param "insn".
8673 (struct undobuf): Likewise for field "other_insn".
8674 (find_single_use): Likewise for param "insn" and local "next".
8675 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8676 (delete_noop_moves): Likewise for locals "insn", "next".
8677 (create_log_links): Likewise for locals "insn", "use_insn".
8678 Strengthen local "next_use" from rtx * to rtx_insn **.
8679 (insn_a_feeds_b): Likewise for params "a", "b".
8680 (combine_instructions): Likewise for param "f" and locals "insn",
8681 "next", "prev", "first", "last_combined_insn", "link", "link1",
8682 "temp". Replace use of NULL_RTX with NULL when referring to
8683 insns.
8684 (setup_incoming_promotions): Likewise for param "first"
8685 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8686 (can_combine_p): Likewise for params "insn", "i3", "pred",
8687 "pred2", "succ", "succ2" and for local "p".
8688 (combinable_i3pat): Likewise for param "i3".
8689 (cant_combine_insn_p): Likewise for param "insn".
8690 (likely_spilled_retval_p): Likewise.
8691 (adjust_for_new_dest): Likewise.
8692 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8693 (try_combine): Likewise for return type and for params "i3", "i2",
8694 "i1", "i0", "last_combined_insn", and for locals "insn",
8695 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8696 "i0_insn". Eliminate local "tem" in favor of new locals
8697 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8698 checked cast for now to rtx_insn * on the return type of
8699 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8700 insns.
8701 (find_split_point): Strengthen param "insn" from rtx to
8702 rtx_insn *.
8703 (simplify_set): Likewise for local "other_insn".
8704 (recog_for_combine): Likewise for param "insn".
8705 (record_value_for_reg): Likewise.
8706 (record_dead_and_set_regs_1): Likewise for local
8707 "record_dead_insn".
8708 (record_dead_and_set_regs): Likewise for param "insn".
8709 (record_promoted_value): Likewise.
8710 (check_promoted_subreg): Likewise.
8711 (get_last_value_validate): Likewise.
8712 (reg_dead_at_p): Likewise.
8713 (move_deaths): Likewise for param "to_insn".
8714 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8715 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8716 in favor of new locals "tem_note" and "tem_insn", the latter being
8717 an rtx_insn *.
8718 (distribute_links): Strengthen locals "place", "insn" from rtx to
8719 rtx_insn *.
8720
8721 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8722
8723 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8724 than a const_rtx.
8725 (can_delete_label_p): Require a const rtx_code_label * rather than
8726 a const_rtx.
8727 (delete_insn): Add checked cast to rtx_code_label * when we know
8728 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8729 rtx to rtx_insn *.
8730 (delete_insn_chain): Strengthen locals "prev" and "current" from
8731 rtx to rtx_insn *. Add a checked cast when assigning from
8732 "finish" (strengthening the params will come later). Add a
8733 checked cast to rtx_note * in region where we know
8734 NOTE_P (current).
8735 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8736 rtx_insn *.
8737 (compute_bb_for_insn): Likewise.
8738 (free_bb_for_insn): Likewise for local "insn".
8739 (compute_bb_for_insn): Likewise.
8740 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8741 local "insn" from rtx to rtx_insn *
8742 (flow_active_insn_p): Require a const rtx_insn * rather than a
8743 const_rtx.
8744 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8745 rtx_insn *.
8746 (can_fallthru): Likewise for locals "insn" and "insn2".
8747 (bb_note): Likewise for local "note".
8748 (first_insn_after_basic_block_note): Likewise for local "note" and
8749 for return type.
8750 (rtl_split_block): Likewise for locals "insn" and "next".
8751 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8752 "end".
8753 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8754 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8755 "prev", "tmp".
8756 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8757 them), "kill_from", "barrier", "new_insn".
8758 (patch_jump_insn): Likewise for params "insn", "old_label".
8759 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8760 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8761 "old_label", "new_label".
8762 (rtl_tidy_fallthru_edge): Likewise for local "q".
8763 (rtl_split_edge): Likewise for locals "before", "last".
8764 (commit_one_edge_insertion): Likewise for locals "before",
8765 "after", "insns", "tmp", "last", adding a checked cast where
8766 currently necessary.
8767 (commit_edge_insertions): Likewise.
8768 (rtl_dump_bb): Likewise for locals "insn", "last".
8769 (print_rtl_with_bb): Likewise for local "x".
8770 (rtl_verify_bb_insns): Likewise for local "x".
8771 (rtl_verify_bb_pointers): Likewise for local "insn".
8772 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8773 "head", "end".
8774 (rtl_verify_fallthru): Likewise for local "insn".
8775 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8776 (purge_dead_edges): Likewise for local "insn".
8777 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8778 (skip_insns_after_block): Likewise for return type and for locals
8779 "insn", "last_insn", "next_head", "prev".
8780 (record_effective_endpoints): Likewise for locals "next_insn",
8781 "insn", "end".
8782 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8783 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8784 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8785 (duplicate_insn_chain): For now, add checked cast from rtx to
8786 rtx_insn * when returning insn.
8787 (cfg_layout_duplicate_bb): Likewise for local "insn".
8788 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8789 "prev", "remaints".
8790 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8791 (rtl_block_empty_p): Likewise.
8792 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8793 "split_point", "last".
8794 (rtl_block_ends_with_call_p): Likewise for local "insn".
8795 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8796 const rtx_insn *.
8797 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8798 "split_at_insn" from rtx to rtx_insn *.
8799 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8800 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8801 to const rtx_insn *.
8802 (rtl_account_profile_record): Likewise.
8803
8804 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8805
8806 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8807 rtx to rtx_insn *.
8808 (average_num_loop_insns): Likewise.
8809 (init_set_costs): Likewise for local "seq".
8810 (seq_cost): Likewise for param "seq", from const_rtx to const
8811 rtx_insn *.
8812
8813 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8814
8815 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8816 rtx to rtx_insn *.
8817
8818 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8819
8820 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8821 "f1" and "f2" from rtx * to rtx_insn **.
8822 (flow_find_head_matching_sequence): Likewise.
8823
8824 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8825 "cbranch_insn" from rtx to rtx_insn *.
8826 (thread_jump): Likewise for local "insn".
8827 (try_forward_edges): Likewise for local "last".
8828 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8829 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8830 "real_b_end".
8831 (can_replace_by): Likewise for params "i1", "i2".
8832 (old_insns_match_p): Likewise.
8833 (merge_notes): Likewise.
8834 (walk_to_nondebug_insn): Likewise for param "i1".
8835 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8836 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8837 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8838 (flow_find_head_matching_sequence): Strengthen params "f1" and
8839 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8840 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8841 rtx_insn *.
8842 (outgoing_edges_match): Likewise for locals "last1", "last2".
8843 (try_crossjump_to_edge): Likewise for local "insn".
8844 Replace call to for_each_rtx with for_each_rtx_in_insn.
8845
8846 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8847 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8848 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8849 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8850 (try_optimize_cfg): Strengthen local "last" from rtx to
8851 rtx_insn *.
8852 (delete_dead_jumptables): Likewise for locals "insn", "next",
8853 "label".
8854
8855 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8856 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8857 "rtx else_first_tail", to reflect the basic-block.h changes above.
8858
8859 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8860
8861 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8862 rtx_insn *.
8863 (purge_dead_tablejump_edges): Likewise.
8864 (find_bb_boundaries): Likewise for locals "insn", "end",
8865 "flow_transfer_insn".
8866
8867 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8868
8869 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8870 "ins" and "prev" from rtx to rtx_insn *.
8871
8872 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8873
8874 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8875 rtx_insn *.
8876 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8877 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8878 "scan_start".
8879 (load_register_parameters): Likewise for local "before_arg".
8880 (check_sibcall_argument_overlap): Likewise for param "insn".
8881 (expand_call): Likewise for locals "normal_call_insns",
8882 "tail_call_insns", "insns", "before_call", "after_args",
8883 "before_arg", "last", "prev". Strengthen one of the "last" from
8884 rtx to rtx_call_insn *.
8885 (fixup_tail_calls): Strengthen local "insn" from rtx to
8886 rtx_insn *.
8887 (emit_library_call_value_1): Likewise for locals "before_call" and
8888 "last".
8889
8890 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8891
8892 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8893 and "last" from rtx to rtx_insn *.
8894 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8895 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8896 rtx_call_insn *.
8897 (expand_errno_check): Strengthen local "lab" from rtx to
8898 rtx_code_label *.
8899 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8900 rtx_insn *.
8901 (expand_builtin_mathfn_2): Likewise.
8902 (expand_builtin_mathfn_ternary): Likewise.
8903 (expand_builtin_mathfn_3): Likewise.
8904 (expand_builtin_interclass_mathfn): Likewise for local "last".
8905 (expand_builtin_int_roundingfn): Likewise for local "insns".
8906 (expand_builtin_int_roundingfn_2): Likewise.
8907 (expand_builtin_strlen): Likewise for local "before_strlen".
8908 (expand_builtin_strncmp): Likewise for local "seq".
8909 (expand_builtin_signbit): Likewise for local "last".
8910 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8911 from rtx to rtx_code_label *.
8912 (expand_stack_restore): Strengthen local "prev" from rtx to
8913 rtx_insn *.
8914
8915 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8916
8917 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8918 to rtx_insn *.
8919 (struct btr_def_s): Likewise.
8920 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8921 const rtx_insn *.
8922 (add_btr_def): Likewise.
8923 (new_btr_user): Likewise.
8924 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8925 rtx to rtx_insn *.
8926 (link_btr_uses): Likewise.
8927 (move_btr_def): Likewise for locals "insp", "old_insn",
8928 "new_insn". Add checked cast to rtx_insn * for now on result of
8929 gen_move_insn.
8930 (can_move_up): Strengthen param "insn" from const_rtx to
8931 const rtx_insn *.
8932
8933 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8934
8935 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8936 rtx_insn *.
8937 (get_uncond_jump_length): Likewise for locals "label", "jump".
8938 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8939 "jump", "insn".
8940 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8941 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8942 (find_jump_block): Likewise for local "insn".
8943 (fix_crossing_conditional_branches): Likewise for locals
8944 "old_jump", "new_jump".
8945 (fix_crossing_unconditional_branches): Likewise for locals
8946 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8947 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8948
8949 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8950
8951 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8952 rtx to rtx_insn *.
8953 (struct mem_insn): Likewise for field "insn".
8954 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8955 (reg_next_inc_use): Likewise.
8956 (reg_next_def): Likewise.
8957 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8958 from rtx to rtx_insn *.
8959 (move_insn_before): Likewise for param "next_insn" and local "insns".
8960 (attempt_change): Likewise for local "mov_insn".
8961 (try_merge): Likewise for param "last_insn".
8962 (get_next_ref): Likewise for return type and local "insn".
8963 Strengthen param "next_array" from rtx * to rtx_insn **.
8964 (parse_add_or_inc): Strengthen param "insn" from rtx to
8965 rtx_insn *.
8966 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8967 the latter).
8968 (merge_in_block): Likewise for locals "insn", "curr",
8969 "other_insn".
8970 (pass_inc_dec::execute): Update allocations of the arrays to
8971 reflect the stronger types.
8972
8973 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8974
8975 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8976 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8977 from rtx to rtx_code_label *.
8978
8979 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8980
8981 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8982 to rtx_insn *.
8983
8984 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8985
8986 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8987 generated a warning and prevented bootstrapping the compiler.
8988
8989 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8990
8991 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8992 rtx_insn *.
8993
8994 * jump.c (delete_related_insns): Likewise, also for locals "next"
8995 and "prev".
8996
8997 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8998
8999 * genautomata.c (output_internal_insn_latency_func): When writing
9000 the function "internal_insn_latency" to insn-automata.c,
9001 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9002 allowing the optional guard function of (define_bypass) clauses to
9003 expect a pair of rtx_insn *, rather than a pair of rtx.
9004 (output_insn_latency_func): When writing the function
9005 "insn_latency", add an "uncast_" prefix to params "insn" and
9006 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9007 using checked casts from the params, thus enabling the above
9008 change to the generated "internal_insn_latency" function.
9009
9010 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
9011
9012 PR tree-optimization/62091
9013 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9014 handle correctly arrays.
9015 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9016 inheritance binfos.
9017 (record_known_type): Walk into inner type.
9018 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9019 condition on no type changes.
9020
9021 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9022
9023 * genattrtab.c (write_attr_get): Within the generated get_attr_
9024 functions, rename param "insn" to "uncast_insn" and reintroduce
9025 "insn" as an local rtx_insn * using a checked cast, so that "insn"
9026 is an rtx_insn * within insn-attrtab.c
9027
9028 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9029
9030 * output.h (peephole): Strengthen return type from rtx to
9031 rtx_insn *.
9032 * rtl.h (delete_for_peephole): Likewise for both params.
9033 * genpeep.c (main): In generated "peephole" function, strengthen
9034 return type and local "insn" from rtx to rtx_insn *. For now,
9035 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9036 rtx_insn *, with a checked cast.
9037 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9038 locals "insn", "next", "prev" from rtx to rtx_insn *.
9039
9040 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
9041
9042 PR tree-optimization/62112
9043 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9044 * gimple-iterator.h (gsi_replace): Return bool.
9045 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9046 moved from ref_may_alias_global_p.
9047 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9048 New overloads.
9049 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9050 (stmt_kills_ref_p_1): Rename...
9051 (stmt_kills_ref_p): ... to this.
9052 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9053 stmt_kills_ref_p): Declare.
9054 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9055 Move the self-assignment case...
9056 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9057
9058 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9059
9060 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9061
9062 * emit-rtl.c (try_split): Likewise, also for locals "before" and
9063 "after". For now, don't strengthen param "trial", which requires
9064 adding checked casts when returning it.
9065
9066 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9067
9068 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9069 "label" from rtx to rtx_code_label *. Strengthen param 1 of
9070 "var_location" hook from rtx to rtx_insn *.
9071 (debug_nothing_rtx): Delete in favor of...
9072 (debug_nothing_rtx_code_label): New prototype.
9073 (debug_nothing_rtx_rtx): Delete unused prototype.
9074 (debug_nothing_rtx_insn): New prototype.
9075
9076 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9077 invoking debug_hooks->var_location (in two places, one in a NOTE
9078 case of a switch statement, the other guarded by a CALL_P
9079 conditional. Add checked cast to rtx_code_label * when invoking
9080 debug_hooks->label (within CODE_LABEL case of switch statement).
9081
9082 * dbxout.c (dbx_debug_hooks): Update "label" hook from
9083 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9084 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9085 (xcoff_debug_hooks): Likewise.
9086 * debug.c (do_nothing_debug_hooks): Likewise.
9087 (debug_nothing_rtx): Delete in favor of...
9088 (debug_nothing_rtx_insn): New function.
9089 (debug_nothing_rtx_rtx): Delete unused function.
9090 (debug_nothing_rtx_code_label): New function.
9091 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9092 debug_nothing_rtx to debug_nothing_rtx_code_label.
9093 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9094 to rtx_insn *.
9095 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9096 debug_nothing_rtx to debug_nothing_rtx_insn.
9097 (sdbout_label): Strengthen param "insn" from rtx to
9098 rtx_code_label *.
9099 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9100 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9101 "var_location" hook from debug_nothing_rtx to
9102 debug_nothing_rtx_insn.
9103
9104 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9105
9106 * recog.h (insn_output_fn): Update this function typedef to match
9107 the changes below to the generated output functions, strengthening
9108 the 2nd param from rtx to rtx_insn *.
9109
9110 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9111 insn when invoking an output function, to match the new signature
9112 of insn_output_fn with a stronger second param.
9113
9114 * genconditions.c (write_header): In the generated code for
9115 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9116 to match the other changes in this patch.
9117
9118 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9119 the generated "gen_" functions from rtx to rtx_insn * within their
9120 implementations.
9121
9122 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9123 the subfunctions within the generated "recog_", "split", "peephole2"
9124 function trees from rtx to rtx_insn *. For now, the top-level
9125 generated functions ("recog", "split", "peephole2") continue to
9126 take a plain rtx for "insn", to avoid introducing dependencies on
9127 other patches. Rename this 2nd param from "insn" to
9128 "uncast_insn", and reintroduce "insn" as a local variable of type
9129 rtx_insn *, initialized at the top of the generated function with
9130 a checked cast on "uncast_insn".
9131 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9132 the generated "gen_" functions from rtx to rtx_insn * within their
9133 prototypes.
9134
9135 * genoutput.c (process_template): Strengthen the 2nd param within
9136 the generated "output_" functions "insn" from rtx to rtx_insn *.
9137
9138 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9139
9140 * tree-profile.c (tree_profiling): Skip external functions
9141 when doing coverage instrumentation.
9142 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9143
9144 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9145
9146 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9147 (vec_mergee): Likewise.
9148 (vec_mergeo): Likewise.
9149 (vec_cntlz): Likewise.
9150 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9151 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9152 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9153 VMRGEW, and VMRGOW.
9154 * doc/extend.texi: Document various forms of vec_cpsgn,
9155 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9156 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9157 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9158 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9159 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9160
9161 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9162
9163 * config/rs6000/rs6000.c (context.h): New include.
9164 (tree-pass.h): Likewise.
9165 (make_pass_analyze_swaps): New decl.
9166 (rs6000_option_override): Register pass_analyze_swaps.
9167 (swap_web_entry): New subsclass of web_entry_base (df.h).
9168 (special_handling_values): New enum.
9169 (union_defs): New function.
9170 (union_uses): Likewise.
9171 (insn_is_load_p): Likewise.
9172 (insn_is_store_p): Likewise.
9173 (insn_is_swap_p): Likewise.
9174 (rtx_is_swappable_p): Likewise.
9175 (insn_is_swappable_p): Likewise.
9176 (chain_purpose): New enum.
9177 (chain_contains_only_swaps): New function.
9178 (mark_swaps_for_removal): Likewise.
9179 (swap_const_vector_halves): Likewise.
9180 (adjust_subreg_index): Likewise.
9181 (permute_load): Likewise.
9182 (permute_store): Likewise.
9183 (handle_special_swappables): Likewise.
9184 (replace_swap_with_copy): Likewise.
9185 (dump_swap_insn_table): Likewise.
9186 (rs6000_analyze_swaps): Likewise.
9187 (pass_data_analyze_swaps): New pass_data.
9188 (pass_analyze_swaps): New rtl_opt_pass.
9189 (make_pass_analyze_swaps): New function.
9190 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9191
9192 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9193
9194 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9195 type from rtx to rtx_insn *.
9196 (create_copy_of_insn_rtx): Likewise.
9197 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9198 (create_copy_of_insn_rtx): Likewise, also for local "res".
9199
9200 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9201
9202 * rtl.h (find_first_parameter_load): Strengthen return type from
9203 rtx to rtx_insn *.
9204 * rtlanal.c (find_first_parameter_load): Strengthen return type
9205 from rtx to rtx_insn *. Add checked cast for now, to postpone
9206 strengthening the params.
9207
9208 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9209
9210 PR fortran/44054
9211 * diagnostic.c: Set default caret.
9212 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9213 line is needed.
9214 * diagnostic.h (struct diagnostic_context):
9215
9216 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9217
9218 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9219 (sel_bb_head): Strengthen return type insn_t (currently just an
9220 rtx) to rtx_insn *.
9221 (sel_bb_end): Likewise.
9222
9223 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9224 (sel_bb_head): Strengthen return type and local "head" from
9225 insn_t (currently just an rtx) to rtx_insn *.
9226 (sel_bb_end): Likewise for return type.
9227 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9228 working with insn.
9229
9230 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9231
9232 * basic-block.h (get_last_bb_insn): Strengthen return type from
9233 rtx to rtx_insn *.
9234 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9235 end".
9236
9237 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9238
9239 PR fortran/44054
9240 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9241 to here ...
9242 (diagnostic_report_diagnostic): ... from here.
9243 * toplev.c (general_init): Move code to c-family.
9244
9245 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9246
9247 * df.h (web_entry_base): Replace existing struct web_entry with a
9248 new class web_entry_base with only the predecessor member.
9249 (unionfind_root): Remove declaration and move to class member.
9250 (unionfind_union): Remove declaration and move to friend
9251 function.
9252 (union_defs): Remove declaration.
9253 * web.c (web_entry_base::unionfind_root): Modify to be member
9254 function and adjust accessors.
9255 (unionfind_union): Modify to be friend function and adjust
9256 accessors.
9257 (web_entry): New subclass of web_entry_base containing the reg
9258 member.
9259 (union_match_dups): Modify for struct -> class changes.
9260 (union_defs): Likewise.
9261 (entry_register): Likewise.
9262 (pass_web::execute): Likewise.
9263
9264 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9265
9266 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9267 builtin define __VEC_ELEMENT_REG_ORDER__.
9268
9269 2014-08-20 Martin Jambor <mjambor@suse.cz>
9270 Wei Mi <wmi@google.com>
9271
9272 PR ipa/60449
9273 PR middle-end/61776
9274 * tree-ssa-operands.c (update_stmt_operands): Remove
9275 MODIFIED_NORETURN_CALLS.
9276 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9277 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9278 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9279 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9280 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9281 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9282 (gimple_call_set_ctrl_altering): New func.
9283 (gimple_call_ctrl_altering_p): Ditto.
9284 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9285 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9286 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9287 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9288 remove MODIFIED_NORETURN_CALLS.
9289
9290 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9291
9292 * coverage.c (coverage_compute_profile_id): Return non-0;
9293 also handle symbols with unique name.
9294 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9295
9296 2014-08-20 Steve Ellcey <sellcey@mips.com>
9297
9298 PR middle-end/49191
9299 * doc/sourcebuild.texi (non_strict_align): New.
9300
9301 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9302
9303 * cgraphunit.c (ipa_passes, compile): Reshedule
9304 symtab_remove_unreachable_nodes passes; update comments.
9305 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9306 TODO_remove_functions before the pass; the functions ought to be
9307 already removed.
9308 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9309 TODO_remove_functions.
9310 * passes.c (pass_data_early_local_passes): Do not schedule function
9311 removal.
9312 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9313
9314 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9315
9316 PR c/59304
9317 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9318 before setting the option.
9319 * diagnostic.c (diagnostic_classify_diagnostic): Record
9320 command-line status.
9321
9322 2014-08-20 Richard Biener <rguenther@suse.de>
9323
9324 PR lto/62190
9325 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9326 to build uint{16,32,64}_type_node.
9327
9328 2014-08-20 Terry Guo <terry.guo@arm.com>
9329
9330 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9331 with immediate_operand.
9332
9333 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9334
9335 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9336 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9337 NULL.
9338
9339 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9340
9341 PR preprocessor/51303
9342 * incpath.c (remove_duplicates): Use cpp_warning.
9343
9344 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9345
9346 PR c/60975
9347 PR c/53063
9348 * doc/options.texi (CPP): Document it.
9349 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9350 * optc-gen.awk: Handle CPP.
9351 * opth-gen.awk: Likewise.
9352
9353 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9354
9355 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9356 rtx_insn *.
9357 (duplicate_insn_chain): Likewise.
9358 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9359 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9360 checked cast for now (until we can strengthen the params in the
9361 same way).
9362 (duplicate_insn_chain): Likewise.
9363
9364 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9365
9366 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9367 rtx_insn *.
9368 (prev_cc0_setter): Likewise.
9369
9370 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9371 rtx_insn *, adding checked casts for now as necessary.
9372 (prev_cc0_setter): Likewise.
9373
9374 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9375
9376 * expr.h (emit_move_insn): Strengthen return type from rtx to
9377 rtx_insn *.
9378 (emit_move_insn_1): Likewise.
9379 (emit_move_complex_push): Likewise.
9380 (emit_move_complex_parts): Likewise.
9381
9382 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9383 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9384 with insns.
9385 (emit_move_complex_push): Strengthen return type from rtx to
9386 rtx_insn *.
9387 (emit_move_complex): Likewise, also for local "ret".
9388 (emit_move_ccmode): Likewise.
9389 (emit_move_multi_word): Likewise for return type and locals
9390 "last_insn", "seq".
9391 (emit_move_insn_1): Likewise for return type and locals "result",
9392 "ret".
9393 (emit_move_insn): Likewise for return type and local "last_insn".
9394 (compress_float_constant): Likewise.
9395
9396 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9397
9398 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9399 from rtx to rtx_insn *.
9400
9401 * rtl.h (emit_insn_before): Likewise.
9402 (emit_insn_before_noloc): Likewise.
9403 (emit_insn_before_setloc): Likewise.
9404 (emit_jump_insn_before): Likewise.
9405 (emit_jump_insn_before_noloc): Likewise.
9406 (emit_jump_insn_before_setloc): Likewise.
9407 (emit_call_insn_before): Likewise.
9408 (emit_call_insn_before_noloc): Likewise.
9409 (emit_call_insn_before_setloc): Likewise.
9410 (emit_debug_insn_before): Likewise.
9411 (emit_debug_insn_before_noloc): Likewise.
9412 (emit_debug_insn_before_setloc): Likewise.
9413 (emit_label_before): Likewise.
9414 (emit_insn_after): Likewise.
9415 (emit_insn_after_noloc): Likewise.
9416 (emit_insn_after_setloc): Likewise.
9417 (emit_jump_insn_after): Likewise.
9418 (emit_jump_insn_after_noloc): Likewise.
9419 (emit_jump_insn_after_setloc): Likewise.
9420 (emit_call_insn_after): Likewise.
9421 (emit_call_insn_after_noloc): Likewise.
9422 (emit_call_insn_after_setloc): Likewise.
9423 (emit_debug_insn_after): Likewise.
9424 (emit_debug_insn_after_noloc): Likewise.
9425 (emit_debug_insn_after_setloc): Likewise.
9426 (emit_label_after): Likewise.
9427 (emit_insn): Likewise.
9428 (emit_debug_insn): Likewise.
9429 (emit_jump_insn): Likewise.
9430 (emit_call_insn): Likewise.
9431 (emit_label): Likewise.
9432 (gen_clobber): Likewise.
9433 (emit_clobber): Likewise.
9434 (gen_use): Likewise.
9435 (emit_use): Likewise.
9436 (emit): Likewise.
9437
9438 (emit_barrier_before): Strengthen return type from rtx to
9439 rtx_barrier *.
9440 (emit_barrier_after): Likewise.
9441 (emit_barrier): Likewise.
9442
9443 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9444 from rtx to rtx_insn *. Add checked casts for now when converting
9445 "last" from rtx to rtx_insn *.
9446 (emit_insn_before_noloc): Likewise for return type.
9447 (emit_jump_insn_before_noloc): Likewise.
9448 (emit_call_insn_before_noloc): Likewise.
9449 (emit_debug_insn_before_noloc): Likewise.
9450 (emit_barrier_before): Strengthen return type and local "insn"
9451 from rtx to rtx_barrier *.
9452 (emit_label_before): Strengthen return type from rtx to
9453 rtx_insn *. Add checked cast for now when returning param
9454 (emit_pattern_after_noloc): Strengthen return type from rtx to
9455 rtx_insn *. Add checked casts for now when converting "last" from
9456 rtx to rtx_insn *.
9457 (emit_insn_after_noloc): Strengthen return type from rtx to
9458 rtx_insn *.
9459 (emit_jump_insn_after_noloc): Likewise.
9460 (emit_call_insn_after_noloc): Likewise.
9461 (emit_debug_insn_after_noloc): Likewise.
9462 (emit_barrier_after): Strengthen return type from rtx to
9463 rtx_barrier *.
9464 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9465 Add checked cast for now when converting "label" from rtx to
9466 rtx_insn *.
9467 (emit_pattern_after_setloc): Strengthen return type from rtx to
9468 rtx_insn *. Add checked casts for now when converting "last" from
9469 rtx to rtx_insn *.
9470 (emit_pattern_after): Strengthen return type from rtx to
9471 rtx_insn *.
9472 (emit_insn_after_setloc): Likewise.
9473 (emit_insn_after): Likewise.
9474 (emit_jump_insn_after_setloc): Likewise.
9475 (emit_jump_insn_after): Likewise.
9476 (emit_call_insn_after_setloc): Likewise.
9477 (emit_call_insn_after): Likewise.
9478 (emit_debug_insn_after_setloc): Likewise.
9479 (emit_debug_insn_after): Likewise.
9480 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9481 when converting "last" from rtx to rtx_insn *.
9482 (emit_pattern_before): Strengthen return type from rtx to
9483 rtx_insn *.
9484 (emit_insn_before_setloc): Likewise.
9485 (emit_insn_before): Likewise.
9486 (emit_jump_insn_before_setloc): Likewise.
9487 (emit_jump_insn_before): Likewise.
9488 (emit_call_insn_before_setloc): Likewise.
9489 (emit_call_insn_before): Likewise.
9490 (emit_debug_insn_before_setloc): Likewise.
9491 (emit_debug_insn_before): Likewise.
9492 (emit_insn): Strengthen return type and locals "last", "insn",
9493 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9494 within cases where we know we have an insn.
9495 (emit_debug_insn): Likewise.
9496 (emit_jump_insn): Likewise.
9497 (emit_call_insn): Strengthen return type and local "insn" from rtx
9498 to rtx_insn *.
9499 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9500 a checked cast to rtx_insn * for now on "label".
9501 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9502 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9503 (emit_use): Likewise.
9504 (gen_use): Likewise, also for local "seq".
9505 (emit): Likewise for return type and local "insn".
9506 (rtx_insn): Likewise for return type and local "new_rtx".
9507
9508 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9509 from rtx to rtx_barrier *.
9510
9511 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9512 changed return type from rtx to rtx_insn *, we must update
9513 "emit_fn" type, and this in turn means updating...
9514 (frame_insn): ...this. Strengthen return type from rtx to
9515 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9516
9517 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9518
9519 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9520 rtx to rtx_jump_table_data *. Also for local.
9521 * rtl.h (emit_jump_table_data): Likewise.
9522
9523 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9524
9525 * basic-block.h (create_basic_block_structure): Strengthen third
9526 param "bb_note" from rtx to rtx_note *.
9527 * rtl.h (emit_note_before): Strengthen return type from rtx to
9528 rtx_note *.
9529 (emit_note_after): Likewise.
9530 (emit_note): Likewise.
9531 (emit_note_copy): Likewise. Also, strengthen param similarly.
9532 * function.h (struct rtl_data): Strengthen field
9533 "x_stack_check_probe_note" from rtx to rtx_note *.
9534
9535 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9536 from rtx to rtx_note *.
9537 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9538 "bb_note" from rtx to rtx_note *.
9539 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9540 when calling emit_note_copy.
9541 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9542 rtx_note *.
9543 (emit_note_after): Likewise.
9544 (emit_note_before): Likewise.
9545 (emit_note_copy): Likewise. Also, strengthen param similarly.
9546 (emit_note): Likewise.
9547 * except.c (emit_note_eh_region_end): Likewise for return type.
9548 Strengthen local "next" from rtx to rtx_insn *.
9549 (convert_to_eh_region_ranges): Strengthen local "note"
9550 from rtx to rtx_note *.
9551 * final.c (change_scope): Likewise.
9552 (reemit_insn_block_notes): Likewise, for both locals named "note".
9553 Also, strengthen local "insn" from rtx to rtx_insn *.
9554 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9555 rtx to rtx_note *.
9556 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9557 strengthen local "seq" from rtx to rtx_insn *.
9558 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9559 to rtx_note *.
9560 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9561 vec<rtx_note *>.
9562 (get_bb_note_from_pool): Strengthen return type from rtx to
9563 rtx_note *.
9564 (sel_create_basic_block): Strengthen local "new_bb_note" from
9565 insn_t to rtx_note *.
9566 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9567 "note" from rtx to rtx_note *.
9568 (emit_notes_in_bb): Likewise.
9569
9570 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9571
9572 * function.h (struct rtl_data): Strengthen field
9573 "x_parm_birth_insn" from rtx to rtx_insn *.
9574 * function.c (struct assign_parm_data_all): Strengthen fields
9575 "first_conversion_insn" and "last_conversion_insn" from rtx to
9576 rtx_insn *.
9577
9578 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9579
9580 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9581 to rtx_insn *; also for local "var_end_seq".
9582 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9583 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9584 "insn".
9585 (expand_gimple_cond): Likewise for locals "last2" and "last".
9586 (mark_transaction_restart_calls): Likewise for local "insn".
9587 (expand_gimple_stmt): Likewise for return type and locals "last"
9588 and "insn".
9589 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9590 (avoid_complex_debug_insns): Likewise for param "insn".
9591 (expand_debug_locations): Likewise for locals "insn", "last",
9592 "prev_insn" and "insn2".
9593 (expand_gimple_basic_block): Likewise for local "last".
9594 (construct_exit_block): Likewise for locals "head", "end",
9595 "orig_end".
9596 (pass_expand::execute): Likewise for locals "var_seq",
9597 "var_ret_seq", "next".
9598
9599 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9600
9601 * asan.h (asan_emit_stack_protection): Strengthen return type from
9602 rtx to rtx_insn *.
9603 * asan.c (asan_emit_stack_protection): Likewise. Add local
9604 "insns" to hold the return value.
9605
9606 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9607
9608 * basic-block.h (bb_note): Strengthen return type from rtx to
9609 rtx_note *.
9610 * sched-int.h (bb_note): Likewise.
9611 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9612
9613 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9614
9615 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9616 rtx_insn *.
9617
9618 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9619 "insn" from rtx to rtx_insn *.
9620 (make_debug_insn_raw): Strengthen return type from rtx to
9621 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9622 (make_jump_insn_raw): Strengthen return type from rtx to
9623 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9624 (make_call_insn_raw): Strengthen return type from rtx to
9625 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9626 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9627 callback from rtx to rtx_insn *; likewise for local "insn" and
9628 "next", adding a checked cast to rtx_insn in the relevant cases of
9629 the switch statement.
9630 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9631 callback from rtx to rtx_insn *.
9632 (emit_pattern_after_setloc): Likewise.
9633 (emit_pattern_after): Likewise.
9634 (emit_pattern_before_setloc): Likewise.
9635 (emit_pattern_before): Likewise.
9636
9637 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9638
9639 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9640 rtx_call_insn *.
9641 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9642 accepting an rtx_insn *.
9643 (last_call_insn): Strengthen return type from rtx to
9644 rtx_call_insn *.
9645
9646 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9647
9648 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9649 "insns" from rtx to rtx_insn *.
9650 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9651 locals "insn" and "prev".
9652
9653 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9654
9655 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9656 rtx_jump_table_data **.
9657
9658 * cfgbuild.c (make_edges): Introduce local "table", using it in
9659 place of "tmp" for jump table data.
9660 (find_bb_boundaries): Strengthen local "table" from rtx to
9661 rtx_jump_table_data *.
9662 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9663 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9664 (try_crossjump_to_edge): Likewise.
9665 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9666 "table".
9667 (patch_jump_insn): Introduce local "table", using it in place of
9668 "tmp" for jump table data.
9669 (force_nonfallthru_and_redirect): Introduce local "table", so that
9670 call to tablejump_p can receive an rtx_jump_table_data **. Update
9671 logic around the call to overwrite "note" appropriately if
9672 tablejump_p returns non-zero.
9673 (get_last_bb_insn): Introduce local "table", using it in place of
9674 "tmp" for jump table data.
9675 * dwarf2cfi.c (create_trace_edges): Likewise.
9676
9677 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9678 from rtx to rtx_jump_table_data *.
9679 (create_fix_barrier): Strengthen local "tmp" from rtx to
9680 rtx_jump_table_data *.
9681 (arm_reorg): Likewise for local "table".
9682
9683 * config/s390/s390.c (s390_chunkify_start): Likewise.
9684
9685 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9686
9687 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9688 rtx to rtx_jump_table_data *.
9689
9690 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9691 rtx_jump_table_data **. Add a checked cast when writing through
9692 the pointer: we know there that local "table" is non-NULL and that
9693 JUMP_TABLE_DATA_P (table) holds.
9694 (label_is_jump_target_p): Introduce local "table", using it in
9695 place of "tmp" for jump table data.
9696
9697 2014-08-19 Marek Polacek <polacek@redhat.com>
9698
9699 PR c++/62153
9700 * doc/invoke.texi: Document -Wbool-compare.
9701
9702 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9703
9704 * rtl.h (entry_of_function): Strengthen return type from rtx to
9705 rtx_insn *.
9706 * cfgrtl.c (entry_of_function): Likewise.
9707
9708 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9709
9710 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9711 rtx_insn *, adding a checked cast for now.
9712 (get_last_insn): Likewise.
9713
9714 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9715
9716 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9717 rtx_code_label *.
9718
9719 * emit-rtl.c (gen_label_rtx): Likewise.
9720
9721 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9722
9723 * rtl.h (previous_insn): Strengthen return type from rtx to
9724 rtx_insn *.
9725 (next_insn): Likewise.
9726 (prev_nonnote_insn): Likewise.
9727 (prev_nonnote_insn_bb): Likewise.
9728 (next_nonnote_insn): Likewise.
9729 (next_nonnote_insn_bb): Likewise.
9730 (prev_nondebug_insn): Likewise.
9731 (next_nondebug_insn): Likewise.
9732 (prev_nonnote_nondebug_insn): Likewise.
9733 (next_nonnote_nondebug_insn): Likewise.
9734 (prev_real_insn): Likewise.
9735 (next_real_insn): Likewise.
9736 (prev_active_insn): Likewise.
9737 (next_active_insn): Likewise.
9738
9739 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9740 rtx_insn *, adding a checked cast.
9741 (previous_insn): Likewise.
9742 (next_nonnote_insn): Likewise.
9743 (next_nonnote_insn_bb): Likewise.
9744 (prev_nonnote_insn): Likewise.
9745 (prev_nonnote_insn_bb): Likewise.
9746 (next_nondebug_insn): Likewise.
9747 (prev_nondebug_insn): Likewise.
9748 (next_nonnote_nondebug_insn): Likewise.
9749 (prev_nonnote_nondebug_insn): Likewise.
9750 (next_real_insn): Likewise.
9751 (prev_real_insn): Likewise.
9752 (next_active_insn): Likewise.
9753 (prev_active_insn): Likewise.
9754
9755 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9756 param "stepfunc" so that it returns an rtx_insn * rather than an
9757 rtx, to track the change to prev_nonnote_insn_bb, which is the
9758 only function this is called with.
9759 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9760
9761 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9762
9763 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9764 assert.
9765
9766 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9767
9768 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9769 (class rtx_nonjump_insn): Likewise.
9770 (class rtx_jump_insn): Likewise.
9771 (class rtx_call_insn): Likewise.
9772 (class rtx_jump_table_data): Likewise.
9773 (class rtx_barrier): Likewise.
9774 (class rtx_code_label): Likewise.
9775 (class rtx_note): Likewise.
9776
9777 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9778 adding the invariant DEBUG_INSN_P (X).
9779 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9780 the invariant NONJUMP_INSN_P (X).
9781 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9782 the invariant JUMP_P (X).
9783 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9784 the invariant CALL_P (X).
9785 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9786 invariant JUMP_TABLE_DATA_P (X).
9787 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9788 invariant BARRIER_P (X).
9789 (class rtx_code_label): New, a subclass of rtx_insn, adding
9790 the invariant LABEL_P (X).
9791 (class rtx_note): New, a subclass of rtx_insn, adding
9792 the invariant NOTE_P(X).
9793 (is_a_helper <rtx_debug_insn *>::test): New.
9794 (is_a_helper <rtx_nonjump_insn *>::test): New.
9795 (is_a_helper <rtx_jump_insn *>::test): New.
9796 (is_a_helper <rtx_call_insn *>::test): New.
9797 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9798 overloaded for both rtx and rtx_insn *.
9799 (is_a_helper <rtx_barrier *>::test): New.
9800 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9801 for both rtx and rtx_insn *.
9802 (is_a_helper <rtx_note *>::test): New.
9803
9804 2014-08-19 Marek Polacek <polacek@redhat.com>
9805
9806 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9807 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9808 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9809 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9810
9811 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9812
9813 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9814 rtx_insn *. To help with transition, for now, convert from an
9815 access macro into a pair of functions: BND_TO, returning an
9816 rtx_insn *, and...
9817 (SET_BND_TO): New function, for use where BND_TO is used as an
9818 lvalue.
9819
9820 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9821 SET_BND_TO.
9822 (BND_TO): New function, adding a checked cast.
9823 (SET_BND_TO): New function.
9824
9825 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9826 SET_BND_TO.
9827 (compute_av_set_on_boundaries): Likewise.
9828
9829 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9830
9831 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9832 destination if it is used in source.
9833 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9834 (*popcount<mode>2_falsedep_1): Likewise.
9835
9836 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9837
9838 PR other/62168
9839 * configure.ac: Set install_gold_as_default to no first.
9840 * configure: Regenerated.
9841
9842 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9843
9844 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9845 "note_list" field will eventually be an rtx_insn *. To help with
9846 transition, for now, convert from an access macro into a pair of
9847 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9848 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9849 used as an lvalue.
9850
9851 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9852 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9853
9854 * sel-sched-ir.c (init_bb): Likewise.
9855 (sel_restore_notes): Likewise.
9856 (move_bb_info): Likewise.
9857 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9858 (SET_BB_NOTE_LIST): New function.
9859
9860 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9861
9862 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9863 field will eventually be an rtx_insn *. To help with transition,
9864 for now, convert from an access macro into a pair of functions:
9865 VINSN_INSN_RTX, returning an rtx_insn *, and...
9866 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9867 is used as an lvalue.
9868
9869 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9870 SET_VINSN_INSN_RTX where it's used as an lvalue.
9871 (VINSN_INSN_RTX): New function.
9872 (SET_VINSN_INSN_RTX): New function.
9873
9874 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9875
9876 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9877 eventually be rtx_insn *, but to help with transition, for now,
9878 convert from an access macro into a pair of functions: DEP_PRO
9879 returning an rtx_insn * and...
9880 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9881 lvalue, returning an rtx&.
9882 (DEP_CON): Analogous changes to DEP_PRO above.
9883 (SET_DEP_CON): Likewise.
9884
9885 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9886 an lvalue to SET_DEP_CON.
9887 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9888 (sd_copy_back_deps): Likewise for DEP_CON.
9889 (DEP_PRO): New function, adding a checked cast for now.
9890 (DEP_CON): Likewise.
9891 (SET_DEP_PRO): New function.
9892 (SET_DEP_CON): Likewise.
9893
9894 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9895
9896 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9897 (extra_options): Add i386/cygwin.opt.
9898 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9899 (CPP_SPEC): Accept -pthread.
9900 (LINK_SPEC): Ditto.
9901 (GOMP_SELF_SPECS): Update comment.
9902 * config/i386/cygwin.opt: New file for -pthread flag.
9903
9904 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9905
9906 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9907 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9908 that we can return an rtx_insn *.
9909
9910 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9911
9912 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9913 when building executables, not DLLs. Add --large-address-aware
9914 under the same conditions.
9915 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9916 when building executables, not DLLs. Add --large-address-aware
9917 under the same conditions when using -m32.
9918
9919 * config/i386/cygwin-stdint.h: Throughout, make type
9920 definitions dependent on target architecture, not host.
9921
9922 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9923
9924 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9925 the return type from rtx to rtx_insn *, which will enable various
9926 conversions in followup patches. For now this is is done by a
9927 checked cast.
9928 (NEXT_INSN): Likewise.
9929 (SET_PREV_INSN): Convert to an inline function. This is intended
9930 for use as an lvalue, and so returns an rtx& to allow in-place
9931 modification.
9932 (SET_NEXT_INSN): Likewise.
9933
9934 2014-07-08 Mark Wielaard <mjw@redhat.com>
9935
9936 PR debug/59051
9937 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9938
9939 2014-08-19 Marek Polacek <polacek@redhat.com>
9940
9941 PR c/61271
9942 * cgraphunit.c (handle_alias_pairs): Fix condition.
9943
9944 2014-08-19 Richard Biener <rguenther@suse.de>
9945
9946 * gimple-fold.c (fold_gimple_assign): Properly build a
9947 null-pointer constant when devirtualizing addresses.
9948
9949 2014-07-07 Mark Wielaard <mjw@redhat.com>
9950
9951 * dwarf2out.c (decl_quals): New function.
9952 (modified_type_die): Take one cv_quals argument instead of two,
9953 one for const and one for volatile.
9954 (add_type_attribute): Likewise.
9955 (generic_parameter_die): Call add_type_attribute with one modifier
9956 argument.
9957 (base_type_for_mode): Likewise.
9958 (add_bounds_info): Likewise.
9959 (add_subscript_info): Likewise.
9960 (gen_array_type_die): Likewise.
9961 (gen_descr_array_type_die): Likewise.
9962 (gen_entry_point_die): Likewise.
9963 (gen_enumeration_type_die): Likewise.
9964 (gen_formal_parameter_die): Likewise.
9965 (gen_subprogram_die): Likewise.
9966 (gen_variable_die): Likewise.
9967 (gen_const_die): Likewise.
9968 (gen_field_die): Likewise.
9969 (gen_pointer_type_die): Likewise.
9970 (gen_reference_type_die): Likewise.
9971 (gen_ptr_to_mbr_type_die): Likewise.
9972 (gen_inheritance_die): Likewise.
9973 (gen_subroutine_type_die): Likewise.
9974 (gen_typedef_die): Likewise.
9975 (force_type_die): Likewise.
9976
9977 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9978
9979 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9980 if unset.
9981 * configure: Regenerate.
9982
9983 2014-08-19 Richard Biener <rguenther@suse.de>
9984
9985 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9986 DECL_EXTERNALs in BLOCKs as non-references.
9987 * tree-streamer-out.c (streamer_write_chain): Likewise.
9988
9989 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9990 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9991 Anna Tikhonova <anna.tikhonova@intel.com>
9992 Ilya Tocar <ilya.tocar@intel.com>
9993 Andrey Turetskiy <andrey.turetskiy@intel.com>
9994 Ilya Verbin <ilya.verbin@intel.com>
9995 Kirill Yukhin <kirill.yukhin@intel.com>
9996 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9997
9998 * config/i386/sse.md
9999 (define_mode_iterator VI48_AVX512F): Delete.
10000 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10001 (define_mode_iterator VI2_AVX512VL): Ditto.
10002 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10003 Delete.
10004 (define_insn
10005 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10006 New.
10007 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10008 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10009 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10010 with VI48_AVX512F_AVX512VL): New.
10011 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10012 with VI2_AVX512VL): Ditto.
10013
10014 2014-08-19 Marek Polacek <polacek@redhat.com>
10015
10016 * doc/invoke.texi: Document -Wc99-c11-compat.
10017
10018 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10019
10020 * rtl.h (PREV_INSN): Split macro in two: the existing one,
10021 for rvalues, and...
10022 (SET_PREV_INSN): New macro, for use as an lvalue.
10023 (NEXT_INSN, SET_NEXT_INSN): Likewise.
10024
10025 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10026 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10027 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10028 (fixup_abnormal_edges): Likewise.
10029 (unlink_insn_chain): Likewise.
10030 (fixup_reorder_chain): Likewise.
10031 (cfg_layout_delete_block): Likewise.
10032 (cfg_layout_merge_blocks): Likewise.
10033 * combine.c (update_cfg_for_uncondjump): Likewise.
10034 * emit-rtl.c (link_insn_into_chain): Likewise.
10035 (remove_insn): Likewise.
10036 (delete_insns_since): Likewise.
10037 (reorder_insns_nobb): Likewise.
10038 (emit_insn_after_1): Likewise.
10039 * final.c (rest_of_clean_state): Likewise.
10040 (final_scan_insn): Likewise.
10041 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10042 * haifa-sched.c (concat_note_lists): Likewise.
10043 (remove_notes): Likewise.
10044 (restore_other_notes): Likewise.
10045 (move_insn): Likewise.
10046 (unlink_bb_notes): Likewise.
10047 (restore_bb_notes): Likewise.
10048 * jump.c (delete_for_peephole): Likewise.
10049 * optabs.c (emit_libcall_block_1): Likewise.
10050 * reorg.c (emit_delay_sequence): Likewise.
10051 (fill_simple_delay_slots): Likewise.
10052 * sel-sched-ir.c (sel_move_insn): Likewise.
10053 (sel_remove_insn): Likewise.
10054 (get_bb_note_from_pool): Likewise.
10055 * sel-sched.c (move_nop_to_previous_block): Likewise.
10056
10057 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10058 * config/c6x/c6x.c (gen_one_bundle): Likewise.
10059 (c6x_gen_bundles): Likewise.
10060 (hwloop_optimize): Likewise.
10061 * config/frv/frv.c (frv_function_prologue): Likewise.
10062 (frv_register_nop): Likewise.
10063 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10064 (ia64_reorg): Likewise.
10065 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10066 (mep_make_bundle): Likewise.
10067 (mep_bundle_insns): Likewise.
10068 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10069 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10070 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10071
10072 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10073
10074 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
10075 return type from rtx to rtx_insn *.
10076 (BB_END): Likewise.
10077 (BB_HEADER): Likewise.
10078 (BB_FOOTER): Likewise.
10079 (SET_BB_HEAD): Convert to a function.
10080 (SET_BB_END): Likewise.
10081 (SET_BB_HEADER): Likewise.
10082 (SET_BB_FOOTER): Likewise.
10083
10084 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10085 Strengthen the return type from rtx to rtx_insn *. For now, this
10086 is done by adding a checked cast, but this will eventually
10087 become a field lookup.
10088 (BB_END): Likewise.
10089 (BB_HEADER): Likewise.
10090 (BB_FOOTER): Likewise.
10091 (SET_BB_HEAD): New function, from macro of same name. This is
10092 intended for use as an lvalue, and so returns an rtx& to allow
10093 in-place modification.
10094 (SET_BB_END): Likewise.
10095 (SET_BB_HEADER): Likewise.
10096 (SET_BB_FOOTER): Likewise.
10097
10098 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10099
10100 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10101 for rvalues, and...
10102 (SET_BB_HEAD): New macro, for use as a lvalue.
10103 (BB_END, SET_BB_END): Likewise.
10104 (BB_HEADER, SET_BB_HEADER): Likewise.
10105 (BB_FOOTER, SET_BB_FOOTER): Likewise.
10106
10107 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10108 of BB_* macros into SET_BB_* macros.
10109 (fix_crossing_unconditional_branches): Likewise.
10110 * caller-save.c (save_call_clobbered_regs): Likewise.
10111 (insert_one_insn): Likewise.
10112 * cfgbuild.c (find_bb_boundaries): Likewise.
10113 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10114 (outgoing_edges_match): Likewise.
10115 (try_optimize_cfg): Likewise.
10116 * cfgexpand.c (expand_gimple_cond): Likewise.
10117 (expand_gimple_tailcall): Likewise.
10118 (expand_gimple_basic_block): Likewise.
10119 (construct_exit_block): Likewise.
10120 * cfgrtl.c (delete_insn): Likewise.
10121 (create_basic_block_structure): Likewise.
10122 (rtl_delete_block): Likewise.
10123 (rtl_split_block): Likewise.
10124 (emit_nop_for_unique_locus_between): Likewise.
10125 (rtl_merge_blocks): Likewise.
10126 (block_label): Likewise.
10127 (try_redirect_by_replacing_jump): Likewise.
10128 (emit_barrier_after_bb): Likewise.
10129 (fixup_abnormal_edges): Likewise.
10130 (record_effective_endpoints): Likewise.
10131 (relink_block_chain): Likewise.
10132 (fixup_reorder_chain): Likewise.
10133 (fixup_fallthru_exit_predecessor): Likewise.
10134 (cfg_layout_duplicate_bb): Likewise.
10135 (cfg_layout_split_block): Likewise.
10136 (cfg_layout_delete_block): Likewise.
10137 (cfg_layout_merge_blocks): Likewise.
10138 * combine.c (update_cfg_for_uncondjump): Likewise.
10139 * emit-rtl.c (add_insn_after): Likewise.
10140 (remove_insn): Likewise.
10141 (reorder_insns): Likewise.
10142 (emit_insn_after_1): Likewise.
10143 * haifa-sched.c (get_ebb_head_tail): Likewise.
10144 (restore_other_notes): Likewise.
10145 (move_insn): Likewise.
10146 (sched_extend_bb): Likewise.
10147 (fix_jump_move): Likewise.
10148 * ifcvt.c (noce_process_if_block): Likewise.
10149 (dead_or_predicable): Likewise.
10150 * ira.c (update_equiv_regs): Likewise.
10151 * reg-stack.c (change_stack): Likewise.
10152 * sel-sched-ir.c (sel_move_insn): Likewise.
10153 * sel-sched.c (move_nop_to_previous_block): Likewise.
10154
10155 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10156 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10157
10158 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10159
10160 * rtl.h (for_each_rtx_in_insn): New function.
10161 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10162
10163 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10164
10165 * coretypes.h (class rtx_insn): Add forward declaration.
10166
10167 * rtl.h: Include is-a.h.
10168 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10169 workaround to ensure gengtype knows inheritance is occurring,
10170 whilst continuing to use the pre-existing special-casing for
10171 rtx_def.
10172 (class rtx_insn): New subclass of rtx_def, adding the
10173 invariant that we're dealing with something we can sanely use
10174 INSN_UID, NEXT_INSN, PREV_INSN on.
10175 (is_a_helper <rtx_insn *>::test): New.
10176 (is_a_helper <const rtx_insn *>::test): New.
10177
10178 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10179
10180 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10181
10182 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10183
10184 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10185 comdats as extern.
10186
10187 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10188
10189 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10190 to BUILT_IN_UNREACHABLE.
10191
10192 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10193
10194 PR target/62011
10195 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10196 New tune flag.
10197 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10198 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10199 (ffs<mode>2): Do not expand with tzcnt for
10200 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10201 (ffssi2_no_cmove): Ditto.
10202 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10203 (ctz<mode>2): New expander.
10204 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10205 (*ctz<mode>2_falsedep): New insn.
10206 (*ctz<mode>2): Rename from ctz<mode>2.
10207 (clz<mode>2_lzcnt): New expander.
10208 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10209 (*clz<mode>2_lzcnt_falsedep): New insn.
10210 (*clz<mode>2): Rename from ctz<mode>2.
10211 (popcount<mode>2): New expander.
10212 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10213 (*popcount<mode>2_falsedep): New insn.
10214 (*popcount<mode>2): Rename from ctz<mode>2.
10215 (*popcount<mode>2_cmp): Remove.
10216 (*popcountsi2_cmp_zext): Ditto.
10217
10218 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10219
10220 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10221 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10222 * config/microblaze/microblaze.h
10223 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10224
10225 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10226
10227 PR other/62168
10228 * configure.ac: Set install_gold_as_default to no for
10229 --enable-gold=no.
10230 * configure: Regenerated.
10231
10232 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10233
10234 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10235 * config.in: Add undef of HAVE_isl.
10236 * configure: Regenerate.
10237 * configure.ac: Add definition of HAVE_isl.
10238 * graphite-blocking.c: Add checking of HAVE_isl.
10239 * graphite-dependences.c: Likewise.
10240 * graphite-interchange.c: Likewise.
10241 * graphite-isl-ast-to-gimple.c: Likewise.
10242 * graphite-optimize-isl.c: Likewise.
10243 * graphite-poly.c: Likewise.
10244 * graphite-scop-detection.c: Likewise.
10245 * graphite-sese-to-poly.c: Likewise.
10246 * graphite.c: Likewise.
10247 * toplev.c: Replace the checking of HAVE_cloog with the checking
10248 of HAVE_isl.
10249
10250 2014-08-18 Richard Biener <rguenther@suse.de>
10251
10252 PR tree-optimization/62090
10253 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10254 (fold_builtin_3): Do not fold snprintf.
10255 (fold_builtin_4): Likewise.
10256 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10257 moved from builtins.c.
10258 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10259 (gimple_fold_builtin): Do not fold sprintf here.
10260
10261 2014-08-18 Richard Biener <rguenther@suse.de>
10262
10263 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10264 code to ...
10265 (maybe_canonicalize_mem_ref_addr): ... this function.
10266 (fold_stmt_1): Apply it here before all simplification.
10267
10268 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10269
10270 PR ipa/61800
10271 * cgraph.h (cgraph_node::create_indirect_edge): Add
10272 compute_indirect_info param.
10273 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10274 indirect_info only when it is required.
10275 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10276 indirect_info fore cloned indirect edge.
10277
10278 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10279 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10280 Anna Tikhonova <anna.tikhonova@intel.com>
10281 Ilya Tocar <ilya.tocar@intel.com>
10282 Andrey Turetskiy <andrey.turetskiy@intel.com>
10283 Ilya Verbin <ilya.verbin@intel.com>
10284 Kirill Yukhin <kirill.yukhin@intel.com>
10285 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10286
10287 * config/i386/sse.md
10288 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10289 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10290
10291 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10292 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10293 Anna Tikhonova <anna.tikhonova@intel.com>
10294 Ilya Tocar <ilya.tocar@intel.com>
10295 Andrey Turetskiy <andrey.turetskiy@intel.com>
10296 Ilya Verbin <ilya.verbin@intel.com>
10297 Kirill Yukhin <kirill.yukhin@intel.com>
10298 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10299
10300 * config/i386/sse.md
10301 (define_mode_iterator VF1_AVX512VL): New.
10302 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10303 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10304 New.
10305
10306 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10307 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10308 Anna Tikhonova <anna.tikhonova@intel.com>
10309 Ilya Tocar <ilya.tocar@intel.com>
10310 Andrey Turetskiy <andrey.turetskiy@intel.com>
10311 Ilya Verbin <ilya.verbin@intel.com>
10312 Kirill Yukhin <kirill.yukhin@intel.com>
10313 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10314
10315 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10316 * config/i386/i386.md
10317 (define_code_iterator any_float): New.
10318 (define_code_attr floatsuffix): New.
10319 * config/i386/sse.md
10320 (define_mode_iterator VF1_128_256VL): New.
10321 (define_mode_iterator VF2_512_256VL): New.
10322 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10323 TARGET check.
10324 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10325 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10326 New.
10327 (define_mode_attr qq2pssuff): New.
10328 (define_mode_attr sselongvecmode): New.
10329 (define_mode_attr sselongvecmodelower): New.
10330 (define_mode_attr sseintvecmode3): New.
10331 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10332 New.
10333 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10334 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10335 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10336 (define_insn "ufloatv2siv2df2<mask_name>"): New.
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/sse.md
10348 (define_mode_iterator VF2_AVX512VL): New.
10349 (define_mode_attr sseintvecmode2): New.
10350 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10351 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10352 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10353 (define_insn
10354 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10355 Ditto.
10356 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10357 Ditto.
10358 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10359 Ditto.
10360
10361 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10362 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10363 Anna Tikhonova <anna.tikhonova@intel.com>
10364 Ilya Tocar <ilya.tocar@intel.com>
10365 Andrey Turetskiy <andrey.turetskiy@intel.com>
10366 Ilya Verbin <ilya.verbin@intel.com>
10367 Kirill Yukhin <kirill.yukhin@intel.com>
10368 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10369
10370 * config/i386/i386.md
10371 (define_insn "*movoi_internal_avx"): Add evex version.
10372 (define_insn "*movti_internal"): Ditto.
10373
10374 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10375 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10376 Anna Tikhonova <anna.tikhonova@intel.com>
10377 Ilya Tocar <ilya.tocar@intel.com>
10378 Andrey Turetskiy <andrey.turetskiy@intel.com>
10379 Ilya Verbin <ilya.verbin@intel.com>
10380 Kirill Yukhin <kirill.yukhin@intel.com>
10381 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10382
10383 * config/i386/i386.md
10384 (define_attr "isa"): Add avx512dq, noavx512dq.
10385 (define_attr "enabled"): Ditto.
10386 * config/i386/sse.md
10387 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10388
10389 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10390 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10391 Anna Tikhonova <anna.tikhonova@intel.com>
10392 Ilya Tocar <ilya.tocar@intel.com>
10393 Andrey Turetskiy <andrey.turetskiy@intel.com>
10394 Ilya Verbin <ilya.verbin@intel.com>
10395 Kirill Yukhin <kirill.yukhin@intel.com>
10396 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10397
10398 * config/i386/i386.c
10399 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10400 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10401 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10402 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10403 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10404 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10405 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10406 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10407 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10408 * config/i386/sse.md
10409 (define_mode_iterator VMOVE): Allow V4TI mode.
10410 (define_mode_iterator V_AVX512VL): New.
10411 (define_mode_iterator V): New handling for AVX512VL.
10412 (define_insn "avx512f_load<mode>_mask"): Delete.
10413 (define_insn "<avx512>_load<mode>_mask"): New.
10414 (define_insn "avx512f_store<mode>_mask"): Delete.
10415 (define_insn "<avx512>_store<mode>_mask"): New.
10416
10417
10418 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10419
10420 PR sanitizer/62089
10421 * asan.c (instrument_derefs): Fix bitfield check.
10422
10423 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10424
10425 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10426 * config/rs6000/htm.md (ttest): Remove clobber.
10427 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10428 (and_operand): Reformat.
10429 (and_2rld_operand): New predicate.
10430 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10431 parameter.
10432 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10433 parameter. Handle AND directly.
10434 (rs6000_split_logical_di): Remove last parameter.
10435 (rs6000_split_logical): Remove last parameter. Remove obsolete
10436 comment.
10437 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10438 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10439 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10440 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10441 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10442 and 5 anonymous splitters): Delete.
10443 (and<mode>3): New expander.
10444 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10445 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10446 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10447 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10448 (floatdisf2_internal1): Remove clobbers.
10449 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10450 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10451 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10452 (and<mode>3 for BOOL_128): Remove clobber.
10453 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10454 rs6000_split_logical.
10455 (*bool<mode>3_internal for BOOL_128): Adjust call of
10456 rs6000_split_logical.
10457 (*boolc<mode>3_internal1 for BOOL_128,
10458 *boolc<mode>3_internal2 for BOOL_128,
10459 *boolcc<mode>3_internal1 for BOOL_128,
10460 *boolcc<mode>3_internal2 for BOOL_128,
10461 *eqv<mode>3_internal1 for BOOL_128,
10462 *eqv<mode>3_internal2 for BOOL_128,
10463 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10464 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10465 clobber.
10466 (*vec_reload_and_reg_<mptrsize>): Delete.
10467
10468 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10469
10470 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10471 and split, *boolccsi3_internal3 and split): Delete.
10472 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10473 *boolccdi3_internal3 and split): Delete.
10474 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10475 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10476
10477 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10478
10479 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10480 and split, *boolcsi3_internal3 and split): Delete.
10481 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10482 *boolcdi3_internal3 and split): Delete.
10483 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10484
10485 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10486
10487 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10488 <'u'>: Also support printing the low-order 16 bits.
10489 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10490 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10491 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10492 *booldi3_internal3 and split): Delete.
10493 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10494 *bool<mode>3_dot2): New.
10495 (two anonymous define_splits for non_logical_cint_operand): Merge.
10496
10497 2014-08-17 Marek Polacek <polacek@redhat.com>
10498 Manuel López-Ibáñez <manu@gcc.gnu.org>
10499
10500 PR c/62059
10501 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10502 (diagnostic_show_locus): Don't print caret diagnostic
10503 if a column is larger than the line_width.
10504
10505 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10506
10507 * common.opt: Make the ISL AST generator to be the main code generator
10508 of Graphite.
10509
10510 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10511
10512 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10513
10514 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10515
10516 PR target/61641
10517 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10518 Declare.
10519 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10520 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10521 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10522 Define.
10523 * config/pa/pa.md (begin_brtab): Delete insn.
10524 (end_brtab): Likewise.
10525
10526 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10527
10528 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10529
10530 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10531
10532 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10533 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10534 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10535 (get_dynamic_type): Remove.
10536 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10537 (clear_speculation): Bring to ipa-deivrt.h
10538 (get_class_context): Rename to ...
10539 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10540 (contains_type_p): Update.
10541 (get_dynamic_type): Rename to ...
10542 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10543 (possible_polymorphic_call_targets): UPdate.
10544 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10545 * ipa-prop.c (ipa_analyze_call_uses): Update.
10546
10547 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10548
10549 * doc/invoke.texi (SH options): Document missing processor variant
10550 options. Remove references to Hitachi. Undocument deprecated mspace
10551 option.
10552
10553 2014-08-15 Jason Merrill <jason@redhat.com>
10554
10555 * tree.c (type_hash_canon): Uncomment assert.
10556
10557 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10558
10559 * input.h (in_system_header_at): Add comment.
10560
10561 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10562
10563 PR fortran/44054
10564 * diagnostic.c (build_message_string): Make it extern.
10565 * diagnostic.h (build_message_string): Make it extern.
10566
10567 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10568
10569 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10570 load/store from/to non-floating class pseudo.
10571
10572 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10573
10574 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10575
10576 2014-08-15 Richard Biener <rguenther@suse.de>
10577
10578 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10579 (get_constraint_for_ssa_var): Remove dead code.
10580 (get_constraint_for_1): Adjust.
10581 (find_what_var_points_to): Likewise.
10582 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10583
10584 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10585
10586 PR target/61878
10587 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10588 (_mm512_mask_cmpge_epu32_mask): Ditto.
10589 (_mm512_cmpge_epu32_mask): Ditto.
10590 (_mm512_mask_cmpge_epi64_mask): Ditto.
10591 (_mm512_cmpge_epi64_mask): Ditto.
10592 (_mm512_mask_cmpge_epu64_mask): Ditto.
10593 (_mm512_cmpge_epu64_mask): Ditto.
10594 (_mm512_mask_cmple_epi32_mask): Ditto.
10595 (_mm512_cmple_epi32_mask): Ditto.
10596 (_mm512_mask_cmple_epu32_mask): Ditto.
10597 (_mm512_cmple_epu32_mask): Ditto.
10598 (_mm512_mask_cmple_epi64_mask): Ditto.
10599 (_mm512_cmple_epi64_mask): Ditto.
10600 (_mm512_mask_cmple_epu64_mask): Ditto.
10601 (_mm512_cmple_epu64_mask): Ditto.
10602 (_mm512_mask_cmplt_epi32_mask): Ditto.
10603 (_mm512_cmplt_epi32_mask): Ditto.
10604 (_mm512_mask_cmplt_epu32_mask): Ditto.
10605 (_mm512_cmplt_epu32_mask): Ditto.
10606 (_mm512_mask_cmplt_epi64_mask): Ditto.
10607 (_mm512_cmplt_epi64_mask): Ditto.
10608 (_mm512_mask_cmplt_epu64_mask): Ditto.
10609 (_mm512_cmplt_epu64_mask): Ditto.
10610 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10611 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10612 (_mm512_cmpneq_epu32_mask): Ditto.
10613 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10614 (_mm512_cmpneq_epi64_mask): Ditto.
10615 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10616 (_mm512_cmpneq_epu64_mask): Ditto.
10617 (_mm512_castpd_ps): Ditto.
10618 (_mm512_castpd_si512): Ditto.
10619 (_mm512_castps_pd): Ditto.
10620 (_mm512_castps_si512): Ditto.
10621 (_mm512_castsi512_ps): Ditto.
10622 (_mm512_castsi512_pd): Ditto.
10623 (_mm512_castpd512_pd128): Ditto.
10624 (_mm512_castps512_ps128): Ditto.
10625 (_mm512_castsi512_si128): Ditto.
10626 (_mm512_castpd512_pd256): Ditto.
10627 (_mm512_castps512_ps256): Ditto.
10628 (_mm512_castsi512_si256): Ditto.
10629 (_mm512_castpd128_pd512): Ditto.
10630 (_mm512_castps128_ps512): Ditto.
10631 (_mm512_castsi128_si512): Ditto.
10632 (_mm512_castpd256_pd512): Ditto.
10633 (_mm512_castps256_ps512): Ditto.
10634 (_mm512_castsi256_si512): Ditto.
10635 (_mm512_cmpeq_epu32_mask): Ditto.
10636 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10637 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10638 (_mm512_cmpeq_epu64_mask): Ditto.
10639 (_mm512_cmpgt_epu32_mask): Ditto.
10640 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10641 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10642 (_mm512_cmpgt_epu64_mask): Ditto.
10643 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10644 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10645 * config/i386/i386.c (enum ix86_builtins): Add
10646 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10647 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10648 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10649 (bdesc_args): Add __builtin_ia32_si512_256si,
10650 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10651 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10652 __builtin_ia32_pd512_pd.
10653 (ix86_expand_args_builtin): Handle new FTYPEs.
10654 * config/i386/sse.md (castmode): Add 512-bit modes.
10655 (AVX512MODE2P): New.
10656 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10657 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10658
10659 2014-08-15 Richard Biener <rguenther@suse.de>
10660
10661 * fold-const.c (tree_swap_operands_p): Put all constants
10662 last, also strip sign-changing NOPs when considering further
10663 canonicalization. Canonicalize also when optimizing for size.
10664
10665 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10666
10667 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10668 one_match > zero_match case to just before simple_sequence.
10669
10670 2014-08-15 Richard Biener <rguenther@suse.de>
10671
10672 * data-streamer.h (streamer_string_index, string_for_index):
10673 Remove.
10674 * data-streamer-out.c (streamer_string_index): Make static.
10675 * data-streamer-in.c (string_for_index): Likewise.
10676 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10677 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10678
10679 2014-08-15 Richard Biener <rguenther@suse.de>
10680
10681 PR tree-optimization/62031
10682 * tree-data-ref.c (dr_analyze_indices): Do not set
10683 DR_UNCONSTRAINED_BASE.
10684 (dr_may_alias_p): All indirect accesses have to go the
10685 formerly DR_UNCONSTRAINED_BASE path.
10686 * tree-data-ref.h (struct indices): Remove
10687 unconstrained_base member.
10688 (DR_UNCONSTRAINED_BASE): Remove.
10689
10690 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10691
10692 PR middle-end/62092
10693 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10694 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10695 in OMP_CLAUSE_MAP in some outer target region.
10696
10697 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10698
10699 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10700 name_expansion_cache.
10701 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10702 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10703 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10704 (difference_cannot_overflow_p): New parameter. Use affine
10705 expansion for equality check.
10706 (iv_elimination_compare_lt): Pass new argument.
10707
10708 2014-08-14 DJ Delorie <dj@redhat.com>
10709
10710 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10711 variables to the accumulator.
10712
10713 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10714 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10715 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10716 with far-far moves.
10717
10718 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10719 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10720 (umulqihi3_virt): Likewise.
10721 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10722 (umulqihi3_real): Likewise.
10723
10724 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10725
10726 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10727
10728 PR tree-optimization/62091
10729 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10730 function_entry_reached.
10731 (walk_aliased_vdefs): Clear it here.
10732 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10733
10734 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10735
10736 * ipa-utils.h (compare_virtual_tables): Declare.
10737 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10738
10739 2014-08-14 Marek Polacek <polacek@redhat.com>
10740
10741 DR 458
10742 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10743 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10744
10745 2014-08-14 Tom de Vries <tom@codesourcery.com>
10746
10747 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10748
10749 2014-08-14 Tom de Vries <tom@codesourcery.com>
10750
10751 PR rtl-optimization/62004
10752 PR rtl-optimization/62030
10753 * ifcvt.c (rtx_interchangeable_p): New function.
10754 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10755 * emit-rtl.h (mem_attrs_eq_p): Declare.
10756
10757 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10758
10759 * graphite-scop-detection.c:
10760 Add inclusion of cp-tree.h.
10761 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10762 in case they are pointers to object types
10763
10764 2014-08-14 Richard Biener <rguenther@suse.de>
10765
10766 * BASE-VER: Change to 5.0.0
10767
10768 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10769 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10770 Anna Tikhonova <anna.tikhonova@intel.com>
10771 Ilya Tocar <ilya.tocar@intel.com>
10772 Andrey Turetskiy <andrey.turetskiy@intel.com>
10773 Ilya Verbin <ilya.verbin@intel.com>
10774 Kirill Yukhin <kirill.yukhin@intel.com>
10775 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10776
10777 * config/i386/sse.md (define_mode_attr avx512): New.
10778 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10779 V4DI modes.
10780 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10781 (define_mode_attr ssse3_avx2): Ditto.
10782 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10783 (define_mode_attr avx2_avx512bw): New.
10784 (define_mode_attr ssedoublemodelower): New.
10785 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10786 V32HI, V64QI modes.
10787 (define_mode_attr ssebytemode): Allow V8DI modes.
10788 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10789 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10790 (define_mode_attr ssePSmode2): New.
10791 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10792 V16HI, V32HI modes.
10793 (define_mode_attr dbpsadbwmode): New.
10794 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10795 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10796 (vi8_sse4_1_avx2_avx512): New.
10797 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10798 mode attribute.
10799 (define_mode_attr blendbits): Move before its immediate use.
10800
10801 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10802 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10803 Anna Tikhonova <anna.tikhonova@intel.com>
10804 Ilya Tocar <ilya.tocar@intel.com>
10805 Andrey Turetskiy <andrey.turetskiy@intel.com>
10806 Ilya Verbin <ilya.verbin@intel.com>
10807 Kirill Yukhin <kirill.yukhin@intel.com>
10808 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10809
10810 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10811 * config/i386/subst.md
10812 (define_mode_iterator SUBST_V): Update.
10813 (define_mode_iterator SUBST_A): Ditto.
10814 (define_subst_attr "mask_operand7"): New.
10815 (define_subst_attr "mask_operand10"): New.
10816 (define_subst_attr "mask_operand_arg34") : New.
10817 (define_subst_attr "mask_expand_op3"): New.
10818 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10819 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10820 (define_subst_attr "mask_avx512vl_condition"): New.
10821 (define_subst_attr "round_mask_operand4"): Ditto.
10822 (define_subst_attr "round_mask_scalar_op3"): Delete.
10823 (define_subst_attr "round_mask_op4"): New.
10824 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10825 V16SImode.
10826 (define_subst_attr "round_modev8sf_condition"): New.
10827 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10828 <MODE>mode.
10829 (define_subst_attr "round_saeonly_mask_operand4"): New.
10830 (define_subst_attr "round_saeonly_mask_op4"): New.
10831 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10832 V8DImode, V16SImode.
10833 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10834 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10835 (define_subst_attr "mask_expand4_args"): New.
10836 (define_subst "mask_expand4"): New.
10837
10838 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10839 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10840 Anna Tikhonova <anna.tikhonova@intel.com>
10841 Ilya Tocar <ilya.tocar@intel.com>
10842 Andrey Turetskiy <andrey.turetskiy@intel.com>
10843 Ilya Verbin <ilya.verbin@intel.com>
10844 Kirill Yukhin <kirill.yukhin@intel.com>
10845 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10846
10847 * config/i386/i386.md
10848 (define_attr "isa"): Add avx512bw,noavx512bw.
10849 (define_attr "enabled"): Ditto.
10850 (define_split): Add 32/64-bit mask logic.
10851 (define_insn "*k<logic>qi"): New.
10852 (define_insn "*k<logic>hi"): New.
10853 (define_insn "*anddi_1"): Add mask version.
10854 (define_insn "*andsi_1"): Ditto.
10855 (define_insn "*<code><mode>_1"): Ditto.
10856 (define_insn "*<code>hi_1"): Ditto.
10857 (define_insn "kxnor<mode>"): New.
10858 (define_insn "kunpcksi"): New.
10859 (define_insn "kunpckdi"): New.
10860 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10861 (define_insn "*one_cmplhi2_1"): Ditto.
10862
10863 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10864 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10865 Anna Tikhonova <anna.tikhonova@intel.com>
10866 Ilya Tocar <ilya.tocar@intel.com>
10867 Andrey Turetskiy <andrey.turetskiy@intel.com>
10868 Ilya Verbin <ilya.verbin@intel.com>
10869 Kirill Yukhin <kirill.yukhin@intel.com>
10870 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10871
10872 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10873 V32HImode.
10874
10875 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10876 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10877 Anna Tikhonova <anna.tikhonova@intel.com>
10878 Ilya Tocar <ilya.tocar@intel.com>
10879 Andrey Turetskiy <andrey.turetskiy@intel.com>
10880 Ilya Verbin <ilya.verbin@intel.com>
10881 Kirill Yukhin <kirill.yukhin@intel.com>
10882 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10883
10884 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10885 registers.
10886 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10887 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10888 xmm/ymm16+ when availble.
10889 * config/i386/i386.h
10890 (HARD_REGNO_NREGS): Add mask regs.
10891 (VALID_AVX512F_REG_MODE): Ditto.
10892 (VALID_AVX512F_REG_MODE) : Define.
10893 (VALID_MASK_AVX512BW_MODE): Ditto.
10894 (reg_class) (MASK_REG_P(X)): Define.
10895 * config/i386/i386.md: Do not split long moves with mask register,
10896 use kmovb if avx512bw is availible.
10897 (movdi_internal): Handle mask registers.
10898
10899 2014-08-14 Richard Biener <rguenther@suse.de>
10900
10901 PR tree-optimization/62081
10902 * tree-ssa-loop.c (pass_fix_loops): New pass.
10903 (pass_tree_loop::gate): Do not fixup loops here.
10904 * tree-pass.h (make_pass_fix_loops): Declare.
10905 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10906
10907 2014-08-14 Richard Biener <rguenther@suse.de>
10908
10909 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10910 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10911
10912 2014-08-14 Richard Biener <rguenther@suse.de>
10913
10914 PR tree-optimization/62090
10915 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10916 (fold_builtin_2): Do not fold sprintf.
10917 (fold_builtin_3): Likewise.
10918 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10919 moved from builtins.c.
10920 (gimple_fold_builtin): Fold sprintf.
10921
10922 2014-08-14 Richard Biener <rguenther@suse.de>
10923
10924 PR rtl-optimization/62079
10925 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10926 run cleanup_cfg.
10927
10928 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10929
10930 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10931 current_function_decl.
10932
10933 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10934
10935 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10936 cgraph_function_node to cgraph_node::function_symbol
10937 refactoring.
10938
10939 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10940
10941 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10942 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10943
10944 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10945
10946 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10947 warning.
10948
10949 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10950
10951 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10952 generator.
10953
10954 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10955
10956 PR target/62025
10957 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10958 any registers that are used in mem_insn.
10959
10960 2014-08-12 Steve Ellcey <sellcey@mips.com>
10961
10962 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10963
10964 2014-08-12 Steve Ellcey <sellcey@mips.com>
10965
10966 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10967 (MULTILIB_DIRNAMES): Ditto.
10968 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10969 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10970 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10971 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10972 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10973 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10974
10975 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10976
10977 PR target/61413
10978 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10979 of __ARM_SIZEOF_WCHAR_T.
10980
10981 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10982
10983 PR target/62098
10984 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10985 Remove unnecessary attributes.
10986
10987 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10988
10989 * internal-fn.c (init_internal_fns): Fix off-by-one.
10990
10991 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10992 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10993 Anna Tikhonova <anna.tikhonova@intel.com>
10994 Ilya Tocar <ilya.tocar@intel.com>
10995 Andrey Turetskiy <andrey.turetskiy@intel.com>
10996 Ilya Verbin <ilya.verbin@intel.com>
10997 Kirill Yukhin <kirill.yukhin@intel.com>
10998 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10999
11000 * config/i386/i386.c (standard_sse_constant_opcode): Use
11001 vpxord/vpternlog if avx512 is availible.
11002
11003 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11004
11005 PR middle-end/62103
11006 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11007 bitfields, that is when size doesn't match the size of type or the
11008 size of the constructor.
11009
11010 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11011
11012 * config/rs6000/constraints.md (wh constraint): New constraint,
11013 for FP registers if direct move is available.
11014 (wi constraint): New constraint, for VSX/FP registers that can
11015 handle 64-bit integers.
11016 (wj constraint): New constraint for VSX/FP registers that can
11017 handle 64-bit integers for direct moves.
11018 (wk constraint): New constraint for VSX/FP registers that can
11019 handle 64-bit doubles for direct moves.
11020 (wy constraint): Make documentation match implementation.
11021
11022 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11023 scalar_in_vmx_p field to simplify tests of whether SFmode or
11024 DFmode can go in the Altivec registers.
11025 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11026 (rs6000_setup_reg_addr_masks): Likewise.
11027 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11028 field, and wh/wi/wj/wk constraints.
11029 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11030 the wh/wi/wj/wk constraints.
11031 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11032 upper registers, prefer VSX registers unless the operation is a
11033 memory operation with REG+OFFSET addressing.
11034
11035 * config/rs6000/vsx.md (VSr mode attribute): Add support for
11036 DImode. Change SFmode to use ww constraint instead of d to allow
11037 SF registers in the upper registers.
11038 (VSr2): Likewise.
11039 (VSr3): Likewise.
11040 (VSr5): Fix thinko in comment.
11041 (VSa): New mode attribute that is an alternative to wa, that
11042 returns the VSX register class that a mode can go in, but may not
11043 be the preferred register class.
11044 (VS_64dm): New mode attribute for appropriate register classes for
11045 referencing 64-bit elements of vectors for direct moves and normal
11046 moves.
11047 (VS_64reg): Likewise.
11048 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11049 register allocator to only registers the data type can handle.
11050 (vsx_le_perm_load_<mode>): Likewise.
11051 (vsx_le_perm_store_<mode>): Likewise.
11052 (vsx_xxpermdi2_le_<mode>): Likewise.
11053 (vsx_xxpermdi4_le_<mode>): Likewise.
11054 (vsx_lxvd2x2_le_<mode>): Likewise.
11055 (vsx_lxvd2x4_le_<mode>): Likewise.
11056 (vsx_stxvd2x2_le_<mode>): Likewise.
11057 (vsx_add<mode>3): Likewise.
11058 (vsx_sub<mode>3): Likewise.
11059 (vsx_mul<mode>3): Likewise.
11060 (vsx_div<mode>3): Likewise.
11061 (vsx_tdiv<mode>3_internal): Likewise.
11062 (vsx_fre<mode>2): Likewise.
11063 (vsx_neg<mode>2): Likewise.
11064 (vsx_abs<mode>2): Likewise.
11065 (vsx_nabs<mode>2): Likewise.
11066 (vsx_smax<mode>3): Likewise.
11067 (vsx_smin<mode>3): Likewise.
11068 (vsx_sqrt<mode>2): Likewise.
11069 (vsx_rsqrte<mode>2): Likewise.
11070 (vsx_tsqrt<mode>2_internal): Likewise.
11071 (vsx_fms<mode>4): Likewise.
11072 (vsx_nfma<mode>4): Likewise.
11073 (vsx_eq<mode>): Likewise.
11074 (vsx_gt<mode>): Likewise.
11075 (vsx_ge<mode>): Likewise.
11076 (vsx_eq<mode>_p): Likewise.
11077 (vsx_gt<mode>_p): Likewise.
11078 (vsx_ge<mode>_p): Likewise.
11079 (vsx_xxsel<mode>): Likewise.
11080 (vsx_xxsel<mode>_uns): Likewise.
11081 (vsx_copysign<mode>3): Likewise.
11082 (vsx_float<VSi><mode>2): Likewise.
11083 (vsx_floatuns<VSi><mode>2): Likewise.
11084 (vsx_fix_trunc<mode><VSi>2): Likewise.
11085 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11086 (vsx_x<VSv>r<VSs>i): Likewise.
11087 (vsx_x<VSv>r<VSs>ic): Likewise.
11088 (vsx_btrunc<mode>2): Likewise.
11089 (vsx_b2trunc<mode>2): Likewise.
11090 (vsx_floor<mode>2): Likewise.
11091 (vsx_ceil<mode>2): Likewise.
11092 (vsx_<VS_spdp_insn>): Likewise.
11093 (vsx_xscvspdp): Likewise.
11094 (vsx_xvcvspuxds): Likewise.
11095 (vsx_float_fix_<mode>2): Likewise.
11096 (vsx_set_<mode>): Likewise.
11097 (vsx_extract_<mode>_internal1): Likewise.
11098 (vsx_extract_<mode>_internal2): Likewise.
11099 (vsx_extract_<mode>_load): Likewise.
11100 (vsx_extract_<mode>_store): Likewise.
11101 (vsx_splat_<mode>): Likewise.
11102 (vsx_xxspltw_<mode>): Likewise.
11103 (vsx_xxspltw_<mode>_direct): Likewise.
11104 (vsx_xxmrghw_<mode>): Likewise.
11105 (vsx_xxmrglw_<mode>): Likewise.
11106 (vsx_xxsldwi_<mode>): Likewise.
11107 (vsx_xscvdpspn): Tighten constraints to only use register classes
11108 the types use.
11109 (vsx_xscvspdpn): Likewise.
11110 (vsx_xscvdpspn_scalar): Likewise.
11111
11112 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11113 wj, and wk constraints.
11114 (GPR_REG_CLASS_P): New helper macro for register classes targeting
11115 general purpose registers.
11116
11117 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11118 direct moves.
11119 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11120 DImode instead of wm. Use wk constraint for direct move of DFmode
11121 instead of wm.
11122 (extendsidi2_lfiwax): Likewise.
11123 (lfiwax): Likewise.
11124 (lfiwzx): Likewise.
11125 (movdi_internal64): Likewise.
11126
11127 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11128 wk constraints. Make the wy constraint documentation match them
11129 implementation.
11130
11131 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11132
11133 Replacement of isl_int by isl_val
11134 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11135 (compute_bounds_for_param): use isl_val instead of isl_int
11136 (compute_bounds_for_loop): likewise
11137 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11138 (build_linearized_memory_access): use isl_val instead of isl_int
11139 (pdr_stride_in_loop): likewise
11140 * graphite-optimize-isl.c:
11141 (getPrevectorMap): use isl_val instead of isl_int
11142 * graphite-poly.c:
11143 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11144 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11145 (extern the_isl_ctx): declare
11146 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11147 (extract_affine_gmp): likewise
11148 (wrap): likewise
11149 (build_loop_iteration_domains): likewise
11150 (add_param_constraints): likewise
11151
11152 2014-08-11 Richard Biener <rguenther@suse.de>
11153
11154 PR tree-optimization/62075
11155 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11156 handle uses in patterns.
11157
11158 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11159 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11160 Anna Tikhonova <anna.tikhonova@intel.com>
11161 Ilya Tocar <ilya.tocar@intel.com>
11162 Andrey Turetskiy <andrey.turetskiy@intel.com>
11163 Ilya Verbin <ilya.verbin@intel.com>
11164 Kirill Yukhin <kirill.yukhin@intel.com>
11165 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11166
11167 * common/config/i386/i386-common.c
11168 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11169 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11170 (ix86_handle_option): Handle OPT_mavx512vl.
11171 * config/i386/cpuid.h (bit_AVX512VL): Define.
11172 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11173 set -mavx512vl accordingly.
11174 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11175 OPTION_MASK_ISA_AVX512VL.
11176 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11177 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11178 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11179 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11180 * config/i386/i386.h (TARGET_AVX512VL): Define.
11181 (TARGET_AVX512VL_P(x)): Ditto.
11182 * config/i386/i386.opt: Add mavx512vl.
11183
11184 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11185
11186 PR tree-optimization/62073
11187 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11188 a basic block.
11189
11190 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11191 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11192 Anna Tikhonova <anna.tikhonova@intel.com>
11193 Ilya Tocar <ilya.tocar@intel.com>
11194 Andrey Turetskiy <andrey.turetskiy@intel.com>
11195 Ilya Verbin <ilya.verbin@intel.com>
11196 Kirill Yukhin <kirill.yukhin@intel.com>
11197 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11198
11199 * common/config/i386/i386-common.c
11200 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11201 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11202 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11203 (ix86_handle_option): Handle OPT_mavx512bw.
11204 * config/i386/cpuid.h (bit_AVX512BW): Define.
11205 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11206 set -mavx512bw accordingly.
11207 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11208 OPTION_MASK_ISA_AVX512BW.
11209 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11210 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11211 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11212 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11213 * config/i386/i386.h (TARGET_AVX512BW): Define.
11214 (TARGET_AVX512BW_P(x)): Ditto.
11215 * config/i386/i386.opt: Add mavx512bw.
11216
11217 2014-08-11 Richard Biener <rguenther@suse.de>
11218
11219 PR tree-optimization/62070
11220 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11221 Remove SSA checking.
11222
11223 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11224
11225 * asan.c (asan_check_flags): New enum.
11226 (build_check_stmt_with_calls): Removed function.
11227 (build_check_stmt): Split inlining logic to
11228 asan_expand_check_ifn.
11229 (instrument_derefs): Rename parameter.
11230 (instrument_mem_region_access): Rename parameter.
11231 (instrument_strlen_call): Likewise.
11232 (asan_expand_check_ifn): New function.
11233 (asan_instrument): Remove old code.
11234 (pass_sanopt::execute): Change handling of
11235 asan-instrumentation-with-call-threshold.
11236 (asan_clear_shadow): Fix formatting.
11237 (asan_function_start): Likewise.
11238 (asan_emit_stack_protection): Likewise.
11239 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11240 Update description.
11241 * internal-fn.c (expand_ASAN_CHECK): New function.
11242 * internal-fn.def (ASAN_CHECK): New internal function.
11243 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11244 Update description.
11245 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11246 * tree.c: Small comment fix.
11247
11248 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11249
11250 * gimple.c (gimple_call_fnspec): Support internal functions.
11251 (gimple_call_return_flags): Use const.
11252 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11253 * internal-fn.def: Add fnspec information.
11254 * internal-fn.h (internal_fn_fnspec): New function.
11255 (init_internal_fns): Declare new function.
11256 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11257 (init_internal_fns): New function.
11258 * tree-core.h: Update macro call.
11259 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11260
11261 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11262
11263 * lto-streamer.h (struct output_block::symbol): Change from
11264 struct symtab_node to plain symtab_node.
11265 (referenced_from_this_partition_p): Change first parameter
11266 from struct symtab_node to plain symtab_node.
11267
11268 2014-08-10 Marek Polacek <polacek@redhat.com>
11269
11270 PR c/51849
11271 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11272
11273 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11274
11275 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11276 DECL correctly; do not give up on types in static storage.
11277
11278 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11279
11280 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11281
11282 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11283
11284 * graphite-isl-ast-to-gimple.c:
11285 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11286
11287 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11288
11289 2014-08-08 Guozhi Wei <carrot@google.com>
11290
11291 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11292
11293 2014-08-08 Cary Coutant <ccoutant@google.com>
11294
11295 * dwarf2out.c (get_skeleton_type_unit): Remove.
11296 (output_skeleton_debug_sections): Remove skeleton type units.
11297 (output_comdat_type_unit): Likewise.
11298 (dwarf2out_finish): Likewise.
11299
11300 2014-08-07 Yi Yang <ahyangyi@google.com>
11301
11302 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11303
11304 2014-08-08 Richard Biener <rguenther@suse.de>
11305
11306 * lto-streamer.h (struct lto_input_block): Make it a class
11307 with a constructor.
11308 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11309 (struct lto_function_header, struct lto_simple_header,
11310 struct lto_simple_header_with_strings,
11311 struct lto_decl_header, struct lto_function_header): Make
11312 a simple inheritance hieararchy. Remove unused fields.
11313 (struct lto_asm_header): Remove.
11314 * lto-streamer-out.c (produce_asm): Adjust.
11315 (lto_output_toplevel_asms): Likewise.
11316 (produce_asm_for_decls): Likewise.
11317 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11318 * data-streamer-in.c (string_for_index): Likewise.
11319 * ipa-inline-analysis.c (inline_read_section): Likewise.
11320 * ipa-prop.c (ipa_prop_read_section): Likewise.
11321 (read_replacements_section): Likewise.
11322 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11323 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11324 (lto_destroy_simple_input_block): Likewise.
11325 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11326 (lto_input_toplevel_asms): Likewise.
11327
11328 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11330 Anna Tikhonova <anna.tikhonova@intel.com>
11331 Ilya Tocar <ilya.tocar@intel.com>
11332 Andrey Turetskiy <andrey.turetskiy@intel.com>
11333 Ilya Verbin <ilya.verbin@intel.com>
11334 Kirill Yukhin <kirill.yukhin@intel.com>
11335 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11336
11337 * common/config/i386/i386-common.c
11338 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11339 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11340 (ix86_handle_option): Handle OPT_mavx512dq.
11341 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11342 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11343 set -mavx512dq accordingly.
11344 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11345 OPTION_MASK_ISA_AVX512DQ.
11346 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11347 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11348 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11349 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11350 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11351 (TARGET_AVX512DQ_P(x)): Ditto.
11352 * config/i386/i386.opt: Add mavx512dq.
11353
11354 2014-08-08 Richard Biener <rguenther@suse.de>
11355
11356 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11357 target_percent, target_percent_s): Export.
11358 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11359 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11360 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11361 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11362 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11363 Move to gimple-fold.c.
11364 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11365 strcat and strcpy.
11366 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11367 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11368 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11369 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11370 (rewrite_call_expr_array): Remove.
11371 (fold_builtin_sprintf_chk): Likewise.
11372 (fold_builtin_snprintf_chk): Likewise.
11373 (fold_builtin_varargs): Remove handling of sprintf_chk,
11374 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11375 (gimple_fold_builtin_sprintf_chk): Remove.
11376 (gimple_fold_builtin_snprintf_chk): Likewise.
11377 (gimple_fold_builtin_varargs): Likewise.
11378 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11379 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11380 * gimple.c (gimple_seq_add_seq_without_update): New function.
11381 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11382 * gimple-fold.c: Include output.h.
11383 (gsi_replace_with_seq_vops): New function, split out from ...
11384 (gimplify_and_update_call_from_tree): ... here.
11385 (replace_call_with_value): New function.
11386 (replace_call_with_call_and_fold): Likewise.
11387 (var_decl_component_p): Moved from builtins.c.
11388 (gimple_fold_builtin_memory_op): Moved from builtins.c
11389 fold_builtin_memory_op and rewritten to GIMPLE.
11390 (gimple_fold_builtin_memset): Likewise.
11391 (gimple_fold_builtin_strcpy): Likewise.
11392 (gimple_fold_builtin_strncpy): Likewise.
11393 (gimple_fold_builtin_strcat): Likewise.
11394 (gimple_fold_builtin_fputs): Likewise.
11395 (gimple_fold_builtin_memory_chk): Likewise.
11396 (gimple_fold_builtin_stxcpy_chk): Likewise.
11397 (gimple_fold_builtin_stxncpy_chk): Likewise.
11398 (gimple_fold_builtin_snprintf_chk): Likewise.
11399 (gimple_fold_builtin_sprintf_chk): Likewise.
11400 (gimple_fold_builtin_strlen): New function.
11401 (gimple_fold_builtin_with_strlen): New function split out from
11402 gimple_fold_builtin.
11403 (gimple_fold_builtin): Change signature and handle
11404 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11405 here. Call gimple_fold_builtin_with_strlen.
11406 (gimple_fold_call): Adjust.
11407
11408 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11409
11410 * calls.c (precompute_arguments): Check
11411 promoted_for_signed_and_unsigned_p and set the promoted mode.
11412 (promoted_for_signed_and_unsigned_p): New function.
11413 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11414 and set the promoted mode.
11415 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11416 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11417 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11418
11419
11420 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11421
11422 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11423 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11424 (expand_call): Likewise.
11425 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11426 to get promoted mode.
11427 * combine.c (record_promoted_value): Skip > 0 comparison with
11428 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11429 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11430 of SUBREG_PROMOTED_UNSIGNED_P.
11431 (convert_modes): Likewise.
11432 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11433 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11434 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11435 SUBREG_PROMOTED_UNSIGNED_SET.
11436 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11437 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11438 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11439 SUBREG_PROMOTED_SET.
11440 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11441 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11442 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11443 of SUBREG_PROMOTED_UNSIGNED_P.
11444 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11445 (SUBREG_PROMOTED_SET): New define.
11446 (SUBREG_PROMOTED_GET): Likewise.
11447 (SUBREG_PROMOTED_SIGN): Likewise.
11448 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11449 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11450 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11451 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11452 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11453 (nonzero_bits1): Skip > 0 comparison with the results as
11454 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11455 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11456 of !SUBREG_PROMOTED_UNSIGNED_P.
11457 * simplify-rtx.c (simplify_unary_operation_1): Use new
11458 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11459 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11460 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11461 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11462
11463 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11464
11465 * ipa-devirt.c: Include gimple-pretty-print.h
11466 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11467 further tests.
11468 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11469 (get_polymorphic_call_info): Fix return value
11470 (type_change_info): New sturcture based on ipa-prop
11471 variant.
11472 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11473 based on ipa-prop variant.
11474 (extr_type_from_vtbl_ptr_store): New function
11475 based on ipa-prop variant.
11476 (record_known_type): New function.
11477 (check_stmt_for_type_change): New function.
11478 (get_dynamic_type): New function.
11479 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11480 * tree-ssa-pre.c: ipa-utils.h
11481 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11482 machinery; sanity check with ipa-prop devirtualization.
11483 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11484 polymorphic flag.
11485
11486 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11487
11488 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11489 * alias.c, cfgexpand.c, cgraphbuild.c,
11490 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11491 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11492 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11493 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11494 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11495 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11496 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11497 dse.c, except.c, gengtype.c, gimple-expr.c,
11498 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11499 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11500 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11501 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11502 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11503 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11504 pointer-set.h.
11505 * pointer-set.c: Remove file.
11506 * pointer-set.h: Remove file.
11507
11508 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11509
11510 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11511 * config/arm/types.md (f_sels, f_seld): Delete.
11512
11513 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11514
11515 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11516 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11517 (aarch64_movdi_<mode>high): Likewise.
11518 (aarch64_mov<mode>high_di): Likewise.
11519 (aarch64_movdi_<mode>low): Likewise.
11520 (aarch64_mov<mode>low_di): Likewise.
11521 (aarch64_movtilow_tilow): Likewise.
11522 Add comment explaining usage of fp,simd attributes and of
11523 TARGET_FLOAT and TARGET_SIMD.
11524
11525 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11526 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11527
11528 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11529 Use MOVN when one of the half-words is 0xffff.
11530
11531 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11532
11533 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11534
11535 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11536
11537 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11538 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11539 (rfs_str): String corresponding to RFS_* constants.
11540 (rank_for_schedule_stats_t): New typedef.
11541 (rank_for_schedule_stats): New static variable.
11542 (rfs_result): New static function.
11543 (rank_for_schedule): Track statistics for deciding heuristics.
11544 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11545 static functions.
11546 (ready_sort): Use them for debug printouts.
11547 (schedule_block): Init statistics state. Print statistics on
11548 rank_for_schedule decisions.
11549
11550 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11551
11552 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11553
11554 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11555
11556 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11557 constraint.
11558
11559 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11560
11561 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11562 function to not conflict.
11563 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11564 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11565 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11566 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11567 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11568 of pointer_map.
11569
11570 2014-08-07 Marek Polacek <polacek@redhat.com>
11571
11572 * fold-const.c (fold_binary_loc): Add folding of
11573 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11574
11575 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11576
11577 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11578 instead of type size.
11579 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11580
11581 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11582
11583 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11584 (*thumb1_movqi_insn): Likewise.
11585 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11586
11587 2014-08-07 Tom de Vries <tom@codesourcery.com>
11588
11589 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11590 (glibc_2_11_or_earlier): Remove effective-target keywords.
11591
11592 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11593
11594 * config/arm/arm.c (bdesc_2arg): Fix typo.
11595 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11596
11597 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11598
11599 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11600
11601 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11602
11603 PR debug/61923
11604 * haifa-sched.c (advance_one_cycle): Fix dump.
11605 (schedule_block): Don't advance cycle if we are already at the
11606 beginning of the cycle.
11607
11608 2014-08-06 Martin Jambor <mjambor@suse.cz>
11609
11610 PR ipa/61393
11611 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11612
11613 2014-08-06 Richard Biener <rguenther@suse.de>
11614
11615 PR lto/62034
11616 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11617 SCCs here.
11618 (lto_input_tree): Pop SCCs here.
11619
11620 2014-08-06 Richard Biener <rguenther@suse.de>
11621
11622 PR tree-optimization/61320
11623 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11624 handle misaligned loads.
11625
11626 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11627
11628 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11629 (aarch64_expand_vec_perm_const): Check for dup before zip.
11630
11631 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11632
11633 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11634 CONST_INT_P instead of GET_CODE and compare.
11635 (aarch64_select_cc_mode): Likewise.
11636 (aarch64_print_operand): Likewise.
11637 (aarch64_rtx_costs): Likewise.
11638 (aarch64_simd_valid_immediate): Likewise.
11639 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11640 (aarch64_simd_emit_pair_result_insn): Likewise.
11641
11642 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11643
11644 * gdbhooks.py (find_gcc_source_dir): New helper function.
11645 (class PassNames): New class, locating and parsing passes.def.
11646 (class BreakOnPass): New command "break-on-pass".
11647
11648 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11649
11650 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11651 getting olde.
11652
11653 2014-08-05 Richard Biener <rguenther@suse.de>
11654
11655 PR rtl-optimization/61672
11656 * emit-rtl.h (mem_attrs_eq_p): Declare.
11657 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11658 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11659 * cfgcleanup.c (merge_memattrs): Likewise.
11660 Include emit-rtl.h.
11661
11662 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11663
11664 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11665 rather than singleton vectors.
11666 (vqdmlsls_lane_s32): Likewise.
11667
11668 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11669
11670 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11671 Use VSDQ_HSI mode iterator.
11672 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11673 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11674 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11675 Use BUILTIN_VDQHS macro.
11676 (sqrdmulh_laneq): Likewise.
11677 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11678 (vqdmlals_laneq_s32): Likewise.
11679 (vqdmlslh_laneq_s16): Likewise.
11680 (vqdmlsls_laneq_s32): Likewise.
11681 (vqdmulhh_laneq_s16): Likewise.
11682 (vqdmulhs_laneq_s32): Likewise.
11683 (vqrdmulhh_laneq_s16): Likewise.
11684 (vqrdmulhs_laneq_s32): Likewise.
11685
11686 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11687
11688 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11689 (vmuld_laneq_f64): Likewise.
11690 (vmuls_laneq_f32): Likewise.
11691 (vmul_n_f64): Likewise.
11692 (vmuld_lane_f64): Reimplement in C.
11693 (vmuls_lane_f32): Likewise.
11694
11695 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11696
11697 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11698 to reservation.
11699 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11700
11701 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11702
11703 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11704 (rbitsi2): Likewise.
11705 (*arm_rev): Set predicable and predicable_short_it attributes.
11706
11707 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11708
11709 * convert.c (convert_to_integer): Guard transformation to lrint by
11710 -fno-math-errno.
11711
11712 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11713
11714 * config/aarch64/aarch64-builtins.c
11715 (aarch64_simd_builtin_type_mode): Delete.
11716 (v8qi_UP): Remap to V8QImode.
11717 (v4hi_UP): Remap to V4HImode.
11718 (v2si_UP): Remap to V2SImode.
11719 (v2sf_UP): Remap to V2SFmode.
11720 (v1df_UP): Remap to V1DFmode.
11721 (di_UP): Remap to DImode.
11722 (df_UP): Remap to DFmode.
11723 (v16qi_UP):V16QImode.
11724 (v8hi_UP): Remap to V8HImode.
11725 (v4si_UP): Remap to V4SImode.
11726 (v4sf_UP): Remap to V4SFmode.
11727 (v2di_UP): Remap to V2DImode.
11728 (v2df_UP): Remap to V2DFmode.
11729 (ti_UP): Remap to TImode.
11730 (ei_UP): Remap to EImode.
11731 (oi_UP): Remap to OImode.
11732 (ci_UP): Map to CImode.
11733 (xi_UP): Remap to XImode.
11734 (si_UP): Remap to SImode.
11735 (sf_UP): Remap to SFmode.
11736 (hi_UP): Remap to HImode.
11737 (qi_UP): Remap to QImode.
11738 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11739 (VAR1): Build builtin name.
11740 (aarch64_init_simd_builtins): Remove dead code.
11741
11742 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11743
11744 * graphite-isl-ast-to-gimple.c:
11745 (set_options): New function.
11746 (scop_to_isl_ast): Add calling of set_options.
11747
11748 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11749
11750 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11751 (analyze_iv_to_split_insn): Don't initialize them.
11752 (get_ivts_expr): Removed.
11753 (allocate_basic_variable, insert_base_initialization): Use
11754 SET_SRC instead of *get_ivts_expr.
11755 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11756
11757 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11758
11759 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11760 (translate_isl_ast_for_loop): Add checking of the
11761 flag_loop_parallelize_all.
11762 (ast_build_before_for): New function.
11763 (scop_to_isl_ast): Add checking of the
11764 flag_loop_parallelize_all.
11765 * graphite-dependences.c: Move the defenition of the
11766 scop_get_dependences from graphite-optimize-isl.c to this file.
11767 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11768 (carries_deps): Add checking of the x's value.
11769 * graphite-optimize-isl.c: Move the defenition of the
11770 scop_get_dependences to graphite-dependences.c.
11771 * graphite-poly.h: Add declarations of scop_get_dependences
11772 and carries_deps.
11773
11774 2014-08-04 Rohit <rohitarulraj@freescale.com>
11775
11776 PR target/60102
11777 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11778 names.
11779 (alt_reg_names): Likewise.
11780 (rs6000_dwarf_register_span): For SPE high registers, replace
11781 dwarf register numbers with GCC hard register numbers.
11782 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11783 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11784 register number for the corresponding GCC hard register number.
11785 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11786 newly added GCC hard register numbers for SPE high registers.
11787 (DWARF_FRAME_REGISTERS): Likewise.
11788 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11789 (DWARF_FRAME_REGNUM): Likewise.
11790 (FIXED_REGISTERS): Likewise.
11791 (CALL_USED_REGISTERS): Likewise.
11792 (CALL_REALLY_USED_REGISTERS): Likewise.
11793 (REG_ALLOC_ORDER): Likewise.
11794 (enum reg_class): Likewise.
11795 (REG_CLASS_NAMES): Likewise.
11796 (REG_CLASS_CONTENTS): Likewise.
11797 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11798
11799 2014-08-04 Richard Biener <rguenther@suse.de>
11800
11801 * gimple-fold.h (gimple_fold_builtin): Remove.
11802 * gimple-fold.c (gimple_fold_builtin): Make static.
11803 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11804 fold_stmt, not gimple_fold_builtin.
11805
11806 2014-08-04 Martin Liska <mliska@suse.cz>
11807
11808 * cgraph.h (csi_end_p): Removed.
11809 (csi_next): Likewise.
11810 (csi_node): Likewise.
11811 (csi_start): Likewise.
11812 (cgraph_node_in_set_p): Likewise.
11813 (cgraph_node_set_size): Likewise.
11814 (vsi_end_p): Likewise.
11815 (vsi_next): Likewise.
11816 (vsi_node): Likewise.
11817 (vsi_start): Likewise.
11818 (varpool_node_set_size): Likewise.
11819 (cgraph_node_set_nonempty_p): Likewise.
11820 (varpool_node_set_nonempty_p): Likewise.
11821 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11822 cgraph_node_set.
11823 * ipa-inline-transform.c: Likewise.
11824 * ipa-utils.c (cgraph_node_set_new): Removed.
11825 (cgraph_node_set_add): Likewise.
11826 (cgraph_node_set_remove): Likewise.
11827 (cgraph_node_set_find): Likewise.
11828 (dump_cgraph_node_set): Likewise.
11829 (debug_cgraph_node_set): Likewise.
11830 (free_cgraph_node_set): Likewise.
11831 (varpool_node_set_new): Likewise.
11832 (varpool_node_set_add): Likewise.
11833 (varpool_node_set_remove): Likewise.
11834 (varpool_node_set_find): Likewise.
11835 (dump_varpool_node_set): Likewise.
11836 (free_varpool_node_set): Likewise.
11837 (debug_varpool_node_set): Likewise.
11838 * tree-emutls.c (struct tls_var_data):
11839 (emutls_index): Removed.
11840 (emutls_decl): Likewise.
11841 (gen_emutls_addr): Function implementation uses newly added
11842 hash_map<varpool_node *, tls_var_data>.
11843 (clear_access_vars): Likewise.
11844 (create_emultls_var): Likewise.
11845 (ipa_lower_emutls): Likewise.
11846 (reset_access): New function.
11847
11848 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11849
11850 * config/i386/i386.c (ix86_option_override_internal): Add
11851 PTA_RDRND and PTA_MOVBE for bdver4.
11852
11853 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11854 James Greenhalgh <james.greenhalgh@arm.com>
11855
11856 * doc/md.texi (clrsb): Document.
11857 (clz): Change reference to x into operand 1.
11858 (ctz): Likewise.
11859 (popcount): Likewise.
11860
11861 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11862
11863 PR target/61713
11864 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11865 move to subtarget in serial version if result is ignored.
11866
11867 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11868 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11869
11870 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11871 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11872 (sched_analyze_insn): Update use of try_group_insn to
11873 sched_macro_fuse_insns.
11874 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11875 arguments that are not conditional jumps.
11876
11877 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11878
11879 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11880 family information. Handle BTVER2 cpu with cpuid family value.
11881
11882 2014-08-04 Tom de Vries <tom@codesourcery.com>
11883
11884 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11885 (glibc_2_11_or_earlier): Document effective-target keywords.
11886
11887 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11888
11889 * ipa-devirt.c (odr_type_warn_count): Add type.
11890 (possible_polymorphic_call_targets): Set it.
11891 (ipa_devirt): Use it.
11892
11893 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11894
11895 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11896 Document.
11897 * ipa-devirt.c: Include hash-map.h
11898 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11899 (clear_speculation): Break out of ...
11900 (get_class_context): ... here; speed up handling obviously useless
11901 speculations.
11902 (odr_type_warn_count, decl_warn_count): New structures.
11903 (final_warning_record): New structure.
11904 (final_warning_records): New static variable.
11905 (possible_polymorphic_call_targets): Cleanup handling of
11906 speculative info; do not build speculation when user do not care;
11907 record info about warnings when asked for.
11908 (add_decl_warning): New function.
11909 (type_warning_cmp): New function.
11910 (decl_warning_cmp): New function.
11911 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11912 (gate): Enable pass when warnings are requested.
11913 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11914 options.
11915
11916 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11917
11918 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11919 Fix cast.
11920 (hash_map::remove): New method.
11921 (hash_map::traverse): New method.
11922 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11923 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11924 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11925 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11926 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11927 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11928 pointer_map.
11929
11930 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11931
11932 * hash-set.h: new File.
11933 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11934 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11935 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11936 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11937 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11938 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11939 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11940 varpool.c: Use hash_set instead of pointer_set.
11941
11942 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11943
11944 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11945
11946 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11947
11948 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11949 for frame access when strict_p is false.
11950
11951 2014-08-01 Renlin Li <renlin.li@arm.com>
11952 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11953
11954 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11955 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11956 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11957 Declaration.
11958 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11959 predicate.
11960 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11961 aarch64_mem_pair_offset.
11962
11963 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11964
11965 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11966 offset.
11967 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11968 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11969
11970 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11971
11972 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11973
11974 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11975
11976 PR regression/61510
11977 * cgraphunit.c (analyze_functions): Use get_create rather than get
11978 for decls which are clones of abstract functions.
11979
11980 2014-08-01 Martin Liska <mliska@suse.cz>
11981
11982 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11983 * ipa-prop.h (count_formal_params): Global function created from static.
11984 * ipa-prop.c (count_formal_params): Likewise.
11985 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11986 profiles for semantically equivalent functions.
11987 * passes.c (do_per_function): If we load body of a function
11988 during WPA, this condition should behave same.
11989 * varpool.c (ctor_for_folding): More tolerant assert for variable
11990 aliases created during WPA.
11991
11992 2014-08-01 Martin Liska <mliska@suse.cz>
11993
11994 * doc/invoke.texi (Options That Control Optimization): Documentation
11995 for -foptimize-strlen introduced. Optimization levels default options
11996 fixed.
11997
11998 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11999
12000 * opts.c (common_handle_option): Handle -fsanitize=alignment.
12001 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12002 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12003 type to bool.
12004 * stor-layout.h (min_align_of_type): New prototype.
12005 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12006 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
12007 check.
12008 * ubsan.c: Include builtins.h.
12009 (ubsan_expand_bounds_ifn): Change return type to bool,
12010 always return true.
12011 (ubsan_expand_null_ifn): Change return type to bool, change
12012 argument to gimple_stmt_iterator *. Handle both null and alignment
12013 sanitization, take type from ckind argument's type rather than
12014 first argument.
12015 (instrument_member_call): Removed.
12016 (instrument_mem_ref): Remove t argument, add mem and base arguments.
12017 Handle both null and alignment sanitization, don't say whole
12018 struct access is member access. Build 3 argument IFN_UBSAN_NULL
12019 call instead of 2 argument.
12020 (instrument_null): Adjust instrument_mem_ref caller. Don't
12021 instrument calls here.
12022 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12023 like SANITIZE_NULL.
12024 * stor-layout.c (min_align_of_type): New function.
12025 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12026 Or it into SANITIZE_UNDEFINED.
12027 * doc/invoke.texi (-fsanitize=alignment): Document.
12028
12029 2014-07-31 Andi Kleen <ak@linux.intel.com>
12030
12031 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12032
12033 2014-07-31 Andi Kleen <ak@linux.intel.com>
12034
12035 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12036 inchash.
12037 (vn_reference_compute_hash): Dito.
12038 (vn_nary_op_compute_hash): Dito.
12039 (vn_phi_compute_hash): Dito.
12040 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12041
12042 2014-07-31 Andi Kleen <ak@linux.intel.com>
12043
12044 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12045 Rename to inchash:add_expr_commutative. Convert to inchash.
12046 (iterative_hash_hashable_expr): Rename to
12047 inchash:add_hashable_expr. Convert to inchash.
12048 (avail_expr_hash): Dito.
12049
12050 2014-07-31 Andi Kleen <ak@linux.intel.com>
12051
12052 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12053 Convert to inchash.
12054
12055 2014-07-31 Andi Kleen <ak@linux.intel.com>
12056
12057 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12058
12059 2014-07-31 Andi Kleen <ak@linux.intel.com>
12060
12061 * Makefile.in (OBJS): Add rtlhash.o
12062 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12063 (loc_checksum): Dito.
12064 (loc_checksum_ordered): Dito.
12065 (hash_loc_operands): Dito.
12066 (hash_locs): Dito.
12067 (hash_loc_list): Dito.
12068 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12069 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12070 * rtlhash.c: New file.
12071 * rtlhash.h: New file.
12072
12073 2014-07-31 Andi Kleen <ak@linux.intel.com>
12074
12075 * inchash.h (inchash): Change inchash class to namespace.
12076 (class hash): ... Rename from inchash.
12077 (add_object): Move from macro to class template.
12078 * lto-streamer-out.c (hash_tree): Change inchash
12079 to inchash::hash.
12080 * tree.c (build_type_attribute_qual_variant): Dito.
12081 (type_hash_list): Dito.
12082 (attribute_hash_list): Dito.
12083 (iterative_hstate_expr): Rename to inchash::add_expr
12084 (build_range_type_1): Change inchash to inchash::hash
12085 and use hash::add_expr.
12086 (build_array_type_1): Dito.
12087 (build_function_type): Dito
12088 (build_method_type_directly): Dito.
12089 (build_offset_type): Dito.
12090 (build_complex_type): Dito.
12091 (make_vector_type): Dito.
12092 * tree.h (iterative_hash_expr): Dito.
12093
12094 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
12095
12096 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12097
12098 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12099
12100 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12101 correct alphabetical position.
12102 (vpaddd_f64): Rewrite using builtins.
12103 (vpaddd_s64): Move to correct alphabetical position.
12104 (vpaddd_u64): New.
12105
12106 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
12107
12108 PR target/61844
12109 * config/sh/sh.c (sh_legitimate_address_p,
12110 sh_legitimize_reload_address): Handle reg+reg address modes when
12111 ALLOW_INDEXED_ADDRESS is false.
12112 * config/sh/predicates.md (general_movsrc_operand,
12113 general_movdst_operand): Likewise.
12114
12115 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12116
12117 * config/aarch64/aarch64-builtins.c
12118 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12119 BYTES_BIG_ENDIAN.
12120
12121 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12122
12123 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12124 the generated mask based on BYTES_BIG_ENDIAN.
12125 (aarch64_simd_check_vect_par_cnst_half): New.
12126 * config/aarch64/aarch64-protos.h
12127 (aarch64_simd_check_vect_par_cnst_half): New.
12128 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12129 the check out to aarch64_simd_check_vect_par_cnst_half.
12130 (vect_par_cnst_lo_half): Likewise.
12131 * config/aarch64/aarch64-simd.md
12132 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12133 (move_hi_quad_<mode>): Always generate a low mask.
12134
12135 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12136
12137 * doc/invoke.texi (AVR Options): Add documentation about
12138 __AVR_DEVICE_NAME__ built-in macro.
12139
12140 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12141
12142 PR target/61948
12143 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12144 constraints are satisfied.
12145 (<shift>di3_neon): Likewise.
12146
12147 2014-07-31 Richard Biener <rguenther@suse.de>
12148
12149 PR tree-optimization/61964
12150 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12151 by structural equality.
12152
12153 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12154
12155 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12156 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12157 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12158 New enums.
12159 * gcc.c (sanitize_spec_function): Support new option.
12160 (SANITIZER_SPEC): Remove now redundant check.
12161 * opts.c (common_handle_option): Support new option.
12162 (finish_options): Check for incompatibilities.
12163 * toplev.c (process_options): Split userspace-specific checks.
12164
12165 2014-07-31 Richard Biener <rguenther@suse.de>
12166
12167 * lto-streamer.h (struct output_block): Remove global.
12168 (struct data_in): Remove labels, num_named_labels and
12169 num_unnamed_labels.
12170 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12171 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12172
12173 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12174
12175 PR c++/60517
12176 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12177 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12178 (isolate_path): New argument to avoid inserting a trap.
12179 (find_implicit_erroneous_behaviour): Handle returning the address
12180 of a local variable.
12181 (find_explicit_erroneous_behaviour): Likewise.
12182
12183 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12184
12185 PR lto/61868
12186 * toplev.c (init_random_seed): Move piece of code never called to
12187 set_random_seed.
12188 (set_random_seed): see above.
12189
12190 2014-07-31 Tom de Vries <tom@codesourcery.com>
12191
12192 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12193
12194 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12195
12196 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12197 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12198
12199 2014-07-31 Richard Biener <rguenther@suse.de>
12200
12201 * data-streamer.h (streamer_write_data_stream): Declare here,
12202 renamed from ...
12203 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12204 * lto-cgraph.c (lto_output_node): Adjust.
12205 (lto_output_varpool_node): Likewise.
12206 * data-streamer-out.c (streamer_string_index): Likewise.
12207 (streamer_write_data_stream, lto_append_block): Move from ...
12208 * lto-section-out.c (lto_output_data_stream,
12209 lto_append_block): ... here.
12210
12211 2014-07-30 Mike Stump <mikestump@comcast.net>
12212
12213 * configure.ac: Also check for popen.
12214 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12215 * configure: Regenerate.
12216 * config.in: Regenerate.
12217
12218 2014-07-30 Martin Jambor <mjambor@suse.cz>
12219
12220 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12221 parameter to gimple.
12222
12223 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12224
12225 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12226 address as second parameter to __tpf_eh_return routine.
12227
12228 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12229
12230 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12231 Thumb2.
12232
12233 2014-07-30 Tom Tromey <tromey@redhat.com>
12234
12235 PR c/59855
12236 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12237 * doc/extend.texi (Type Attributes): Document designated_init
12238 attribute.
12239
12240 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12241
12242 * graphite-isl-ast-to-gimple.c:
12243 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12244 (gcc_expression_from_isl_expression): Pass type to
12245 gcc_expression_from_isl_ast_expr_id.
12246
12247 2014-07-30 Richard Biener <rguenther@suse.de>
12248
12249 * lto-streamer.h (lto_write_data): New function.
12250 * langhooks.c (lhd_append_data): Do not free block.
12251 * lto-section-out.c (lto_write_data): New function writing
12252 raw data to the current section.
12253 (lto_write_stream): Adjust for langhook semantic change.
12254 (lto_destroy_simple_output_block): Write header directly.
12255 * lto-opts.c (lto_write_options): Write options directly.
12256 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12257 (lto_output_toplevel_asms): Likewise.
12258 (copy_function_or_variable): Copy data directly.
12259 (write_global_references): Output index table directly.
12260 (lto_output_decl_state_refs): Likewise.
12261 (write_symbol): Write data directly.
12262 (produce_symtab): Adjust.
12263 (produce_asm_for_decls): Output header and refs directly.
12264
12265 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12266
12267 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12268 to speculative_targets
12269 (get_class_context): Fix handling of contextes without outer type;
12270 avoid matching non-polymorphic types in LTO.
12271 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12272 parameter to speculative_targetsp; handle speculation.
12273 (dump_possible_polymorphic_call_targets): Update dumping.
12274
12275 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12276
12277 * common.opt (Wodr): Enable by default.
12278
12279 2014-07-29 Olivier Hainque <hainque@adacore.com>
12280
12281 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12282
12283 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12284
12285 PR bootstrap/61914
12286 * gengtype.c (strtoken): New function.
12287 (create_user_defined_type): Replace strtok with strtoken.
12288
12289 2014-07-29 Nathan Sidwell <nathan@acm.org>
12290
12291 * gcov-io.c (gcov_var): Make hidden.
12292 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12293 (gcov_do_dump): Declare.
12294 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12295
12296 2014-07-29 Martin Jambor <mjambor@suse.cz>
12297
12298 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12299 parameter to gimple.
12300 (sra_modify_assign): Likewise.
12301
12302 2014-07-29 Richard Biener <rguenther@suse.de>
12303
12304 PR middle-end/52478
12305 * expr.c (expand_expr_real_2): Revert last change.
12306
12307 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12308
12309 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12310 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12311 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12312 call.
12313 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12314 (contains_type_p): Forward declare.
12315 (polymorphic_call_target_hasher::hash): Hash speculative info.
12316 (polymorphic_call_target_hasher::equal): Compare speculative info.
12317 (get_class_context): Handle speuclation.
12318 (contains_type_p): Update.
12319 (get_polymorphic_call_info_for_decl): Update.
12320 (walk_ssa_copies): Break out from ...
12321 (get_polymorphic_call_info): ... here; set speculative context
12322 before giving up.
12323 * ipa-prop.c (ipa_write_indirect_edge_info,
12324 ipa_read_indirect_edge_info): Stream speculative context.
12325 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12326 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12327 SPECULATIVE_MAYBE_DERIVED_TYPE).
12328 (possible_polymorphic_call_targets overriders): Update.
12329 (dump_possible_polymorphic_call_targets overriders): Update.
12330 (dump_possible_polymorphic_call_target_p overriders): Update.
12331
12332 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12333
12334 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12335 ipa-devirt path; fix thinko there.
12336
12337 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12338
12339 * config/i386/i386.c (ix86_return_in_memory): Replace one
12340 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12341
12342 2014-07-28 Marek Polacek <polacek@redhat.com>
12343
12344 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12345
12346 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12347
12348 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12349 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12350 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12351 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12352 (USE_LD_AS_NEEDED): Likewise.
12353 (ASM_APP_ON): Likewise.
12354 (ASM_APP_OFF): Likewise.
12355 (TARGET_POSIX_IO): Likewise.
12356 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12357 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12358 (USE_LD_AS_NEEDED): Likewise.
12359 (ASM_APP_ON): Likewise.
12360 (ASM_APP_OFF): Likewise.
12361 (TARGET_POSIX_IO): Likewise.
12362
12363 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12364
12365 PR middle-end/61734
12366 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12367 operators other than the equality operators.
12368
12369 2014-07-28 Richard Biener <rguenther@suse.de>
12370
12371 PR middle-end/52478
12372 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12373 sure to register SImode ones, not only >= word_mode ones.
12374 * expr.c (expand_expr_real_2): When expanding -ftrapv
12375 binops do not use OPTAB_LIB_WIDEN.
12376
12377 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12378
12379 PR middle-end/61919
12380 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12381 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12382 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12383 inserting them in the insn stream.
12384
12385 2014-07-28 Marek Polacek <polacek@redhat.com>
12386
12387 PR middle-end/61913
12388 * common.opt (Wodr): Add Var.
12389
12390 2014-07-28 Richard Biener <rguenther@suse.de>
12391
12392 PR tree-optimization/61921
12393 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12394 if there is a varpool node before dereferencing it.
12395
12396 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12397
12398 * graphite-sese-to-poly.c:
12399 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12400 id of the pbb), which contains pointer to the pbb1.
12401
12402 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12403
12404 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12405
12406 * graphite-isl-ast-to-gimple.c:
12407 (graphite_create_new_guard): New function.
12408 (translate_isl_ast_node_if): New function.
12409 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12410
12411 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12412
12413 2014-07-27 Anthony Green <green@moxielogic.com>
12414
12415 * config.gcc: Add moxie-*-moxiebox* configuration.
12416 * config/moxie/moxiebox.h: New file.
12417
12418 2014-07-26 Andrew Pinski <apinski@cavium.com>
12419
12420 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12421 from the read only register.
12422
12423 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12424
12425 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12426 as the allocation class if it isn't likely to be spilled.
12427
12428 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12429
12430 * rtl.h (tls_referenced_p): Declare.
12431 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12432 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12433 (mips_cannot_force_const_mem): Use tls_referenced_p.
12434 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12435 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12436 instead of pa_tls_referenced_p.
12437 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12438 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12439 (pa_legitimate_constant_p): Likewise.
12440 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12441 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12442 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12443 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12444 rs6000_tls_referenced_p.
12445 (rs6000_tls_symbol_ref_1): Delete.
12446
12447 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12448
12449 PR target/44551
12450 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12451 Optimize inverse of a VEC_CONCAT.
12452
12453 2014-07-25 Xinliang David Li <davidxl@google.com>
12454
12455 * params.def: New parameter.
12456 * coverage.c (get_coverage_counts): Check new flag.
12457 (coverage_compute_profile_id): Check new flag.
12458 (coverage_begin_function): Check new flag.
12459 (coverage_end_function): Check new flag.
12460 * value-prof.c (coverage_node_map_initialized_p): New function.
12461 (init_node_map): Populate map with all functions.
12462 * doc/invoke.texi: Document new parameter.
12463
12464 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12465 Richard Biener <rguenther@suse.de>
12466
12467 * lto-streamer-out.c (struct sccs): Turn to ...
12468 (class DFS): ... this one; refactor the DFS walk so it can
12469 be re-done on per-SCC basis.
12470 (DFS::DFS): New constructor.
12471 (DFS::~DFS): New destructor.
12472 (hash_tree): Add new MAP argument holding in-SCC hash values;
12473 remove POINTER_TYPE hashing hack.
12474 (scc_entry_compare): Rename to ...
12475 (DFS::scc_entry_compare): ... this one.
12476 (hash_scc): Rename to ...
12477 (DFS::hash_scc): ... this one; pass output_block instead
12478 of streamer_cache; work harder to get unique and stable SCC
12479 hashes.
12480 (DFS_write_tree): Rename to ...
12481 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12482 (lto_output_tree): Update.
12483
12484 2014-07-25 Andi Kleen <ak@linux.intel.com>
12485
12486 * lto-streamer-out.c (hash_tree): Convert to inchash.
12487
12488 2014-07-25 Andi Kleen <ak@linux.intel.com>
12489
12490 * tree.c (build_type_attribute_qual_variant): Use inchash.
12491 (type_hash_list): Dito.
12492 (attribute_hash_list): Dito
12493 (iterative_hstate_expr): Dito.
12494 (iterative_hash_expr): Dito.
12495 (build_range_type_1): Dito.
12496 (build_array_type_1): Dito.
12497 (build_function_type): Dito.
12498 (build_method_type_directly): Dito.
12499 (build_offset_type): Dito.
12500 (build_complex_type): Dito.
12501 (make_vector_type): Dito.
12502 * tree.h (iterative_hash_expr): Add compat wrapper.
12503 (iterative_hstate_expr): Add.
12504
12505 2014-07-25 Andi Kleen <ak@linux.intel.com>
12506
12507 * Makefile.in (OBJS): Add inchash.o.
12508 (PLUGIN_HEADERS): Add inchash.h.
12509 * ipa-devirt.c: Include inchash.h.
12510 * lto-streamer-out.c: Dito.
12511 * tree-ssa-dom.c: Dito.
12512 * tree-ssa-pre.c: Dito.
12513 * tree-ssa-sccvn.c: Dito.
12514 * tree-ssa-tail-merge.c: Dito.
12515 * asan.c: Dito.
12516 * tree.c (iterative_hash_hashval_t): Move to ...
12517 (iterative_hash_host_wide_int): Move to ...
12518 * inchash.c: Here. New file.
12519 * tree.h (iterative_hash_hashval_t): Move to ...
12520 (iterative_hash_host_wide_int): Move to ...
12521 * inchash.h: Here. New file.
12522
12523 2014-07-25 Richard Biener <rguenther@suse.de>
12524
12525 PR middle-end/61762
12526 PR middle-end/61894
12527 * fold-const.c (native_encode_int): Add and handle offset
12528 parameter to do partial encodings of expr.
12529 (native_encode_fixed): Likewise.
12530 (native_encode_real): Likewise.
12531 (native_encode_complex): Likewise.
12532 (native_encode_vector): Likewise.
12533 (native_encode_string): Likewise.
12534 (native_encode_expr): Likewise.
12535 * fold-const.c (native_encode_expr): Add offset parameter
12536 defaulting to -1.
12537 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12538 (fold_ctor_reference): Handle all reads from tcc_constant
12539 ctors.
12540
12541 2014-07-25 Richard Biener <rguenther@suse.de>
12542
12543 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12544 as possibly unused.
12545
12546 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12547
12548 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12549
12550 2014-07-24 Kyle McMartin <kyle@redhat.com>
12551
12552 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12553
12554 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12555
12556 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12557 Add prototype.
12558 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12559 function.
12560 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12561 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12562 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12563
12564 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12565
12566 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12567 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12568 aggregate types. Instead, *all* aggregate types, except for single-
12569 element or homogeneous float/vector aggregates, are quadword-aligned
12570 if required by their type alignment. Issue -Wpsabi note when a type
12571 is now treated differently than before.
12572
12573 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12574
12575 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12576 does not fit fully into floating-point registers, and there is still
12577 space in the register parameter area, use GPRs to pass those parts
12578 of the argument. Issue -Wpsabi note if any parameter is now treated
12579 differently than before.
12580 (rs6000_arg_partial_bytes): Update.
12581
12582 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12583
12584 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12585
12586 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12587
12588 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12589 * toplev.c (initialize_rtl): Don't use it. Move previously
12590 "language-dependent" calls to...
12591 (backend_init): ...here.
12592 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12593 Assert that RTL initialization hasn't happend yet.
12594
12595 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12596
12597 PR rtl-optimization/61629
12598 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12599 they have already been initialized.
12600
12601 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12602
12603 PR middle-end/61268
12604 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12605 DECL_INCOMING_RTL and entry_parm.
12606 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12607 * calls.c (load_register_parameters): Likewise argument values.
12608 (emit_library_call_value_1, store_one_arg): Likewise argument
12609 save areas.
12610 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12611 stack slot.
12612 * explow.c (validize_mem): Modify the argument in-place.
12613
12614 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12615
12616 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12617 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12618
12619 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12620
12621 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12622 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12623
12624 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12625
12626 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12627 (aarch64_save_callee_saves): New parameter "skip_wb".
12628 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12629
12630 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12631
12632 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12633 "wb_candidate2".
12634 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12635
12636 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12637
12638 * graphite-isl-ast-to-gimple.c:
12639 (graphite_create_new_loop): Add calling of isl_id_free to properly
12640 decrement reference counts.
12641
12642 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12643
12644 2014-07-24 Martin Liska <mliska@suse.cz>
12645 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12646 function used.
12647 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12648 (rs6000_code_end): Likewise.
12649
12650 2014-07-24 Martin Liska <mliska@suse.cz>
12651
12652 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12653 symtab_node funtion used.
12654 (rs6000_xcoff_declare_object_name): Likewise.
12655
12656 2014-07-24 Martin Liska <mliska@suse.cz>
12657
12658 * cgraphunit.c (compile): Correct function used.
12659
12660 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12661
12662 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12663 as non-indexable.
12664
12665 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12666
12667 PR lto/61802
12668 * varasm.c (bss_initializer_p): Handle offlined ctors.
12669 (align_variable, get_variable_align): Likewise.
12670 (make_decl_one_only): Likewise.
12671 (default_binds_local_p_1): Likewise.
12672 (decl_binds_to_current_def_p): Likewise.
12673 (get_variable_section): Get constructor if it is offlined.
12674 (assemble_variable_contents): Sanity check that the caller
12675 streamed in the ctor in LTO.
12676
12677 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12678
12679 * graphite-isl-ast-to-gimple.c:
12680 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12681 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12682 isl_ast_op_pdiv_r to the different case.
12683
12684 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12685
12686 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12687
12688 PR middle-end/61876
12689 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12690 when flag_errno_math is on.
12691
12692 2014-07-24 Martin Liska <mliska@suse.cz>
12693
12694 * cgraph.h (varpool_node):
12695 (availability get_availability (void)):
12696 created from cgraph_variable_initializer_availability
12697 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12698 created from: cgraph_variable_initializer_availability
12699 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12700 (void finalize_named_section_flags (void)):
12701 created from varpool_finalize_named_section_flags
12702 (bool assemble_decl (void)): created from varpool_assemble_decl
12703 (void analyze (void)): created from varpool_analyze_node
12704 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12705 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12706 (void remove_initializer (void)): created from varpool_remove_initializer
12707 (tree get_constructor (void)): created from varpool_get_constructor
12708 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12709 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12710 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12711 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12712 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12713 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12714 (static bool output_variables (void)): created from varpool_output_variables
12715 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12716 created from varpool_extra_name_alias
12717 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12718 (static void dump_varpool (FILE *f)): created from dump_varpool
12719 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12720 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12721 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12722 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12723 (void assemble_aliases (void)): created from assemble_aliases
12724
12725 2014-07-24 Martin Liska <mliska@suse.cz>
12726
12727 * cgraph.h (symtab_node):
12728 (void register_symbol (void)): created from symtab_register_node
12729 (void remove (void)): created from symtab_remove_node
12730 (void dump (FILE *f)): created from dump_symtab_node
12731 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12732 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12733 (struct ipa_ref *add_reference (symtab_node *referred_node,
12734 enum ipa_ref_use use_type)): created from add_reference
12735 (struct ipa_ref *add_reference (symtab_node *referred_node,
12736 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12737 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12738 gimple stmt)): created from maybe_add_reference
12739 (bool semantically_equivalent_p (symtab_node *target)): created from
12740 symtab_semantically_equivalent_p
12741 (void remove_from_same_comdat_group (void)): created from
12742 remove_from_same_comdat_group
12743 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12744 symtab_add_to_same_comdat_group
12745 (void dissolve_same_comdat_group_list (void)): created from
12746 symtab_dissolve_same_comdat_group_list
12747 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12748 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12749 created from symtab_alias_ultimate_target
12750 (inline symtab_node *next_defined_symbol (void)): created from
12751 symtab_next_defined_symbol
12752 (bool resolve_alias (symtab_node *target)): created from
12753 symtab_resolve_alias
12754 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12755 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12756 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12757 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12758 (void set_section (const char *section)): created from set_section_1
12759 (enum availability get_availability (void)): created from symtab_node_availability
12760 (void make_decl_local (void)): created from symtab_make_decl_local
12761 (bool real_symbol_p (void)): created from symtab_read_node
12762 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12763 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12764 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12765 symtab_in_same_comdat_p;
12766 (bool address_taken_from_non_vtable_p (void)): created from
12767 address_taken_from_non_vtable_p
12768 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12769 (static void dump_table (FILE *)): created from dump_symtab
12770 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12771 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12772 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12773 symtab_used_from_object_file_p
12774 (void dump_base (FILE *)): created from dump_symtab_base
12775 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12776 (void unregister (void)): created from symtab_unregister_node
12777 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12778 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12779 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12780 symtab_nonoverwritable_alias_1
12781 * cgraph.h (cgraph_node):
12782 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12783 created from cgraph_remove_node_and_inline_clones
12784 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12785 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12786 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12787 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12788 created from cgraph_function_node
12789 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12790 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12791 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12792 created from cgraph_create_clone
12793 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12794 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12795 created from cgraph_create_virtual_clone
12796 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12797 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12798 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12799 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12800 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12801 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12802 created from cgraph_function_version_info
12803 (struct cgraph_function_version_info *insert_new_function_version (void)):
12804 created from insert_new_cgraph_node_version
12805 (struct cgraph_function_version_info *function_version (void)): created from
12806 get_cgraph_node_version
12807 (void analyze (void)): created from analyze_function
12808 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12809 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12810 tree real_alias) cgraph_add_thunk
12811 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12812 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12813 created from cgraph_function_or_thunk_node
12814 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12815 created from expand_thunk
12816 (void reset (void)): created from cgraph_reset_node
12817 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12818 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12819 (void remove (void)): created from cgraph_remove_node
12820 (void dump (FILE *f)): created from dump_cgraph_node
12821 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12822 (bool get_body (void)): created from cgraph_get_body
12823 (void release_body (void)): created from cgraph_release_function_body
12824 (void unnest (void)): created from cgraph_unnest_node
12825 (void make_local (void)): created from cgraph_make_node_local
12826 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12827 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12828 gcov_type count, int freq)): created from cgraph_create_edge
12829 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12830 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12831 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12832 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12833 created from cgraph_create_edge_including_clones
12834 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12835 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12836 (void remove_callers (void)): created from cgraph_node_remove_callers
12837 (void remove_callees (void)): created from cgraph_node_remove_callees
12838 (enum availability get_availability (void)): created from cgraph_function_body_availability
12839 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12840 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12841 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12842 (void call_duplication_hooks (cgraph_node *node2)): created from
12843 cgraph_call_node_duplication_hooks
12844 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12845 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12846 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12847 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12848 (void call_function_insertion_hooks (void)):
12849 created from cgraph_call_function_insertion_hooks
12850 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12851 (bool local_p (void)): created from cgraph_local_node
12852 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12853 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12854 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12855 (inline bool only_called_directly_or_aliased_p (void)):
12856 created from cgraph_only_called_directly_or_aliased_p
12857 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12858 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12859 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12860 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12861 (bool can_remove_if_no_direct_calls_p (void)):
12862 created from cgraph_can_remove_if_no_direct_calls_p
12863 (inline bool has_gimple_body_p (void)):
12864 created from cgraph_function_with_gimple_body_p
12865 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12866 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12867 (static inline void debug_cgraph (void)): created from debug_cgraph
12868 (static void record_function_versions (tree decl1, tree decl2)):
12869 created from record_function_versions
12870 (static void delete_function_version (tree decl)):
12871 created from delete_function_version
12872 (static void add_new_function (tree fndecl, bool lowered)):
12873 created from cgraph_add_new_function
12874 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12875 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12876 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12877 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12878 (static cgraph_node *get_for_asmname (tree asmname)):
12879 created from cgraph_node_for_asm
12880 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12881 created from cgraph_same_body_alias
12882 (static bool used_from_object_file_p_worker (cgraph_node *node,
12883 void *): new function
12884 (static bool non_local_p (cgraph_node *node, void *)):
12885 created from cgraph_non_local_node_p_1
12886 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12887 created from verify_cgraph
12888 (static bool make_local (cgraph_node *node, void *)):
12889 created from cgraph_make_node_local
12890 (static cgraph_node *create_alias (tree alias, tree target)):
12891 created from cgraph_create_function_alias
12892 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12893 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12894 created from cgraph_create_edge_1
12895 * cgraph.h (varpool_node):
12896 (void remove (void)): created from varpool_remove_node
12897 (void dump (FILE *f)): created from dump_varpool_node
12898
12899 2014-07-24 Richard Biener <rguenther@suse.de>
12900
12901 PR ipa/61823
12902 * tree-ssa-structalias.c (create_variable_info_for_1):
12903 Use varpool_get_constructor.
12904 (create_variable_info_for): Likewise.
12905
12906 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12907
12908 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12909 subtract outgoing area size when restoring stack_pointer_rtx.
12910
12911 2014-07-24 Nick Clifton <nickc@redhat.com>
12912
12913 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12914 that operations are taking place in parallel.
12915 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12916
12917 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12918
12919 * omp-low.c (extract_omp_for_data): Add missing break statement.
12920
12921 2014-07-24 Richard Biener <rguenther@suse.de>
12922
12923 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12924 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12925 and adjust MOVE_RATIO query accordingly.
12926 (estimate_num_insns): Adjust callers.
12927 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12928 * ipa-cp.c (gather_context_independent_values,
12929 estimate_local_effects): Likewise.
12930 * ipa-split.c (consider_split): Likewise.
12931
12932 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12933
12934 * config/i386/driver-i386.c: Remove names of unused arguments and
12935 unnecessary unused attributes.
12936 * config/i386/host-mingw32.c: Likewise.
12937 * config/i386/i386.c: Likewise.
12938 * config/i386/winnt-stubs.c: Likewise.
12939 * config/i386/winnt.c: Likewise.
12940
12941 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12942
12943 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12944 (aarch64_gen_loadwb_pair): New helper function.
12945 (aarch64_expand_epilogue): Simplify code using new helper functions.
12946 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12947
12948 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12949
12950 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12951 (aarch64_gen_storewb_pair): New helper function.
12952 (aarch64_expand_prologue): Simplify code using new helper functions.
12953 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12954
12955 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12956
12957 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12958 Rename to aarch64_save_callee_saves, remove restore code.
12959 (aarch64_restore_callee_saves): New function.
12960
12961 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12962
12963 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12964 (aarch64_save_callee_saves): New function to handle reg save
12965 for both core and vectore regs.
12966
12967 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12968
12969 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12970 (aarch64_gen_store_pair): New helper function.
12971 (aarch64_save_or_restore_callee_save_registers)
12972 (aarch64_save_or_restore_fprs): Use new helper functions.
12973
12974 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12975
12976 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12977 (aarch64_save_or_restore_callee_save_registers)
12978 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12979
12980 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12981
12982 * config/aarch64/aarch64.c
12983 (aarch64_save_or_restore_callee_save_registers)
12984 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12985
12986 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12987
12988 * config/aarch64/aarch64.c
12989 (aarch64_save_or_restore_callee_save_registers)
12990 (aarch64_save_or_restore_fprs): Remove 'increment'.
12991
12992 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12993
12994 * config/aarch64/aarch64.c
12995 (aarch64_save_or_restore_callee_save_registers)
12996 (aarch64_save_or_restore_fprs): Use register offset in
12997 cfun->machine->frame.reg_offset.
12998
12999 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13000
13001 * config/aarch64/aarch64.c
13002 (aarch64_save_or_restore_callee_save_registers)
13003 (aarch64_save_or_restore_fprs): Remove base_rtx.
13004
13005 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13006
13007 * config/aarch64/aarch64.c
13008 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13009 to 'start_offset'. Remove local variable 'start_offset'.
13010
13011 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13012
13013 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13014 type to HOST_WIDE_INT.
13015
13016 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13017
13018 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13019 (aarch64_save_or_restore_fprs)
13020 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13021
13022 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13023
13024 * config/arm/t-rtems-eabi: Add
13025 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13026 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13027 mbig-endian/mthumb/march=armv7-r, and
13028 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13029 multilibs.
13030
13031 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13032 Chris Johns <chrisj@rtems.org>
13033 Joel Sherrill <joel.sherrill@oarcorp.com>
13034
13035 * config.gcc: Add nios2-*-rtems*.
13036 * config/nios2/rtems.h: New file.
13037 * gcc/config/nios2/t-rtems: New file.
13038
13039 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13040
13041 PR target/61396
13042 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13043 constant numbers, not general constants.
13044 (rs6000_expand_vector_init): Ditto.
13045
13046 2014-07-23 Nathan Sidwell <nathan@acm.org>
13047
13048 * gcov-tool.c (gcov_list): Declare here.
13049 (set_gcov_list): Remove.
13050 (gcov_output_files): Set gcov_list directly.
13051
13052 2014-07-23 Host Schirmeier <horst@schirmeier.com>
13053
13054 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13055
13056 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13057
13058 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13059 callee-saved registers are available for padding purpose
13060 and r3 is not mandatory, then prefer use those callee-saved
13061 instead of r3.
13062
13063 2014-07-23 Richard Biener <rguenther@suse.de>
13064
13065 * params.def (PARAM_MAX_COMBINE_INSNS): New.
13066 * combine.c: Include statistics.h and params.h.
13067 (combine_instructions): Guard three and four insn combines
13068 with max-combine-insns value. Record statistics for combines
13069 performed.
13070 * doc/invoke.texi (max-combine-insns): Document new param.
13071
13072 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13073
13074 * graphite-isl-ast-to-gimple.c:
13075 (translate_isl_ast_node_block): New function.
13076 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13077
13078 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13079 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13080
13081 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13082
13083 * graphite-isl-ast-to-gimple.c:
13084 (get_max_schedule_dimensions): New function.
13085 (extend_schedule): Likewise.
13086 (generate_isl_schedule): Add calling of extend_schedule and
13087 get_max_schedule_dimensions.
13088
13089 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13090
13091 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13092 (case UNSPEC): Handle UNSPEC_RBIT.
13093
13094 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13095
13096 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13097 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13098
13099 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13100
13101 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13102
13103 2014-07-22 Roman Gareev <gareevroman@gmail.com>
13104
13105 * graphite-isl-ast-to-gimple.c:
13106 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13107 (ivs_params_clear):
13108 (build_iv_mapping): New function.
13109 (translate_isl_ast_node_user): Likewise.
13110 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13111
13112 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13113 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13114 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13115
13116 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13117
13118 PR target/55701
13119 * config/arm/arm.md (setmem): New pattern.
13120 * config/arm/arm-protos.h (struct tune_params): New fields.
13121 (arm_gen_setmem): New prototype.
13122 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13123 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13124 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13125 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13126 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13127 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13128 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13129 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13130 (arm_const_inline_cost): New function.
13131 (arm_block_set_max_insns): New function.
13132 (arm_block_set_non_vect_profit_p): New function.
13133 (arm_block_set_vect_profit_p): New function.
13134 (arm_block_set_unaligned_vect): New function.
13135 (arm_block_set_aligned_vect): New function.
13136 (arm_block_set_unaligned_non_vect): New function.
13137 (arm_block_set_aligned_non_vect): New function.
13138 (arm_block_set_vect, arm_gen_setmem): New functions.
13139
13140 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13141
13142 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13143
13144 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13145
13146 PR target/61855
13147 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13148 out of #ifdef __OPTIMIZE__.
13149
13150 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13151
13152 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13153 different trapping status if -fnon-call-exceptions is enabled.
13154
13155 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13156
13157 * expr.c (store_field): Handle VOIDmode for calls that return values
13158 in multiple locations.
13159
13160 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13161
13162 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13163 (altivec_vsldoi_<mode>): Likewise.
13164
13165 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13166
13167 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13168 to the number of characters in the line.
13169
13170 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13171
13172 * graphite-isl-ast-to-gimple.c: Add using of
13173 build_nonstandard_integer_type instead of int128_integer_type_node.
13174
13175 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13176
13177 * toplev.c (output_stack_usage): Adjust the location of the warning.
13178
13179 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13180
13181 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13182 (*membar_storeload): Disable for LEON3.
13183
13184 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13185
13186 PR rtl-optimization/61461
13187 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13188
13189 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13190
13191 PR target/61794
13192 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13193 Fix instruction constraint.
13194 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13195
13196 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13197
13198 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13199
13200 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13201
13202 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13203 GNU coding standards.
13204 (nds32_register_move_cost): Likewise.
13205 (nds32_memory_move_cost): Likewise.
13206 (nds32_address_cost): Likewise.
13207
13208 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13209
13210 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13211
13212 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13213
13214 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13215 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13216 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13217 (HAVE_sync_compare_and_swapqi): Define.
13218 (HAVE_sync_compare_and_swaphi): Likewise.
13219 (HAVE_sync_compare_and_swapsi): Likewise.
13220
13221 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13222
13223 * config/mips/p5600.md: Add missing cpu tests.
13224
13225 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13226
13227 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13228 (vmla_f64): Likewise.
13229 (vfms_f64): Likewise.
13230 (vmls_f64): Likewise.
13231
13232 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13233
13234 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13235 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13236
13237 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13238
13239 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13240 (vmlal_high_lane_s32): Likewise.
13241 (vmlal_high_lane_u16): Likewise.
13242 (vmlal_high_lane_u32): Likewise.
13243 (vmlsl_high_lane_s16): Likewise.
13244 (vmlsl_high_lane_s32): Likewise.
13245 (vmlsl_high_lane_u16): Likewise.
13246 (vmlsl_high_lane_u32): Likewise.
13247
13248 2014-07-17 Terry Guo <terry.guo@arm.com>
13249
13250 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13251 (alus_reg): Renamed to alus_sreg.
13252 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13253 from alu_reg to alu_sreg. Change type of dsp instructions from
13254 alu_reg to alu_dsp_reg.
13255 * config/arm/thumb1.md: Likewise.
13256 * config/arm/thumb2.md: Likewise.
13257 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13258 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13259 with alu_sreg and alus_sreg.
13260 * config/arm/arm1026ejs.md (alu_op): Likewise.
13261 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13262 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13263 * config/arm/fa526.md (526_alu_op): Likewise.
13264 * config/arm/fa606te.md (606te_alu_op): Likewise.
13265 * config/arm/fa626te.md (626te_alu_op): Likewise.
13266 * config/arm/fa726te.md (726te_alu_op): Likewise.
13267 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13268 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13269 alu_sreg, alu_dsp_reg and alus_sreg.
13270 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13271 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13272 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13273 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13274 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13275 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13276 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13277 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13278 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13279 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13280 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13281 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13282 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13283 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13284 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13285 alus_reg to alus_sreg.
13286
13287 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13288
13289 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13290 infinity format.
13291
13292 2014-07-17 Richard Biener <rguenther@suse.de>
13293
13294 PR rtl-optimization/61801
13295 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13296 don't set reg_pending_barrier if it appears in a debug-insn.
13297
13298 2014-07-16 DJ Delorie <dj@redhat.com>
13299
13300 * config/rx/rx.c (rx_option_override): Fix alignment values.
13301 (rx_align_for_label): Likewise.
13302
13303 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13304
13305 PR target/61737.
13306 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13307 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13308 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13309 functions.
13310 (cris_print_index, cris_print_operand, cris_constant_index_p)
13311 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13312 (cris_address_cost): Ditto last CONSTANT_P.
13313 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13314 callers changed. Yield cris_offsettable_symbol for non-PIC
13315 constant symbolic expressions including labels. Yield cris_unspec
13316 for all unspecs.
13317 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13318 target to pic_offset_table_rtx for calls that will likely go
13319 through PLT, const0_rtx when they can't. All callers changed.
13320 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13321 symbolic expressions to be PICified. Remove second, redundant,
13322 assert on can_create_pseudo_p returning non-zero. Use
13323 replace_equiv_address_nv, not replace_equiv_address, for final
13324 operand update.
13325 * config/cris/cris.md ("movsi"): Move variable t to pattern
13326 toplevel. Adjust assert for new cris_symbol_type member. Use
13327 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13328 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13329 for lapc stricter.
13330 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13331 ("call", "call_value"): Use second incoming operand as a marker
13332 for pic-offset-table-register being used.
13333 ("*expanded_call_non_v32", "*expanded_call_v32")
13334 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13335 second incoming operand to CALL, match cris_call_type_marker.
13336 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13337 ("*expanded_call_side"): Ditto. Fix typo in comment.
13338 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13339 CONSTANT_P.
13340 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13341 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13342 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13343 users changed. Add members cris_offsettable_symbol and cris_unspec.
13344 (cris_symbol_type): Rename from cris_pic_symbol_type.
13345 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13346 just CONSTANT_P.
13347 * config/cris/cris-protos.h (cris_symbol_type_of,
13348 cris_expand_pic_call_address): Adjust prototypes.
13349 (cris_legitimate_constant_p): New prototype.
13350
13351 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13352 an existing tmake_file. Don't add t-slibgcc and t-linux.
13353
13354 2014-07-17 Jason Merrill <jason@redhat.com>
13355
13356 PR c++/61623
13357 * symtab.c (symtab_remove_from_same_comdat_group): Also
13358 set_comdat_group to NULL_TREE.
13359 (verify_symtab): Fix diagnostic.
13360
13361 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13362
13363 PR target/61662
13364 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13365
13366 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13367
13368 Support location tracking for built-in macro tokens
13369 * input.h (is_location_from_builtin_token): New function declaration.
13370 * input.c (is_location_from_builtin_token): New function definition.
13371 * toplev.c (general_init): Tell libcpp what the pre-defined
13372 spelling location for built-in tokens is.
13373
13374 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13375
13376 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13377 on the FUNCTION_DECL.
13378
13379 2014-07-16 Richard Biener <rguenther@suse.de>
13380
13381 PR other/61782
13382 * doc/extend.texi (always_inline): Clarify.
13383
13384 2014-07-15 Eric Christopher <echristo@gmail.com>
13385
13386 * doc/invoke.texi (Link Options): Document -z option.
13387
13388 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13389
13390 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13391 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13392
13393 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13394
13395 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13396
13397 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13398
13399 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13400 varpool_assemble_decl.
13401 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13402 true.
13403
13404 2014-07-15 Michael Matz <matz@suse.de>
13405
13406 PR rtl-optimization/61772
13407 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13408
13409 2014-07-15 Richard Biener <rguenther@suse.de>
13410
13411 * opts.c (default_options_table): Disable bit-ccp at -Og.
13412
13413 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13414
13415 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13416
13417 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13418
13419 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13420 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13421 call langhook for unknown declaration.
13422 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13423 * tree.h (DECL_ARGUMENTS): Update.
13424 * print-tree.c (print_node): Update.
13425 * tree-core.h (tree_decl_non_common): Remove arguments.
13426 (tree_function_decl): Add arguments.
13427
13428 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13429
13430 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13431
13432 2014-07-14 Richard Biener <rguenther@suse.de>
13433
13434 PR tree-optimization/61779
13435 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13436 simplifying a condition.
13437
13438 2014-07-14 Richard Biener <rguenther@suse.de>
13439
13440 * builtins.c (c_strlen): Make only_value == 2 really only
13441 affect warning generation.
13442
13443 2014-07-14 Richard Biener <rguenther@suse.de>
13444
13445 PR tree-optimization/61757
13446 PR tree-optimization/61783
13447 PR tree-optimization/61787
13448 * tree-ssa-dom.c (record_equality): Revert canonicalization
13449 change and add comment.
13450 (propagate_rhs_into_lhs): Revert previous fix, removing
13451 loop depth restriction again.
13452
13453 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13454
13455 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13456 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13457 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13458 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13459 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13460 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13461 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13462
13463 2014-07-14 Richard Biener <rguenther@suse.de>
13464
13465 * cgraph.h (decl_in_symtab_p): Make inline.
13466
13467 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13468
13469 PR middle-end/61294
13470 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13471
13472 PR target/61656
13473 * config/i386/i386.c (classify_argument): Don't merge classes above
13474 number of words.
13475
13476 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13477
13478 * cgraph.h (symtab_node): Add nonzero_address.
13479 (decl_in_symtab_p): Break out from ...
13480 (symtab_get_node): ... here.
13481 * fold-const.c: Include cgraph.h
13482 (tree_single_nonzero_warnv_p): Use symtab to determine
13483 if symbol is non-zero.
13484 * symtab.c (symtab_node::nonzero_address): New method.
13485
13486 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13487
13488 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13489 forgotten in previous commit.
13490
13491 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13492
13493 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13494 on builtin types.
13495 * ipa-devirt.c: Include stor-layout.h and intl.h
13496 (odr_subtypes_equivalent_p): New function.
13497 (warn_odr): New function.
13498 (warn_type_mismatch): New function.
13499 (odr_types_equivalent_p): New function.
13500 (add_type_duplicate): Use it.
13501 * common.opt (Wodr): New flag.
13502 * doc/invoke.texi (Wodr): Document new warning.
13503
13504 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13505
13506 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13507 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13508 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13509 (varpool_get_constructor): Push CTORS_IN timevar.
13510 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13511
13512 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13513
13514 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13515 Remove VOID_FTYPE_PUSHORT.
13516 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13517 Change code to USHORT_FTYPE_VOID.
13518 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13519 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13520 (ix86_atomic_assign_expand_fenv): Update for
13521 __builtin_ia32_fnstsw changes.
13522 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13523 (fnstsw): Change operand 0 to nonimmediate operand.
13524
13525 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13526
13527 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13528 (varpool_get_constructor): New function.
13529 (varpool_ctor_useable_for_folding_p): Break out from ...
13530 (ctor_for_folding): ... here; use varpool_get_constructor.
13531 (varpool_assemble_decl): Likewise.
13532 * lto-streamer.h (struct output_block): Turn cgraph_node
13533 to symbol filed.
13534 (lto_input_variable_constructor): Declare.
13535 * ipa-visibility.c (function_and_variable_visibility): Use
13536 varpool_get_constructor.
13537 * cgraph.h (varpool_get_constructor): Declare.
13538 (varpool_ctor_useable_for_folding_p): New function.
13539 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13540 parameter; return error_mark_node for non-trivial constructors.
13541 (lto_write_tree_1, DFS_write_tree): Update use of
13542 get_symbol_initial_value.
13543 (output_function): Update initialization of symbol.
13544 (output_constructor): New function.
13545 (copy_function): Rename to ..
13546 (copy_function_or_variable): ... this one; handle vars too.
13547 (lto_output): Output variable sections.
13548 * lto-streamer-in.c (input_constructor): New function.
13549 (lto_read_body): Rename from ...
13550 (lto_read_body_or_constructor): ... this one; handle vars too.
13551 (lto_input_variable_constructor): New function.
13552 * ipa-prop.c (ipa_prop_write_jump_functions,
13553 ipa_prop_write_all_agg_replacement): Update.
13554 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13555 (output_cgraph_opt_summary): Set symbol to NULL.
13556
13557 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13558
13559 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13560 non-polymorphic types.
13561 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13562 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13563 of types is not polymorphic.
13564
13565 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13566
13567 * lra-constraints.c (remove_inheritance_pseudos): Process
13568 destination pseudo too.
13569
13570 2014-07-11 Rong Xu <xur@google.com>
13571
13572 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13573 commit r212448.
13574
13575 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13576
13577 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13578 * config/avr/avr-devices.c (AVR_MCU): Same.
13579 (avr_mcu_types): add text start value to end of device list.
13580 * config/avr/avr-mcus.def: Add text section start for all devices.
13581 (ata5782): Add new avr5 device.
13582 (ata5831): Same.
13583 * config/avr/avr-tables.opt: Regenerate.
13584 * config/avr/avr.h: Add declaration for text section start handler.
13585 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13586 SPEC functions.
13587 (LINK_SPEC): Include text section start handler to linker spec.
13588 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13589 pass -Ttext option to linker if the text section start for the device
13590 is not zero.
13591 * config/avr/t-multilib: Regenerate.
13592 * doc/avr-mmcu.texi: Regenerate.
13593
13594 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13595
13596 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13597 * config/rs6000/aix52.h (LINK_SPEC): Same.
13598 * config/rs6000/aix53.h (LINK_SPEC): Same.
13599 * config/rs6000/aix61.h (LINK_SPEC): Same.
13600 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13601
13602 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13603
13604 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13605 (graphite_verify): New function.
13606 (ivs_params_clear): New function.
13607 (gcc_expression_from_isl_ast_expr_id): New function.
13608 (gcc_expression_from_isl_expr_int): New function.
13609 (binary_op_to_tree): New function.
13610 (ternary_op_to_tree): New function.
13611 (unary_op_to_tree): New function.
13612 (nary_op_to_tree): New function.
13613 (gcc_expression_from_isl_expr_op): New function.
13614 (gcc_expression_from_isl_expression): New function.
13615 (graphite_create_new_loop): New function.
13616 (translate_isl_ast_for_loop): New function.
13617 (get_upper_bound): New function.
13618 (graphite_create_new_loop_guard): New function.
13619 (translate_isl_ast_node_for): New function.
13620 (translate_isl_ast): New function.
13621 (add_parameters_to_ivs_params): New function.
13622 (scop_to_isl_ast): New parameter ip.
13623 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13624
13625 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13626
13627 * config/xtensa/predicates.md (call expander): Update for
13628 DECL_SECTION_NAME being string.
13629
13630 2014-07-11 Richard Biener <rguenther@suse.de>
13631
13632 PR middle-end/61473
13633 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13634 can be implemented with a single load followed by a single store.
13635 (c_strlen): Only warn when only_value is not 2.
13636
13637 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13638
13639 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13640
13641 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13642
13643 PR target/61561
13644 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13645 (*movhi_bytes): Likewise.
13646 (*arm_movqi_insn): Likewise.
13647
13648 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13649
13650 PR target/56858
13651 * config/alpha/alpha.c: Include tree-pass.h, context.h
13652 and pass_manager.h.
13653 (pass_data_handle_trap_shadows): New pass.
13654 (pass_handle_trap_shadows::gate): New pass gate function.
13655 (make_pass_handle_trap_shadows): New function.
13656 (rest_of_handle_trap_shadows): Ditto.
13657
13658 (alpha_align_insns_1): Rename from alpha_align_insns.
13659 (pass_data_align_insns): New pass.
13660 (pass_align_insns::gate): New pass gate function.
13661 (make_pass_aling_insns): New function.
13662 (rest_of_align_insns): Ditto.
13663 (alpha_align_insns): Ditto.
13664
13665 (alpha_option_override): Declare handle_trap_shadows info
13666 and align_insns_info. Register handle_trap_shadows and align_insns
13667 passes here.
13668 (alpha_reorg): Do not call alpha_trap_shadows and
13669 alpha_align_insn from here.
13670
13671 (alpha_pad_function_end): Do not skip BARRIERs.
13672
13673 2014-07-10 Rong Xu <xur@google.com>
13674
13675 Add gcov-tool: an offline gcda profile processing tool support.
13676 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13677 (gcov_is_error): Ditto.
13678 (gcov_read_string): Ditto.
13679 (gcov_read_sync): Ditto.
13680 * gcov-io.h: Move counter defines to gcov-counter.def.
13681 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13682 * coverage.c: Ditto.
13683 * gcov-tool.c: Offline gcda profile processing tool.
13684 (unlink_gcda_file): Remove one gcda file.
13685 (unlink_profile_dir): Remove gcda files from the profile path.
13686 (gcov_output_files): Output gcda files to an output dir.
13687 (profile_merge): Merge two profiles in directory.
13688 (print_merge_usage_message): Print merge usage.
13689 (merge_usage): Print merge usage and exit.
13690 (do_merge): Driver for profile merge sub-command.
13691 (profile_rewrite): Rewrite profile.
13692 (print_rewrite_usage_message): Print rewrite usage.
13693 (rewrite_usage): Print rewrite usage and exit.
13694 (do_rewrite): Driver for profile rewrite sub-command.
13695 (print_usage): Print gcov-info usage and exit.
13696 (print_version): Print gcov-info version.
13697 (process_args): Process arguments.
13698 (main): Main routine for gcov-tool.
13699 * Makefile.in: Build and install gcov-tool.
13700 * gcov-counter.def: New file split from gcov-io.h.
13701 * doc/gcc.texi: Include gcov-tool.texi.
13702 * doc/gcov-tool.texi: Document for gcov-tool.
13703
13704 2014-07-10 Richard Biener <rguenther@suse.de>
13705
13706 PR tree-optimization/61757
13707 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13708 (propagate_rhs_into_lhs): Revert part of last change.
13709
13710 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13711
13712 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13713 FUNCTION_DECLs.
13714
13715 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13716
13717 PR middle-end/53590
13718 * function.c (allocate_struct_function): Revert r188667 change.
13719
13720 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13721
13722 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13723
13724 * doc/install.texi: Remove links to defunct package providers for
13725 Solaris.
13726
13727 2014-07-09 Tom de Vries <tom@codesourcery.com>
13728
13729 * final.c (get_call_fndecl): Declare.
13730 (self_recursive_call_p): New function.
13731 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13732
13733 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13734
13735 * ipa-devirt.c (record_node): Walk through aliases.
13736
13737 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13738
13739 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13740
13741 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13742
13743 Revert:
13744 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13745
13746 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13747
13748 * ipa-visibility.c (function_and_variable_visibility): Remove
13749 temporary hack disabling local aliases on AIX.
13750
13751 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13752
13753 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13754 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13755
13756 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13757
13758 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13759 * rs6000/rs6000.c: Inline output of .set instruction.
13760 (declare_alias_data): New struct.
13761 (rs6000_declare_alias): New function.
13762 (rs6000_xcoff_declare_function_name): Use it.
13763 (rs6000_xcoff_declare_object_name): New function.
13764 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13765 (ASM_OUTPUT_DEF): Turn to empty definition.
13766
13767 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13768
13769 PR bootstrap/61679
13770 * hash-table.h: use hash_table::value_type instead of
13771 Descriptor::value_type in the return types of several methods.
13772
13773 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13774
13775 * tree-pass.h (pass_data): Remove has_execute member.
13776 * passes.c (execute_one_pass): Don't check pass->has_execute.
13777 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13778 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13779 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13780 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13781 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13782 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13783 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13784 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13785 gimple-low.c, gimple-ssa-isolate-paths.c,
13786 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13787 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13788 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13789 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13790 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13791 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13792 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13793 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13794 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13795 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13796 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13797 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13798 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13799 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13800 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13801 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13802 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13803 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13804 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13805 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13806 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13807 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13808 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13809 web.c: Remove initializer for pass_data::has_execute.
13810
13811 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13812
13813 * graphite-htab.h: Use hash_map instead of hash_table.
13814 * graphite-clast-to-gimple.c: Adjust.
13815 * passes.c: Use hash_map instead of hash_table.
13816 * sese.c: Likewise.
13817 * sese.h: Remove now unused code.
13818
13819 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13820
13821 PR target/61599
13822 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13823 than zero.
13824
13825 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13826
13827 PR rtl-optimization/61673
13828 * combine.c (simplify_comparison): Test just mode's sign bit
13829 in tmode rather than the sign bit and any bits above it.
13830
13831 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13832
13833 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13834 Add __isl_give to the declaration.
13835 (generate_isl_schedule): Likewise.
13836 (scop_to_isl_ast): Likewise.
13837
13838 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13839
13840 * config/arm/arm.c (cortexa5_extra_costs): New table.
13841 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13842
13843 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13844
13845 PR tree-optimization/61725
13846 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13847 range, use range_includes_zerop_p instead of integer_zerop on
13848 vr0->min, only use log2 of max if min is not negative.
13849
13850 2014-07-08 Richard Biener <rguenther@suse.de>
13851
13852 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13853 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13854 restriction on loop depth difference.
13855 (record_equality): Likewise.
13856 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13857 (loop_depth_of_name): Remove.
13858 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13859 restriction on loop depth difference.
13860 (init_copy_prop): Likewise.
13861
13862 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13863
13864 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13865 parameter.
13866 (walk_aliased_vdefs): Likewise.
13867 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13868 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13869 (detect_type_change_from_memory_writes): Check if entry was reached.
13870
13871 2014-07-08 Richard Biener <rguenther@suse.de>
13872
13873 PR tree-optimization/61681
13874 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13875 NONLOCAL inside ESCAPED.
13876
13877 2014-07-08 Richard Biener <rguenther@suse.de>
13878
13879 PR tree-optimization/61680
13880 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13881 Handle properly all read-write dependences with group accesses.
13882
13883 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13884
13885 PR tree-optimization/61576
13886 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13887 block containing reduction statement is predecessor of phi basi block.
13888
13889 2014-07-08 Marek Polacek <polacek@redhat.com>
13890
13891 PR c/60226
13892 * fold-const.c (round_up_loc): Change the parameter type.
13893 Remove assert.
13894 * fold-const.h (round_up_loc): Adjust declaration.
13895 * stor-layout.c (finalize_record_size): Check for too large types.
13896
13897 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13898
13899 * symtab.c: Include calls.h.
13900 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13901
13902 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13903
13904 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13905 little-endian code generation.
13906 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13907 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13908 (spe_evmergehilo): Rename to...
13909 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13910 (spe_evmergelo): Rename to...
13911 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13912 (spe_evmergelohi): Rename to...
13913 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13914 (spe_evmergehi, spe_evmergehilo): New expanders.
13915 (spe_evmergelo, spe_evmergelohi): Likewise.
13916 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13917 (*frob_tf_ti): Likewise.
13918 (*frob_<mode>_di_2): Likewise.
13919 (*frob_tf_di_8_2): Likewise.
13920 (*frob_di_<mode>): Likewise.
13921 (*frob_ti_tf): Likewise.
13922 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13923 (*frob_ti_<mode>_8_2): Likewise.
13924 (*frob_ti_tf_2): Likewise.
13925 (mov_si<mode>_e500_subreg0): Rename to...
13926 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13927 endianness only.
13928 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13929 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13930 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13931 the big endianness only.
13932 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13933 (*mov_si<mode>_e500_subreg0_2): Rename to...
13934 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13935 big big endianness only.
13936 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13937 (*mov_si<mode>_e500_subreg4): Rename to...
13938 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13939 endianness only.
13940 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13941 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13942 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13943 the big endianness only.
13944 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13945 pattern.
13946 (*mov_si<mode>_e500_subreg4_2): Rename to...
13947 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13948 endianness only.
13949 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13950 (*mov_sitf_e500_subreg8): Rename to...
13951 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13952 endianness only.
13953 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13954 (*mov_sitf_e500_subreg8_2): Rename to...
13955 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13956 endianness only.
13957 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13958 (*mov_sitf_e500_subreg12): Rename to...
13959 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13960 endianness only.
13961 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13962 (*mov_sitf_e500_subreg12_2): Rename to...
13963 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13964 endianness only.
13965 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13966
13967 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13968
13969 * asan.c (instrument_strlen_call): Do not instrument first byte
13970 in strlen if already instrumented.
13971
13972 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13973
13974 * config/arm/arm.opt (mwords-little-endian): Delete.
13975 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13976 of TARGET_LITTLE_WORDS.
13977 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13978 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13979 warning.
13980 * doc/invoke.texi: Remove references to -mwords-little-endian.
13981
13982 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13983
13984 * expmed.c (struct init_expmed_rtl): Change all fields but
13985 pow2 and cint from struct rtx_def to rtx.
13986 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13987 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13988 at the end again.
13989
13990 2014-07-06 Marek Polacek <polacek@redhat.com>
13991
13992 PR c/6940
13993 * doc/invoke.texi: Document -Wsizeof-array-argument.
13994
13995 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13996
13997 * wide-int.h (wide_int_storage): Change declaration from struct
13998 to class.
13999
14000 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
14001
14002 * cgraph.c (cgraph_create_indirect_edge): Update call of
14003 get_polymorphic_call_info.
14004 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14005 (possible_polymorphic_call_targets): Add parameter call.
14006 (decl_maybe_in_construction_p): New predicate.
14007 (get_polymorphic_call_info): Add parameter call;
14008 use decl_maybe_in_construction_p.
14009 * gimple-fold.c (fold_gimple_assign): Update use of
14010 possible_polymorphic_call_targets.
14011 (gimple_fold_call): Likewise.
14012 * ipa-prop.c: Inlcude calls.h
14013 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14014 (param_type_may_change_p): New predicate.
14015 (detect_type_change_from_memory_writes): Break out from ...
14016 (detect_type_change): ... this one; use param_type_may_change_p.
14017 (detect_type_change_ssa): Use param_type_may_change_p.
14018 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14019
14020 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
14021
14022 PR target/49423
14023 * config/arm/arm-protos.h (arm_legitimate_address_p,
14024 arm_is_constant_pool_ref): Add prototypes.
14025 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14026 (arm_is_constant_pool_ref) New function.
14027 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14028 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14029 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14030 operand. Remove pool_range and neg_pool_range attributes.
14031 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14032 pool_range and neg_pool_range attributes.
14033 * config/arm/constraints.md (Uh): New constraint.
14034 (Uq): Don't allow constant pool references.
14035
14036 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
14037
14038 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14039 (move_lo_quad_internal_be_<mode>): Likewise.
14040 (move_lo_quad_<mode>): Convert to define_expand.
14041 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14042 (aarch64_simd_move_hi_quad_be_<mode>): New.
14043 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14044 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14045 (aarch64_combinez_be<mode>): New.
14046 (aarch64_combine<mode>): Convert to define_expand.
14047 (aarch64_combine_internal<mode>): New.
14048 (aarch64_simd_combine<mode>): Remove bogus RTL description.
14049
14050 2014-07-04 Tom de Vries <tom@codesourcery.com>
14051
14052 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14053 combination of earlyclobber and read/write modifiers.
14054
14055 2014-07-04 Tom de Vries <tom@codesourcery.com>
14056
14057 * config/aarch64/aarch64-simd.md
14058 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14059
14060 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
14061
14062 PR target/61714
14063 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14064
14065 2014-07-04 Jakub Jelinek <jakub@redhat.com>
14066
14067 PR middle-end/61654
14068 * cgraphunit.c (expand_thunk): Call free_dominance_info.
14069
14070 PR tree-optimization/61684
14071 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14072 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14073
14074 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14075 Kito Cheng <kito@0xlab.org>
14076 Monk Chiang <sh.chiang04@gmail.com>
14077
14078 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14079 (nds32_symbol_load_store_p): Move to ...
14080 (nds32_fp_as_gp_check_available): Move to ...
14081 * config/nds32/nds32-fp-as-gp.c: ... here.
14082 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14083 extern declaration.
14084
14085 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14086 Kito Cheng <kito@0xlab.org>
14087 Monk Chiang <sh.chiang04@gmail.com>
14088
14089 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14090 (nds32_expand_store_multiple): Move to ...
14091 (nds32_expand_movmemqi): Move to ...
14092 * config/nds32/nds32-memory-manipulation.c: ... here.
14093
14094 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14095 Kito Cheng <kito@0xlab.org>
14096 Monk Chiang <sh.chiang04@gmail.com>
14097
14098 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14099 (nds32_output_casesi_pc_relative): Move to ...
14100 (nds32_output_casesi): Move to ...
14101 (nds32_mem_format): Move to ...
14102 (nds32_output_16bit_store): Move to ...
14103 (nds32_output_16bit_load): Move to ...
14104 (nds32_output_32bit_store): Move to ...
14105 (nds32_output_32bit_load): Move to ...
14106 (nds32_output_32bit_load_s): Move to ...
14107 (nds32_output_stack_push): Move to ...
14108 (nds32_output_stack_pop): Move to ...
14109 * config/nds32/nds32-md-auxiliary.c: ... here.
14110
14111 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14112 Ling-Hua Tseng <uranus@tinlans.org>
14113
14114 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14115 the purpose of this file.
14116
14117 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14118 Kito Cheng <kito@0xlab.org>
14119 Monk Chiang <sh.chiang04@gmail.com>
14120
14121 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14122 (nds32_address_cost): Move implementation to ...
14123 * config/nds32/nds32-cost.c: ... here.
14124 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14125 (nds32_address_cost_impl): Declare.
14126
14127 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14128 Kito Cheng <kito@0xlab.org>
14129 Monk Chiang <sh.chiang04@gmail.com>
14130
14131 * config/nds32/nds32.c
14132 (nds32_consecutive_registers_load_store_p): Move to ...
14133 (nds32_valid_multiple_load_store): Move to ...
14134 (nds32_valid_stack_push_pop): Move to ...
14135 (nds32_can_use_bclr_p): Move to ...
14136 (nds32_can_use_bset_p): Move to ...
14137 (nds32_can_use_btgl_p): Move to ...
14138 (nds32_can_use_bitci_p): Move to ...
14139 * config/nds32/nds32-predicates.c: ... here.
14140
14141 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14142 Kito Cheng <kito@0xlab.org>
14143 Monk Chiang <sh.chiang04@gmail.com>
14144
14145 * config/nds32/nds32.c
14146 (nds32_expand_builtin_null_ftype_reg): Move to ...
14147 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14148 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14149 (nds32_init_builtins): Move implementation to ...
14150 (nds32_expand_builtin): Move implementation to ...
14151 * config/nds32/nds32-intrinsic.c: ... here.
14152 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14153 (nds32_expand_builtin_impl): Declare.
14154
14155 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14156 Kito Cheng <kito@0xlab.org>
14157 Monk Chiang <sh.chiang04@gmail.com>
14158
14159 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14160 (nds32_emit_section_tail_template): Move to ...
14161 (nds32_emit_isr_jmptbl_section): Move to ...
14162 (nds32_emit_isr_vector_section): Move to ...
14163 (nds32_emit_isr_reset_conten): Move to ...
14164 (nds32_check_isr_attrs_conflict): Move to ...
14165 (nds32_construct_isr_vectors_information): Move to ...
14166 (nds32_asm_file_start): Move implementation to ...
14167 (nds32_asm_file_end): Move implementation to ...
14168 * config/nds32/nds32-isr.c: ... here.
14169 * config/nds32/nds32-protos.h
14170 (nds32_check_isr_attrs_conflict): Declare.
14171 (nds32_construct_isr_vectors_information): Declare.
14172 (nds32_asm_file_start_for_isr): Declare.
14173 (nds32_asm_file_end_for_isr): Declare.
14174
14175 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14176 Kito Cheng <kito@0xlab.org>
14177 Monk Chiang <sh.chiang04@gmail.com>
14178
14179 * config.gcc (nds32*): Add new modules to extra_objs.
14180 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14181 (nds32be-*-*): Likewise.
14182 * config/nds32/nds32-cost.c: New file.
14183 * config/nds32/nds32-fp-as-gp.c: New file.
14184 * config/nds32/nds32-intrinsic.c: New file.
14185 * config/nds32/nds32-isr.c: New file.
14186 * config/nds32/nds32-md-auxiliary.c: New file.
14187 * config/nds32/nds32-memory-manipulation.c: New file.
14188 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14189 * config/nds32/nds32-predicates.c: New file.
14190 * config/nds32/t-nds32: New file.
14191
14192 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14193
14194 PR tree-optimization/61682
14195 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14196 using cases and when one of the operands is equal to 1.
14197
14198 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14199
14200 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14201 ashr<mode>3): Correct mode of operands[2].
14202 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14203 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14204 Correct mode of operands[2]. Fix split condition.
14205
14206 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14207
14208 * arm.md (arch): Add armv6_or_vfpv3.
14209 (arch_enabled): Add test for the above.
14210 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14211 on VFP9.
14212 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14213
14214 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14215
14216 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14217 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14218 HWI 1 and negate the unsigned value.
14219 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14220 use AND instead of shift.
14221 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14222
14223 2014-07-03 Marek Polacek <polacek@redhat.com>
14224
14225 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14226 (-fsanitize=float-divide-by-zero): Move to the table with
14227 -fsanitize=undefined suboptions.
14228 (-fsanitize=float-cast-overflow): Likewise.
14229
14230 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14231
14232 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14233 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14234 endianness.
14235
14236 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14237
14238 * loop-invariant.c (struct invariant): Add a new member: eqno;
14239 (find_identical_invariants): Update eqno;
14240 (create_new_invariant): Init eqno;
14241 (get_inv_cost): Compute comp_cost with eqno;
14242
14243 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14244
14245 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14246 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14247 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14248 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14249 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14250
14251 2014-07-02 Christian Bruel <christian.bruel@st.com>
14252
14253 PR target/29349
14254 PR target/53513
14255 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14256 (make_preds_opaque): Delete.
14257 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14258 (commit_mode_sets): New function.
14259 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14260 Process all modes at once.
14261 * basic-block.h (pre_edge_lcm_avs): Declare.
14262 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14263 Call clear_aux_for_edges. Fix comments.
14264 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14265 (pre_edge_rev_lcm): Idem.
14266 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14267 parameter.
14268 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14269 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14270 Idem.
14271 * config/i386/i386.c (x96_emit_mode_set): Idem.
14272 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14273 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14274 (fpscr_toggle) Disallow from delay slot.
14275 * target.def (emit_mode_set): Add prev_mode parameter.
14276 * doc/tm.texi: Regenerate.
14277
14278 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14279
14280 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14281 variable i.
14282
14283 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14284
14285 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14286 vtable_pointer_value_to_vtable): Constify.
14287 (contains_polymorphic_type_p): Declare.
14288 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14289 vtable_pointer_value_to_vtable): Constify.
14290 (contains_polymorphic_type_p): New predicate.
14291 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14292 polymorphic types.
14293 (ipa_set_ancestor_jf): Likewise.
14294 (detect_type_change): Return false in easy cases.
14295 (compute_complex_assign_jump_func): Require type to contain
14296 polymorphic type.
14297 (compute_known_type_jump_func): Likewise.
14298
14299 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14300
14301 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14302 Remove.
14303 (type_in_anonymous_namespace_p): Constify argument.
14304 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14305 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14306 (main_odr_variant): New function.
14307 (hash_type_name): Make static; update assert; do not ICE on
14308 non-records.
14309 (types_same_for_odr): Bring here from tree.c; simplify and remove
14310 old structural comparing code that doesn't work for templates.
14311 (odr_hasher::equal): Update assert.
14312 (add_type_duplicate): Return true when bases should be computed;
14313 replace incomplete loader by complete; do not output duplicated
14314 warnings; do not ICE on non-records; set odr_violated flag.
14315 (get_odr_type): Be ready to replace incomplete type by complete
14316 one; work on ODR variants instead of main variants; reorder item
14317 in array so bases have still smaller indexes.
14318 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14319 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14320
14321 2014-07-01 Cary Coutant <ccoutant@google.com>
14322
14323 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14324 lookup.
14325 (resolve_addr_in_expr): When replacing the rtx in a location list
14326 entry, get a new address table entry.
14327 (dwarf2out_finish): Call index_location_lists even if there are no
14328 addr_index_table entries yet.
14329
14330 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14331
14332 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14333 change for not being obvious.
14334
14335 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14336
14337 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14338 unused argument.
14339
14340 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14341
14342 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14343 (vcagt_f64): Likewise.
14344 (vcale_f64): Likewise.
14345 (vcaled_f64): Likewise.
14346 (vcales_f32): Likewise.
14347 (vcalt_f64): Likewise.
14348 (vcaltd_f64): Likewise.
14349 (vcalts_f32): Likewise.
14350
14351 2014-07-01 Marek Polacek <polacek@redhat.com>
14352
14353 * doc/invoke.texi: Document -Wint-conversion.
14354
14355 2014-07-01 Marek Polacek <polacek@redhat.com>
14356
14357 PR c/58286
14358 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14359
14360 2014-07-01 Martin Liska <mliska@suse.cz>
14361
14362 IPA REF alias refactoring
14363 * cgraph.h (iterate_direct_aliases): New function.
14364 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14365 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14366 FOR_EACH_ALIAS added.
14367 (cgraph_for_node_and_aliases): Likewise.
14368 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14369 * ipa-inline.c (reset_edge_caches): Likewise.
14370 (update_caller_keys): Likewise.
14371 * trans-mem.c (ipa_tm_execute): Likewise.
14372 *varpool.c (varpool_analyze_node): Likewise.
14373 (varpool_for_node_and_aliases): Likewise.
14374 * ipa-ref.h (first_alias): New function.
14375 (last_alias): Likewise.
14376 (has_aliases_p): Likewise.
14377 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14378 is sensitive to IPA_REF_ALIASes.
14379 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14380 are put at the beginning of the list.
14381 (symtab_node::iterate_direct_aliases): New function.
14382
14383 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14384
14385 Revert:
14386 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14387 type is complete.
14388 (write_ts_type_common_tree_pointers): Do not stream fields not set
14389 for incomplete types; do not stream duplicated fields for variants;
14390 sanity check that variant and type match.
14391 (write_ts_type_non_common_tree_pointers): Likewise.
14392 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14393 TYPE_SIZE whether type is complete.
14394 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14395 write_ts_type_common_tree_pointers
14396 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14397
14398 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14399
14400 * var-tracking.c (add_stores): Return instead of asserting if old
14401 and new values for conditional store are the same.
14402
14403 2014-06-30 Richard Henderson <rth@redhat.com>
14404
14405 PR rtl-opt/61608
14406 PR target/39284
14407 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14408 the cfg if there were any changes.
14409 * passes.def: Revert move of peephole2 after reorder_blocks;
14410 move duplicate_computed_gotos before peephole2.
14411
14412 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14413
14414 * except.c (emit_note_eh_region_end): New helper function.
14415 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14416 emit EH_REGION_END note.
14417 * jump.c (cleanup_barriers): Do not split a call and its
14418 corresponding CALL_ARG_LOCATION note.
14419
14420 2014-06-30 Jeff Law <law@redhat.com>
14421
14422 PR tree-optimization/61607
14423 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14424 deeper into the SSA_NAME_VALUE chain.
14425
14426 2014-06-30 Marek Polacek <polacek@redhat.com>
14427
14428 * convert.c (convert_to_integer): Don't instrument conversions if the
14429 function has no_sanitize_undefined attribute.
14430 * ubsan.c: Don't run the ubsan pass if the function has
14431 no_sanitize_undefined attribute.
14432
14433 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14434
14435 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14436 -fsanitize=undefined suboptions.
14437
14438 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14439
14440 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14441 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14442 against bigendian and adjust indices.
14443
14444 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14445
14446 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14447
14448 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14449
14450 PR target/61633
14451 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14452 Add alternative; make early clobber. Adjust both split patterns
14453 to use operand 0 as the working register.
14454
14455 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14456
14457 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14458 as ira_object_id_map might be NULL, or 1.
14459
14460 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14461
14462 * loop-invariant.c (get_inv_cost): Handle register class.
14463 (gain_for_invariant): Check the register pressure of the inv
14464 and its overlapped register class, other than all.
14465
14466 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14467
14468 * doc/invoke.texi (Optimize Options): Fix descriptions of
14469 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14470
14471 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14472
14473 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14474 documentation.
14475
14476 2014-06-29 Tobias Grosser <tobias@grosser.es>
14477
14478 PR bootstrap/61650
14479 * graphite-isl-ast-to-gimple.c: Add missing guards.
14480
14481 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14482
14483 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14484 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14485 * flag-types.h: Add new enum fgraphite_generator.
14486 * graphite-isl-ast-to-gimple.c: New.
14487 * graphite-isl-ast-to-gimple.h: New.
14488 * graphite.c (graphite_transform_loops): Add choice of Graphite
14489 code generator, which depends on flag_graphite_code_gen.
14490
14491 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14492
14493 * graphite-dependences.c (subtract_commutative_associative_deps):
14494 Add NULL checking of the following variables: must_raw_no_source,
14495 may_raw_no_source, must_war_no_source, may_war_no_source,
14496 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14497 must_war, may_war, must_waw, may_waw.
14498
14499 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14500
14501 * graphite-clast-to-gimple.c: gloog is renamed to
14502 graphite_regenerate_ast_cloog. gloog_error is renamed to
14503 graphite_regenerate_error.
14504 * graphite-clast-to-gimple.h: The definition of the struct
14505 bb_pbb_def is moved to graphite-htab.h.
14506 Add inclusion of the hash-table.h.
14507 * graphite-htab.h: The declaration of the function gloog is moved
14508 to graphite-clast-to-gimple.h and renamed to
14509 graphite_regenerate_ast_cloog.
14510 * graphite.c (graphite_transform_loops): gloog is renamed
14511 to graphite_regenerate_ast_cloog.
14512
14513 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14514
14515 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14516 type is complete.
14517 (write_ts_type_common_tree_pointers): Do not stream fields not set
14518 for incomplete types; do not stream duplicated fields for variants;
14519 sanity check that variant and type match.
14520 (write_ts_type_non_common_tree_pointers): Likewise.
14521 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14522 TYPE_SIZE whether type is complete.
14523 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14524 write_ts_type_common_tree_pointers
14525 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14526
14527 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14528
14529 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14530
14531 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14532
14533 * tree-inline.c (remap_type_1): Do not duplicate fields
14534 that are shared in between type and its main variant.
14535
14536 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14537
14538 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14539 of the type.
14540 (ipa_set_ancestor_jf) Likewise.
14541 (check_stmt_for_type_change): Check that we work on main variant.
14542 (detect_type_change): Look into main variant.
14543 (compute_known_type_jump_func): Check that main variant has BINFO.
14544
14545 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14546
14547 * ipa-devirt.c (set_type_binfo): New function.
14548 (add_type_duplicate): Use it.
14549 (get_odr_type): Sanity check that binfos points to main variants.
14550 (get_class_context): Be sure the context's outer_type is main variant.
14551 (contains_type_p): Walk main variant.
14552 (get_polymorphic_call_info_for_decl): Set outer_type to be
14553 main variant.
14554 (get_polymorphic_call_info): Likewise.
14555 (possible_polymorphic_call_targets): Sanity check that we operate
14556 on main variant.
14557
14558 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14559
14560 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14561
14562 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14563
14564 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14565 accidental change due to wide-int branch merge.
14566
14567 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14568
14569 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14570 compressed debug support.
14571 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14572 * configure: Regenerate.
14573 * config.in: Regenerate.
14574 * common.opt (compressed_debug_sections): New enum.
14575 (gz, gz=): New options.
14576 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14577 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14578 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14579 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14580 LINK_COMPRESS_DEBUG_SPEC.
14581 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14582 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14583 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14584 (Debugging Options): Document -gz[=type].
14585
14586 2014-06-27 Martin Jambor <mjambor@suse.cz>
14587
14588 PR ipa/61160
14589 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14590 args_to_skip, use those from node instead. Copy args_to_skip and
14591 combined_args_to_skip from node to the new thunk.
14592 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14593 (cgraph_create_virtual_clone): Moved computation of
14594 combined_args_to_skip...
14595 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14596
14597 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14598
14599 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14600 redundant diagnostic machinary.
14601
14602 2014-06-27 Richard Biener <rguenther@suse.de>
14603
14604 * tree-ssa-math-opts.c (bswap_replace): Fix
14605 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14606
14607 2014-06-27 Martin Liska <mliska@suse.cz>
14608
14609 * gimple.h (gimple_location_safe): New function introduced.
14610 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14611 of gimple_location_safe replaces gimple_location.
14612 (gimple_fold_call): Likewise.
14613 * ipa-devirt.c (ipa_devirt): Likewise.
14614 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14615 * ipa.c (walk_polymorphic_call_targets): Likewise.
14616 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14617
14618 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14619
14620 PR tree-optimization/57233
14621 PR tree-optimization/61299
14622 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14623 functions.
14624 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14625 would be lowered to scalar shifts, check if corresponding
14626 shifts and vector BIT_IOR_EXPR are supported and don't lower
14627 or lower just to narrower vector type in that case.
14628 * expmed.c (expand_shift_1): Fix up handling of vector
14629 shifts and rotates.
14630
14631 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14632
14633 PR target/61586
14634 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14635
14636 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14637
14638 * doc/invoke.texi (-fsemantic-interposition): Document.
14639 * common.opt (fsemantic-interposition): New flag.
14640 * varasm.c (decl_replaceable_p): Use it.
14641
14642 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14643
14644 PR target/61542
14645 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14646 extraction other than index 3.
14647
14648 2014-06-26 Teresa Johnson <tejohnson@google.com>
14649
14650 * doc/invoke.texi: Fix typo.
14651 * dumpfile.c: Add support for documented -fdump-* options
14652 optimized/missed/note/optall.
14653
14654 2014-06-26 Martin Jambor <mjambor@suse.cz>
14655
14656 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14657 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14658 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14659 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14660 * opts.c (default_options_optimization): Set
14661 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14662 * doc/invoke.texi (allow-load-data-races)
14663 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14664 (allow-store-data-races): Document the new default.
14665
14666 2014-06-26 Martin Jambor <mjambor@suse.cz>
14667
14668 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14669 renamed to ipa_impossible_devirt_target. Fix typo.
14670 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14671 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14672 ipa_impossible_devirt_target.
14673
14674 2014-06-26 Richard Biener <rguenther@suse.de>
14675
14676 PR tree-optimization/61607
14677 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14678 explaining why we restrict copies on loop depth.
14679 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14680 on loop depth.
14681 (record_equivalences_from_phis): Instead add it here.
14682
14683 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14684
14685 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14686 (LTO_WRAPPER_OBJS): New variable.
14687 (lto-wrapper$(exeext)): Use it.
14688 * collect2.c: Include "collect-utils.h".
14689 (verbose, debug): Remove variables.
14690 (at_file_supplied): No longer static.
14691 (tool_name): New variable.
14692 (do_wait, fork_execute, maybe_unlink): Don't declare.
14693 (tool_cleanup): No longer static.
14694 (notice): Remove function.
14695 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14696 fork_execute calls.
14697 (collect_wait, do_wait, collect_execute): Remove functions.
14698 (maybe_unlink): No longer static.
14699 * collect2.h (verbose, debug): Don't declare.
14700 (at_file_supplied): Declare.
14701 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14702 changed.
14703 (collect_execute): Replace with implementation from collect2, plus a
14704 new arg use_atfile. All callers changed.
14705 (collect_wait): Replace with implementation from collect2.
14706 (maybe_unlink_file): Remove function.
14707 (fork_execute): Replace with implementation from collect2, plus a
14708 new arg use_atfile. All callers changed.
14709 (do_wait): Add call to utils_cleanup to the error path.
14710 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14711 (tool_cleanup): Adjust declarations.
14712 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14713 * tlink.c: Include "collect-utils.h".
14714 (tlink_execute): New arg use_atfile. All callers changed.
14715 (tlink_init, tlink_execute): Remove declarations.
14716
14717 * collect-utils.c (save_temps): New variable.
14718 (do_wait): Use it instead of debug. Use fatal_error.
14719 * collect-utils.h (save_temps): Declare.
14720 * collect2.c (verbose): Rename from vflag. All uses changed.
14721 (tool_cleanup): New function, copied from collect_atexit.
14722 (collect_atexit, handler): Just call it.
14723 * collect2.h (verbose): Declaration renamed from vflag.
14724 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14725 debug.
14726
14727 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14728 (lto-wrapper$(exeext)): Link with collect-utils.o.
14729 * collect-utils.c: New file.
14730 * collect-utils.h: New file.
14731 * lto-wrapper.c: Include "collect-utils.h".
14732 (args_name): Delete variable.
14733 (tool_name): New variable.
14734 (tool_cleanup): New function.
14735 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14736 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14737 (fork_execute): Remove functions.
14738
14739 2014-06-26 Nick Clifton <nickc@redhat.com>
14740
14741 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14742
14743 * doc/extend.texi (Function Attributes): Fix typo in description
14744 of RX vector attribute.
14745
14746 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14747
14748 * config.gcc (supported_defaults): Error when passing either
14749 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14750
14751 2014-06-26 Richard Biener <rguenther@suse.de>
14752
14753 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14754 propagating volatile pointers.
14755
14756 2014-06-26 Richard Biener <rguenther@suse.de>
14757
14758 PR tree-optimization/61607
14759 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14760 loop if we redirected its latch edge.
14761 (thread_block_1): Do not cancel loops prematurely.
14762
14763 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14764
14765 * toplev.c (backend_init_target): Move init_emit_regs and
14766 init_regs to...
14767 (backend_init) ... here; skip ira_init_once and backend_init_target.
14768 (target_reinit) ... and here; clear
14769 this_target_rtl->lang_dependent_initialized.
14770 (lang_dependent_init_target): Clear
14771 this_target_rtl->lang_dependent_initialized;
14772 break out rtl initialization to ...
14773 (initialize_rtl): ... here; call also backend_init_target
14774 and ira_init_once.
14775 * toplev.h (initialize_rtl): New function.
14776 * function.c: Include toplev.h
14777 (init_function_start): Call initialize_rtl.
14778 * rtl.h (target_rtl): Add target_specific_initialized,
14779 lang_dependent_initialized.
14780
14781 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14782 Jakub Jelinek <jakub@redhat.com>
14783
14784 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14785
14786 2014-06-25 Tom de Vries <tom@codesourcery.com>
14787
14788 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14789
14790 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14791
14792 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14793 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14794 Issue a strict overflow warning if appropriate.
14795
14796 2014-06-25 Martin Liska <mliska@suse.cz>
14797
14798 IPA REF refactoring
14799 * Makefile.in: Removed header file (ipa-ref-inline.h).
14800 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14801 called.
14802 (cgraph_speculative_call_info): Likewise.
14803 (cgraph_for_node_thunks_and_aliases): Likewise.
14804 (cgraph_for_node_and_aliases): Likewise.
14805 (verify_cgraph_node): Likewise.
14806 * cgraph.h: Batch of IPA REF functions become member functions of
14807 symtab_node: add_reference, maybe_add_reference, clone_references,
14808 clone_referring, clone_reference, find_reference,
14809 remove_stmt_references, remove_all_references,
14810 remove_all_referring, dump_references, dump_referring,
14811 has_alias_p, iterate_reference, iterate_referring.
14812 * cgraphbuild.c (record_reference): New IPA REF function used.
14813 (record_type_list): Likewise.
14814 (record_eh_tables): Likewise.
14815 (mark_address): Likewise.
14816 (mark_load): Likewise.
14817 (mark_store): Likewise.
14818 (pass_build_cgraph_edges): Likewise.
14819 (rebuild_cgraph_edge): Likewise.
14820 (cgraph_rebuild_references): Likewise.
14821 (pass_remove_cgraph_callee_edges): Likewise.
14822 * cgraphclones.c (cgraph_clone_node): Likewise.
14823 (cgraph_create_virtual_clone): Likewise.
14824 (cgraph_materialize_clone): Likewise.
14825 (cgraph_materialize_all_clones): Likewise.
14826 * cgraphunit.c (cgraph_reset_node): Likewise.
14827 (cgraph_reset_node): Likewise.
14828 (analyze_function): Likewise.
14829 (assemble_thunks_and_aliases): Likewise.
14830 (expand_function): Likewise.
14831 * ipa-comdats.c (propagate_comdat_group): Likewise.
14832 (enqueue_references): Likewise.
14833 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14834 (create_specialized_node): Likewise.
14835 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14836 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14837 * ipa-inline.c (reset_edge_caches): Likewise.
14838 (update_caller_keys): Likewise.
14839 (execute): Likewise.
14840 * ipa-prop.c (remove_described_reference): Likewise.
14841 (propagate_controlled_uses): Likewise.
14842 (ipa_edge_duplication_hook): Likewise.
14843 (ipa_modify_call_arguments): Likewise.
14844 * ipa-pure-const.c (propagate_pure_const): Likewise.
14845 * ipa-ref-inline.h: Header file removed, functions moved
14846 to symtab_node class.
14847 * ipa-ref.c (remove_reference): New class member function.
14848 (cannot_lead_to_return): New class member function.
14849 (referring_ref_list): Likewise.
14850 (referred_ref_list): Likewise.
14851 Rest of functions moved to symtab_node class.
14852 * ipa-ref.h: New member functions remove_reference,
14853 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14854 to ipa_ref class.
14855 ipa_ref_list class has new member functions: first_reference,
14856 first_referring, clear, nreferences.
14857 * ipa-reference.c (analyze_function): New IPA REF function used.
14858 (write_node_summary_p): Likewise.
14859 (ipa_reference_write_optimization_summary): Likewise.
14860 * ipa-split.c (split_function): Likewise.
14861 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14862 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14863 (function_and_variable_visibility): Likewise.
14864 * ipa.c (has_addr_references_p): Likewise.
14865 (process_references): Argument type changed.
14866 (symtab_remove_unreachable_nodes): New IPA REF function used.
14867 (process_references): Likewise.
14868 (set_writeonly_bit): Likewise.
14869 * lto-cgraph.c: Implementation of new symtab_node member functions
14870 that uses new IPA REF functions.
14871 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14872 function used.
14873 * lto-streamer-out.c (output_symbol_p): Likewise.
14874 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14875 changed.
14876 * symtab.c: Implementation of new IPA REF API.
14877 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14878 (ipa_tm_create_version): Likewise.
14879 (ipa_tm_execute): Likewise.
14880 * tree-emutls.c (gen_emutls_addr): Likewise.
14881 * tree-inline.c (copy_bb): Likewise.
14882 (delete_unreachable_blocks_update_callgraph): Likewise.
14883 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14884 (varpool_for_node_and_aliases): Likewise.
14885
14886 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14887
14888 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14889
14890 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14891
14892 PR bootstrap/61598
14893 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14894 tree_node * instead of tree_node *.
14895 (fold): Adjust.
14896 (print_fold_checksum): Likewise.
14897 (fold_check_failed): Likewise.
14898 (debug_fold_checksum): Likewise.
14899 (fold_build1_stat_loc): Likewise.
14900 (fold_build2_stat_loc): Likewise.
14901 (fold_build3_stat_loc): Likewise.
14902 (fold_build_call_array_loc): Likewise.
14903
14904 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14905
14906 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14907 implementation with call to...
14908 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14909 function.
14910 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14911 Declare.
14912
14913 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14914
14915 PR tree-optimization/57742
14916 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14917 after replacing the statement.
14918
14919 2014-06-25 Nick Clifton <nickc@redhat.com>
14920
14921 * config/v850/v850.c (GHS_default_section_names): Change to const
14922 char * type.
14923 (GHS_current_section_names): Likewise.
14924 (v850_insert_attributes): Do not build strings, just assign the
14925 names directly. Change the type of 'chosen_section' to const
14926 char*.
14927 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14928 directly to the array entry.
14929 * config/v850/v850.h (GHS_default_section_names): Change to const
14930 char * type.
14931 (GHS_current_section_names): Likewise.
14932
14933 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14934
14935 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14936 (LANG_HOOKS_DECLS): Add it.
14937 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14938 has correct type.
14939 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14940 * langhooks.h (struct lang_hooks_for_decls): Add
14941 omp_clause_linear_ctor hook.
14942 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14943 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14944 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14945 combined simd loop use omp_clause_linear_ctor hook.
14946
14947 2014-06-24 Cong Hou <congh@google.com>
14948
14949 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14950 pattern recognition.
14951 (type_conversion_p): PROMOTION is true if it's a type promotion
14952 conversion, and false otherwise. Return true if the given expression
14953 is a type conversion one.
14954 * tree-vectorizer.h: Adjust the number of patterns.
14955 * tree.def: Add SAD_EXPR.
14956 * optabs.def: Add sad_optab.
14957 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14958 * expr.c (expand_expr_real_2): Likewise.
14959 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14960 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14961 * optabs.c (optab_for_tree_code): Likewise.
14962 * tree-cfg.c (estimate_operator_cost): Likewise.
14963 * tree-ssa-operands.c (get_expr_operands): Likewise.
14964 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14965 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14966 * doc/generic.texi: Add document for SAD_EXPR.
14967 * doc/md.texi: Add document for ssad and usad.
14968
14969 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14970
14971 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14972 qualification in cast.
14973
14974 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14975
14976 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14977 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14978 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14979 (tree_function_decl): ... here.
14980 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14981 streaming of vindex to ...
14982 (write_ts_function_decl_tree_pointers): ... here.
14983 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14984 Do not stream DECL_VINDEX.
14985 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14986
14987 2014-06-24 Catherine Moore <clm@codesourcery.com>
14988 Sandra Loosemore <sandra@codesourcery.com>
14989
14990 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14991 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14992 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14993
14994 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14995
14996 * doc/invoke.texi (Warning Options): Remove duplicated
14997 -Wmaybe-uninitialized.
14998
14999 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
15000
15001 PR tree-optimization/57742
15002 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15003 (handle_builtin_malloc, handle_builtin_memset): New functions.
15004 (strlen_optimize_stmt): Call them.
15005 * passes.def: Move strlen after loop+dom but before vrp.
15006
15007 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15008
15009 PR target/61570
15010 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15011 model family 6 CPU with has_longmode never use a CPU without
15012 64-bit support.
15013
15014 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
15015
15016 PR target/61570
15017 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15018 the last change.
15019
15020 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15021
15022 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15023 * dominance.c (iterate_fix_dominators): Use hash_map instead of
15024 pointer_map.
15025 * hash-map.h: New file.
15026 * ipa-comdats.c: Use hash_map instead of pointer_map.
15027 * ipa.c: Likewise.
15028 * lto-section-out.c: Adjust.
15029 * lto-streamer.h: Replace pointer_map with hash_map.
15030 * symtab.c (verify_symtab): Likewise.
15031 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15032 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15033 * tree-streamer.h: Likewise.
15034 * tree-streamer.c: Adjust.
15035 * pointer-set.h: Remove pointer_map.
15036
15037 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15038
15039 * hash-table.h: Add a template arg to choose between storing values
15040 and storing pointers to values, and then provide partial
15041 specializations for both.
15042 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15043 should store, not the type values should point to.
15044 * tree-into-ssa.c (var_info_hasher): Likewise.
15045 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15046 * tree-complex.c: Adjust.
15047 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15048 table instead of int_tree_map *.
15049 * tree-parloops.c: Adjust.
15050 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15051 type is being stored.
15052 * tree-vectorizer.c: Adjust.
15053
15054 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15055
15056 * hash-table.h: Remove a layer of indirection from hash_table so that
15057 it contains the hash table's data instead of a pointer to the data.
15058 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15059 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15060 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15061 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15062 fold-const.c, gcse.c, ggc-common.c,
15063 gimple-ssa-strength-reduction.c, gimplify.c,
15064 graphite-clast-to-gimple.c, graphite-dependences.c,
15065 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15066 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15067 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15068 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15069 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15070 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15071 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15072 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15073 tree-ssa-live.c, tree-ssa-loop-im.c,
15074 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15075 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15076 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15077 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15078 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15079 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15080 vtable-verify.c, vtable-verify.h: Adjust.
15081
15082 2014-06-24 Richard Biener <rguenther@suse.de>
15083
15084 PR tree-optimization/61572
15085 * tree-ssa-sink.c (statement_sink_location): Do not sink
15086 loads from hard registers.
15087
15088 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15089
15090 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15091 not mentioned in clauses use private clause if the iterator is
15092 declared in #pragma omp for simd, and when adding lastprivate
15093 instead, add it to the outer #pragma omp for too. Diagnose
15094 if the variable is private in outer context. For simd collapse > 1
15095 loops, replace all iterators with temporaries.
15096 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15097 same even in collapse > 1 loops.
15098
15099 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15100 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15101 non-NULL.
15102 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15103 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15104 non-NULL.
15105 (gimplify_adjust_omp_clauses): Likewise.
15106 * omp-low.c (lower_rec_simd_input_clauses,
15107 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15108 safelen the same as safelen(1).
15109 * tree-nested.c (convert_nonlocal_omp_clauses,
15110 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
15111 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15112 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15113 Fixup handling of GIMPLE_OMP_TARGET.
15114 (convert_tramp_reference_stmt, convert_gimple_call): Handle
15115 GIMPLE_OMP_TARGET.
15116
15117 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15118
15119 PR tree-optimization/61554
15120 * tree-ssa-propagate.c: Include "bitmap.h".
15121 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15122 properly update constructor/destructor.
15123 (substitute_and_fold_dom_walker::before_dom_children):
15124 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15125 need_eh_cleaup instead.
15126 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15127 need_eh_cleanup.
15128
15129 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15130
15131 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15132 * tree-pass.h (make_pass_ipa_single_use): New pass.
15133 * cgraph.h (used_by_single_function): New flag.
15134 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15135 Stream it.
15136 * passes.def (pass_ipa_single_use): Scedule.
15137 * ipa.c (BOTTOM): New macro.
15138 (meet): New function
15139 (propagate_single_user): New function.
15140 (ipa_single_use): New function.
15141 (pass_data_ipa_single_use): New pass.
15142 (pass_ipa_single_use): New pass.
15143 (pass_ipa_single_use::gate): New gate.
15144 (make_pass_ipa_single_use): New function.
15145
15146 2014-06-23 Kai Tietz <ktietz@redhat.com>
15147
15148 PR target/39284
15149 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15150 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15151
15152 2014-06-23 Richard Biener <rguenther@suse.de>
15153
15154 * tree-ssa-loop.c (gate_loop): New function.
15155 (pass_tree_loop::gate): Call it.
15156 (pass_data_tree_no_loop, pass_tree_no_loop,
15157 make_pass_tree_no_loop): New.
15158 * tree-vectorizer.c: Include tree-scalar-evolution.c
15159 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15160 required.
15161 (pass_slp_vectorize::clone): New method.
15162 * timevar.def (TV_TREE_NOLOOP): New.
15163 * tree-pass.h (make_pass_tree_no_loop): Declare.
15164 * passes.def (pass_tree_no_loop): New pass group with
15165 SLP vectorizer.
15166
15167 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15168
15169 PR target/61570
15170 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15171 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15172
15173 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15174
15175 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15176 "yes" where needed.
15177
15178 2014-06-23 Alan Modra <amodra@gmail.com>
15179
15180 PR bootstrap/61583
15181 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15182 to zero on debug statements.
15183
15184 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15185
15186 PR target/60825
15187 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15188 Ignore third operand if present by marking qualifier_internal.
15189
15190 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15191
15192 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15193 vector extension.
15194 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15195 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15196 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15197 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15198 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15199 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15200 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15201 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15202 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15203 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15204 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15205 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15206 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15207 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15208 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15209 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15210 logic in GCC vector extensions
15211
15212 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15213 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15214 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15215 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15216 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15217 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15218 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15219 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15220 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15221 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15222
15223 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15224
15225 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15226 extensions.
15227
15228 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15229 (vget_low_s64): Use __GET_LOW macro.
15230 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15231 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15232 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15233 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15234 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15235
15236 (vcombine_s64): Use GCC vector extensions; remove cast.
15237 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15238 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15239 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15240 Fix type signature; remove cast.
15241
15242 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15243
15244 PR target/60825
15245 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15246 V1DFmode.
15247 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15248 add V1DFmode
15249 (BUILTIN_VD1): New.
15250 (BUILTIN_VD_RE): Remove.
15251 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15252 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15253 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15254 variant but not df.
15255 (vreinterpretv1df*, vreinterpret*v1df): New.
15256 (vreinterpretdf*, vreinterpret*df): Remove.
15257 * config/aarch64/aarch64-simd.md (aarch64_create,
15258 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15259 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15260 (VD1): New.
15261 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15262 (vcreate_f64): Remove cast, use v1df builtin.
15263 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15264 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15265 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15266 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15267 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15268 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15269 add range check using __builtin_aarch64_im_lane_boundsi.
15270 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15271 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15272 type signature, use gcc vector extensions.
15273 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15274 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15275 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15276 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15277 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15278 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15279 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15280 vreinterpret_u64_f64): Use v1df builtin not df.
15281
15282 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15283
15284 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15285 vector registers.
15286
15287 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15288
15289 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15290 priority directly.
15291
15292 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15293
15294 * loop-invariant.c (pre_check_invariant_p): New function.
15295 (find_invariant_insn): Call pre_check_invariant_p.
15296
15297 2014-06-22 Richard Henderson <rth@redhat.com>
15298
15299 PR target/61565
15300 * compare-elim.c (struct comparison): Add eh_note.
15301 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15302 a redundant comparison in a different EH region. Purge EH edges if
15303 necessary.
15304
15305 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15306
15307 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15308 (var_shift): Use it.
15309 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15310 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15311 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15312 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15313 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15314 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15315 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15316 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15317 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15318 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15319 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15320 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15321 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15322 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15323 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15324 *rotldi3_internal15be): Use the new attribute. Merge register and
15325 integer alternatives.
15326
15327 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15328
15329 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15330 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15331 split, *ashrdi3_internal3 and split): Delete, merge into...
15332 (ashr<mode>3): New expander.
15333 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15334 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15335
15336 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15337
15338 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15339 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15340 *rotldi3_internal3 and split): Delete, merge into...
15341 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15342 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15343 Use "rotlw" extended mnemonic.
15344
15345 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15346
15347 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15348 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15349 and split, *ashldi3_internal3 and split): Delete, merge into...
15350 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15351 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15352
15353 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15354
15355 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15356 (lshrsi3, two anonymous define_insns and define_splits,
15357 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15358 *lshrdi3_internal3 and split): Delete, merge into...
15359 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15360 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15361
15362 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15363
15364 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15365 Remove "O" alternative.
15366
15367 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15368
15369 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15370 (mips_move_from_gpr_cost): Likewise.
15371 (mips_register_move_cost): Update accordingly.
15372 (mips_secondary_reload_class): Remove name of in_p.
15373
15374 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15375
15376 PR target/61503
15377 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15378 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15379
15380 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15381
15382 * config/nios2/nios2.c: Include "builtins.h".
15383
15384 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15385
15386 * cgraph.h (tls_model_names): New variable.
15387 * print-tree.c (print_node): Simplify.
15388 * varpool.c (tls_model_names): New variable.
15389 (dump_varpool_node): Output tls model.
15390
15391 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15392
15393 * ipa-visibility.c (function_and_variable_visibility): Disable
15394 temporarily local aliases for some targets.
15395
15396 2014-06-20 Marek Polacek <polacek@redhat.com>
15397
15398 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15399 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15400 into SANITIZE_UNDEFINED.
15401 * doc/invoke.texi: Describe -fsanitize=bounds.
15402 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15403 functions created in the FEs.
15404 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15405 (expand_UBSAN_BOUNDS): New function.
15406 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15407 * internal-fn.h: Don't define internal functions here.
15408 * opts.c (common_handle_option): Add -fsanitize=bounds.
15409 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15410 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15411 * tree-core.h: Define internal functions here.
15412 (struct tree_base): Add ifn field.
15413 * tree-pretty-print.c: Include "internal-fn.h".
15414 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15415 * tree.c (get_callee_fndecl): Likewise.
15416 (build_call_expr_internal_loc): New function.
15417 * tree.def (CALL_EXPR): Update description.
15418 * tree.h (CALL_EXPR_IFN): Define.
15419 (build_call_expr_internal_loc): Declare.
15420 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15421 types.
15422 (ubsan_type_descriptor): Change bool parameter to enum
15423 ubsan_print_style. Adjust the code. Add handling of
15424 UBSAN_PRINT_ARRAY.
15425 (ubsan_expand_bounds_ifn): New function.
15426 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15427 (ubsan_build_overflow_builtin): Likewise.
15428 (instrument_bool_enum_load): Likewise.
15429 (ubsan_instrument_float_cast): Likewise.
15430 * ubsan.h (enum ubsan_print_style): New enum.
15431 (ubsan_expand_bounds_ifn): Declare.
15432 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15433
15434 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15435
15436 * config/rs6000/rs6000.md: Append `DONE' to preparation
15437 statements of `bswap' pattern splitters.
15438
15439 2014-06-20 Tom de Vries <tom@codesourcery.com>
15440
15441 * target.def (call_fusage_contains_non_callee_clobbers): Update
15442 definition.
15443 * doc/tm.texi: Regenerate.
15444
15445 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15446 Max Ostapenko <m.ostapenko@partner.samsung.com>
15447
15448 PR sanitizer/61547
15449 * asan.c (instrument_strlen_call): Fixed instrumentation of
15450 trailing byte.
15451
15452 2014-06-20 Martin Jambor <mjambor@suse.cz>
15453
15454 PR ipa/61540
15455 * ipa-prop.c (impossible_devirt_target): New function.
15456 (try_make_edge_direct_virtual_call): Use it, also instead of
15457 asserting.
15458
15459 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15460 Max Ostapenko <m.ostapenko@partner.samsung.com>
15461
15462 PR sanitizer/61530
15463 * asan.c (build_check_stmt): Add condition.
15464
15465 2014-06-20 Martin Jambor <mjambor@suse.cz>
15466
15467 PR ipa/61211
15468 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15469 expanded clones.
15470
15471 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15472
15473 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15474 Update comments.
15475 (VCONQ): Make comment more helpful.
15476 (VCON): Delete.
15477 * config/aarch64/aarch64-simd.md
15478 (aarch64_sqdmulh_lane<mode>):
15479 Use VCOND for operands 2. Update lane checking and flipping logic.
15480 (aarch64_sqrdmulh_lane<mode>): Likewise.
15481 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15482 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15483 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15484 attribute of operand 3 to VCOND.
15485 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15486 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15487 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15488 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15489 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15490 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15491 define_insn.
15492 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15493 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15494 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15495 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15496 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15497 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15498 operand to VCOND. Update lane flipping and bounds checking logic.
15499 (aarch64_sqdmlal2_lane<mode>): Likewise.
15500 (aarch64_sqdmlsl_lane<mode>): Likewise.
15501 (aarch64_sqdmull_lane<mode>): Likewise.
15502 (aarch64_sqdmull2_lane<mode>): Likewise.
15503 (aarch64_sqdmlal_laneq<mode>):
15504 Replace VCON usage with VCONQ.
15505 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15506 (aarch64_sqdmlal2_laneq<mode>): Emit
15507 aarch64_sqdmlal2_laneq<mode>_internal insn.
15508 Replace VCON with VCONQ.
15509 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15510 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15511 (aarch64_sqdmull_laneq<mode>): Emit
15512 aarch64_sqdmull_laneq<mode>_internal insn.
15513 Replace VCON with VCONQ.
15514 (aarch64_sqdmull2_laneq<mode>): Emit
15515 aarch64_sqdmull2_laneq<mode>_internal insn.
15516 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15517 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15518 of 3rd argument to int16x4_t.
15519 (vqdmlalh_lane_s16): Likewise.
15520 (vqdmlslh_lane_s16): Likewise.
15521 (vqdmull_high_lane_s16): Likewise.
15522 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15523 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15524 (vqdmlsl_lane_s16): Likewise.
15525 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15526 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15527 (vqdmlals_lane_s32): Likewise.
15528 (vqdmlsls_lane_s32): Likewise.
15529 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15530 (vqdmulls_lane_s32): Likewise.
15531 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15532 (vqdmlsl_lane_s32): Likewise.
15533 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15534 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15535 (vqrdmulhh_lane_s16): Likewise.
15536 (vqdmlsl_high_lane_s16): Likewise.
15537 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15538 (vqdmlsl_high_lane_s32): Likewise.
15539 (vqrdmulhs_lane_s32): Likewise.
15540
15541 2014-06-20 Tom de Vries <tom@codesourcery.com>
15542
15543 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15544 get_call_reg_set_usage.
15545
15546 2014-06-20 Tom de Vries <tom@codesourcery.com>
15547
15548 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15549 it contains all call_used_regs.
15550
15551 2014-06-20 Tom de Vries <tom@codesourcery.com>
15552
15553 * final.c (collect_fn_hard_reg_usage): Add and use variable
15554 function_used_regs.
15555
15556 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15557
15558 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15559 (set_init_priority, get_init_priority, set_fini_priority,
15560 get_fini_priority): New methods.
15561 * tree.c (init_priority_for_decl): Remove.
15562 (init_ttree): Do not initialize init priority.
15563 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15564 (decl_priority_info): Remove.
15565 (decl_init_priority_insert): Rewrite.
15566 (decl_fini_priority_insert): Rewrite.
15567 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15568 tree_priority_map_marked_p): Remove.
15569 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15570 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15571 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15572 not output priorities.
15573 (pack_ts_function_decl_value_fields): Likewise.
15574 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15575 not input priorities.
15576 (unpack_ts_function_decl_value_fields): Likewise.
15577 * symtab.c (symbol_priority_map): Declare.
15578 (init_priority_hash): Declare.
15579 (symtab_unregister_node): Unregister from priority hash, too.
15580 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15581 New methods.
15582 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15583 (symbol_priority_info): New function.
15584 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15585 New methods.
15586 * tree-core.h (tree_priority_map): Remove.
15587
15588 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15589
15590 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15591 0xff to uint64_t before shifting it up.
15592
15593 2014-06-20 Julian Brown <julian@codesourcery.com>
15594 Chung-Lin Tang <cltang@codesourcery.com>
15595
15596 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15597 TARGET_THUMB1_ONLY. Add comments.
15598
15599 2014-06-19 Tom de Vries <tom@codesourcery.com>
15600
15601 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15602 return type to void.
15603 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15604
15605 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15606
15607 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15608 as "move", from depends_on.
15609
15610 2014-06-19 Terry Guo <terry.guo@arm.com>
15611
15612 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15613 stage.
15614
15615 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15616
15617 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15618 Remove cr5.
15619 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15620
15621 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15622
15623 PR target/61550
15624 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15625 addresses here if reload in progress or completed.
15626
15627 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15628
15629 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15630 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15631 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15632 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15633 (mips_register_priority): New function that implements the target
15634 hook TARGET_REGISTER_PRIORITY.
15635 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15636 (mips_lra_p): Likewise for TARGET_LRA_P.
15637 (TARGET_REGISTER_PRIORITY): Define macro.
15638 (TARGET_SPILL_CLASS): Likewise.
15639 (TARGET_LRA_P): Likewise.
15640 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15641 classes.
15642 (REG_CLASS_NAMES): Likewise.
15643 (REG_CLASS_CONTENTS): Likewise.
15644 (BASE_REG_CLASS): Use M16_SP_REGS.
15645 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15646 New set attribute to enable alternatives depending on the register
15647 allocator used.
15648 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15649 (*lea64): Disable pattern for MIPS16.
15650 * config/mips/mips.opt (mlra): New option.
15651
15652 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15653
15654 * lra-constraints.c (base_to_reg): New function.
15655 (process_address): Use new function.
15656
15657 2014-06-18 Tom de Vries <tom@codesourcery.com>
15658
15659 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15660 * config/aarch64/aarch64.c
15661 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15662 (aarch64_emit_call_insn): New function.
15663 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15664 of emit_call_insn.
15665 * config/aarch64/aarch64.md (define_expand "call_internal")
15666 (define_expand "call_value_internal", define_expand "sibcall_internal")
15667 (define_expand "sibcall_value_internal"): New.
15668 (define_expand "call", define_expand "call_value")
15669 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15670 expand variant and aarch64_emit_call_insn.
15671
15672 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15673 Tom de Vries <tom@codesourcery.com>
15674
15675 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15676 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15677 Redefine to true.
15678 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15679 clobbers to CALL_INSN_FUNCTION_USAGE.
15680 (define_expand "sibcall_internal")
15681 (define_expand "sibcall_value_internal"): New.
15682 (define_expand "call", define_expand "call_value"): Add argument to
15683 arm_emit_call_insn.
15684 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15685 (define_expand "sibcall_value"): Use sibcall_value_internal and
15686 arm_emit_call_insn.
15687
15688 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15689
15690 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15691
15692 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15693
15694 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15695 __udivmoddi4.
15696
15697 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15698
15699 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15700 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15701 annotations. Fix DWARF information.
15702
15703 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15704
15705 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15706 __udivmoddi4, and fixups for negative operands.
15707
15708 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15709
15710 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15711
15712 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15713
15714 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15715 to __udivmoddi4.
15716
15717 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15718
15719 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15720 manipulation.
15721
15722 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15723
15724 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15725 describing register usage on function entry and exit.
15726
15727 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15728
15729 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15730 (__aeabi_ldivmod): Fix whitespace.
15731
15732 2014-06-18 Andreas Schwab <schwab@suse.de>
15733
15734 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15735 Remove blank line after @item.
15736
15737 2014-06-18 Richard Henderson <rth@redhat.com>
15738
15739 PR target/61545
15740 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15741
15742 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15743
15744 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15745 POST_MODIFY for neon loads and stores.
15746 (arm_print_operand): Output post-index register for neon loads and
15747 stores.
15748
15749 2014-06-18 Richard Biener <rguenther@suse.de>
15750
15751 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15752
15753 2014-06-18 Richard Biener <rguenther@suse.de>
15754
15755 * tree-pass.h (make_pass_dce_loop): Remove.
15756 * passes.def: Replace pass_dce_loop with pass_dce.
15757 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15758 changed free niter estimates and reset the scev cache.
15759 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15760 make_pass_dce_loop): Remove.
15761 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15762 (fini_copy_prop): Return whether something changed. Always
15763 let substitute_and_fold perform DCE and free niter estimates
15764 and reset the scev cache if so.
15765 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15766 (pass_data_copy_prop): Do not unconditionally schedule
15767 cleanup-cfg or update-ssa.
15768
15769 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15770
15771 PR tree-optimization/61518
15772 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15773 reduction var is used in reduction stmt or phi-function only.
15774
15775 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15776
15777 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15778
15779 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15780
15781 PR tree-optimization/61517
15782 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15783 whose rhs's first tree is the source expression instead of the
15784 expression itself.
15785 (find_bswap_or_nop): Likewise.
15786 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15787 gimple stmt whose rhs's first tree is the source. In the memory source
15788 case, move the stmt to be replaced close to one of the original load to
15789 avoid the problem of a store between the load and the stmt's original
15790 location.
15791 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15792 signature.
15793
15794 2014-06-18 Andreas Schwab <schwab@suse.de>
15795
15796 PR rtl-optimization/54555
15797 * postreload.c (move2add_use_add2_insn): Substitute
15798 STRICT_LOW_PART only if it is cheaper.
15799
15800 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15801
15802 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15803 Do not use unspec as call operand. Use memory_operand instead of
15804 memory_nox32_operand and add "m" operand constraint. Disable
15805 pattern for TARGET_X32.
15806 (*sibcall_pop_memory): Ditto.
15807 (*sibcall_value_memory): Ditto.
15808 (*sibcall_value_pop_memory): Ditto.
15809 (sibcall peepholes): Merge SImode and DImode patterns using
15810 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15811 Disable pattern for TARGET_X32. Check if eliminated register is
15812 really dead after call insn. Generate call RTX without unspec operand.
15813 (sibcall_value peepholes): Ditto.
15814 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15815 instead of memory_nox32_operand. Check if eliminated register is
15816 really dead after call insn. Generate call RTX without unspec operand.
15817 (sibcall_value_pop peepholes): Ditto.
15818 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15819
15820 2014-06-18 Terry Guo <terry.guo@arm.com>
15821
15822 PR target/61544
15823 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15824 reach the head.
15825
15826 2014-06-18 Olivier Hainque <hainque@adacore.com>
15827
15828 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15829 memorization of the end of block source location.
15830 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15831 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15832 end source location info we have on the block entry/exit code we
15833 generate.
15834
15835 2014-06-18 Richard Biener <rguenther@suse.de>
15836
15837 * common.opt (fssa-phiopt): New option.
15838 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15839 but not with -Og.
15840 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15841 * doc/invoke.texi (-fssa-phiopt): Document.
15842
15843 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15844
15845 * genattrtab.c (n_bypassed): New variable.
15846 (process_bypasses): Initialise n_bypassed.
15847 Count number of bypassed reservations.
15848 (make_automaton_attrs): Allocate space for bypassed reservations
15849 rather than number of bypasses.
15850
15851 2014-06-18 Richard Biener <rguenther@suse.de>
15852
15853 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15854 we propagated anything.
15855 (substitute_and_fold_dom_walker::before_dom_children): Something
15856 changed if we propagated into PHI arguments.
15857 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15858 we removed a stmt.
15859
15860 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15861
15862 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15863 vector case.
15864 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15865 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15866 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15867 Introduces alternative way of loads group permutaions.
15868 (vect_transform_grouped_load): Try alternative way of permutations.
15869
15870 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15871
15872 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15873 changed in ORT_TARGET region, don't jump to do_outer.
15874 (struct gimplify_adjust_omp_clauses_data): New type.
15875 (gimplify_adjust_omp_clauses_1): Adjust for data being
15876 a struct gimplify_adjust_omp_clauses_data pointer instead
15877 of tree *. Pass pre_p as a new argument to
15878 lang_hooks.decls.omp_finish_clause hook.
15879 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15880 splay_tree_foreach to pass both list_p and pre_p.
15881 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15882 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15883 gimplify_adjust_omp_clauses callers.
15884 * langhooks.c (lhd_omp_finish_clause): New function.
15885 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15886 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15887 * langhooks.h (struct lang_hooks_for_decls): Add a new
15888 gimple_seq * argument to omp_finish_clause hook.
15889 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15890 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15891 (scan_omp_parallel, lower_omp_for): When adding
15892 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15893 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15894 * tree-nested.c (convert_nonlocal_omp_clauses,
15895 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15896 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15897
15898 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15899
15900 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15901 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15902
15903 2014-06-17 Xinliang David Li <davidxl@google.com>
15904
15905 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15906 * passes.c (pass_init_dump_file): Do not set initialize
15907 flag to false unconditionally.
15908
15909 2014-06-17 Richard Biener <rguenther@suse.de>
15910
15911 * genopinit.c (main): Use vec<>::qsort method.
15912 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15913 Likewise.
15914 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15915
15916 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15917
15918 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15919 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15920 (mips_move_to_gpr_cost): Remove ST_REGS case.
15921 (mips_move_from_gpr_cost): Likewise.
15922 (mips_register_move_cost): Likewise.
15923 (mips_secondary_reload_class): Likewise.
15924
15925 2014-06-17 Richard Biener <rguenther@suse.de>
15926
15927 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15928 (pass_all_optimizations): Move 3rd copy-prop pass from after
15929 fre to before ifcombine/phiopt.
15930
15931 2014-06-17 Richard Biener <rguenther@suse.de>
15932
15933 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15934 and allow all blocks to be forwarders.
15935
15936 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15937
15938 PR target/61483
15939 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15940 variable 'size'; calculate 'size' right in the front; use
15941 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15942 pcum->aapcs_stack_words.
15943
15944 2014-06-17 Nick Clifton <nickc@redhat.com>
15945
15946 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15947 (umulhi3, mulsidi3, umulsidi3): Likewise.
15948
15949 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15950
15951 PR middle-end/61508
15952 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15953 check for section name.
15954
15955 2014-06-17 Richard Biener <rguenther@suse.de>
15956
15957 * tree-ssa-propagate.c: Include domwalk.h.
15958 (substitute_and_fold): Outline main worker into a domwalker ...
15959 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15960 Schedule stmts we can fully propagate for removal. Remove
15961 poor-mans DCE.
15962 (substitute_and_fold): Apply a dominator walk to perform
15963 substitution. Process stmts scheduled for removal here.
15964
15965 2014-06-17 Richard Biener <rguenther@suse.de>
15966
15967 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15968 of PHI node moving.
15969
15970 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15971
15972 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15973 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15974 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15975 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15976 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15977 TARGET_HARD_FLOAT.
15978 (get_fpscr) : Likewise.
15979
15980 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15981
15982 PR rtl-optimization/61325
15983 * lra-constraints.c (valid_address_p): Add forward declaration.
15984 (simplify_operand_subreg): Check address validity before and after
15985 alter_reg of memory subreg.
15986
15987 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15988
15989 * config/i386/i386.c (decide_alg): Correctly handle
15990 maximum size of stringop algorithm.
15991
15992 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15993
15994 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15995
15996 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15997
15998 PR rtl-optimization/61522
15999 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16000
16001 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
16002
16003 Revert:
16004 * symtab.c (symtab_node::reset_section): New method.
16005 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16006 for localization.
16007 * cgraph.h (reset_section): Declare.
16008 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16009 do not consider comdat locals.
16010 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16011 for new symbol.
16012 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16013 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16014 reset sections of symbols dragged out of the comdats.
16015 (function_and_variable_visibility): Reset sections of
16016 localized symbols.
16017
16018 2014-06-16 Richard Biener <rguenther@suse.de>
16019
16020 PR tree-optimization/61482
16021 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16022 [-INF(OVF), +INF(OVF)] range.
16023
16024 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16025
16026 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16027 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16028 handling 32-bit multiplication.
16029
16030 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
16031
16032 PR middle-end/61430
16033 * lra-lives.c (process_bb_lives): Skip creating copy during
16034 insn scan when src/dest has constrained to same regno.
16035
16036 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16037
16038 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16039 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16040
16041 2014-06-16 Yury Gribov <y.gribov@samsung.com>
16042
16043 * asan.c (check_func): New function.
16044 (maybe_create_ssa_name): Likewise.
16045 (build_check_stmt_with_calls): Likewise.
16046 (use_calls_p): Likewise.
16047 (report_error_func): Change interface.
16048 (build_check_stmt): Allow non-integer lengths; add support
16049 for new parameter.
16050 (asan_instrument): Likewise.
16051 (instrument_mem_region_access): Moved code to build_check_stmt.
16052 (instrument_derefs): Likewise.
16053 (instrument_strlen_call): Likewise.
16054 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16055 * doc/invoke.texi: Describe new parameter.
16056 * params.def: Define new parameter.
16057 * params.h: Likewise.
16058 * sanitizer.def: Describe new builtins.
16059
16060 2014-06-16 Richard Biener <rguenther@suse.de>
16061
16062 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16063 Make all defs available at the end.
16064 (eliminate): If we remove a PHI node schedule cfg-cleanup.
16065
16066 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16067
16068 PR plugins/45078
16069 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16070
16071 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
16072
16073 PR bootstrap/61516
16074 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16075 initialization. Replace remaining use of uid.
16076
16077 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16078
16079 * c-family/c-common.c (handle_tls_model_attribute): Use
16080 set_decl_tls_model.
16081 * c-family/c-common.c (handle_tls_model_attribute): Use
16082 set_decl_tls_model.
16083 * cgraph.h (struct varpool_node): Add tls_model.
16084 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16085 * tree.h (DECL_TLS_MODEL): Update.
16086 (DECL_THREAD_LOCAL_P): Check that variable is static.
16087 (decl_tls_model): Declare.
16088 (set_decl_tls_model): Declare.
16089 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16090 set symbol prorperties.
16091 (get_emutls_init_templ_addr): Cleanup.
16092 (new_emutls_decl): Update.
16093 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16094 (lto_input_varpool_node): Likewise.
16095 * lto-streamer-out.c (hash_tree): Likewise.
16096 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16097 not stream DECL_TLS_MODEL.
16098 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16099 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16100
16101 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16102
16103 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16104
16105 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16106
16107 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16108 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16109 lists.
16110 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16111 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16112 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16113 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16114 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16115 (df_get_artificial_defs, df_get_artificial_uses)
16116 (df_single_def, df_single_use): Update accordingly.
16117 (df_refs_chain_dump): Take the first element in a linked list as
16118 parameter, rather than a pointer to an array of pointers.
16119 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16120 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16121 (df_chain_create_bb_process_use): Likewise.
16122 (df_md_bb_local_compute_process_def): Likewise.
16123 * fwprop.c (process_defs, process_uses): Likewise.
16124 (register_active_defs, update_uses): Likewise.
16125 (forward_propagate_asm): Update for new df_ref linking.
16126 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16127 (df_null_ref_rec, df_null_mw_rec): Likewise.
16128 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16129 explicitly.
16130 (df_scan_free_bb_info): Remove check for null artificial_defs.
16131 (df_install_ref_incremental): Adjust for new df_ref linking.
16132 Use a single-element insertion rather than a full sort.
16133 (df_ref_chain_delete_du_chain): Take the first element
16134 in a linked list as parameter, rather than a pointer to an array of
16135 pointers.
16136 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16137 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16138 (df_insn_info_delete): Remove check for null defs and call to
16139 df_scan_free_mws_vec.
16140 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16141 null rather than df_null_*_rec.
16142 (df_insn_rescan_debug_internal): Likewise, and update null
16143 checks in the same way. Remove check for null defs.
16144 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16145 Move a single element rather doing a full sort.
16146 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16147 linking.
16148 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16149 Initialize df_ref and df_mw_hardreg lists to null rather than
16150 df_null_*_rec.
16151 (df_ref_compare): Take df_refs as parameter, transferring the
16152 old interface to...
16153 (df_ref_ptr_compare): ...this new function.
16154 (df_sort_and_compress_refs): Update accordingly.
16155 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16156 old interface to...
16157 (df_mw_ptr_compare): ...this new function.
16158 (df_sort_and_compress_mws): Update accordingly.
16159 (df_install_refs, df_install_mws): Return a linked list rather than
16160 an array of pointers.
16161 (df_refs_add_to_chains): Assert that old lists are empty rather
16162 than freeing them.
16163 (df_insn_refs_verify): Don't handle null defs speciailly.
16164 * web.c (union_match_dups): Update for new df_ref linking.
16165
16166 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16167
16168 * df.h (df_ref_create, df_ref_remove): Delete.
16169 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16170 (df_ref_remove): Likewise.
16171
16172 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16173
16174 * df.h (df_single_def, df_single_use): New functions.
16175 * ira.c (find_moveable_pseudos): Use them.
16176
16177 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16178
16179 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16180 * df-problems.c (df_note_bb_compute): Use it.
16181 * regstat.c (regstat_bb_compute_ri): Likewise.
16182
16183 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16184
16185 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16186 * cse.c (cse_extended_basic_block): Use them.
16187 * dce.c (mark_artificial_use): Likewise.
16188 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16189 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16190 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16191 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16192 (df_simulate_initialize_backwards): Likewise.
16193 (df_simulate_finalize_backwards): Likewise.
16194 (df_simulate_initialize_forwards): Likewise.
16195 (df_md_simulate_artificial_defs_at_top): Likewise.
16196 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16197 * regrename.c (init_rename_info): Likewise.
16198 * regstat.c (regstat_bb_compute_ri): Likewise.
16199 (regstat_bb_compute_calls_crossed): Likewise.
16200
16201 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16202
16203 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16204 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16205 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16206 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16207 * combine.c (create_log_links): Likewise.
16208 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16209 (try_eliminate_compare): Likewise.
16210 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16211 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16212 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16213 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16214 (word_dce_process_block, dce_process_block): Likewise.
16215 * ddg.c (def_has_ccmode_p): Likewise.
16216 * df-core.c (df_bb_regno_first_def_find): Likewise.
16217 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16218 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16219 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16220 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16221 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16222 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16223 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16224 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16225 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16226 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16227 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16228 * fwprop.c (local_ref_killed_between_p): Likewise.
16229 (all_uses_available_at, free_load_extend): Likewise.
16230 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16231 * hw-doloop.c (scan_loop): Likewise.
16232 * ifcvt.c (dead_or_predicable): Likewise.
16233 * init-regs.c (initialize_uninitialized_regs): Likewise.
16234 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16235 (process_bb_node_lives): Likewise.
16236 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16237 (find_moveable_pseudos): Likewise.
16238 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16239 * recog.c (peep2_find_free_register): Likewise.
16240 * ree.c (get_defs): Likewise.
16241 * regstat.c (regstat_bb_compute_ri): Likewise.
16242 (regstat_bb_compute_calls_crossed): Likewise.
16243 * sched-deps.c (find_inc, find_mem): Likewise.
16244 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16245 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16246 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16247 (prepare_shrink_wrap): Likewise.
16248 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16249 * web.c (union_defs, pass_web::execute): Likewise.
16250 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16251 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16252
16253 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16254
16255 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16256 to inheritance pseudos.
16257 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16258
16259 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16260
16261 PR target/61415
16262 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16263 (BU_MISC_2): Rename to ...
16264 (BU_LDBL128_2): ... this.
16265 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16266 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16267 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16268 RS6000_BTM_LDBL128.
16269 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16270 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16271 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16272 (unpacktf_1): Likewise.
16273 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16274 (__builtin_longdouble_dw1): Likewise.
16275 * doc/sourcebuild.texi (longdouble128): Document.
16276
16277 2014-06-13 Jeff Law <law@redhat.com>
16278
16279 PR rtl-optimization/61094
16280 PR rtl-optimization/61446
16281 * ree.c (combine_reaching_defs): Get the mode for the copy from
16282 the extension insn rather than the defining insn.
16283
16284 2014-06-13 Dehao Chen <dehao@google.com>
16285
16286 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16287
16288 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16289
16290 * doc/install.texi (--enable-linker-plugin-configure-flags)
16291 (--enable-linker-plugin-flags): Document new flags.
16292
16293 2014-06-13 Martin Jambor <mjambor@suse.cz>
16294
16295 PR ipa/61186
16296 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16297 cache_token if returning early.
16298
16299 2014-06-13 Nick Clifton <nickc@redhat.com>
16300
16301 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16302 requested alignment is active.
16303 (LABEL_ALIGN): Likewise.
16304 (LOOP_ALIGN): Likewise.
16305
16306 2014-06-13 Richard Biener <rguenther@suse.de>
16307
16308 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16309 Rewrite to propagate the VN result into all uses where
16310 possible and to remove stmts becoming dead because of that.
16311 (eliminate): Generalize stmt removal handling, remove in
16312 reverse dominator order to support proper debug stmt
16313 generation. Update stmts before removing stmts.
16314 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16315
16316 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16317
16318 PR tree-optimization/61375
16319 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16320 symbolic number cannot be represented in an uint64_t.
16321 (find_bswap_or_nop_1): Likewise.
16322
16323 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16324
16325 * symtab.c (symtab_node::reset_section): New method.
16326 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16327 for localization.
16328 * cgraph.h (reset_section): Declare.
16329 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16330 do not consider comdat locals.
16331 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16332 for new symbol.
16333 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16334 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16335 reset sections of symbols dragged out of the comdats.
16336 (function_and_variable_visibility): Reset sections of
16337 localized symbols.
16338
16339 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16340
16341 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16342 to use symtab and decl_binds_to_current_def_p
16343 * tree-vectorizer.c (increase_alignment): Increase alignment
16344 of alias target, too.
16345
16346 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16347
16348 PR middle-end/61486
16349 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16350 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16351 if outer combined construct is distribute.
16352 (gimplify_omp_for): For OMP_DISTRIBUTE set
16353 gimplify_omp_ctxp->distribute.
16354 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16355 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16356 mapping into decl map.
16357
16358 2014-06-12 Jason Merrill <jason@redhat.com>
16359
16360 * common.opt (fabi-version): Change default to 0.
16361
16362 2014-06-12 Jason Merrill <jason@redhat.com>
16363
16364 * toplev.c (process_options): Reject -fabi-version=1.
16365
16366 2014-06-12 Jeff Law <law@redhat.com>
16367
16368 PR tree-optimization/61009
16369 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16370 value when we stop processing a block due to problematic PHIs.
16371
16372 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16373
16374 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16375 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16376 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16377 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16378 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16379 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16380 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16381 are not in the spec.
16382
16383 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16384
16385 PR target/59843
16386 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16387 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16388 Support V1DFmode.
16389
16390 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16391
16392 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16393
16394 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16395
16396 PR target/61443
16397 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16398 loading from address spaces.
16399
16400 2014-06-12 Martin Liska <mliska@suse.cz>
16401
16402 PR ipa/61462
16403 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16404 statement is reachable.
16405
16406 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16407
16408 * symtab.c (section_hash): New hash.
16409 (symtab_unregister_node): Clear section before freeing.
16410 (hash_section_hash_entry): New haser.
16411 (eq_sections): New function.
16412 (symtab_node::set_section_for_node): New method.
16413 (set_section_1): Update.
16414 (symtab_node::set_section): Take string instead of tree as parameter.
16415 (symtab_resolve_alias): Update.
16416 * cgraph.h (section_hash_entry_d): New structure.
16417 (section_hash_entry): New typedef.
16418 (cgraph_node): Change comdat_group_ to x_comdat_group,
16419 change section_ to x_section and turn into section_hash_entry;
16420 update accestors; put set_section_for_node offline.
16421 * tree.c (decl_section_name): Turn into string.
16422 (set_decl_section_name): Change parameter to be string.
16423 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16424 * sdbout.c (sdbout_one_type): Update.
16425 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16426 * varasm.c (IN_NAMED_SECTION, get_named_section,
16427 resolve_unique_section, hot_function_section, get_named_text_section,
16428 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16429 make_decl_rtl, default_unique_section): Update.
16430 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16431 (c6x_elf_unique_section): Update.
16432 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16433 * config/pa/pa.c (pa_function_section): Update.
16434 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16435 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16436 * config/arc/arc.c (arc_in_small_data_p): Update.
16437 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16438 * config/mcore/mcore.c (mcore_unique_section): Update.
16439 * config/mips/mips.c (mips16_build_function_stub): Update.
16440 (mips16_build_call_stub): Update.
16441 (mips_function_rodata_section): Update.
16442 (mips_in_small_data_p): Update.
16443 * config/score/score.c (score_in_small_data_p): Update.
16444 * config/rx/rx.c (rx_in_small_data): Update.
16445 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16446 (rs6000_xcoff_asm_named_section): Update.
16447 (rs6000_xcoff_unique_section): Update.
16448 * config/frv/frv.c (frv_string_begins_with): Update.
16449 (frv_in_small_data_p): Update.
16450 * config/v850/v850.c (v850_encode_data_area): Update.
16451 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16452 (bfin_handle_l1_data_attribute): Update.
16453 (bfin_handle_l2_attribute): Update.
16454 * config/mep/mep.c (mep_unique_section): Update.
16455 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16456 Update.
16457 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16458 (h8300_handle_tiny_data_attribute): Update.
16459 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16460 (m32r_in_small_data_p): Update.
16461 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16462 * config/i386/i386.c (ix86_in_large_data_p): Update.
16463 * config/i386/winnt.c (i386_pe_unique_section): Update.
16464 * config/darwin.c (darwin_function_section): Update.
16465 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16466 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16467 (new_emutls_decl): Update.
16468 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16469 input_varpool_node): Update.
16470 (ead_string_cst): Turn to ...
16471 (read_string): ... this one.
16472 * dwarf2out.c (secname_for_decl): Update.
16473 * asan.c (asan_protect_global): Update.
16474
16475 2014-06-11 DJ Delorie <dj@redhat.com>
16476
16477 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16478 cache lines.
16479 * config/rx/rx.c (rx_option_override): Likewise.
16480 (rx_align_for_label): Likewise.
16481
16482 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16483
16484 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16485
16486 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16487 prototype.
16488
16489 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16490
16491 * common.md: New file.
16492 * doc/md.texi: Update description of generic, machine-independent
16493 constraints.
16494 * config/s390/constraints.md (e): Delete.
16495 * Makefile.in (md_file): Include common.md.
16496 * config/m32c/t-m32c (md_file): Likewise.
16497 * genpreds.c (general_mem): New array.
16498 (generic_constraint_letters): Remove constraints now defined by
16499 common.md.
16500 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16501 Allow the first character to be '<' or '>' as well.
16502 * genoutput.c (general_mem): New array.
16503 (indep_constraints): Remove constraints now defined by common.md.
16504 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16505 Remove special handling of 'm'.
16506 * ira-costs.c (record_reg_classes): Remove special handling of
16507 constraints now defined by common.md.
16508 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16509 * ira-lives.c (single_reg_class): Likewise.
16510 (ira_implicitly_set_insn_hard_regs): Likewise.
16511 * lra-constraints.c (reg_class_from_constraints): Likewise.
16512 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16513 * postreload.c (reload_cse_simplify_operands): Likewise.
16514 * reload.c (push_secondary_reload, scratch_reload_class)
16515 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16516 * reload1.c (maybe_fix_stack_asms): Likewise.
16517 * targhooks.c (default_secondary_reload): Likewise.
16518 * stmt.c (parse_output_constraint): Likewise.
16519 * recog.c (preprocess_constraints): Likewise.
16520 (constrain_operands, peep2_find_free_register): Likewise.
16521 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16522 must be handled specially.
16523
16524 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16525
16526 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16527 * genpreds.c (have_const_dbl_constraints): Delete.
16528 (add_constraint): Don't set it.
16529 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16530 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16531 constraints using the lookup_constraint logic.
16532 * ira-lives.c (single_reg_class): Likewise.
16533 * ira.c (ira_setup_alts): Likewise.
16534 * lra-constraints.c (process_alt_operands): Likewise.
16535 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16536 * reload.c (find_reloads): Likewise.
16537
16538 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16539
16540 * genpreds.c (const_int_start, const_int_end): New variables.
16541 (choose_enum_order): Output CONST_INT constraints before memory
16542 constraints.
16543 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16544 Add CT_CONST_INT.
16545 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16546 * ira.c (ira_setup_alts): Likewise.
16547 * lra-constraints.c (process_alt_operands): Likewise.
16548 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16549 * reload.c (find_reloads): Likewise.
16550
16551 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16552
16553 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16554 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16555 * recog.c (preprocess_constraints): Update accordingly.
16556
16557 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16558
16559 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16560 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16561 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16562 * genpreds.c (print_type_tree): New function.
16563 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16564 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16565 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16566 Write out enum constraint_type and get_constraint_type.
16567 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16568 constraint_num rather than a constraint string.
16569 (satisfies_address_constraint_p): Likewise.
16570 (reg_class_from_constraints): Avoid old constraint macros.
16571 (process_alt_operands, process_address_1): Likewise.
16572 (curr_insn_transform): Likewise.
16573 * ira-costs.c (record_reg_classes): Likewise.
16574 (record_operand_costs): Likewise.
16575 * ira-lives.c (single_reg_class): Likewise.
16576 (ira_implicitly_set_insn_hard_regs): Likewise.
16577 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16578 * postreload.c (reload_cse_simplify_operands): Likewise.
16579 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16580 (constrain_operands, peep2_find_free_register): Likewise.
16581 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16582 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16583 * reload1.c (maybe_fix_stack_asms): Likewise.
16584 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16585 * targhooks.c (default_secondary_reload): Likewise.
16586 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16587 to EXTRA_CONSTRAINT_STR.
16588 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16589
16590 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16591
16592 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16593 (write_constraint_satisfied_p_array): ...this new function.
16594 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16595 an array.
16596 (write_insn_preds_c): Update accordingly.
16597
16598 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16599
16600 * genpreds.c (write_lookup_constraint): Rename to...
16601 (write_lookup_constraint_1): ...this.
16602 (write_lookup_constraint_array): New function.
16603 (write_tm_preds_h): Define lookup_constraint as an inline function
16604 that uses write_lookup_constraint_array where possible.
16605 (write_insn_preds_c): Update for the changes above.
16606
16607 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16608
16609 * doc/md.texi (regclass_for_constraint): Rename to...
16610 (reg_class_for_constraint): ...this.
16611 * genpreds.c (num_constraints, enum_order, register_start)
16612 (register_end, satisfied_start, memory_start, memory_end)
16613 (address_start, address_end): New variables.
16614 (add_constraint): Count the number of constraints.
16615 (choose_enum_order): New function.
16616 (write_enum_constraint_num): Iterate over enum_order.
16617 (write_regclass_for_constraint): Rename to...
16618 (write_reg_class_for_constraint_1): ...this and update output
16619 accordingly.
16620 (write_constraint_satisfied_p): Rename to...
16621 (write_constraint_satisfied_p_1): ...this and update output
16622 accordingly. Do nothing if all extra constraints are register
16623 constraints.
16624 (write_insn_extra_memory_constraint): Delete.
16625 (write_insn_extra_address_constraint): Delete.
16626 (write_range_function): New function.
16627 (write_tm_preds_h): Define constraint_satisfied_p and
16628 reg_class_for_constraint as inline functions that do a range check
16629 before calling the out-of-line function. Use write_range_function
16630 to implement insn_extra_{register,memory,address}_constraint,
16631 the first of which is new.
16632 (write_insn_preds_c): Update after above changes to write_* functions.
16633 (main): Call choose_enum_order.
16634
16635 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16636
16637 PR tree-optimization/61306
16638 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16639 expression instead of its size.
16640 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16641 false to prevent optimization when the result is unpredictable due to
16642 arithmetic right shift of signed type with highest byte is set.
16643 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16644 (init_symbolic_number): Likewise.
16645 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16646 when the result is unpredictable due to sign extension.
16647
16648 2014-06-11 Terry Guo <terry.guo@arm.com>
16649
16650 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16651 (*thumb1_addsi3): Ditto.
16652 (*thumb_subdi3): Ditto.
16653 (thumb1_subsi3_insn): Ditto.
16654 (*thumb_mulsi3): Ditto.
16655 (*thumb_mulsi3_v6): Ditto.
16656 (*thumb1_andsi3_insn): Ditto.
16657 (thumb1_bicsi3): Ditto.
16658 (*thumb1_iorsi3_insn): Ditto.
16659 (*thumb1_xorsi3_insn): Ditto.
16660 (*thumb1_ashlsi3): Ditto.
16661 (*thumb1_ashrsi3): Ditto.
16662 (*thumb1_lshrsi3): Ditto.
16663 (*thumb1_rotrsi3): Ditto.
16664 (*thumb1_negdi2): Ditto.
16665 (*thumb1_negsi2): Ditto.
16666 (*thumb1_abssi2): Ditto.
16667 (*thumb1_neg_abssi2): Ditto.
16668 (*thumb1_one_cmplsi2): Ditto.
16669 (*thumb1_zero_extendhisi2): Ditto.
16670 (*thumb1_zero_extendqisi2): Ditto.
16671 (*thumb1_zero_extendqisi2_v6): Ditto.
16672 (thumb1_extendhisi2): Ditto.
16673 (thumb1_extendqisi2): Ditto.
16674 (*thumb1_movdi_insn): Ditto.
16675 (*thumb1_movsi_insn): Ditto.
16676 (*thumb1_movhi_insn): Ditto.
16677 (thumb_movhi_clobber): Ditto.
16678 (*thumb1_movqi_insn): Ditto.
16679 (*thumb1_movhf): Ditto.
16680 (*thumb1_movsf_insn): Ditto.
16681 (*thumb_movdf_insn): Ditto.
16682 (movmem12b): Ditto.
16683 (movmem8b): Ditto.
16684 (cbranchqi4): Ditto.
16685 (cbranchsi4_insn): Ditto.
16686 (cbranchsi4_scratch): Ditto.
16687 (*negated_cbranchsi4): Ditto.
16688 (*tbit_cbranch): Ditto.
16689 (*tlobits_cbranch): Ditto.
16690 (*tstsi3_cbranch): Ditto.
16691 (*cbranchne_decr1): Ditto.
16692 (*addsi3_cbranch): Ditto.
16693 (*addsi3_cbranch_scratch): Ditto.
16694 (*thumb_cmpdi_zero): Ditto.
16695 (cstoresi_eq0_thumb1): Ditto.
16696 (cstoresi_ne0_thumb1): Ditto.
16697 (*cstoresi_eq0_thumb1_insn): Ditto.
16698 (*cstoresi_ne0_thumb1_insn): Ditto.
16699 (cstoresi_nltu_thumb1): Ditto.
16700 (cstoresi_ltu_thumb1): Ditto.
16701 (thumb1_addsi3_addgeu): Ditto.
16702 (*thumb_jump): Ditto.
16703 (*call_reg_thumb1_v5): Ditto.
16704 (*call_reg_thumb1): Ditto.
16705 (*call_value_reg_thumb1_v5): Ditto.
16706 (*call_value_reg_thumb1): Ditto.
16707 (*call_insn): Ditto.
16708 (*call_value_insn): Ditto.
16709 (thumb1_casesi_internal_pic): Ditto.
16710 (thumb1_casesi_dispatch): Ditto.
16711 (*thumb1_indirect_jump): Ditto.
16712 (prologue_thumb1_interwork): Ditto.
16713 (*epilogue_insns): Ditto.
16714 (consttable_1): Ditto.
16715 (consttable_2): Ditto.
16716 (tablejump): Ditto.
16717 (*thumb1_tablejump): Ditto.
16718 (thumb_eh_return): Ditto.
16719 (define_peephole2): Two of them are thumb1 only and got moved into
16720 new file thumb1.md.
16721 (define_split): Six of them are thumb1 only and got moved into new
16722 file thumb1.md.
16723 * config/arm/thumb1.md: New file comprised of above thumb1 only
16724 patterns.
16725
16726 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16727
16728 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16729 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16730 dependencies.
16731 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16732 (aarch64_crc_builtin_datum): New struct.
16733 (aarch64_crc_builtin_data): New.
16734 (aarch64_init_crc32_builtins): New function.
16735 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16736 (aarch64_crc32_expand_builtin): New.
16737 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16738 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16739 __ARM_FEATURE_CRC32 when appropriate.
16740 (TARGET_CRC32): Define.
16741 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16742 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16743 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16744 (aarch64_<crc_variant>): New pattern.
16745 * config/aarch64/arm_acle.h: New file.
16746 * config/aarch64/iterators.md (CRC): New int iterator.
16747 (crc_variant, crc_mode): New int attributes.
16748 * doc/aarch64-acle-intrinsics.texi: New file.
16749 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16750 Include aarch64-acle-intrinsics.texi.
16751
16752 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16753
16754 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16755 check for stores group of length 3.
16756 (vect_permute_store_chain): New permutations for stores group of
16757 length 3.
16758 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16759 of vec_perm_shuffle for the new permutations.
16760
16761 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16762
16763 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16764 table rewriting temporarily on targets not supporting ONE_ONLY.
16765
16766 2014-06-11 Richard Biener <rguenther@suse.de>
16767
16768 PR middle-end/61437
16769 Revert
16770 2014-06-04 Richard Biener <rguenther@suse.de>
16771
16772 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16773 TREE_PUBLIC and DECL_EXTERNAL decls.
16774
16775 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16776
16777 * varasm.c (set_implicit_section): New function.
16778 (resolve_unique_section): Use it to set implicit section
16779 for aliases, too.
16780 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16781 (default_function_section): Likewise.
16782 (decl_binds_to_current_def_p): Constify argument.
16783 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16784 * asan.c (asan_protect_global): Use
16785 symtab_get_node (decl)->implicit_section.
16786 * symtab.c (dump_symtab_base): Dump implicit sections.
16787 (verify_symtab_base): Verify sanity of sectoins and comdats.
16788 (symtab_resolve_alias): Alias share the section of its target.
16789 (set_section_1): New function.
16790 (symtab_node::set_section): Move here, recurse to aliases.
16791 (verify_symtab): Check for duplicated symtab lists.
16792 * tree-core.h (implicit_section_name_p): Remove.
16793 * tree-vect-data-refs.c: Include varasm.h.
16794 (vect_can_force_dr_alignment_p): Fix conditional on when
16795 decl bints to current definition; use
16796 symtab_get_node (decl)->implicit_section.
16797 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16798 * cgraph.h (struct symtab_node): Add implicit_section.
16799 (set_section): Rename to ...
16800 (set_section_for_node): ... this one.
16801 (set_section): Declare.
16802 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16803 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16804 input_overwrite_node, input_varpool_node): Stream implicit_section.
16805 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16806 removal; it will fail in LTO.
16807
16808 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16809
16810 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16811 Change second alternative type to f_mcr.
16812 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16813 and 12th alternatives' types to f_mcr and f_mrc.
16814 (*movdi_aarch64): Same for 12th and 13th alternatives.
16815 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16816 (aarch64_movtilow_tilow): Change type to fmov.
16817
16818 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16819
16820 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16821 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16822
16823 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16824
16825 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16826 New expander.
16827 (aarch64_sqrdmulh_lane<mode>): Likewise.
16828 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16829 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16830 (aarch64_sqdmulh_laneq<mode>): New expander.
16831 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16832 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16833 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16834 (aarch64_sqdmulh_lane<mode>): New expander.
16835 (aarch64_sqrdmulh_lane<mode>): Likewise.
16836 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16837 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16838 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16839 (aarch64_sqdmlal_laneq<mode>): Likewise.
16840 (aarch64_sqdmlsl_lane<mode>): Likewise.
16841 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16842 (aarch64_sqdmlal2_lane<mode>): Likewise.
16843 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16844 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16845 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16846 (aarch64_sqdmull_lane<mode>): Likewise.
16847 (aarch64_sqdmull_laneq<mode>): Likewise.
16848 (aarch64_sqdmull2_lane<mode>): Likewise.
16849 (aarch64_sqdmull2_laneq<mode>): Likewise.
16850
16851 2014-06-10 Richard Biener <rguenther@suse.de>
16852
16853 PR tree-optimization/61438
16854 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16855 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16856 insertion of IVs if running PRE.
16857 (eliminate): Adjust.
16858 (pass_pre::execute): Likewise.
16859 (pass_fre::execute): Likewise.
16860
16861 2014-06-10 Richard Biener <rguenther@suse.de>
16862
16863 PR middle-end/61456
16864 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16865 Do not use the main variant for the type comparison.
16866 (ncr_compar): Likewise.
16867 (nonoverlapping_component_refs_p): Likewise.
16868
16869 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16870
16871 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16872 REG_CFA_RESTORE mode.
16873
16874 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16875
16876 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16877 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16878 expand_vec_perm_pblendv.
16879
16880 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16881
16882 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16883 available.
16884 Simplify description of __crc32d and __crc32cd intrinsics.
16885 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16886 availability.
16887
16888 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16889
16890 PR lto/61334
16891 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16892 * config.in: Regenerate.
16893 * configure: Likewise.
16894
16895 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16896
16897 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16898 and public vars.
16899 (intersect_static_var_sets): Remove.
16900 (propagate): Do not prune local statics.
16901
16902 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16903
16904 PR fortran/60928
16905 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16906 Set lastprivate_firstprivate even if omp_private_outer_ref
16907 langhook returns true.
16908 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16909 langhook, call unshare_expr on new_var and call
16910 build_outer_var_ref to get the last argument.
16911
16912 2014-06-10 Marek Polacek <polacek@redhat.com>
16913
16914 PR c/60988
16915 * doc/extend.texi: Add cindex for transparent_union.
16916
16917 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16918
16919 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16920 init_symbolic_number ().
16921
16922 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16923
16924 PR middle-end/61141
16925 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16926 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16927 (verify_rtl_sharing): Likewise.
16928
16929 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16930
16931 PR c++/54442
16932 * tree.c (build_qualified_type): Use a canonical type for
16933 TYPE_CANONICAL.
16934
16935 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16936
16937 * config/arm/arm-modes.def: Remove XFmode.
16938
16939 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16940
16941 PR target/61062
16942 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16943 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16944 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16945 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16946 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16947 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16948 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16949 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16950 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16951
16952 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16953
16954 * tree-core.h (tree_decl_with_vis): Remove section_name.
16955
16956 2014-06-09 Kito Cheng <kito@0xlab.org>
16957
16958 * ira.c (ira): Don't call init_caller_save if LRA enabled
16959 since LRA use its own infrastructure to handle that.
16960
16961 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16962
16963 * symtab.c (dump_symtab_base): Update dumping.
16964 (symtab_make_decl_local): Clear only DECL_COMDAT.
16965 * tree-vect-data-refs.c (Check that variable is static before
16966 tampering with sections.
16967 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16968 (cgraph_create_virtual_clone): Likewise.
16969 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16970 (decl_section_name, set_decl_section_name): New accessors.
16971 (find_decls_types_r): Do not walk section name
16972 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16973 (decl_comdat_group, decl_comdat_group_id): Constify.
16974 (decl_section_name, set_decl_section_name): Update.
16975 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16976 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16977 (cgraph_make_node_local_1): Clear section and comdat group.
16978 * cgraph.h (set_comdat_group): Sanity check.
16979 (get_section, set_section): New.
16980 * ipa-comdats.c (ipa_comdats): Use get_section.
16981 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16982 * lto-streamer-out.c: Do not follow section names.
16983 * c-family/c-common.c (handle_section_attribute): Update.
16984 * lto-cgraph.c (lto_output_node): Output section.
16985 (lto_output_varpool_node): Likewise.
16986 (read_comdat_group): Rename to ...
16987 (read_identifier): ... this one.
16988 (read_string_cst): New function.
16989 (input_node, input_varpool_node): Input section names.
16990 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16991 (new_emutls_decl): Update.
16992 (secname_for_decl): Check section names only of static vars.
16993 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16994 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16995 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16996 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16997 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16998 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16999 * config/mips/mips.c (mips16_build_function_stub): Likewise.
17000 * config/v850/v850.c (v850_insert_attributes): Likewise.
17001 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17002 Likewise.
17003 (h8300_handle_tiny_data_attribute): Likewise.
17004 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17005 (bfin_handle_l2_attribute): Likewise.
17006
17007 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17008
17009 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17010 remove static initializer.
17011
17012 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17013
17014 * varasm.c (use_blocks_for_decl_p): Check symbol table
17015 instead of alias attribute.
17016 (place_block_symbol): Recurse on aliases.
17017
17018 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17019
17020 * ipa-visibility.c: Include varasm.h
17021 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17022
17023 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17024
17025 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17026 outputting aliases.
17027
17028 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
17029
17030 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17031 from test_insn into GGC space escape via SET_SRC.
17032
17033 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
17034
17035 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17036 call statement, if any.
17037 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17038 statements, if any. Tidy up.
17039
17040 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17041
17042 PR target/61431
17043 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17044 iterators, VSX_D that handles 64-bit types, and VSX_LE that
17045 handles swapping the two 64-bit double words on little endian
17046 systems. Include V1TImode and optionally TImode in VSX_LE so that
17047 these types are properly swapped. Change all of the insns and
17048 splits that do the 64-bit swaps to use VSX_LE.
17049 (vsx_le_perm_load_<mode>): Likewise.
17050 (vsx_le_perm_store_<mode>): Likewise.
17051 (splitters for little endian memory operations): Likewise.
17052 (vsx_xxpermdi2_le_<mode>): Likewise.
17053 (vsx_lxvd2x2_le_<mode>): Likewise.
17054 (vsx_stxvd2x2_le_<mode>): Likewise.
17055
17056 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
17057
17058 PR target/61423
17059 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17060 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17061 and corresponding splitters. Zero extend general register
17062 or memory input operand to XMM temporary. Enable for
17063 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17064 (floatunssi<mode>2): Update expander predicate.
17065
17066 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
17067
17068 PR rtl-optimization/61325
17069 * lra-constraints.c (process_address_1): Check scale equal to one
17070 to prevent transformation: base + scale * index => base + new_reg.
17071
17072 2014-06-06 Richard Biener <rguenther@suse.de>
17073
17074 PR tree-optimization/59299
17075 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17076 a def operand.
17077 (nearest_common_dominator_of_uses): Likewise.
17078 (statement_sink_location): Adjust. Support sinking loads.
17079
17080 2014-06-06 Martin Jambor <mjambor@suse.cz>
17081
17082 * ipa-prop.c (get_place_in_agg_contents_list): New function.
17083 (build_agg_jump_func_from_list): Likewise.
17084 (determine_known_aggregate_parts): Renamed to
17085 determine_locally_known_aggregate_parts. Moved some functionality
17086 to the two functions above, removed bound checks.
17087
17088 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
17089
17090 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17091 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17092 (aarch64_progress_pointer): Likewise.
17093 (aarch64_copy_one_part_and_move_pointers): Likewise.
17094 (aarch64_expand_movmen): Likewise.
17095 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17096 * config/aarch64/aarch64.md (movmem<mode>): New.
17097
17098 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
17099
17100 * targhooks.c (default_add_stmt_cost): Call target specific
17101 hook instead of default one.
17102
17103 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17104
17105 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17106 endianness instead of host endianness.
17107 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17108 comments.
17109
17110 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17111
17112 PR debug/53927
17113 * function.c (instantiate_decls): Process the saved static chain.
17114 (expand_function_start): If not optimizing, save the static chain
17115 onto the stack.
17116 * tree-nested.c (convert_all_function_calls): Always create the static
17117 chain for nested functions if not optimizing.
17118
17119 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17120
17121 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17122
17123 2014-06-06 Richard Biener <rguenther@suse.de>
17124
17125 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17126 (construct_init_block): Likewise.
17127 (construct_exit_block): Likewise.
17128 (pass_expand::execute): Likewise.
17129 * graphite.c (graphite_transforms): Replace check for current_loops
17130 with a check for > 1 loops.
17131 (pass_graphite_transforms::execute): Adjust.
17132 * ipa-split.c (split_function): Remove check for current_loops.
17133 * omp-low.c (expand_parallel_call): Likewise.
17134 (expand_omp_for_init_counts): Likewise.
17135 (extract_omp_for_update_vars): Likewise.
17136 (expand_omp_for_generic): Likewise.
17137 (expand_omp_sections): Likewise.
17138 (expand_omp_target): Likewise.
17139 * tracer.c (tail_duplicate): Likewise.
17140 (pass_tracer::execute): Likewise.
17141 * trans-mem.c (expand_transaction): Likewise.
17142 * tree-complex.c (expand_complex_div_wide): Likewise.
17143 * tree-eh.c (lower_resx): Likewise.
17144 (cleanup_empty_eh_merge_phis): Likewise.
17145 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17146 current_loops with a check for > 1 loops.
17147 (pass_predcom::execute): Adjust.
17148 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17149 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17150 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17151 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17152 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17153 * tree-switch-conversion.c (process_switch): Likewise.
17154 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17155 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17156 (execute_vrp): Likewise.
17157 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17158
17159 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17160
17161 * rtl.h (insn_location): Declare.
17162 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17163 with UNKNOWN_LOCATION.
17164 * emit-rtl.c (insn_location): New function.
17165 * final.c (notice_source_line): Check that the instruction has a
17166 location before retrieving it and use insn_location.
17167 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17168 * print-rtl.c (print_rtx): Likewise.
17169
17170 2014-06-06 Richard Biener <rguenther@suse.de>
17171
17172 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17173
17174 2014-06-06 Christian Bruel <christian.bruel@st.com>
17175
17176 PR tree-optimization/43934
17177 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17178 cost.
17179
17180 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17181
17182 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17183 return NO_REGS for extra address and memory constraints. Handle
17184 operands that match (or are equivalent to something that matches)
17185 extra constant constraints. Ignore other non-register operands.
17186
17187 2014-06-06 Alan Modra <amodra@gmail.com>
17188
17189 PR target/61300
17190 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17191 * doc/tm.texi: Regenerate.
17192 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17193 Use throughout in place of REG_PARM_STACK_SPACE.
17194 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17195 "incoming" param. Pass to rs6000_function_parms_need_stack.
17196 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17197 prototype_p when incoming. Use function decl when incoming
17198 to handle K&R style functions.
17199 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17200 (INCOMING_REG_PARM_STACK_SPACE): Define.
17201
17202 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17203
17204 PR target/52472
17205 * cfgexpand.c (expand_debug_expr): Use address space of nested
17206 TREE_TYPE for ADDR_EXPR and MEM_REF.
17207
17208 2014-06-05 Jeff Law <law@redhat.com>
17209
17210 PR tree-optimization/61289
17211 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17212 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17213 looking for those which match LHS. All callers changed.
17214 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17215 parameters and code which manipulated them. All callers changed.
17216 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17217 and DST_MAP parameters. Simplify invalidation code by just calling
17218 invalidate_equivalences. All callers changed.
17219 (thread_across_edge): Simplify now that we don't need to maintain
17220 the map of equivalences to invalidate.
17221
17222 2014-06-05 Kai Tietz <ktietz@redhat.com>
17223 Richard Henderson <rth@redhat.com>
17224
17225 PR target/46219
17226 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17227 checking for !TARGET_X32.
17228 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17229 (sibcall_intern): New define_insn, plus required peepholes.
17230 (sibcall_pop_intern): Likewise.
17231 (sibcall_value_intern): Likewise.
17232 (sibcall_value_pop_intern): Likewise.
17233
17234 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17235
17236 * tree-inline.c (tree_function_versioning): Check DF info existence
17237 before accessing it.
17238
17239 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17240
17241 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17242 frame_size.
17243 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17244 aarch64_frame hard_fp_offset and frame_size.
17245 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17246 frame_size; remove original_frame_size.
17247 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17248 (aarch64_initial_elimination_offset): Remove frame_size and
17249 offset. Use aarch64_frame frame_size.
17250
17251 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17252 Jiong Wang <jiong.wang@arm.com>
17253 Renlin <renlin.li@arm.com>
17254
17255 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17256 initialization of R30 offset. Update offset. Iterate core
17257 regisers upto X30. Remove X29, X30 specific code.
17258
17259 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17260 Jiong Wang <jiong.wang@arm.com>
17261
17262 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17263 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17264 (aarch64_register_saved_on_entry): Adjust test.
17265
17266 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17267
17268 * config/aarch64/aarch64.h (machine_function): Move
17269 saved_varargs_size from here...
17270 (aarch64_frame): ... to here.
17271
17272 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17273 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17274 (aarch64_initial_elimination_offset)
17275 (aarch64_setup_incoming_varargs): Adjust location of
17276 saved_varargs_size.
17277
17278 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17279
17280 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17281 layout comment.
17282
17283 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17284 Prachi Godbole <Prachi.Godbole@imgtec.com>
17285
17286 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17287 mips32r5 entry to use PROCESSOR_P5600.
17288 * config/mips/mips-tables.opt: Regenerate.
17289 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17290 * config/mips/mips.c (mips_fmadd_bypass): New function.
17291 (mips_rtx_cost_data): Add costs for p5600.
17292 (mips_issue_rate): Add support for p5600.
17293 (mips_multipass_dfa_lookahead): Likewise.
17294 * config/mips/mips.h (TUNE_P5600): New define.
17295 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17296 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17297 * config/mips/mips.md: Include p5600.md.
17298 (processor): Add p5600.
17299 * config/mips/p5600.md: New file.
17300
17301 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17302
17303 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17304 * config/i386/predicates.md (palignr_operand): New.
17305 Indicates if permutation is suitable for palignr instruction.
17306
17307 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17308
17309 PR tree-optimization/61319
17310 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17311 stmt belongs to loop.
17312
17313 2014-06-05 Richard Biener <rguenther@suse.de>
17314
17315 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17316 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17317 (lookup_tmp_var): Adjust.
17318 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17319
17320 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17321
17322 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17323
17324 2014-06-05 Marek Polacek <polacek@redhat.com>
17325
17326 PR c/49706
17327 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17328
17329 2014-06-04 Tom de Vries <tom@codesourcery.com>
17330
17331 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17332 CONST_INT.
17333
17334 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17335
17336 PR tree-optimization/61385
17337 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17338
17339 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17340
17341 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17342 changed to use fatal_error.
17343 (main): Ensure lto_wrapper_cleanup is run atexit.
17344
17345 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17346
17347 * lra-constraints.c (valid_address_p): Move earlier in file.
17348 (address_eliminator): New structure.
17349 (satisfies_memory_constraint_p): New function.
17350 (satisfies_address_constraint_p): Likewise.
17351 (process_alt_operands, process_address, curr_insn_transform): Use them.
17352
17353 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17354
17355 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17356 const pointer.
17357 (target_lra_int, default_target_lra_int, this_target_lra_int)
17358 (op_alt_data): Delete.
17359 * lra.h (lra_init): Delete.
17360 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17361 (init_insn_code_data_once): Remove op_alt_data handling.
17362 (finish_insn_code_data_once): Likewise.
17363 (init_op_alt_data): Delete.
17364 (get_static_insn_data): Initialize operand_alternative to null.
17365 (free_insn_recog_data): Cast operand_alternative before freeing it.
17366 (setup_operand_alternative): Take the operand_alternative as
17367 parameter and assume it isn't already cached in the static
17368 insn data.
17369 (lra_set_insn_recog_data): Update accordingly.
17370 (lra_init): Delete.
17371 * ira.c (ira_init): Don't call lra_init.
17372 * target-globals.h (this_target_lra_int): Declare.
17373 (target_globals): Remove lra_int.
17374 (restore_target_globals): Update accordingly.
17375 * target-globals.c: Don't include lra-int.h.
17376 (default_target_globals, save_target_globals): Remove lra_int.
17377
17378 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17379
17380 * recog.h (operand_alternative): Convert reg_class, reject,
17381 matched and matches into bitfields.
17382 (preprocess_constraints): New overload.
17383 (preprocess_insn_constraints): New function.
17384 (preprocess_constraints): Take the insn as parameter.
17385 (recog_op_alt): Change into a pointer.
17386 (target_recog): Add x_op_alt.
17387 * recog.c (asm_op_alt): New variable.
17388 (recog_op_alt): Change into a pointer.
17389 (preprocess_constraints): New overload, replacing the old function
17390 definition with one that doesn't use global state.
17391 (preprocess_insn_constraints): New function.
17392 (preprocess_constraints): Use them. Take the insn as parameter.
17393 Use asm_op_alt for asms.
17394 (recog_init): Free existing x_op_alt entries.
17395 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17396 pointer const.
17397 (make_early_clobber_and_input_conflicts): Likewise.
17398 (process_bb_node_lives): Pass the insn to process_constraints.
17399 * reg-stack.c (check_asm_stack_operands): Likewise.
17400 (subst_asm_stack_regs): Likewise.
17401 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17402 * regrename.c (build_def_use): Likewise.
17403 * sched-deps.c (sched_analyze_insn): Likewise.
17404 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17405 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17406 (note_invalid_constants): Likewise.
17407 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17408 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17409 const.
17410
17411 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17412
17413 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17414 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17415 alternatives.
17416 (make_early_clobber_and_input_conflicts): Likewise.
17417 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17418
17419 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17420
17421 * recog.h (alternative_class): New function.
17422 (which_op_alt): Return a const recog_op_alt.
17423 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17424 (subst_asm_stack_regs): Likewise.
17425 * config/arm/arm.c (note_invalid_constants): Likewise.
17426 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17427 the operand_alternative; use alternative class instead.
17428 * sel-sched.c (get_reg_class): Likewise.
17429 * regrename.c (build_def_use): Likewise.
17430 (hide_operands, restore_operands, record_out_operands): Update type
17431 accordingly.
17432
17433 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17434
17435 * recog.h (recog_op_alt): Convert to a flat array.
17436 (which_op_alt): New function.
17437 * recog.c (recog_op_alt): Convert to a flat array.
17438 (preprocess_constraints): Update accordingly, grouping all
17439 operands of the same alternative together, rather than the
17440 other way around.
17441 * ira-lives.c (check_and_make_def_conflict): Likewise.
17442 (make_early_clobber_and_input_conflicts): Likewise.
17443 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17444 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17445 (subst_asm_stack_regs): Likewise.
17446 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17447 * regrename.c (hide_operands, record_out_operands): Likewise.
17448 (build_def_use): Likewise.
17449 * sel-sched.c (get_reg_class): Likewise.
17450 * config/arm/arm.c (note_invalid_constants): Likewise.
17451
17452 2014-06-04 Jason Merrill <jason@redhat.com>
17453
17454 PR c++/51253
17455 PR c++/61382
17456 * gimplify.c (gimplify_arg): Non-static.
17457 * gimplify.h: Declare it.
17458
17459 2014-06-04 Richard Biener <rguenther@suse.de>
17460
17461 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17462 TREE_PUBLIC and DECL_EXTERNAL decls.
17463
17464 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17465
17466 * regcprop.c (copyprop_hardreg_forward_1): Account for
17467 HARD_REGNO_CALL_PART_CLOBBERED.
17468
17469 2014-06-04 Richard Biener <rguenther@suse.de>
17470
17471 * configure.ac: Check whether the underlying type of int64_t
17472 is long or long long.
17473 * configure: Regenerate.
17474 * config.in: Likewise.
17475 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17476 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17477
17478 2014-06-04 Richard Biener <rguenther@suse.de>
17479
17480 PR tree-optimization/60098
17481 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17482 we hit a kill.
17483 (dse_optimize_stmt): Simplify, now that we found a kill
17484 earlier.
17485
17486 2014-06-04 Richard Biener <rguenther@suse.de>
17487
17488 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17489 of accesses with non-invariant address.
17490
17491 2014-06-04 Martin Liska <mliska@suse.cz>
17492
17493 * cgraph.h (cgraph_make_wrapper): New function introduced.
17494 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17495 * ipa-inline.h (inline_analyze_function): The function is global.
17496 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17497
17498 2014-06-04 Martin Liska <mliska@suse.cz>
17499
17500 * tree.h (private_lookup_attribute_starting): New function.
17501 (lookup_attribute_starting): Likewise.
17502 * tree.c (private_lookup_attribute_starting): Likewise.
17503
17504 2014-06-04 Martin Liska <mliska@suse.cz>
17505
17506 * cgraph.h (expand_thunk): New argument added.
17507 (address_taken_from_non_vtable_p): New global function.
17508 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17509 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17510 * cgraphunit.c (analyze_function): Likewise.
17511 (assemble_thunks_and_aliases): Argument added to call.
17512 (expand_thunk): New argument forces to produce GIMPLE thunk.
17513
17514 2014-06-04 Martin Liska <mliska@suse.cz>
17515
17516 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17517 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17518 * profile.c (branch_prob): Likewise.
17519
17520 2014-06-04 Martin Jambor <mjambor@suse.cz>
17521
17522 PR ipa/61340
17523 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17524 handler for switch on an ipa_ref_use enum.
17525 * ipa-reference.c (analyze_function): Likewise.
17526
17527 2014-06-04 Kai Tietz <ktietz@redhat.com>
17528
17529 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17530 from old call-instruction.
17531
17532 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17533
17534 * config/aarch64/aarch64.c (aarch64_classify_address)
17535 (aarch64_legitimize_reload_address): Support full addressing modes
17536 for vector modes.
17537 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17538 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17539
17540 2014-06-03 Andrew Pinski <apinski@cavium.com>
17541
17542 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17543 for OP0.
17544
17545 2014-06-03 Andrew Pinski <apinski@cavium.com>
17546
17547 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17548 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17549
17550 2014-06-03 Kai Tietz <ktietz@redhat.com>
17551
17552 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17553 for 64-bit ms-abi.
17554
17555 2014-06-03 Dehao Chen <dehao@google.com>
17556
17557 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17558 the same loop.
17559
17560 2014-06-03 Marek Polacek <polacek@redhat.com>
17561
17562 PR c/60439
17563 * doc/invoke.texi: Document -Wswitch-bool.
17564 * function.c (stack_protect_epilogue): Cast controlling expression of
17565 the switch to int.
17566 * gengtype.c (walk_type): Generate switch expression with its
17567 controlling expression cast to int.
17568
17569 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17570
17571 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17572 and attiny841.
17573 * config/avr/avr-tables.opt: Regenerate.
17574 * config/avr/t-multilib: Regenerate.
17575 * doc/avr-mmcu.texi: Regenerate.
17576
17577 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17578 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17579
17580 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17581 (ata6617c, ata664251): Add new avr35 devices.
17582 (ata6612c): Add new avr4 device.
17583 (ata6613c, ata6614q): Add new avr5 devices.
17584 * config/avr/avr-tables.opt: Regenerate.
17585 * config/avr/t-multilib: Regenerate.
17586 * doc/avr-mmcu.texi: Regenerate.
17587
17588 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17589
17590 * gcc/config/aarch64/aarch64-builtins.c
17591 (aarch64_types_binop_ssu_qualifiers): New static data.
17592 (TYPES_BINOP_SSU): Define.
17593 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17594 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17595 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17596 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17597 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17598 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17599 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17600 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17601 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17602 suffix to builtin function name, remove cast.
17603 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17604 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17605 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17606
17607 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17608
17609 * gcc/config/aarch64/aarch64-builtins.c
17610 (aarch64_types_binop_uus_qualifiers,
17611 aarch64_types_shift_to_unsigned_qualifiers,
17612 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17613 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17614 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17615 sqshlu_n, uqshl_n): Update qualifiers.
17616 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17617 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17618 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17619 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17620 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17621 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17622 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17623 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17624 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17625 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17626 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17627 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17628 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17629 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17630 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17631 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17632 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17633 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17634 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17635 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17636 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17637 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17638 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17639 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17640 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17641 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17642 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17643
17644 2014-06-03 Teresa Johnson <tejohnson@google.com>
17645
17646 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17647
17648 2014-06-02 Jason Merrill <jason@redhat.com>
17649
17650 PR c++/61020
17651 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17652
17653 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17654
17655 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17656 location == 0.
17657
17658 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17659
17660 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17661 New pattern.
17662 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17663 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17664 * config/aarch64/iterators.md (REVERSE): New iterator.
17665 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17666 (rev_op): New int_attribute.
17667 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17668 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17669 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17670 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17671 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17672 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17673 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17674 Replace temporary __asm__ with __builtin_shuffle.
17675
17676 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17677
17678 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17679 mips64r5.
17680 * config/mips/mips-tables.opt: Regenerate.
17681 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17682 to use mips_isa_rev rather than ISA_MIPS32R2.
17683 * config/mips/mips.h (ISA_MIPS32R3): New define.
17684 (ISA_MIPS32R5): New define.
17685 (ISA_MIPS64R3): New define.
17686 (ISA_MIPS64R5): New define.
17687 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17688 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17689 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17690 and mips64r5.
17691 (MIPS_ISA_SYNCI_SPEC): Likewise.
17692 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17693 (LINK_SPEC): Added mips32r3 and mips32r5.
17694 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17695 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17696 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17697 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17698 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17699 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17700 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17701
17702 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17703
17704 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17705 options.
17706 * config/mips/mips.opt (mxpa): New option.
17707 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17708 assembler.
17709
17710 2014-06-03 Martin Jambor <mjambor@suse.cz>
17711
17712 PR ipa/61160
17713 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17714 thunks.
17715
17716 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17717
17718 PR tree-optimization/61328
17719 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17720 initialization from find_bswap_or_nop_1.
17721 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17722 in source_expr2 before using the size value the function sets. Also
17723 make use of init_symbolic_number () in both the old place and
17724 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17725 doing recursion in the GIMPLE_BINARY_RHS case.
17726
17727 2014-06-03 Richard Biener <rguenther@suse.de>
17728
17729 PR tree-optimization/61383
17730 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17731 stmts can't trap.
17732
17733 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17734
17735 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17736 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17737 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17738 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17739 in this file.
17740 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17741 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17742 * system.h: ...here and make it unconditional.
17743 * target.def (conditional_register_usage): Mention
17744 define_register_constraint instead of old-style constraint macros.
17745 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17746 * doc/tm.texi: Regenerate.
17747 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17748 protected by !USE_MD_CONSTRAINTS.
17749 * config/frv/frv.md: Remove quote from old version of documentation.
17750 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17751 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17752 CONST_DOUBLE_OK_FOR_LETTER.
17753 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17754
17755 2014-06-02 Andrew Pinski <apinski@cavium.com>
17756
17757 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17758 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17759 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17760 file whose name depends on -mabi= and -mbig-endian.
17761 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17762 Handle LP64 better and handle ilp32 too.
17763 (MULTILIB_OPTIONS): Delete.
17764 (MULTILIB_DIRNAMES): Delete.
17765
17766 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17767
17768 * expr.h: Remove prototypes of functions defined in builtins.c.
17769 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17770 Remove prototypes of functions defined in builtins.c.
17771 * builtins.h: Update prototype list to include all exported functions.
17772 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17773 no_c99_libc_has_function): Move to targhooks.c
17774 (build_string_literal, build_call_expr_loc_array,
17775 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17776 to tree.c.
17777 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17778 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17779 no_c99_libc_has_function): Relocate from builtins.c.
17780 * tree.c: Include builtins.h.
17781 (build_call_expr_loc_array, build_call_expr_loc_vec,
17782 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17783 from builtins.c.
17784 * fold-const.h (fold_fma): Move prototype to builtins.h.
17785 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17786 * asan.c: Include builtins.h.
17787 * cfgexpand.c: Likewise.
17788 * convert.c: Likewise.
17789 * emit-rtl.c: Likewise.
17790 * except.c: Likewise.
17791 * expr.c: Likewise.
17792 * fold-const.c: Likewise.
17793 * gimple-fold.c: Likewise.
17794 * gimple-ssa-strength-reduction.c: Likewise.
17795 * gimplify.c: Likewise.
17796 * ipa-inline.c: Likewise.
17797 * ipa-prop.c: Likewise.
17798 * lto-streamer-out.c: Likewise.
17799 * stmt.c: Likewise.
17800 * tree-inline.c: Likewise.
17801 * tree-object-size.c: Likewise.
17802 * tree-sra.c: Likewise.
17803 * tree-ssa-ccp.c: Likewise.
17804 * tree-ssa-forwprop.c: Likewise.
17805 * tree-ssa-loop-ivcanon.c: Likewise.
17806 * tree-ssa-loop-ivopts.c: Likewise.
17807 * tree-ssa-math-opts.c: Likewise.
17808 * tree-ssa-reassoc.c: Likewise.
17809 * tree-ssa-threadedge.c: Likewise.
17810 * tree-streamer-in.c: Likewise.
17811 * tree-vect-data-refs.c: Likewise.
17812 * tree-vect-patterns.c: Likewise.
17813 * tree-vect-stmts.c: Likewise.
17814 * config/aarch64/aarch64.c: Likewise.
17815 * config/alpha/alpha.c: Likewise.
17816 * config/arc/arc.c: Likewise.
17817 * config/arm/arm.c: Likewise.
17818 * config/avr/avr.c: Likewise.
17819 * config/bfin/bfin.c: Likewise.
17820 * config/c6x/c6x.c: Likewise.
17821 * config/cr16/cr16.c: Likewise.
17822 * config/cris/cris.c: Likewise.
17823 * config/epiphany/epiphany.c: Likewise.
17824 * config/fr30/fr30.c: Likewise.
17825 * config/frv/frv.c: Likewise.
17826 * config/h8300/h8300.c: Likewise.
17827 * config/i386/i386.c: Likewise.
17828 * config/i386/winnt.c: Likewise.
17829 * config/ia64/ia64.c: Likewise.
17830 * config/iq2000/iq2000.c: Likewise.
17831 * config/lm32/lm32.c: Likewise.
17832 * config/m32c/m32c.c: Likewise.
17833 * config/m32r/m32r.c: Likewise.
17834 * config/m68k/m68k.c: Likewise.
17835 * config/mcore/mcore.c: Likewise.
17836 * config/mep/mep.c: Likewise.
17837 * config/microblaze/microblaze.c: Likewise.
17838 * config/mips/mips.c: Likewise.
17839 * config/mmix/mmix.c: Likewise.
17840 * config/mn10300/mn10300.c: Likewise.
17841 * config/moxie/moxie.c: Likewise.
17842 * config/msp430/msp430.c: Likewise.
17843 * config/nds32/nds32.c: Likewise.
17844 * config/pa/pa.c: Likewise.
17845 * config/pdp11/pdp11.c: Likewise.
17846 * config/picochip/picochip.c: Likewise.
17847 * config/rl78/rl78.c: Likewise.
17848 * config/rs6000/rs6000.c: Likewise.
17849 * config/rx/rx.c: Likewise.
17850 * config/s390/s390.c: Likewise.
17851 * config/score/score.c: Likewise.
17852 * config/sh/sh.c: Likewise.
17853 * config/sparc/sparc.c: Likewise.
17854 * config/spu/spu.c: Likewise.
17855 * config/stormy16/stormy16.c: Likewise.
17856 * config/tilegx/tilegx.c: Likewise.
17857 * config/tilepro/tilepro.c: Likewise.
17858 * config/v850/v850.c: Likewise.
17859 * config/vax/vax.c: Likewise.
17860 * config/xtensa/xtensa.c: Likewise.
17861
17862 2014-06-02 Jeff Law <law@redhat.com>
17863
17864 PR rtl-optimization/61094
17865 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17866 was marked as do_no_reextend. If a copy is needed to eliminate
17867 an extension, then mark it as do_not_reextend.
17868
17869 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17870
17871 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17872
17873 2014-06-02 Richard Henderson <rth@redhat.com>
17874
17875 PR target/61336
17876 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17877 addresses inside asms. Use output_operand_lossage instead of
17878 gcc_unreachable.
17879
17880 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17881
17882 PR target/61239
17883 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17884 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17885
17886 2014-06-02 Tom de Vries <tom@codesourcery.com>
17887
17888 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17889 case that x has VOIDmode.
17890
17891 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17892
17893 * varasm.c (copy_constant): Delete function.
17894 (build_constant_desc): Don't call it.
17895
17896 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17897
17898 PR target/61154
17899 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17900 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17901 with immediate_operand.
17902
17903 2014-06-02 Andreas Schwab <schwab@suse.de>
17904
17905 * config/ia64/ia64.c
17906 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17907 pending_data_specs first.
17908
17909 2014-06-02 Richard Biener <rguenther@suse.de>
17910
17911 PR tree-optimization/61378
17912 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17913 valueized_anything.
17914
17915 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17916
17917 * config/i386/constraints.md (Bw): Rename from 'w'.
17918 (Bz): Rename from 'z'.
17919 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17920
17921 2014-06-01 Kai Tietz <ktietz@redhat.com>
17922
17923 PR target/61377
17924 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17925 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17926 instead of m constraint.
17927
17928 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17929
17930 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17931 a separate alternative where the scratch operand 2 is marked as
17932 early clobber.
17933
17934 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17935
17936 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17937 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17938 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17939 and __builtins_arm_get_fpscr.
17940 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17941 __builtins_arm_get_fpscr.
17942 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17943 __builtins_arm_ldfpscr.
17944 (arm_atomic_assign_expand_fenv): New function.
17945 * config/arm/vfp.md (set_fpscr): New pattern.
17946 (get_fpscr) : Likewise.
17947 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17948 VUNSPEC_SET_FPSCR.
17949 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17950 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17951
17952 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17953
17954 * asan.c (report_error_func): Add SLOW_P argument, use
17955 BUILT_IN_ASAN_*_N if set.
17956 (build_check_stmt): Likewise.
17957 (instrument_derefs): If T has insufficient alignment,
17958 force same handling as for odd sizes.
17959
17960 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17961 BUILT_IN_ASAN_REPORT_STORE_N): New.
17962 * asan.c (struct asan_mem_ref): Change access_size type to
17963 HOST_WIDE_INT.
17964 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17965 update_mem_ref_hash_table): Likewise.
17966 (asan_mem_ref_hasher::hash): Hash in a HWI.
17967 (report_error_func): Change size_in_bytes argument to HWI.
17968 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17969 two.
17970 (build_shadow_mem_access): New function.
17971 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17972 Handle size_in_bytes not power of two or larger than 16.
17973 (instrument_derefs): Don't give up if size_in_bytes is not
17974 power of two or is larger than 16.
17975
17976 2014-05-30 Kai Tietz <ktietz@redhat.com>
17977
17978 PR target/60104
17979 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17980 for sibling-tail-calls.
17981 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17982 to its use.
17983 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17984 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17985
17986 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17987
17988 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17989 * config/avr/avr-tables.opt: Regenerate.
17990 * config/avr/t-multilib: Regenerate.
17991 * doc/avr-mmcu.texi: Regenerate.
17992
17993 2014-05-30 Ian Lance Taylor <iant@google.com>
17994
17995 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17996 target("sse").
17997
17998 2014-05-30 Tom de Vries <tom@codesourcery.com>
17999
18000 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18001 Redefine as true.
18002
18003 2014-05-30 Tom de Vries <tom@codesourcery.com>
18004
18005 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18006 * lra.c (initialize_lra_reg_info_element): Add init of
18007 actual_call_used_reg_set field.
18008 (lra): Call lra_create_live_ranges before lra_inheritance for
18009 -fuse-caller-save.
18010 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18011 -fuse-caller-save.
18012 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18013 instead of call_used_reg_set for -fuse-caller-save.
18014 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18015
18016 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18017
18018 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18019 to mov_imm.
18020 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18021
18022 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
18023
18024 * ira.c (ira_get_dup_out_num): Check for output operands at
18025 the start of the loop. Handle cases where an included alternative
18026 follows an excluded one.
18027
18028 2014-05-29 Mike Stump <mikestump@comcast.net>
18029
18030 PR debug/61352
18031 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18032 post ld passes when lto is used.
18033
18034 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
18035
18036 PR rtl-optimization/61325
18037 * lra-constraints.c (process_address): Rename to process_address_1.
18038 (process_address): New function.
18039
18040 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
18041
18042 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18043 TYPES_BINOPV): New static data.
18044 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18045 New builtin.
18046 * config/aarch64/aarch64-simd.md (aarch64_ext,
18047 aarch64_im_lane_boundsi): New patterns.
18048 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18049 patterns for EXT.
18050 (aarch64_evpc_ext): New function.
18051
18052 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18053
18054 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18055 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18056 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18057 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18058 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18059
18060 2014-05-29 Tom de Vries <tom@codesourcery.com>
18061
18062 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18063
18064 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
18065 Richard Sandiford <rdsandiford@googlemail.com>
18066
18067 * arm/iterators.md (shiftable_ops): New code iterator.
18068 (t2_binop0, arith_shift_insn): New code attributes.
18069 * arm/predicates.md (shift_nomul_operator): New predicate.
18070 * arm/arm.md (insn_enabled): Delete.
18071 (enabled): Remove insn_enabled test.
18072 (*arith_shiftsi): Delete. Replace with ...
18073 (*<arith_shift_insn>_multsi): ... new pattern.
18074 (*<arith_shift_insn>_shiftsi): ... new pattern.
18075 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18076
18077 2014-05-29 Radovan Obradovic <robradovic@mips.com>
18078 Tom de Vries <tom@codesourcery.com>
18079
18080 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18081 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18082 clobber.
18083 (mips_split_call): Use POST_CALL_TMP_REG.
18084 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18085
18086 2014-05-29 Tom de Vries <tom@codesourcery.com>
18087
18088 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18089 with #ifdef STACK_REGS.
18090
18091 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
18092
18093 * varasm.c (get_variable_section): Walk aliases.
18094 (place_block_symbol): Walk aliases.
18095
18096 2014-05-28 Tom de Vries <tom@codesourcery.com>
18097
18098 Revert:
18099 2014-05-28 Tom de Vries <tom@codesourcery.com>
18100
18101 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18102 * lra.c (initialize_lra_reg_info_element): Add init of
18103 actual_call_used_reg_set field.
18104 (lra): Call lra_create_live_ranges before lra_inheritance for
18105 -fuse-caller-save.
18106 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18107 -fuse-caller-save.
18108 * lra-constraints.c (need_for_call_save_p): Use
18109 actual_call_used_reg_set instead of call_used_reg_set for
18110 -fuse-caller-save.
18111 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18112
18113 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18114
18115 * doc/md.texi: Document that the % constraint character must
18116 be at the beginning of the string.
18117 * genoutput.c (validate_insn_alternatives): Check that '=',
18118 '+' and '%' only appear at the beginning of a constraint.
18119 * ira.c (commutative_constraint_p): Delete.
18120 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18121 at the start of the string.
18122 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18123 duplicate '='s.
18124 * config/arm/neon.md (bicdi3_neon): Likewise.
18125 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18126 (slt_si, sltu_si): Likewise.
18127 * config/vax/vax.md (sbcdi3): Likewise.
18128 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18129 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18130 (mul64): Move '%' to beginning of constraint.
18131 * config/arm/arm.md (*xordi3_insn): Likewise.
18132 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18133 (xorsi3): Likewise.
18134
18135 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18136
18137 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18138
18139 2014-05-28 Jason Merrill <jason@redhat.com>
18140
18141 PR c++/47202
18142 * cgraph.h (symtab_node::get_comdat_group_id): New.
18143 * cgraphunit.c (analyze_functions): Call it.
18144 * symtab.c (dump_symtab_node): Likewise.
18145 * tree.c (decl_comdat_group_id): New.
18146 * tree.h: Declare it.
18147 * lto-streamer-out.c (write_symbol): Use it.
18148 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18149
18150 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18151
18152 PR bootstrap/PR61146
18153 * wide-int.cc: Do not include longlong.h when compiling with clang.
18154
18155 2014-05-28 Richard Biener <rguenther@suse.de>
18156
18157 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18158 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18159 (vrp_visit_assignment_or_call): Print less vertical space.
18160 (vrp_visit_stmt): Likewise.
18161 (vrp_visit_phi_node): Likewise. For a PHI argument with
18162 VR_VARYING range consider recording it as copy.
18163
18164 2014-05-28 Richard Biener <rguenther@suse.de>
18165
18166 Revert
18167 2014-05-28 Richard Biener <rguenther@suse.de>
18168
18169 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18170
18171 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18172
18173 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18174 sufficiently aligned and an offset is used at the same time.
18175 (expand_expr_real_1): Likewise.
18176
18177 2014-05-28 Richard Biener <rguenther@suse.de>
18178
18179 PR middle-end/61045
18180 * fold-const.c (fold_comparison): When folding
18181 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18182 the sign of the remaining constant operand stays the same.
18183
18184 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18185
18186 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18187 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18188 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18189 to the assembler.
18190 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18191 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18192 (m32bit-doubles) Likewise.
18193 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18194 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18195 option for RL78.
18196
18197 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18198
18199 * configure.ac ($gcc_cv_ld_clearcap): New test.
18200 * configure: Regenerate.
18201 * config.in: Regenerate.
18202 * config/sol2.opt (mclear-hwcap): New option.
18203 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18204 * config/sol2-clearcap.map: Moved here from
18205 testsuite/gcc.target/i386/clearcap.map.
18206 * config/sol2-clearcapv2.map: Move here from
18207 gcc.target/i386/clearcapv2.map.
18208 * config/t-sol2 (install): Depend on install-clearcap-map.
18209 (install-clearcap-map): New target.
18210 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18211 -mclear-hwcap.
18212
18213 2014-05-28 Richard Biener <rguenther@suse.de>
18214
18215 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18216 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18217 ... here and remove the rest.
18218 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18219
18220 2014-05-28 Richard Biener <rguenther@suse.de>
18221
18222 PR tree-optimization/61335
18223 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18224 new range fails, drop to varying.
18225
18226 2014-05-28 Olivier Hainque <hainque@adacore.com>
18227
18228 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18229 (CPP_SPEC): Add entry for -mcpu=8548.
18230 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18231 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18232
18233 2014-05-28 Tom de Vries <tom@codesourcery.com>
18234
18235 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18236 * lra.c (initialize_lra_reg_info_element): Add init of
18237 actual_call_used_reg_set field.
18238 (lra): Call lra_create_live_ranges before lra_inheritance for
18239 -fuse-caller-save.
18240 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18241 -fuse-caller-save.
18242 * lra-constraints.c (need_for_call_save_p): Use
18243 actual_call_used_reg_set instead of call_used_reg_set for
18244 -fuse-caller-save.
18245 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18246
18247 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18248 Tom de Vries <tom@codesourcery.com>
18249
18250 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18251 to gccoptlist.
18252 (@item -fuse-caller-save): New item.
18253
18254 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18255 Tom de Vries <tom@codesourcery.com>
18256
18257 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18258 OPT_fuse_caller_save.
18259
18260 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18261 Tom de Vries <tom@codesourcery.com>
18262
18263 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18264 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18265 get_call_reg_set_usage.
18266 * resource.c (mark_set_resources, mark_target_live_regs): Use
18267 get_call_reg_set_usage.
18268 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18269 field.
18270 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18271 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18272 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18273 * ira-build.c (ira_create_allocno): Init
18274 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18275 (create_cap_allocno, propagate_allocno_info)
18276 (propagate_some_info_from_allocno)
18277 (copy_info_to_removed_store_destinations): Handle
18278 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18279 * ira-costs.c (ira_tune_allocno_costs): Use
18280 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18281
18282 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18283 Tom de Vries <tom@codesourcery.com>
18284
18285 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18286 and function_used_regs_valid fields.
18287 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18288 find_all_hard_reg_sets.
18289 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18290 (get_call_reg_set_usage): New function.
18291 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18292 * regs.h (get_call_reg_set_usage): Declare.
18293
18294 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18295
18296 PR libgcc/61152
18297 * config/dbx.h (License): Add Runtime Library Exception.
18298 * config/newlib-stdint.h (License): Same.
18299 * config/rtems.h (License): Same
18300 * config/initfini-array.h (License): Same
18301 * config/v850/v850.h (License): Same.
18302 * config/v850/v850-opts.h (License): Same
18303 * config/v850/rtems.h (License): Same.
18304
18305 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18306
18307 PR target/61044
18308 * doc/extend.texi (Local Labels): Note that label differences are
18309 not supported for AVR.
18310
18311 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18312 Olivier Hainque <hainque@adacore.com>
18313
18314 * rtl.h (set_for_reg_notes): Declare.
18315 * emit-rtl.c (set_for_reg_notes): New function.
18316 (set_unique_reg_note): Use it.
18317 * optabs.c (add_equal_note): Likewise
18318
18319 2014-05-27 Andrew Pinski <apinski@cavium.com>
18320
18321 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18322 Use <w> for the register in assembly template.
18323 (stack_protect_test): Use the mode of operands[0] for the result.
18324 (stack_protect_test_<mode>): Use <w> for the register
18325 in assembly template.
18326
18327 2014-05-27 DJ Delorie <dj@redhat.com>
18328
18329 * config/rx/rx.c (add_vector_labels): New.
18330 (rx_output_function_prologue): Call it.
18331 (rx_handle_func_attribute): Don't require empty arguments.
18332 (rx_handle_vector_attribute): New.
18333 (rx_attribute_table): Add "vector" attribute.
18334 * doc/extend.texi (interrupt, vector): Document new/changed
18335 RX-specific attributes.
18336
18337 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18338
18339 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18340
18341 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18342 predicate to detect a negative quotient.
18343
18344 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18345
18346 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18347 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18348 Add X - Y CMP 0 to X CMP Y transformation.
18349 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18350
18351 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18352
18353 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18354 before printing.
18355
18356 2014-05-27 Steve Ellcey <sellcey@mips.com>
18357
18358 * config/mips/mips.c: Add include of cgraph.h.
18359
18360 2014-05-27 Richard Biener <rguenther@suse.de>
18361
18362 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18363
18364 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18365
18366 PR libgcc/61152
18367 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18368 * config/arm/arm-cores.def (License): Same.
18369 * config/arm/arm-opts.h (License): Same.
18370 * config/arm/aout.h (License): Same.
18371 * config/arm/bpabi.h (License): Same.
18372 * config/arm/elf.h (License): Same.
18373 * config/arm/linux-elf.h (License): Same.
18374 * config/arm/linux-gas.h (License): Same.
18375 * config/arm/netbsd-elf.h (License): Same.
18376 * config/arm/uclinux-eabi.h (License): Same.
18377 * config/arm/uclinux-elf.h (License): Same.
18378 * config/arm/vxworks.h (License): Same.
18379
18380 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18381
18382 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18383 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18384 (arm_init_neon_builtins): Handle NEON_BSWAP.
18385 Define required type nodes.
18386 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18387 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18388 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18389 * config/arm/iterators.md (VDQHSD): New mode iterator.
18390
18391 2014-05-27 Richard Biener <rguenther@suse.de>
18392
18393 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18394 Try using literal operands when comparing value-ranges failed.
18395
18396 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18397
18398 * ira.c (commutative_operand): Adjust for change to recog_data.
18399 [Missing from previous commit.]
18400
18401 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18402
18403 * system.h (TEST_BIT): New macro.
18404 * recog.h (alternative_mask): New type.
18405 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18406 (recog_data_d): Replace alternative_enabled_p array with
18407 enabled_alternatives.
18408 (target_recog): New structure.
18409 (default_target_recog, this_target_recog): Declare.
18410 (get_enabled_alternatives, recog_init): Likewise.
18411 * recog.c (default_target_recog, this_target_recog): New variables.
18412 (get_enabled_alternatives): New function.
18413 (extract_insn): Use it.
18414 (recog_init): New function.
18415 (preprocess_constraints, constrain_operands): Adjust for change to
18416 recog_data.
18417 * postreload.c (reload_cse_simplify_operands): Likewise.
18418 * reload.c (find_reloads): Likewise.
18419 * ira-costs.c (record_reg_classes): Likewise.
18420 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18421 all alternatives after a disabled one would be skipped.
18422 (ira_implicitly_set_insn_hard_regs): Likewise.
18423 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18424 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18425 with enabled_alternatives.
18426 * lra.c (free_insn_recog_data): Update accordingly.
18427 (lra_update_insn_recog_data): Likewise.
18428 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18429 * lra-constraints.c (process_alt_operands): Likewise. Handle
18430 only_alternative as part of the enabled mask.
18431 * target-globals.h (this_target_recog): Declare.
18432 (target_globals): Add a recog field.
18433 (restore_target_globals): Restore this_target_recog.
18434 * target-globals.c: Include recog.h.
18435 (default_target_globals): Initialize recog field.
18436 (save_target_globals): Likewise.
18437 * reginfo.c (reinit_regs): Call recog_init.
18438 * toplev.c (backend_init_target): Likewise.
18439
18440 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18441
18442 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18443 rather than any named insn's code.
18444
18445 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18446
18447 PR libgcc/61152
18448 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18449 * config/arm/arm-cores.def (License): Same.
18450
18451 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18452
18453 * tree.h (decl_comdat_group): Declare.
18454 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18455 * tree.c (decl_comdat_group): Here.
18456
18457 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18458
18459 PR rtl-optimization/61222
18460 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18461 the shift, truncate the PLUS operand to the result mode.
18462
18463 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18464
18465 PR target/61271
18466 * config/i386/i386.c (ix86_rtx_costs)
18467 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18468 Fix condition.
18469
18470 2014-05-26 Martin Jambor <mjambor@suse.cz>
18471
18472 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18473 subreg uses.
18474
18475 2014-05-26 Richard Biener <rguenther@suse.de>
18476
18477 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18478 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18479 Provide specializations.
18480 (wi::int_traits <HOST_WIDE_INT>,
18481 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18482
18483 2014-05-26 Alan Modra <amodra@gmail.com>
18484
18485 PR target/61098
18486 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18487 params and return a bool. Remove dead code. Update comment.
18488 Assert we have a const_int source. Remove bogus code from
18489 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18490 handling of constants > 2G and reg_equal note, from..
18491 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18492 return value. Update comment. If we can, use a new pseudo
18493 for intermediate calculations.
18494 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18495 prototype.
18496 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18497 call to rs6000_emit_set_const in splitter.
18498 (movdi_internal64+2, +3): Likewise.
18499
18500 2014-05-26 Richard Biener <rguenther@suse.de>
18501
18502 * system.h: Define __STDC_FORMAT_MACROS before
18503 including inttypes.h.
18504 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18505 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18506 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18507 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18508 HOST_WIDEST_INT_C): Remove.
18509 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18510 if C99 inttypes.h is not available.
18511 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18512 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18513 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18514 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18515 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18516 (struct output_info): Likewise.
18517 (print_statistics): Adjust.
18518 (dump_bitmap_statistics): Likewise.
18519 * bt-load.c (migrate_btr_defs): Print with PRId64.
18520 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18521 (MAX_SAFE_MULTIPLIER): Adjust.
18522 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18523 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18524 dump_cgraph_node): Likewise.
18525 * final.c (dump_basic_block_info): Likewise.
18526 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18527 * gcov.c (format_gcov): Likewise.
18528 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18529 for calculation.
18530 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18531 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18532 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18533 Use PRId64 for dumping.
18534 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18535 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18536 (add_allocno_hard_regs): Adjust.
18537 * loop-doloop.c (doloop_modify): Print using PRId64.
18538 * loop-iv.c (inverse): Compute in uint64_t.
18539 (determine_max_iter, iv_number_of_iterations): Likewise.
18540 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18541 Print using PRId64.
18542 * lto-streamer-out.c (write_symbol): Use uint64_t.
18543 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18544 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18545 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18546 * modulo-sched.c (const_iteration_count): Use int64_t.
18547 (sms_schedule): Dump using PRId64.
18548 * predict.c (dump_prediction): Likewise.
18549 * pretty-print.h (pp_widest_integer): Remove.
18550 * profile.c (get_working_sets, is_edge_inconsistent,
18551 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18552 * tree-pretty-print.c (pp_double_int): Remove case handling
18553 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18554 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18555 and adjust users.
18556 (pass_optimize_bswap::execute): Remove restriction on hosts.
18557 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18558 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18559 * tree.c (widest_int_cst_value): Remove.
18560 * tree.h (widest_int_cst_value): Likewise.
18561 * value-prof.c (dump_histogram_value): Print using PRId64.
18562 * gengtype.c (main): Also inject int64_t.
18563 * ggc-page.c (struct max_alignment): Use int64_t.
18564 * alloc-pool.c (struct allocation_object_def): Likewise.
18565 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18566 for computation.
18567 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18568 * doc/tm.texi: Regenerated.
18569 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18570 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18571 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18572 mmix_output_register_setting): Use [u]int64_t in prototypes.
18573 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18574 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18575 mmix_output_octa, mmix_output_shifted_value): Adjust.
18576 (mmix_intval): Adjust. Remove unreachable case.
18577 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18578
18579 2014-05-26 Richard Biener <rguenther@suse.de>
18580
18581 * configure.ac: Drop __int64 type check. Insist that we
18582 found uint64_t and int64_t.
18583 * hwint.h (HOST_BITS_PER___INT64): Remove.
18584 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18585 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18586 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18587 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18588 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18589 for dst_q_src_df_rms_cdt.
18590 * configure: Regenerate.
18591 * config.in: Likewise.
18592
18593 2014-05-26 Michael Tautschnig <mt@debian.org>
18594
18595 PR target/61249
18596 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18597 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18598
18599 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18600
18601 PR rtl-optimization/61278
18602 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18603
18604 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18605
18606 PR rtl-optimization/61220
18607 Part of PR rtl-optimization/61225
18608 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18609 insn; skip split_edge for a block with only one successor.
18610
18611 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18612
18613 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18614 for variables.
18615
18616 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18617
18618 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18619 (update_vtable_references): New function.
18620 (function_and_variable_visibility): Rewrite also vtable initializers.
18621 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18622
18623 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18624
18625 * ggc.h (ggc_grow): New function.
18626 * ggc-none.c (ggc_grow): New function.
18627 * ggc-page.c (ggc_grow): Likewise.
18628
18629 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18630
18631 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18632 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18633 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18634 varpool_externally_visible_p, can_replace_by_local_alias,
18635 update_visibility_by_resolution_info, function_and_variable_visibility,
18636 pass_data_ipa_function_and_variable_visibility,
18637 make_pass_ipa_function_and_variable_visibility,
18638 whole_program_function_and_variable_visibility,
18639 pass_data_ipa_whole_program_visibility,
18640 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18641 * cgraph.h (cgraph_local_node_p): Declare.
18642 * ipa-visibility.c: New file.
18643 * Makefile.in (OBJS): Add ipa-visiblity.o
18644
18645 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18646
18647 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18648 that var decl is available.
18649
18650 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18651
18652 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18653 symtab_node pointer.
18654 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18655 (find_decls_types_r): Do not walk COMDAT_GROUP.
18656 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18657 * varasm.c (make_decl_one_only): Use set_comdat_group;
18658 create node if needed.
18659 * ipa-inline-transform.c (save_inline_function_body): Update
18660 way we decl->symtab mapping.
18661 * symtab.c (symtab_hash, hash_node, eq_node
18662 symtab_insert_node_to_hashtable): Remove.
18663 (symtab_register_node): Update.
18664 (symtab_unregister_node): Update.
18665 (symtab_get_node): Reimplement as inline function.
18666 (symtab_add_to_same_comdat_group): Update.
18667 (symtab_dissolve_same_comdat_group_list): Update.
18668 (dump_symtab_base): Update.
18669 (verify_symtab_base): Update.
18670 (symtab_make_decl_local): Update.
18671 (fixup_same_cpp_alias_visibility): Update.
18672 (symtab_nonoverwritable_alias): Update.
18673 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18674 * ipa.c (update_visibility_by_resolution_info): UPdate.
18675 * bb-reorder.c: Include cgraph.h
18676 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18677 with comdat groups.
18678 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18679 * cgraph.c (cgraph_get_create_node): Update.
18680 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18681 and comdat_group_.
18682 (symtab_get_node): Make inline.
18683 (symtab_insert_node_to_hashtable): Remove.
18684 (symtab_can_be_discarded): Update.
18685 (decl_comdat_group): New function.
18686 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18687 Update.
18688 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18689 comdat group name.
18690 (read_comdat_group): New function.
18691 (input_node, input_varpool_node): Use it.
18692 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18693 comdat groups.
18694 * mips.c (mips_start_unique_function): Likewise.
18695 (ix86_code_end): Likewise.
18696 (rs6000_code_end): Likweise.
18697 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18698
18699 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18700
18701 * gengtype-state.c (fatal_reading_state): Bring offline.
18702 * optabs.c (widening_optab_handler): Bring offline.
18703 * optabs.h (widening_optab_handler): Likewise.
18704 * final.c (get_attr_length_1): Likewise.
18705
18706 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18707
18708 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18709
18710 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18711
18712 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18713 (ppc440-compare): Include shift with dot.
18714 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18715 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18716 without dot.
18717 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18718 without dot.
18719 (e6500_sfx2): Include it.
18720 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18721 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18722 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18723 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18724 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18725 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18726 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18727 *lshiftrt_internal1le, *lshiftrt_internal1be,
18728 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18729 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18730 *rotldi3_internal10le, *rotldi3_internal10be,
18731 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18732 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18733 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18734 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18735 define_insns): Use type "shift" in the appropriate alternatives.
18736
18737 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18738
18739 * config/rs6000/rs6000.md (type): Add "logical". Delete
18740 "fast_compare".
18741 (dot): Adjust comment.
18742 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18743 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18744 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18745 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18746 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18747 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18748 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18749 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18750
18751 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18752 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18753 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18754 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18755 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18756 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18757 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18758 * config/rs6000/8540.md (ppc8540_su): Adjust.
18759 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18760 cell-cmp-microcoded): Adjust.
18761 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18762 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18763 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18764 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18765 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18766 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18767 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18768 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18769 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18770 Adjust.
18771 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18772 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18773 Adjust. Adjust comment.
18774 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18775 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18776
18777 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18778
18779 * config/rs6000/rs6000.md (type): Add "add".
18780 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18781 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18782 define_insns): Use it.
18783 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18784
18785 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18786 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18787 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18788 * config/rs6000/601.md (ppc601-integer): Adjust.
18789 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18790 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18791 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18792 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18793 * config/rs6000/8540.md (ppc8540_su): Adjust.
18794 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18795 cell-cmp-microcoded): Adjust.
18796 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18797 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18798 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18799 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18800 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18801 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18802 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18803 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18804 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18805 Adjust.
18806 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18807 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18808 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18809 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18810
18811 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18812
18813 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18814 "delayed_compare", "var_delayed_compare".
18815 (var_shift): New attribute.
18816 (cell_micro): Adjust.
18817 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18818 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18819 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18820 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18821 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18822 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18823 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18824 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18825 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18826 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18827 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18828 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18829 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18830 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18831 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18832 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18833 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18834 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18835 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18836 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18837 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18838 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18839 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18840 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18841 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18842
18843 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18844 * config/rs6000/440.md (ppc440-integer): Adjust.
18845 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18846 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18847 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18848 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18849 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18850 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18851 * config/rs6000/8540.md (ppc8540_su): Adjust.
18852 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18853 cell-cmp-microcoded): Adjust.
18854 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18855 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18856 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18857 e500mc64_delayed): Adjust.
18858 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18859 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18860 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18861 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18862 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18863 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18864 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18865 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18866 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18867 Adjust comment.
18868 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18869 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18870
18871 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18872
18873 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18874 (bits): New mode_attr.
18875 (idiv_ldiv): Delete mode_attr.
18876 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18877 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18878 rs6000_adjust_priority, is_nonpipeline_insn,
18879 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18880
18881 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18882 * config/rs6000/440.md (ppc440-idiv): Adjust.
18883 * config/rs6000/476.md (ppc476-idiv): Adjust.
18884 * config/rs6000/601.md (ppc601-idiv): Adjust.
18885 * config/rs6000/603.md (ppc603-idiv): Adjust.
18886 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18887 ppc620-ldiv): Adjust.
18888 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18889 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18890 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18891 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18892 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18893 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18894 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18895 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18896 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18897 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18898 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18899 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18900 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18901 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18902 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18903 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18904 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18905 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18906
18907 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18908
18909 * config/rs6000/rs6000.md (type): Delete "insert_word",
18910 "insert_dword". Add "insert".
18911 (size): Update comment.
18912 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18913 insn_must_be_first_in_group): Adjust.
18914 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18915 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18916 *insvsi_internal6, insvdi_internal): Adjust.
18917
18918 * config/rs6000/40x.md (ppc403-integer): Adjust.
18919 * config/rs6000/440.md (ppc440-integer): Adjust.
18920 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18921 * config/rs6000/601.md (ppc601-integer): Adjust.
18922 * config/rs6000/603.md (ppc603-integer): Adjust.
18923 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18924 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18925 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18926 * config/rs6000/8540.md (ppc8540_su): Adjust.
18927 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18928 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18929 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18930 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18931 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18932 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18933 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18934 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18935 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18936 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18937 * config/rs6000/power7.md (power7-integer): Adjust.
18938 * config/rs6000/power8.md (power8-1cyc): Adjust.
18939 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18940 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18941
18942 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18943
18944 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18945 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18946 (size): New attribute.
18947 (dot): New attribute.
18948 (cell_micro): Adjust.
18949 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18950 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18951 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18952 umuldi3_highpart): Adjust.
18953 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18954 rs6000_adjust_priority, is_nonpipeline_insn,
18955 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18956
18957 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18958 ppc405-imul3): Adjust.
18959 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18960 * config/rs6000/476.md (ppc476-imul): Adjust.
18961 * config/rs6000/601.md (ppc601-imul): Adjust.
18962 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18963 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18964 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18965 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18966 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18967 Adjust.
18968 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18969 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18970 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18971 cell-imul): Adjust.
18972 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18973 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18974 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18975 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18976 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18977 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18978 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18979 power4-lmul, power4-imul, power4-imul3): Adjust.
18980 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18981 power5-lmul, power5-imul, power5-imul3): Adjust.
18982 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18983 power6-lmul, power6-imul, power6-imul3): Adjust.
18984 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18985 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18986
18987 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18988 rs64a-lmul): Adjust.
18989 * config/rs6000/titan.md (titan_imul): Adjust.
18990
18991 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18992
18993 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18994 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18995 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18996 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18997 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18998 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18999 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19000 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19001 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19002 * config/rs6000/titan.md: Delete nonsensical comment.
19003 (titan_imul): Add type imul3.
19004 (titan_mulhw): Remove type imul3; add type halfmul.
19005
19006 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19007
19008 * config/rs6000/rs6000.md (type): Reorder, reformat.
19009
19010 2014-05-23 Martin Jambor <mjambor@suse.cz>
19011
19012 PR tree-optimization/53787
19013 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19014 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19015 analysis_done, update all uses.
19016 * ipa-prop.c: Include domwalk.h
19017 (param_analysis_info): Removed.
19018 (param_aa_status): New type.
19019 (ipa_bb_info): Likewise.
19020 (func_body_info): Likewise.
19021 (ipa_get_bb_info): New function.
19022 (aa_overwalked): Likewise.
19023 (find_dominating_aa_status): Likewise.
19024 (parm_bb_aa_status_for_bb): Likewise.
19025 (parm_preserved_before_stmt_p): Changed to use new param AA info.
19026 (load_from_unmodified_param): Accept func_body_info as a parameter
19027 instead of parms_ainfo.
19028 (parm_ref_data_preserved_p): Changed to use new param AA info.
19029 (parm_ref_data_pass_through_p): Likewise.
19030 (ipa_load_from_parm_agg_1): Likewise. Update callers.
19031 (compute_complex_assign_jump_func): Changed to use new param AA info.
19032 (compute_complex_ancestor_jump_func): Likewise.
19033 (ipa_compute_jump_functions_for_edge): Likewise.
19034 (ipa_compute_jump_functions): Removed.
19035 (ipa_compute_jump_functions_for_bb): New function.
19036 (ipa_analyze_indirect_call_uses): Likewise, moved variable
19037 declarations down.
19038 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19039 and info, moved variable declarations down.
19040 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19041 node and info.
19042 (ipa_analyze_stmt_uses): Likewise.
19043 (ipa_analyze_params_uses): Removed.
19044 (ipa_analyze_params_uses_in_bb): New function.
19045 (ipa_analyze_controlled_uses): Likewise.
19046 (free_ipa_bb_info): Likewise.
19047 (analysis_dom_walker): New class.
19048 (ipa_analyze_node): Handle node-specific forbidden analysis,
19049 initialize and free func_body_info, use dominator walker.
19050 (ipcp_modif_dom_walker): New class.
19051 (ipcp_transform_function): Create and free func_body_info, use
19052 ipcp_modif_dom_walker, moved a lot of functionality there.
19053
19054 2014-05-23 Marek Polacek <polacek@redhat.com>
19055 Jakub Jelinek <jakub@redhat.com>
19056
19057 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19058 * gcc.c (sanitize_spec_function): Likewise.
19059 * convert.c (convert_to_integer): Include "ubsan.h". Add
19060 floating-point to integer instrumentation.
19061 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19062 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19063 SANITIZE_NONDEFAULT.
19064 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19065 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19066 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19067 * ubsan.c: Include "realmpfr.h" and "dfp.h".
19068 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19069 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19070 float/double/long double.
19071 (ubsan_instrument_float_cast): New function.
19072 * ubsan.h (ubsan_instrument_float_cast): Declare.
19073
19074 2014-05-23 Jiong Wang <jiong.wang@arm.com>
19075
19076 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19077 predicate.
19078 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
19079 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19080 Adjust for tailcalling through registers.
19081 * config/aarch64/aarch64.h (enum reg_class): New caller save
19082 register class.
19083 (REG_CLASS_NAMES): Likewise.
19084 (REG_CLASS_CONTENTS): Likewise.
19085 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19086 Allow tailcalling without decls.
19087
19088 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19089
19090 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19091 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19092
19093 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19094 gsi, and variables v_* to v*.
19095
19096 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
19097
19098 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19099
19100 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19101
19102 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19103 * omp-low.c: Update accordingly.
19104
19105 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19106 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19107 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19108 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19109 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19110 GF_OMP_TARGET_KIND_UPDATE.
19111
19112 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19113 Explicitly enumerate the expected region types.
19114
19115 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19116
19117 PR other/56955
19118 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19119 documentation; the old documentation didn't clearly state the
19120 constraints on the contents of the pointed-to storage.
19121
19122 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19123
19124 Fix bootstrap error on ia64
19125 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19126 Return default value.
19127
19128 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19129
19130 PR tree-optimization/54733
19131 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19132 (CMPNOP): Define.
19133 (find_bswap_or_nop_load): New.
19134 (find_bswap_1): Renamed to ...
19135 (find_bswap_or_nop_1): This. Also add support for memory source.
19136 (find_bswap): Renamed to ...
19137 (find_bswap_or_nop): This. Also add support for memory source and
19138 detection of bitwise operations equivalent to load in target
19139 endianness.
19140 (execute_optimize_bswap): Likewise. Also move its leading comment back
19141 in place and split statement transformation into ...
19142 (bswap_replace): This.
19143
19144 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19145
19146 PR rtl-optimization/61215
19147 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19148 simplify_gen_subreg until final substitution.
19149
19150 2014-05-23 Alan Modra <amodra@gmail.com>
19151
19152 PR target/61231
19153 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19154 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19155 Use "Y" constraint rather than "m".
19156
19157 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19158
19159 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19160 define.
19161 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19162 New function declaration.
19163 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19164 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19165 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19166 (aarch64_init_builtins) : Initialize builtins
19167 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19168 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19169 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19170 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19171 and __builtins_aarch64_set_fpsr.
19172 (aarch64_atomic_assign_expand_fenv): New function.
19173 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19174 (get_fpcr) : Likewise.
19175 (set_fpsr) : Likewise.
19176 (get_fpsr) : Likewise.
19177 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19178 and UNSPECV_SET_FPSR.
19179 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19180 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19181 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19182
19183 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19184
19185 PR rtl-optimization/60969
19186 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19187 constraints. Set up mem cost for NO_REGS case.
19188
19189 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19190
19191 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19192
19193 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19194
19195 * config/darwin.c: Include "lto-section-names.h".
19196 (LTO_SEGMENT_NAME): Don't define.
19197 * config/i386/winnt.c: Include "lto-section-names.h".
19198 * lto-streamer.c: Include "lto-section-names.h".
19199 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19200 * lto-wrapper.c: Include "lto-section-names.h".
19201 (LTO_SECTION_NAME_PREFIX): Don't define.
19202 * lto-section-names.h: New file.
19203 * cgraphunit.c: Include "lto-section-names.h".
19204
19205 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19206
19207 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19208
19209 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19210
19211 PR target/61208
19212 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19213
19214 2014-05-22 Nick Clifton <nickc@redhat.com>
19215
19216 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19217
19218 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19219
19220 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19221 -> (T)A transformation to integer types.
19222
19223 2014-05-22 Teresa Johnson <tejohnson@google.com>
19224
19225 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19226 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19227 (gcov_rewrite): Use gcov_nonruntime_assert.
19228 (gcov_open): Ditto.
19229 (gcov_write_words): Ditto.
19230 (gcov_write_length): Ditto.
19231 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19232 gcc_assert from IN_LIBGCOV code.
19233 (gcov_read_summary): Use gcov_error to flag profile corruption.
19234 (gcov_sync): Use gcov_nonruntime_assert.
19235 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19236 (gcov_histo_index): Use gcov_nonruntime_assert.
19237 (static void gcov_histogram_merge): Ditto.
19238 (compute_working_sets): Ditto.
19239 * gcov-io.h (gcov_nonruntime_assert): Define.
19240 (gcov_error): Define for !IN_LIBGCOV
19241
19242 2014-05-22 Richard Biener <rguenther@suse.de>
19243
19244 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19245 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19246 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19247 and deallocation site.
19248 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19249 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19250 passing through the incoming points-to set.
19251 (handle_lhs_call): Use flags argument instead of recomputing it.
19252 (find_func_aliases_for_call): Call handle_lhs_call with proper
19253 call return flags.
19254
19255 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19256
19257 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19258 all padding bits in REAL_VALUE_TYPE are cleared.
19259
19260 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19261
19262 Cleanup and improve multipass_dfa_lookahead_guard
19263 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19264 (core2i7_first_cycle_multipass_begin,)
19265 (core2i7_first_cycle_multipass_issue,)
19266 (core2i7_first_cycle_multipass_backtrack): Update signature.
19267 * config/ia64/ia64.c
19268 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19269 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19270 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19271 hook definition.
19272 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19273 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19274 values.
19275 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19276 return values.
19277 * doc/tm.texi: Regenerate.
19278 * doc/tm.texi.in
19279 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19280 * haifa-sched.c (ready_try): Make signed to allow negative values.
19281 (rebug_ready_list_1): Update.
19282 (choose_ready): Simplify.
19283 (sched_extend_ready_list): Update.
19284
19285 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19286
19287 Remove IA64 speculation tweaking flags
19288 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19289 speculation tuning flags.
19290 (msched-prefer-non-data-spec-insns,)
19291 (msched-prefer-non-control-spec-insns): Obsolete options.
19292 * haifa-sched.c (choose_ready): Remove handling of
19293 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19294 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19295 and PREFER_NON_DATA_SPEC.
19296 * sel-sched.c (process_spec_exprs): Remove handling of
19297 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19298
19299 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19300
19301 Improve scheduling debug output
19302 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19303 (advance_one_cycle): Update.
19304 (schedule_insn, queue_to_ready): Add debug printouts.
19305 (debug_ready_list_1): New static function.
19306 (debug_ready_list): Update.
19307 (max_issue): Add debug printouts.
19308 (dump_insn_stream): New static function.
19309 (schedule_block): Use it. Also better indent printouts.
19310
19311 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19312
19313 Fix sched_insn debug counter
19314 * haifa-sched.c (schedule_insn): Update.
19315 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19316 (save_backtrack_point, restore_backtrack_point): Update.
19317 (first_nonscheduled_insn): New static function.
19318 (queue_to_ready, choose_ready): Use it.
19319 (schedule_block): Init nonscheduled_insns_begin.
19320 (sched_emit_insn): Update.
19321
19322
19323 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19324
19325 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19326 to GENERAL_REGS.
19327 (aarch64_secondary_reload) : LikeWise.
19328 (aarch64_class_max_nregs) : Remove CORE_REGS.
19329 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19330 (REG_CLASS_NAMES) : Likewise.
19331 (REG_CLASS_CONTENTS) : LikeWise.
19332 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19333
19334 2014-05-21 Guozhi Wei <carrot@google.com>
19335
19336 PR target/61202
19337 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19338 constraint.
19339 (vqdmulhq_n_s16): Likewise.
19340
19341 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19342
19343 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19344
19345 2014-05-21 Marek Polacek <polacek@redhat.com>
19346
19347 PR sanitizer/61272
19348 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19349
19350 2014-05-21 Martin Jambor <mjambor@suse.cz>
19351
19352 * doc/invoke.texi (Optimize Options): Document parameters
19353 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19354 ipa-cp-array-index-hint-bonus.
19355
19356 2014-05-21 Mark Wielaard <mjw@redhat.com>
19357
19358 PR debug/16063
19359 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19360 version >= 3 or not strict DWARF.
19361 * langhooks.h (struct lang_hooks_for_types): Add
19362 enum_underlying_base_type.
19363 * langhooks.c (lhd_enum_underlying_base_type): New function.
19364 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19365 enum_underlying_base_type.
19366 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19367 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19368 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19369
19370 2014-05-21 Richard Biener <rguenther@suse.de>
19371
19372 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19373
19374 2014-05-21 John Marino <gnugcc@marino.st>
19375
19376 * config.gcc (*-*-dragonfly*): New target.
19377 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19378 * configure: Regenerate.
19379 * config/dragonfly-stdint.h: New.
19380 * config/dragonfly.h: New.
19381 * config/dragonfly.opt: New.
19382 * config/i386/dragonfly.h: New.
19383 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19384
19385 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19386
19387 * tree.def (VOID_CST): New.
19388 * tree-core.h (TI_VOID): New.
19389 * tree.h (void_node): New.
19390 * tree.c (tree_node_structure_for_code, tree_code_size)
19391 (iterative_hash_expr): Handle VOID_CST.
19392 (build_common_tree_nodes): Initialize void_node.
19393
19394 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19395
19396 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19397 functions.
19398 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19399
19400 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19401 more places.
19402
19403 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19404 flag_reorder_blocks_and_partition.
19405 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19406
19407 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19408
19409 PR target/54236
19410 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19411 constraints.
19412 (*addc_r_t): Add new insn_and_split.
19413
19414 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19415
19416 PR middle-end/61252
19417 * omp-low.c (handle_simd_reference): New function.
19418 (lower_rec_input_clauses): Use it. Defer adding reference
19419 initialization even for reduction without placeholder if in simd,
19420 handle it properly later on.
19421
19422 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19423
19424 PR tree-optimization/60899
19425 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19426 assume all static symbols will have definition wile parsing and
19427 check the do have definition later in compilation; check that
19428 variable referring symbol will be output before concluding that
19429 reference is safe; be conservative for referring local statics;
19430 be more precise about when comdat is output in other partition.
19431
19432 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19433
19434 PR bootstrap/60984
19435 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19436 parameter.
19437 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19438 (ipa_inline): Loop inline_to_all_callers until no more aliases
19439 are removed.
19440
19441 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19442
19443 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19444 set writeonly flag only for vars actually written to.
19445
19446 2014-05-20 Dehao Chen <dehao@google.com>
19447
19448 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19449 and callee count to get clone count.
19450 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19451 count in copy_body.
19452
19453 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19454
19455 PR rtl-optimization/61243
19456 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19457
19458 2014-05-20 Xinliang David Li <davidxl@google.com>
19459
19460 * cgraphunit.c (walk_polymorphic_call_targets): Add
19461 dbgcnt and fopt-info support.
19462 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19463 * ipa-devirt.c (ipa_devirt): Ditto.
19464 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19465 * ipa.c (walk_polymorphic_call_targets): Ditto.
19466 * gimple-fold.c (fold_gimple_assign): Ditto.
19467 (gimple_fold_call): Ditto.
19468 * dbgcnt.def: New counter.
19469
19470 2014-05-20 DJ Delorie <dj@redhat.com>
19471
19472 * config/msp430/msp430.md (split): Don't allow subregs when
19473 splitting SImode adds.
19474 (andneghi): Fix subtraction logic.
19475 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19476
19477 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19478
19479 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19480 symbols.
19481 * except.c (switch_to_exception_section, resolve_unique_section,
19482 get_named_text_section, default_function_rodata_section,
19483 align_variable, get_block_for_decl, default_section_type_flags):
19484 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19485 * symtab.c (symtab_add_to_same_comdat_group,
19486 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19487 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19488 Likewise.
19489 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19490 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19491 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19492 (c6x_function_in_section_p): Likewise.
19493 * config/darwin.c (machopic_select_section): Likewise.
19494 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19495 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19496 * config/mep/mep.c (mep_select_section): LIkewise.
19497 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19498
19499 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19500
19501 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19502 EH region of calls to pure functions that can throw an exception.
19503 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19504 (copy_reference_ops_from_call): Also copy the EH region of the call if
19505 it can throw an exception.
19506
19507 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19508
19509 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19510 nested VEC_SELECTs that are inverses of each other.
19511
19512 2014-05-20 Richard Biener <rguenther@suse.de>
19513
19514 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19515 (extract_and_process_scc_for_name): not here.
19516 (cond_dom_walker::before_dom_children): Only process
19517 stmts that end the BB in interesting ways.
19518 (run_scc_vn): Mark param uses as visited.
19519
19520 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19521
19522 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19523 arm_restrict_it.
19524
19525 2014-05-20 Nick Clifton <nickc@redhat.com>
19526
19527 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19528 (msp430_gimplify_va_arg_expr): New function.
19529 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19530
19531 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19532 operand 0 in order to prevent confusion about the number of
19533 registers involved.
19534
19535 2014-05-20 Richard Biener <rguenther@suse.de>
19536
19537 PR tree-optimization/61221
19538 * tree-ssa-pre.c (el_to_update): Remove.
19539 (eliminate_dom_walker::before_dom_children): Handle released
19540 VDEFs by value-numbering them to the associated VUSE. Update
19541 stmt immediately for substituted call address.
19542 (eliminate): Remove delayed stmt updating code.
19543 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19544 possibly late re-numbered vuses.
19545 (vn_reference_lookup_2): Adjust.
19546 (vn_reference_lookup_pieces): Likewise.
19547 (vn_reference_lookup): Likewise.
19548
19549 2014-05-20 Richard Biener <rguenther@suse.de>
19550
19551 * config.gcc: Remove need_64bit_hwint.
19552 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19553 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19554 it to be true.
19555 * config.in: Regenerate.
19556 * configure: Likewise.
19557
19558 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19559
19560 * doc/extend.texi: Create Label Attributes section,
19561 move all label attributes into it and reference it.
19562
19563 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19564
19565 * arm.c (thumb1_reorg): When scanning backwards skip anything
19566 that's not a proper insn.
19567
19568 2014-05-19 Richard Biener <rguenther@suse.de>
19569
19570 PR tree-optimization/61221
19571 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19572 Do nothing for unreachable blocks.
19573 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19574 Improve unreachability detection.
19575
19576 2014-05-19 Richard Biener <rguenther@suse.de>
19577
19578 PR tree-optimization/61209
19579 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19580
19581 2014-05-19 Nick Clifton <nickc@redhat.com>
19582
19583 * except.c (init_eh): Fix computation of builtin setjmp buffer
19584 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19585
19586 2014-05-19 Richard Biener <rguenther@suse.de>
19587
19588 PR tree-optimization/61184
19589 * tree-vrp.c (is_negative_overflow_infinity): Use
19590 TREE_OVERFLOW_P and do that check first.
19591 (is_positive_overflow_infinity): Likewise.
19592 (is_overflow_infinity): Likewise.
19593 (vrp_operand_equal_p): Properly treat operands with
19594 differing overflow as not equal.
19595
19596 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19597
19598 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19599 shift simplification where it was intended.
19600
19601 2014-05-19 Christian Bruel <christian.bruel@st.com>
19602
19603 PR target/61195
19604 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19605
19606 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19607
19608 PR target/61084
19609 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19610 than wide_int.
19611
19612 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19613
19614 * reg-notes.def (CROSSING_JUMP): Likewise.
19615 * rtl.h (rtx_def): Update comment for jump flag.
19616 (CROSSING_JUMP_P): Define.
19617 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19618 of a REG_CROSSING_JUMP note.
19619 * cfghooks.c (tidy_fallthru_edges): Likewise.
19620 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19621 * emit-rtl.c (try_split): Likewise.
19622 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19623 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19624 * jump.c (redirect_jump_2): Likewise.
19625 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19626 (relax_delay_slots): Likewise.
19627 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19628 (bbit_di): Likewise.
19629 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19630 * config/sh/sh.md (jump_compact): Likewise.
19631 * bb-reorder.c (rotate_loop): Likewise.
19632 (pass_duplicate_computed_gotos::execute): Likewise.
19633 (add_reg_crossing_jump_notes): Rename to...
19634 (update_crossing_jump_flags): ...this.
19635 (pass_partition_blocks::execute): Update accordingly.
19636
19637 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19638
19639 * tree.h: Remove extraneous template <>.
19640
19641 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19642
19643 * ipa.c (symtab_remove_unreachable_nodes): Remove
19644 symbol from comdat group if its body was eliminated.
19645 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19646 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19647 (symtab_unregister_node): ... this one.
19648 (verify_symtab_base): More strict checking of comdats.
19649 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19650
19651 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19652
19653 * tree-pass.h (make_pass_ipa_comdats): New pass.
19654 * timevar.def (TV_IPA_COMDATS): New timevar.
19655 * passes.def (pass_ipa_comdats): Add.
19656 * Makefile.in (OBJS): Add ipa-comdats.o
19657 * ipa-comdats.c: New file.
19658
19659 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19660
19661 * ipa.c (update_visibility_by_resolution_info): New function.
19662 (function_and_variable_visibility): Use it.
19663
19664 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19665
19666 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19667 New functions.
19668 (FOR_EACH_DEFINED_SYMBOL): New macro.
19669 (varpool_first_static_initializer, varpool_next_static_initializer,
19670 varpool_first_defined_variable, varpool_next_defined_variable):
19671 Fix comments.
19672 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19673
19674 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19675
19676 * ggc-page.c (ggc_handle_finalizers): Add comment.
19677
19678 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19679
19680 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19681 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19682 (ggc_internal_cleared_alloc): Likewise.
19683 * ggc-page.c (finalizer): New class.
19684 (vec_finalizer): Likewise.
19685 (globals::finalizers): New member.
19686 (globals::vec_finalizers): Likewise.
19687 (ggc_internal_alloc): Record the finalizer if any for the block being
19688 allocated.
19689 (ggc_handle_finalizers): New function.
19690 (ggc_collect): Call ggc_handle_finalizers.
19691 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19692 finalizer.
19693 (ggc_internal_cleared_alloc): Likewise.
19694 (finalize): New function.
19695 (need_finalization_p): Likewise.
19696 (ggc_alloc): Install the type's destructor as the finalizer if it
19697 might do something.
19698 (ggc_cleared_alloc): Likewise.
19699 (ggc_vec_alloc): Likewise.
19700 (ggc_cleared_vec_alloc): Likewise.
19701
19702 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19703
19704 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19705
19706 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19707
19708 * alias.c (record_alias_subset): Adjust.
19709 * bitmap.c (bitmap_element_allocate): Likewise.
19710 (bitmap_gc_alloc_stat): Likewise.
19711 * cfg.c (init_flow): Likewise.
19712 (alloc_block): Likewise.
19713 (unchecked_make_edge): Likewise.
19714 * cfgloop.c (alloc_loop): Likewise.
19715 (flow_loops_find): Likewise.
19716 (rescan_loop_exit): Likewise.
19717 * cfgrtl.c (init_rtl_bb_info): Likewise.
19718 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19719 (cgraph_allocate_node): Likewise.
19720 (cgraph_create_edge_1): Likewise.
19721 (cgraph_allocate_init_indirect_info): Likewise.
19722 * cgraphclones.c (cgraph_clone_edge): Likewise.
19723 * cgraphunit.c (add_asm_node): Likewise.
19724 (init_lowered_empty_function): Likewise.
19725 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19726 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19727 (alpha_use_linkage): Likewise.
19728 * config/arc/arc.c (arc_init_machine_status): Likewise.
19729 * config/arm/arm.c (arm_init_machine_status): Likewise.
19730 * config/avr/avr.c (avr_init_machine_status): Likewise.
19731 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19732 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19733 * config/cris/cris.c (cris_init_machine_status): Likewise.
19734 * config/darwin.c (machopic_indirection_name): Likewise.
19735 (darwin_build_constant_cfstring): Likewise.
19736 (darwin_enter_string_into_cfstring_table): Likewise.
19737 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19738 * config/frv/frv.c (frv_init_machine_status): Likewise.
19739 * config/i386/i386.c (get_dllimport_decl): Likewise.
19740 (ix86_init_machine_status): Likewise.
19741 (assign_386_stack_local): Likewise.
19742 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19743 (i386_pe_maybe_record_exported_symbol): Likewise.
19744 (i386_pe_record_stub): Likewise.
19745 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19746 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19747 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19748 (m32c_note_pragma_address): Likewise.
19749 * config/mep/mep.c (mep_init_machine_status): Likewise.
19750 (mep_note_pragma_flag): Likewise.
19751 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19752 (mips16_local_alias): Likewise.
19753 (mips_init_machine_status): Likewise.
19754 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19755 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19756 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19757 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19758 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19759 * config/pa/pa.c (pa_init_machine_status): Likewise.
19760 (pa_get_deferred_plabel): Likewise.
19761 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19762 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19763 (rs6000_init_machine_status): Likewise.
19764 (output_toc): Likewise.
19765 * config/s390/s390.c (s390_init_machine_status): Likewise.
19766 * config/score/score.c (score_output_external): Likewise.
19767 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19768 * config/spu/spu.c (spu_init_machine_status): Likewise.
19769 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19770 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19771 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19772 * coverage.c (coverage_end_function): Likewise.
19773 * dbxout.c (dbxout_init): Likewise.
19774 * doc/gty.texi: Don't mention variable_size attribute.
19775 * dwarf2cfi.c (new_cfi): Adjust.
19776 (new_cfi_row): Likewise.
19777 (copy_cfi_row): Likewise.
19778 (create_cie_data): Likewise.
19779 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19780 (new_loc_descr): Likewise.
19781 (find_AT_string_in_table): Likewise.
19782 (add_addr_table_entry): Likewise.
19783 (new_die): Likewise.
19784 (add_var_loc_to_decl): Likewise.
19785 (clone_die): Likewise.
19786 (clone_as_declaration): Likewise.
19787 (break_out_comdat_types): Likewise.
19788 (new_loc_list): Likewise.
19789 (add_loc_descr_to_each): Likewise.
19790 (add_location_or_const_value_attribute): Likewise.
19791 (add_linkage_name): Likewise.
19792 (lookup_filename): Likewise.
19793 (dwarf2out_var_location): Likewise.
19794 (new_line_info_table): Likewise.
19795 (dwarf2out_init): Likewise.
19796 (mem_loc_descriptor): Likewise.
19797 (loc_descriptor): Likewise.
19798 (add_const_value_attribute): Likewise.
19799 (tree_add_const_value_attribute): Likewise.
19800 (comp_dir_string): Likewise.
19801 (dwarf2out_vms_debug_main_pointer): Likewise.
19802 (string_cst_pool_decl): Likewise.
19803 * emit-rtl.c (set_mem_attrs): Likewise.
19804 (get_reg_attrs): Likewise.
19805 (start_sequence): Likewise.
19806 (init_emit): Likewise.
19807 (init_emit_regs): Likewise.
19808 * except.c (init_eh_for_function): Likewise.
19809 (gen_eh_region): Likewise.
19810 (gen_eh_region_catch): Likewise.
19811 (gen_eh_landing_pad): Likewise.
19812 (add_call_site): Likewise.
19813 * function.c (add_frame_space): Likewise.
19814 (insert_temp_slot_address): Likewise.
19815 (assign_stack_temp_for_type): Likewise.
19816 (get_hard_reg_initial_val): Likewise.
19817 (allocate_struct_function): Likewise.
19818 (prepare_function_start): Likewise.
19819 (types_used_by_var_decl_insert): Likewise.
19820 * gengtype.c (variable_size_p): Remove function.
19821 (enum alloc_quantity): Remove enum.
19822 (write_typed_alloc_def): Remove function.
19823 (write_typed_struct_alloc_def): Likewise.
19824 (write_typed_typedef_alloc_def): Likewise.
19825 (write_typed_alloc_defns): Likewise.
19826 (main): Adjust.
19827 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19828 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19829 * ggc.h (ggc_alloc): new function.
19830 (ggc_cleared_alloc): Likewise.
19831 (ggc_vec_alloc): Template on type of vector element, and remove
19832 element size argument.
19833 (ggc_cleared_vec_alloc): Likewise.
19834 * gimple.c (gimple_build_omp_for): Adjust.
19835 (gimple_copy): Likewise.
19836 * ipa-cp.c (get_replacement_map): Likewise.
19837 (find_aggregate_values_for_callers_subset): Likewise.
19838 (known_aggs_to_agg_replacement_list): Likewise.
19839 * ipa-devirt.c (get_odr_type): Likewise.
19840 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19841 (read_agg_replacement_chain): Likewise.
19842 * loop-iv.c (get_simple_loop_desc): Likewise.
19843 * lto-cgraph.c (input_node_opt_summary): Likewise.
19844 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19845 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19846 (input_eh_region): Likewise.
19847 (input_eh_lp): Likewise.
19848 (input_cfg): Likewise.
19849 * optabs.c (set_optab_libfunc): Likewise.
19850 (init_tree_optimization_optabs): Likewise.
19851 (set_conv_libfunc): Likewise.
19852 * passes.c (do_per_function_toporder): Likewise.
19853 * rtl.h: Don't use variable_size gty attribute.
19854 * sese.c (if_region_set_false_region): Adjust.
19855 * stringpool.c (gt_pch_save_stringpool): Likewise.
19856 * target-globals.c (save_target_globals): Likewise.
19857 * toplev.c (general_init): Likewise.
19858 * trans-mem.c (record_tm_replacement): Likewise.
19859 (split_bb_make_tm_edge): Likewise.
19860 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19861 * tree-data-ref.h (lambda_vector_new): Likewise.
19862 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19863 * tree-iterator.c (tsi_link_before): Likewise.
19864 (tsi_link_after): Likewise.
19865 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19866 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19867 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19868 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19869 * tree-ssa.c (init_tree_ssa): Adjust.
19870 * tree-ssanames.c (set_range_info): Likewise.
19871 (get_ptr_info): Likewise.
19872 (duplicate_ssa_name_ptr_info): Likewise.
19873 (duplicate_ssa_name_range_info): Likewise.
19874 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19875 (unpack_ts_fixed_cst_value_fields): Likewise.
19876 * tree.c (build_fixed): Likewise.
19877 (build_real): Likewise.
19878 (build_string): Likewise.
19879 (decl_priority_info): Likewise.
19880 (decl_debug_expr_insert): Likewise.
19881 (decl_value_expr_insert): Likewise.
19882 (decl_debug_args_insert): Likewise.
19883 (type_hash_add): Likewise.
19884 (build_omp_clause): Likewise.
19885 * ubsan.c (decl_for_type_insert): Likewise.
19886 * varasm.c (get_unnamed_section): Likewise.
19887 (get_noswitch_section): Likewise.
19888 (get_section): Likewise.
19889 (get_block_for_section): Likewise.
19890 (create_block_symbol): Likewise.
19891 (build_constant_desc): Likewise.
19892 (create_constant_pool): Likewise.
19893 (force_const_mem): Likewise.
19894 (record_tm_clone_pair): Likewise.
19895 * varpool.c (varpool_create_empty_node): Likewise.
19896
19897 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19898
19899 * dwarf2out.c (tree_add_const_value_attribute): Call
19900 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19901 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19902 instead of ggc_internal_<x>alloc_stat.
19903 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19904 (ggc_realloc): Likewise.
19905 * ggc-none.c (ggc_internal_alloc): Likewise.
19906 (ggc_internal_cleared_alloc): Likewise.
19907 * ggc-page.c: Likewise.
19908 * ggc.h (ggc_internal_alloc_stat): Likewise.
19909 (ggc_internal_alloc): Remove macro.
19910 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19911 (ggc_internal_cleared_alloc): Remove macro.
19912 (GGC_RESIZEVEC): Adjust.
19913 (ggc_resizevar): Remove macro.
19914 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19915 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19916 (ggc_internal_vec_cleared_alloc): Remove macro.
19917 (ggc_alloc_atomic_stat): Drop _stat suffix.
19918 (ggc_alloc_atomic): Remove macro.
19919 (ggc_alloc_cleared_atomic): Remove macro.
19920 (ggc_alloc_string_stat): Drop _stat suffix.
19921 (ggc_alloc_string): Remove macro.
19922 (ggc_alloc_rtx_def_stat): Adjust.
19923 (ggc_alloc_tree_node_stat): Likewise.
19924 (ggc_alloc_cleared_tree_node_stat): Likewise.
19925 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19926 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19927 * gimple.c (gimple_build_omp_for): Likewise.
19928 (gimple_copy): Likewise.
19929 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19930 * toplev.c (realloc_for_line_map): Adjust.
19931 * tree-data-ref.h (lambda_vector_new): Likewise.
19932 * tree-phinodes.c (allocate_phi_node): Likewise.
19933 * tree.c (grow_tree_vec_stat): Likewise.
19934 * vec.h (va_gc::reserve): Adjust.
19935
19936 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19937
19938 * config/microblaze/microblaze.c (break_handler): New Declaration.
19939 (microblaze_break_function_p,microblaze_is_break_handler): New.
19940 (compute_frame_size): Use microblaze_break_function_p.
19941 Add the test of break_handler.
19942 (microblaze_function_prologue) : Add the test of variable
19943 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19944 (microblaze_function_epilogue) : Add the test of break_handler.
19945 (microblaze_globalize_label) : Add the test of break_handler.
19946 Check the name by BREAK_HANDLER_NAME.
19947
19948 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19949
19950 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19951 microblaze_is_break_handler test.
19952 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19953 Use SYMBOL_REF_DECL.
19954
19955 * config/microblaze/microblaze-protos.h
19956 (microblaze_break_function_p,microblaze_is_break_handler):
19957 New Declaration.
19958
19959 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19960 new MicroBlaze break_handler functions.
19961
19962 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19963
19964 * doc/extend.texi (Size of an asm): Move node text according
19965 to its @menu entry position.
19966
19967 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19968
19969 PR tree-optimization/61140
19970 PR tree-optimization/61150
19971 PR tree-optimization/61197
19972 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19973
19974 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19975
19976 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19977
19978 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19979
19980 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19981 __SIZEOF_INT128__ is defined.
19982
19983 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19984
19985 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19986 (rs6000_delegitimize_address): Use it.
19987
19988 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19989
19990 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19991 inplace argument. Store the new address in the original MEM when true.
19992 * emit-rtl.c (change_address_1): Likewise.
19993 (adjust_address_1, adjust_automodify_address_1, offset_address):
19994 Update accordingly.
19995 * rtl.h (plus_constant): Add an inplace argument.
19996 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19997 when true. Avoid generating (plus X (const_int 0)).
19998 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19999 in-place. Pass true to plus_constant.
20000 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20001
20002 2014-05-16 Dehao Chen <dehao@google.com>
20003
20004 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20005
20006 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20007
20008 PR target/54089
20009 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20010 patterns.
20011 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20012
20013 2014-05-16 Dehao Chen <dehao@google.com>
20014
20015 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20016 optimize_function_for_size_p.
20017 * regs.h (REG_FREQ_FROM_BB): Likewise.
20018
20019 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20020
20021 PR target/51244
20022 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20023 negt_reg_operand cases.
20024 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20025 predicate.
20026 * config/sh/predicates.md (cbranch_treg_value): Simplify.
20027
20028 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20029
20030 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20031 target variants.
20032
20033 2014-05-16 David Malcolm <dmalcolm@redhat.com>
20034
20035 Revert:
20036 2014-04-29 David Malcolm <dmalcolm@redhat.com>
20037
20038 * tree-cfg.c (dump_function_to_file): Dump the return type of
20039 functions, in a line to itself before the function body, mimicking
20040 the layout of a C function.
20041
20042 2014-05-16 Dehao Chen <dehao@google.com>
20043
20044 * cfghooks.c (make_forwarder_block): Use direct computation to
20045 get fall-through edge's count and frequency.
20046
20047 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
20048
20049 * config/arc/arc.c (arc_init): Fix typo in error message.
20050 * config/i386/i386.c (ix86_expand_builtin): Likewise.
20051 (split_stack_prologue_scratch_regno): Likewise.
20052 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20053 word from error message.
20054
20055 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20056
20057 * ira-costs.c: Fix typo in comment.
20058
20059 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
20060
20061 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20062
20063 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
20064
20065 * varpool.c (dump_varpool_node): Dump write-only flag.
20066 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20067 write-only flag.
20068 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20069 write-only variables.
20070 * ipa.c (process_references): New function.
20071 (set_readonly_bit): New function.
20072 (set_writeonly_bit): New function.
20073 (clear_addressable_bit): New function.
20074 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20075 fix handling of aliases.
20076 * cgraph.h (struct varpool_node): Add writeonly flag.
20077
20078 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
20079
20080 PR rtl-optimization/60969
20081 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20082 Calculate costs for this case.
20083
20084 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
20085
20086 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20087 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20088
20089 2014-05-16 Richard Biener <rguenther@suse.de>
20090
20091 PR tree-optimization/61194
20092 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20093 bool patterns ending in a COND_EXPR.
20094
20095 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20096
20097 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20098
20099 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20100
20101 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20102 where we were unable to cost an RTX.
20103
20104 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20105
20106 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20107 HIGH, LO_SUM.
20108
20109 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20110 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20111
20112 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20113
20114 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20115 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20116
20117 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20118 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20119
20120 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20121 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20122
20123 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20124 operators.
20125
20126 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20127 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20128
20129 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20130 DIV/MOD.
20131
20132 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20133 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20134
20135 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20136 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20137
20138 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20139 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20140
20141 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20142 rotates and shifts.
20143
20144 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20145 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20146
20147 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20148 ZERO_EXTEND and SIGN_EXTEND better.
20149
20150 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20151 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20152
20153 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20154 logical operations.
20155
20156 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20157 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20158
20159 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20160 costs when costing loads and stores to memory.
20161
20162 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20163 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20164
20165 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20166 for SET RTX.
20167
20168 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20169
20170 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20171
20172 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20173 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20174
20175 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20176 to...
20177 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20178 well formed.
20179 (aarch64_rtx_mult_cost): New.
20180 (aarch64_rtx_costs): Use it, refactor as appropriate.
20181
20182 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20183 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20184
20185 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20186 emit instructions, return number of instructions which would
20187 be emitted.
20188 (aarch64_add_constant): Update call to aarch64_build_constant.
20189 (aarch64_output_mi_thunk): Likewise.
20190 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20191 a CONST_DOUBLE.
20192
20193 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20194
20195 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20196 (TARGET_RTX_COSTS): Call it.
20197
20198 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20199
20200 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20201 (cortexa57_vector_cost): Likewise.
20202 (cortexa57_tunings): Use them.
20203
20204 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20205
20206 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20207 (cpu_addrcost_table): Use it.
20208 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20209 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20210 move it.
20211
20212 2014-05-16 Richard Biener <rguenther@suse.de>
20213
20214 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20215 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20216 (visit_phi): Ignore edges marked as not executable.
20217 (class cond_dom_walker): New.
20218 (cond_dom_walker::before_dom_children): Value-number
20219 control statements and mark successor edges as not
20220 executable if possible.
20221 (run_scc_vn): First walk all control statements in
20222 dominator order, marking edges as not executable.
20223 * tree-inline.c (copy_edges_for_bb): Be not confused
20224 about random edge flags.
20225
20226 2014-05-16 Richard Biener <rguenther@suse.de>
20227
20228 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20229
20230 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20231
20232 PR target/61193
20233 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20234 (__TM_simple_begin): Use it.
20235 (__TM_begin): Likewise.
20236
20237 2014-05-15 Martin Jambor <mjambor@suse.cz>
20238
20239 PR ipa/61085
20240 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20241 type_preserved flag when the indirect edge is polymorphic.
20242
20243 2014-05-15 Martin Jambor <mjambor@suse.cz>
20244
20245 PR tree-optimization/61090
20246 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20247 build_ref_for_model.
20248
20249 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20250
20251 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20252 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20253
20254 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20255
20256 PR tree-optimization/61158
20257 * fold-const.c (fold_binary_loc): If X is zero-extended and
20258 shiftc >= prec, make sure zerobits is all ones instead of
20259 invoking undefined behavior.
20260
20261 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20262
20263 * regcprop.h: New file.
20264 * regcprop.c (skip_debug_insn_p): New decl.
20265 (replace_oldest_value_reg): Check skip_debug_insn_p.
20266 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20267 * shrink-wrap.c: Include regcprop.h.
20268 (prepare_shrink_wrap): Call
20269 copyprop_hardreg_forward_bb_without_debug_insn.
20270
20271 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20272
20273 * shrink-wrap.h: Update comment.
20274 * shrink-wrap.c: Update comment.
20275 (next_block_for_reg): Rename to live_edge_for_reg.
20276 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20277 (move_insn_for_shrink_wrap): Split live_edge.
20278 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20279
20280 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20281
20282 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20283 Delete.
20284 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20285 * config/sparc/sparc.md (fptype_ut699): New attribute.
20286 (in_branch_delay): Return false if -mfix-ut699 is specified and
20287 fptype_ut699 is set to single.
20288 (truncdfsf2): Add fptype_ut699 attribute.
20289 (fix_truncdfsi2): Likewise.
20290 (floatsisf2): Change fptype attribute.
20291 (fix_truncsfsi2): Likewise.
20292 (negtf2_notv9): Delete.
20293 (negtf2_v9): Likewise.
20294 (negtf2_hq): New instruction.
20295 (negtf2): New instruction and splitter.
20296 (negdf2_notv9): Rewrite.
20297 (abstf2_notv9): Delete.
20298 (abstf2_hq_v9): Likewise.
20299 (abstf2_v9): Likewise.
20300 (abstf2_hq): New instruction.
20301 (abstf2): New instruction and splitter.
20302 (absdf2_notv9): Rewrite.
20303
20304 2014-05-14 Cary Coutant <ccoutant@google.com>
20305
20306 PR debug/61013
20307 * opts.c (common_handle_option): Don't special-case "-g".
20308 (set_debug_level): Default to at least level 2 with "-g".
20309
20310 2014-05-14 DJ Delorie <dj@redhat.com>
20311
20312 * config/msp430/msp430.c (msp430_builtin): Add
20313 MSP430_BUILTIN_DELAY_CYCLES.
20314 (msp430_init_builtins): Register void __delay_cycles(long long).
20315 (msp430_builtin_decl): Add it.
20316 (cg_magic_constant): New.
20317 (msp430_expand_delay_cycles): New.
20318 (msp430_expand_builtin): Call it.
20319 (msp430_print_operand_raw): Change integer printing from "int" to
20320 HOST_WIDE_INT.
20321 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20322 (delay_cycles_start): New.
20323 (delay_cycles_end): New.
20324 (delay_cycles_32): New.
20325 (delay_cycles_32x): New.
20326 (delay_cycles_16): New.
20327 (delay_cycles_16x): New.
20328 (delay_cycles_2): New.
20329 (delay_cycles_1): New.
20330 * doc/extend.texi: Document __delay_cycles().
20331
20332 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20333
20334 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20335 length attribute computation.
20336
20337 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20338
20339 PR debug/61188
20340 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20341
20342 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20343
20344 PR target/61084
20345 * config/sparc/sparc.md: Fix types of low and high in DI constant
20346 splitter. Use gen_int_mode in some other splitters.
20347
20348 2014-05-14 Martin Jambor <mjambor@suse.cz>
20349
20350 PR ipa/60897
20351 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20352
20353 2014-05-14 James Norris <jnorris@codesourcery.com>
20354
20355 * omp-low.c (expand_parallel_call): Remove shadow variable.
20356 (expand_omp_taskreg): Likewise.
20357
20358 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20359
20360 * common/config/i386/i386-common.c
20361 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20362 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20363 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20364 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20365 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20366 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20367 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20368 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20369 xsavecintrin.h, xsavesintrin.h.
20370 (x86_64-*-*): Ditto.
20371 * config/i386/clflushoptintrin.h: New.
20372 * config/i386/xsavecintrin.h: Ditto.
20373 * config/i386/xsavesintrin.h: Ditto.
20374 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20375 (bit_XSAVES): Ditto.
20376 (bit_XSAVES): Ditto.
20377 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20378 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20379 -mno-clflushopt.
20380 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20381 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20382 OPTION_MASK_ISA_XSAVES.
20383 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20384 -mxsavec, -mxsaves.
20385 (PTA_CLFLUSHOPT) Define.
20386 (PTA_XSAVEC): Ditto.
20387 (PTA_XSAVES): Ditto.
20388 (ix86_option_override_internal): Handle new options.
20389 (ix86_valid_target_attribute_inner_p): Ditto.
20390 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20391 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20392 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20393 (bdesc_special_args): Add __builtin_ia32_xsaves,
20394 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20395 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20396 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20397 (ix86_expand_builtin): Handle new builtins.
20398 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20399 (TARGET_CLFLUSHOPT_P): Ditto.
20400 (TARGET_XSAVEC): Ditto.
20401 (TARGET_XSAVEC_P): Ditto.
20402 (TARGET_XSAVES): Ditto.
20403 (TARGET_XSAVES_P): Ditto.
20404 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20405 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20406 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20407 (ANY_XRSTOR): New.
20408 (ANY_XRSTOR64): Ditto.
20409 (xrstor): Ditto.
20410 (xrstor): Change into <xrstor>.
20411 (xrstor_rex64): Change into <xrstor>_rex64.
20412 (xrstor64): Change into <xrstor>64
20413 (clflushopt): New.
20414 * config/i386/i386.opt (mclflushopt): New.
20415 (mxsavec): Ditto.
20416 (mxsaves): Ditto.
20417 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20418 xsavecintrin.h.
20419 * doc/invoke.texi: Document new options.
20420
20421 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20422
20423 PR rtl-optimization/60866
20424 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20425 Default it to -1. Pass it down to init_simplejump_data.
20426 (init_simplejump_data): New parameter old_seqno. Pass it down
20427 to get_seqno_for_a_jump.
20428 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20429 initializing new jump seqno as a last resort. Add comment.
20430 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20431 jump and pass it down to sel_init_new_insn.
20432 (sel_redirect_edge_and_branch_force): Likewise.
20433
20434 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20435
20436 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20437 shifted values to avoid build warning.
20438
20439 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20440
20441 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20442 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20443 (cfg_layout_merge_blocks): Likewise.
20444 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20445
20446 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20447
20448 PR rtl-optimization/60901
20449 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20450 bb predecessor belongs to the same scheduling region. Adjust comment.
20451
20452 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20453
20454 * doc/sourcebuild.texi: (dfp_hw): Document.
20455 (p8vector_hw): Likewise.
20456 (powerpc_eabi_ok): Likewise.
20457 (powerpc_elfv2): Likewise.
20458 (powerpc_htm_ok): Likewise.
20459 (ppc_recip_hw): Likewise.
20460 (vsx_hw): Likewise.
20461
20462 2014-05-13 Cary Coutant <ccoutant@google.com>
20463
20464 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20465
20466 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20467
20468 * gengtype-parse.c (require3): Eliminate in favor of...
20469 (require4): New.
20470 (require_template_declaration): Update to support optional single *
20471 on a type.
20472
20473 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20474 (create_user_defined_type): Handle a single level of explicit
20475 pointerness within template arguments.
20476 (struct write_types_data): Add field "kind".
20477 (filter_type_name): Handle "*" character.
20478 (write_user_func_for_structure_ptr): Require a write_types_data
20479 rather than just a prefix string, so that we can look up the kind
20480 of the wtd and use it as an index into wrote_user_func_for_ptr,
20481 ensuring that such functions are written at most once. Support
20482 subclasses by invoking the marking function of the ultimate base class.
20483 (write_user_func_for_structure_body): Require a write_types_data
20484 rather than just a prefix string, so that we can pass this to
20485 write_user_func_for_structure_ptr.
20486 (write_func_for_structure): Likewise.
20487 (ggc_wtd): Add initializer of new "kind" field.
20488 (pch_wtd): Likewise.
20489
20490 * gengtype.h (enum write_types_kinds): New.
20491 (struct type): Add field wrote_user_func_for_ptr to the "s"
20492 union member.
20493
20494 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20495
20496 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20497 instead of const_binop.
20498 (fold_binary_loc): Likewise.
20499
20500 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20501
20502 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20503 calculation to match get_ref_base_and_extent.
20504
20505 2014-05-13 Catherine Moore <clm@codesourcery.com>
20506 Sandra Loosemore <sandra@codesourcery.com>
20507
20508 * configure.ac: Fix assembly for explicit JALR relocation check.
20509 * configure: Regenerate.
20510
20511 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20512
20513 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20514 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20515 Remove associated type declarations and initialisations.
20516 (arm_expand_neon_builtin): Likewise.
20517 (neon_emit_pair_result_insn): Delete.
20518 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20519 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20520 (neon_vzip<mode>): Likewise.
20521 (neon_vuzp<mode>): Likewise.
20522
20523 2014-05-13 Richard Biener <rguenther@suse.de>
20524
20525 PR ipa/60973
20526 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20527 it needs revisiting whether the call still may be tail-called.
20528
20529 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20530
20531 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20532 * rtl.h (block_symbol): Reduce number of fields to 2.
20533 (rtx_def): Add u2.symbol_ref_flags.
20534 (SYMBOL_REF_FLAGS): Use it.
20535 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20536 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20537 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20538 Lower index of SYMBOL_REF_DATA.
20539 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20540 Print SYMBOL_REF_FLAGS at the same time.
20541 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20542
20543 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20544
20545 * rtl.def (VAR_LOCATION): Remove "i" field.
20546 * rtl.h (rtx_def): Add u2.var_location_status.
20547 (PAT_VAR_LOCATION_STATUS): Use it.
20548 (gen_rtx_VAR_LOCATION): Declare.
20549 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20550 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20551 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20552
20553 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20554
20555 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20556 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20557
20558 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20559
20560 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20561 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20562 * rtl.h (rtx_def): Add insn_uid to u2 field.
20563 (RTX_FLAG_CHECK8): Delete in favor of...
20564 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20565 (INSN_DELETED_P): Update accordingly.
20566 (INSN_UID): Use u2.insn_uid.
20567 (INSN_CHAIN_CODE_P): Define.
20568 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20569 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20570 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20571 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20572 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20573 indices accordingly.
20574 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20575 Update indices for insn-chain rtxes.
20576 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20577 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20578 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20579 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20580 * combine.c (try_combine): Likewise.
20581 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20582
20583 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20584
20585 * rtl.def (REG): Remove middle field.
20586 * rtl.h (rtx_def): Add orignal_regno to u2.
20587 (ORIGINAL_REGNO): Use it instead of field 1.
20588 (REG_ATTRS): Lower field index accordingly.
20589 * gengtype.c (adjust_field_rtx_def): Remove handling of
20590 ORIGINAL_REGNO. Move REG_ATTRS index down.
20591 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20592 code that prints the REGNO.
20593
20594 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20595
20596 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20597 GENERATOR_FILE.
20598
20599 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20600
20601 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20602
20603 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20604
20605 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20606 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20607
20608 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20609
20610 * config/aarch64/aarch64-protos.h
20611 (aarch64_hard_regno_caller_save_mode): New prototype.
20612 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20613 New function.
20614 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20615
20616 2014-05-13 Christian Bruel <christian.bruel@st.com>
20617
20618 * target.def (mode_switching): New hook vector.
20619 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20620 (mode_exit, modepriority_to_mode): Likewise.
20621 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20622 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20623 * target.h: Include tm.h and hard-reg-set.h.
20624 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20625 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20626 * doc/tm.texi Regenerate.
20627 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20628 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20629 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20630 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20631 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20632 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20633 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20634 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20635 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20636 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20637 (ix86_emit_mode_set): Hookify.
20638 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20639 Delete.
20640 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20641 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20642 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20643 (epiphany_mode_priority_to_mode): Remove declaration.
20644 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20645 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20646 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20647 Likewise.
20648 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20649 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20650 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20651
20652 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20653
20654 PR target/61060
20655 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20656 is const0_rtx, return immediately. Don't test count == 0 when
20657 it is always true.
20658
20659 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20660
20661 * Makefile.in: add shrink-wrap.o.
20662 * config/i386/i386.c: include "shrink-wrap.h"
20663 * function.c: Likewise.
20664 (requires_stack_frame_p, next_block_for_reg,
20665 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20666 dup_block_and_redirect): Move to shrink-wrap.c
20667 (thread_prologue_and_epilogue_insns): Extract three code segments
20668 as functions in shrink-wrap.c
20669 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20670 shrink-wrap.h
20671 * shrink-wrap.c: New file.
20672 * shrink-wrap.h: New file.
20673
20674 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20675
20676 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20677 reference to Solaris.
20678
20679 2014-05-12 Mike Stump <mikestump@comcast.net>
20680
20681 PR other/31778
20682 * genattrtab.c (filename): Add.
20683 (convert_set_attr_alternative): Improve error message.
20684 (check_defs): Restore read_md_filename for error messages.
20685 (gen_insn): Save filename.
20686
20687 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20688
20689 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20690 -fno-local-ivars and -fivar-visibility.
20691 * c-family/c.opt: Make -Wshadow also implicitly enable
20692 -Wshadow-ivar.
20693
20694 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20695
20696 * doc/tm.texi: Remove reference to deleted macro.
20697 * doc/tm.texi.in: Likewise.
20698
20699 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20700
20701 PR target/60991
20702 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20703 to restore Y.
20704
20705 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20706
20707 PR libgcc/61152
20708 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20709 * config/arm/aout.h (License): Same.
20710 * config/arm/bpabi.h (License): Same.
20711 * config/arm/elf.h (License): Same.
20712 * config/arm/linux-elf.h (License): Same.
20713 * config/arm/linux-gas.h (License): Same.
20714 * config/arm/netbsd-elf.h (License): Same.
20715 * config/arm/uclinux-eabi.h (License): Same.
20716 * config/arm/uclinux-elf.h (License): Same.
20717 * config/arm/vxworks.h (License): Same.
20718
20719 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20720
20721 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20722 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20723 number of operands to 3.
20724 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20725 * tree-nested.c (convert_nonlocal_omp_clauses,
20726 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20727 * gimplify.c (gimplify_scan_omp_clauses): Handle
20728 OMP_CLAUSE_LINEAR_STMT.
20729 * omp-low.c (lower_rec_input_clauses): Fix typo.
20730 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20731 cast between Fortran boolean_type_node and C _Bool if
20732 needed.
20733
20734 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20735
20736 PR tree-optimization/61136
20737 * wide-int.h (multiple_of_p): Define a version that doesn't return
20738 the quotient.
20739 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20740 integer_zerop/const_binop pair.
20741 (multiple_of_p): Likewise, converting both operands to widest_int
20742 precision.
20743
20744 2014-05-09 Teresa Johnson <tejohnson@google.com>
20745
20746 * cgraphunit.c (analyze_functions): Use correct dump file.
20747
20748 2014-05-09 Florian Weimer <fweimer@redhat.com>
20749
20750 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20751 expand_used_vars.
20752 (stack_protect_return_slot_p): New function.
20753 (expand_used_vars): Call stack_protect_decl_p and
20754 stack_protect_return_slot_p for -fstack-protector-strong.
20755
20756 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20757 Andrew Haley <aph@redhat.com>
20758 Richard Sandiford <rdsandiford@googlemail.com>
20759
20760 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20761 pages.
20762
20763 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20764
20765 PR middle-end/61111
20766 * fold-const.c (fold_binary_loc): Changed width of mask.
20767
20768 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20769
20770 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20771 unsigned int initializers for regno_in, regno_out.
20772
20773 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20774
20775 PR target/61055
20776 * config/avr/avr.md (cc): Add new attribute set_vzn.
20777 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20778 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20779 with INC, DEC or NEG.
20780 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20781 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20782 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20783
20784 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20785
20786 Revert:
20787 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20788
20789 * wide-int.cc (UTItype): Define.
20790 (UDWtype): Define for appropriate W_TYPE_SIZE.
20791
20792 2014-05-09 Richard Biener <rguenther@suse.de>
20793
20794 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20795 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20796 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20797 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20798 ssa_propagate): Adjust.
20799
20800 2014-05-08 Jeff Law <law@redhat.com>
20801
20802 PR tree-optimization/61009
20803 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20804 tri-state rather than a boolean. When a block is too big to
20805 thread through, inform caller via negative return value.
20806 (thread_across_edge): If a block was too big for normal threading,
20807 then it's too big for a joiner too, so remove temporary equivalences
20808 and return immediately.
20809
20810 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20811 Matthias Klose <doko@ubuntu.com>
20812
20813 PR driver/61106
20814 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20815
20816 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20817
20818 PR target/59952
20819 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20820
20821 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20822
20823 PR target/61092
20824 * config/alpha/alpha.c: Include gimple-iterator.h.
20825 (alpha_gimple_fold_builtin): New function. Move
20826 ALPHA_BUILTIN_UMULH folding from ...
20827 (alpha_fold_builtin): ... here.
20828 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20829
20830 2014-05-08 Wei Mi <wmi@google.com>
20831
20832 PR target/58066
20833 * config/i386/i386.c (ix86_compute_frame_layout): Update
20834 preferred_stack_boundary for call, expanded from tls descriptor.
20835 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20836 to depend on SP register.
20837 (*tls_local_dynamic_base_32_gnu): Ditto.
20838 (*tls_local_dynamic_32_once): Ditto.
20839 (tls_global_dynamic_64_<mode>): Set
20840 ix86_tls_descriptor_calls_expanded_in_cfun.
20841 (tls_local_dynamic_base_64_<mode>): Ditto.
20842 (tls_global_dynamic_32): Set
20843 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20844 to depend on SP register.
20845 (tls_local_dynamic_base_32): Ditto.
20846
20847 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20848
20849 * config/arm/arm_neon.h: Update comment.
20850 * config/arm/neon-docgen.ml: Delete.
20851 * config/arm/neon-gen.ml: Delete.
20852 * doc/arm-neon-intrinsics.texi: Update comment.
20853
20854 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20855
20856 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20857 and v4sf versions.
20858 (vand, vorr, veor, vorn, vbic): Remove.
20859 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20860 iterator.
20861 (neon_vsub_unspec): Likewise.
20862 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20863
20864 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20865
20866 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20867 (vadd_s16): Likewise.
20868 (vadd_s32): Likewise.
20869 (vadd_f32): Likewise.
20870 (vadd_u8): Likewise.
20871 (vadd_u16): Likewise.
20872 (vadd_u32): Likewise.
20873 (vadd_s64): Likewise.
20874 (vadd_u64): Likewise.
20875 (vaddq_s8): Likewise.
20876 (vaddq_s16): Likewise.
20877 (vaddq_s32): Likewise.
20878 (vaddq_s64): Likewise.
20879 (vaddq_f32): Likewise.
20880 (vaddq_u8): Likewise.
20881 (vaddq_u16): Likewise.
20882 (vaddq_u32): Likewise.
20883 (vaddq_u64): Likewise.
20884 (vmul_s8): Likewise.
20885 (vmul_s16): Likewise.
20886 (vmul_s32): Likewise.
20887 (vmul_f32): Likewise.
20888 (vmul_u8): Likewise.
20889 (vmul_u16): Likewise.
20890 (vmul_u32): Likewise.
20891 (vmul_p8): Likewise.
20892 (vmulq_s8): Likewise.
20893 (vmulq_s16): Likewise.
20894 (vmulq_s32): Likewise.
20895 (vmulq_f32): Likewise.
20896 (vmulq_u8): Likewise.
20897 (vmulq_u16): Likewise.
20898 (vmulq_u32): Likewise.
20899 (vsub_s8): Likewise.
20900 (vsub_s16): Likewise.
20901 (vsub_s32): Likewise.
20902 (vsub_f32): Likewise.
20903 (vsub_u8): Likewise.
20904 (vsub_u16): Likewise.
20905 (vsub_u32): Likewise.
20906 (vsub_s64): Likewise.
20907 (vsub_u64): Likewise.
20908 (vsubq_s8): Likewise.
20909 (vsubq_s16): Likewise.
20910 (vsubq_s32): Likewise.
20911 (vsubq_s64): Likewise.
20912 (vsubq_f32): Likewise.
20913 (vsubq_u8): Likewise.
20914 (vsubq_u16): Likewise.
20915 (vsubq_u32): Likewise.
20916 (vsubq_u64): Likewise.
20917 (vand_s8): Likewise.
20918 (vand_s16): Likewise.
20919 (vand_s32): Likewise.
20920 (vand_u8): Likewise.
20921 (vand_u16): Likewise.
20922 (vand_u32): Likewise.
20923 (vand_s64): Likewise.
20924 (vand_u64): Likewise.
20925 (vandq_s8): Likewise.
20926 (vandq_s16): Likewise.
20927 (vandq_s32): Likewise.
20928 (vandq_s64): Likewise.
20929 (vandq_u8): Likewise.
20930 (vandq_u16): Likewise.
20931 (vandq_u32): Likewise.
20932 (vandq_u64): Likewise.
20933 (vorr_s8): Likewise.
20934 (vorr_s16): Likewise.
20935 (vorr_s32): Likewise.
20936 (vorr_u8): Likewise.
20937 (vorr_u16): Likewise.
20938 (vorr_u32): Likewise.
20939 (vorr_s64): Likewise.
20940 (vorr_u64): Likewise.
20941 (vorrq_s8): Likewise.
20942 (vorrq_s16): Likewise.
20943 (vorrq_s32): Likewise.
20944 (vorrq_s64): Likewise.
20945 (vorrq_u8): Likewise.
20946 (vorrq_u16): Likewise.
20947 (vorrq_u32): Likewise.
20948 (vorrq_u64): Likewise.
20949 (veor_s8): Likewise.
20950 (veor_s16): Likewise.
20951 (veor_s32): Likewise.
20952 (veor_u8): Likewise.
20953 (veor_u16): Likewise.
20954 (veor_u32): Likewise.
20955 (veor_s64): Likewise.
20956 (veor_u64): Likewise.
20957 (veorq_s8): Likewise.
20958 (veorq_s16): Likewise.
20959 (veorq_s32): Likewise.
20960 (veorq_s64): Likewise.
20961 (veorq_u8): Likewise.
20962 (veorq_u16): Likewise.
20963 (veorq_u32): Likewise.
20964 (veorq_u64): Likewise.
20965 (vbic_s8): Likewise.
20966 (vbic_s16): Likewise.
20967 (vbic_s32): Likewise.
20968 (vbic_u8): Likewise.
20969 (vbic_u16): Likewise.
20970 (vbic_u32): Likewise.
20971 (vbic_s64): Likewise.
20972 (vbic_u64): Likewise.
20973 (vbicq_s8): Likewise.
20974 (vbicq_s16): Likewise.
20975 (vbicq_s32): Likewise.
20976 (vbicq_s64): Likewise.
20977 (vbicq_u8): Likewise.
20978 (vbicq_u16): Likewise.
20979 (vbicq_u32): Likewise.
20980 (vbicq_u64): Likewise.
20981 (vorn_s8): Likewise.
20982 (vorn_s16): Likewise.
20983 (vorn_s32): Likewise.
20984 (vorn_u8): Likewise.
20985 (vorn_u16): Likewise.
20986 (vorn_u32): Likewise.
20987 (vorn_s64): Likewise.
20988 (vorn_u64): Likewise.
20989 (vornq_s8): Likewise.
20990 (vornq_s16): Likewise.
20991 (vornq_s32): Likewise.
20992 (vornq_s64): Likewise.
20993 (vornq_u8): Likewise.
20994 (vornq_u16): Likewise.
20995 (vornq_u32): Likewise.
20996 (vornq_u64): Likewise.
20997
20998 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20999
21000 * wide-int.cc (UTItype): Define.
21001 (UDWtype): Define for appropriate W_TYPE_SIZE.
21002
21003 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
21004
21005 PR tree-optimization/59100
21006 * tree-ssa-phiopt.c: Include tree-inline.h.
21007 (neutral_element_p, absorbing_element_p): New functions.
21008 (value_replacement): Handle conditional binary operations with a
21009 neutral or absorbing element.
21010
21011 2014-05-08 Richard Biener <rguenther@suse.de>
21012
21013 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21014 folding the expression.
21015 (valueize_expr): Remove.
21016 (visit_reference_op_load): Do not valueize the result of
21017 vn_get_expr_for.
21018 (simplify_binary_expression): Likewise.
21019 (simplify_unary_expression): Likewise.
21020
21021 2014-05-08 Richard Biener <rguenther@suse.de>
21022
21023 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21024 looking at TYPE_ARG_TYPES.
21025
21026 2014-05-08 Richard Biener <rguenther@suse.de>
21027
21028 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21029 pointer propagation special-case.
21030
21031 2014-05-08 Bin Cheng <bin.cheng@arm.com>
21032
21033 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21034 core part of address expressions.
21035
21036 2014-05-08 Alan Modra <amodra@gmail.com>
21037
21038 PR target/60737
21039 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21040 loads and stores when -mno-strict-align at any alignment.
21041 (expand_block_clear): Similarly. Also correct calculation of
21042 instruction count.
21043
21044 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
21045
21046 PR middle-end/39246
21047 * tree-complex.c (expand_complex_move): Keep line info when expanding
21048 complex move.
21049 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21050 of complex expression. Use new argument to display correct location
21051 for values coming from phi statement.
21052 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21053 (warn_uninitialized_phi): Pass location of phi argument to
21054 warn_uninit.
21055 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21056 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21057
21058 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21059
21060 * config/rs6000/predicates.md (indexed_address_mem): New.
21061 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21062 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21063 fpstore_ux, fpstore_u.
21064 (sign_extend, indexed, update): New.
21065 (cell_micro): Adjust.
21066 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21067 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21068 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21069 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21070 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21071 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21072 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21073 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21074 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21075 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21076 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21077 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21078 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21079 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21080 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21081
21082 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21083 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21084 *vsx_extract_<mode>_store): Adjust.
21085 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21086 is_cracked_insn, insn_must_be_first_in_group,
21087 insn_must_be_last_in_group): Adjust.
21088
21089 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21090 Adjust.
21091 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21092 ppc440-fpstore): Adjust.
21093 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21094 ppc476-fpstore): Adjust.
21095 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21096 ppc601-fpstore): Adjust.
21097 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21098 Adjust.
21099 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21100 Adjust.
21101 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21102 ppc7450-fpstore): Adjust.
21103 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21104 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21105 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21106 Adjust.
21107 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21108 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21109 cell-fpstore, cell-fpstore-update): Adjust.
21110 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21111 ppce300c3_store, ppce300c3_fpstore): Adjust.
21112 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21113 e500mc_fpstore): Adjust.
21114 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21115 e500mc64_store, e500mc64_fpstore): Adjust.
21116 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21117 e5500_fpstore): Adjust.
21118 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21119 e6500_fpstore): Adjust.
21120 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21121 Adjust.
21122 * config/rs6000/power4.md (power4-load, power4-load-ext,
21123 power4-load-ext-update, power4-load-ext-update-indexed,
21124 power4-load-update-indexed, power4-load-update, power4-fpload,
21125 power4-fpload-update, power4-store, power4-store-update,
21126 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21127 Adjust.
21128 * config/rs6000/power5.md (power5-load, power5-load-ext,
21129 power5-load-ext-update, power5-load-ext-update-indexed,
21130 power5-load-update-indexed, power5-load-update, power5-fpload,
21131 power5-fpload-update, power5-store, power5-store-update,
21132 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21133 Adjust.
21134 * config/rs6000/power6.md (power6-load, power6-load-ext,
21135 power6-load-update, power6-load-update-indexed,
21136 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21137 power6-fpload-update, power6-store, power6-store-update,
21138 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21139 Adjust.
21140 * config/rs6000/power7.md (power7-load, power7-load-ext,
21141 power7-load-update, power7-load-update-indexed,
21142 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21143 power7-fpload-update, power7-store, power7-store-update,
21144 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21145 Adjust.
21146 * config/rs6000/power8.md (power8-load, power8-load-update,
21147 power8-load-ext, power8-load-ext-update, power8-fpload,
21148 power8-fpload-update, power8-store, power8-store-update-indexed,
21149 power8-fpstore, power8-fpstore-update): Adjust.
21150 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21151 Adjust.
21152 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21153 titan_lsu_store, titan_lsu_fpstore): Adjust.
21154 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21155
21156 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21157
21158 PR target/60884
21159 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21160 unrolled byte insns. Emit address increments after move insns.
21161
21162 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21163
21164 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21165 const_gimple, rather than a gimple.
21166 (gimple_call_builtin_p): Likewise, for the three variants.
21167
21168 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21169 (gimple_call_builtin_p): Likewise, for the three variants.
21170
21171 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21172
21173 PR tree-optimization/61095
21174 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21175
21176 2014-05-07 Richard Biener <rguenther@suse.de>
21177
21178 PR tree-optimization/61034
21179 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21180 (maybe_skip_until): Use translate to take into account
21181 lattices when trying to do disambiguations.
21182 (get_continuation_for_phi_1): Likewise.
21183 (get_continuation_for_phi): Adjust for added translate arguments.
21184 (walk_non_aliased_vuses): Likewise.
21185 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21186 (walk_non_aliased_vuses): Likewise.
21187 (call_may_clobber_ref_p_1): Declare.
21188 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21189 calls. Stop early if we are only supposed to disambiguate.
21190 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21191
21192 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21193
21194 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21195 Emit an error when the function has arguments.
21196
21197 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21198
21199 * cfgloop.h (unswitch_loops): Remove.
21200 * doc/passes.texi: Remove references to loop-unswitch.c
21201 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21202
21203 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21204
21205 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21206 check for loads group of length 3.
21207 (vect_permute_load_chain): New permutations for loads group of
21208 length 3.
21209 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21210 of vec_perm_shuffle for the new permutations.
21211
21212 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21213
21214 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21215 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21216 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21217 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21218 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21219 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21220 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21221 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21222
21223 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21224
21225 * loop-unswitch.c: Delete.
21226
21227 2014-05-07 Richard Biener <rguenther@suse.de>
21228
21229 * config.gcc: Always set need_64bit_hwint to yes.
21230
21231 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21232
21233 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21234 of using optimize_size.
21235
21236 2014-05-06 Mike Stump <mikestump@comcast.net>
21237
21238 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21239
21240 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21241
21242 * config/i386/sse.md (*mov<mode>_internal)
21243 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21244 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21245 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21246 (*<code><mode>3, *andnot<mode>3<mask_name>)
21247 (<mask_codefor><code><mode>3<mask_name>): Only consider
21248 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21249
21250 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21251
21252 Revert:
21253 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21254
21255 * lra-constraints.c (valid_address_p): Move earlier in file.
21256 Add a constraint argument to the address_info version.
21257 (satisfies_memory_constraint_p): New function.
21258 (satisfies_address_constraint_p): Likewise.
21259 (process_alt_operands, curr_insn_transform): Use them.
21260 (process_address): Pass the constraint to valid_address_p when
21261 checking address operands.
21262
21263 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21264
21265 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21266 to their respective blocks. Fix inadvertent use of "node".
21267
21268 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21269
21270 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21271 out from...
21272 (init_emit_once): ...here.
21273 * rtl.h (init_derived_machine_modes): Declare.
21274 * toplev.c (do_compile): Call it even if no_backend.
21275
21276 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21277 Mike Stump <mikestump@comcast.net>
21278 Richard Sandiford <rdsandiford@googlemail.com>
21279 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21280
21281 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21282 (rtx_equal_for_memref_p): Update comment.
21283 (adjust_offset_for_component_ref): Use wide-int interfaces.
21284 * builtins.c (get_object_alignment_2): Likewise.
21285 (c_readstr): Likewise.
21286 (target_char_cast): Add comment.
21287 (determine_block_size): Use wide-int interfaces.
21288 (expand_builtin_signbit): Likewise.
21289 (fold_builtin_int_roundingfn): Likewise.
21290 (fold_builtin_bitop): Likewise.
21291 (fold_builtin_bswap): Likewise.
21292 (fold_builtin_logarithm): Use signop.
21293 (fold_builtin_pow): Likewise.
21294 (fold_builtin_memory_op): Use wide-int interfaces.
21295 (fold_builtin_object_size): Likewise.
21296 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21297 nb_iterations_estimate.
21298 (record_niter_bound): Use wide-int interfaces.
21299 (get_estimated_loop_iterations_int): Likewise.
21300 (get_estimated_loop_iterations): Likewise.
21301 (get_max_loop_iterations): Likewise.
21302 * cfgloop.h: Include wide-int.h.
21303 (struct nb_iter_bound): Change bound to widest_int.
21304 (struct loop): Change nb_iterations_upper_bound and
21305 nb_iterations_estimate to widest_int.
21306 (record_niter_bound): Switch to use widest_int.
21307 (get_estimated_loop_iterations): Likewise.
21308 (get_max_loop_iterations): Likewise.
21309 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21310 update for wide-int.
21311 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21312 * combine.c (try_combine): Likewise.
21313 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21314 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21315 interfaces.
21316 (aarch64_float_const_representable_p): Likewise.
21317 * config/arc/arc.c: Include wide-int.h.
21318 (arc_can_use_doloop_p): Use wide-int interfaces.
21319 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21320 (vfp3_const_double_index): Likewise.
21321 * config/avr/avr.c (avr_out_round): Likewise.
21322 (avr_fold_builtin): Likewise.
21323 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21324 (bfin_can_use_doloop_p): Likewise.
21325 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21326 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21327 * config/i386/i386.c: Include wide-int.h.
21328 (ix86_data_alignment): Use wide-int interfaces.
21329 (ix86_local_alignment): Likewise.
21330 (ix86_emit_swsqrtsf): Update real_from_integer.
21331 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21332 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21333 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21334 (zero_constant): Likewise.
21335 (input_operand): Likewise.
21336 (splat_input_operand): Likewise.
21337 (non_logical_cint_operand): Change const_double to const_wide_int.
21338 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21339 (easy_altivec_constant): Remove comment.
21340 (paired_expand_vector_init): Use CONSTANT_P.
21341 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21342 (rs6000_emit_move): Update checks.
21343 (rs6000_aggregate_candidate): Use wide-int interfaces.
21344 (rs6000_expand_ternop_builtin): Likewise.
21345 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21346 (rs6000_assemble_integer): Likewise.
21347 (rs6000_hash_constant): Likewise.
21348 (output_toc): Likewise.
21349 (rs6000_rtx_costs): Likewise.
21350 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21351 * config/rs6000/rs6000-c.c: Include wide-int.h.
21352 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21353 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21354 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21355 Handle CONST_WIDE_INT.
21356 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21357 Use tree_fits_uhwi_p.
21358 * config/sparc/sparc.c: Include wide-int.h.
21359 (sparc_fold_builtin): Use wide-int interfaces.
21360 * config/vax/vax.c: Include wide-int.h.
21361 (vax_float_literal): Use real_from_integer.
21362 * coretypes.h (struct hwivec_def): New.
21363 (hwivec): New.
21364 (const_hwivec): New.
21365 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21366 (equiv_constant): Handle CONST_WIDE_INT.
21367 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21368 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21369 * dbxout.c (stabstr_U): Use wide-int interfaces.
21370 (dbxout_type): Update to use cst_fits_shwi_p.
21371 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21372 (TARGET_SUPPORTS_WIDE_INT): Add default.
21373 * dfp.c: Include wide-int.h.
21374 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21375 decimal_real_to_integer.
21376 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21377 decimal_real_to_integer.
21378 * doc/generic.texi (Constant expressions): Update for wide_int.
21379 * doc/rtl.texi (const_double): Likewise.
21380 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21381 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21382 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21383 (REAL_VALUE_FROM_INT): Remove.
21384 (TARGET_SUPPORTS_WIDE_INT): New.
21385 * doc/tm.texi: Regenerate.
21386 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21387 * double-int.h: Include wide-int.h.
21388 (struct wi::int_traits): New.
21389 * dwarf2out.c (get_full_len): New.
21390 (dw_val_equal_p): Add case dw_val_class_wide_int.
21391 (size_of_loc_descr): Likewise.
21392 (output_loc_operands): Likewise.
21393 (insert_double): Remove.
21394 (insert_wide_int): New.
21395 (add_AT_wide): New.
21396 (print_die): Add case dw_val_class_wide_int.
21397 (attr_checksum): Likewise.
21398 (attr_checksum_ordered): Likewise.
21399 (same_dw_val_p): Likewise.
21400 (size_of_die): Likewise.
21401 (value_format): Likewise.
21402 (output_die): Likewise.
21403 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21404 Use wide-int.
21405 (clz_loc_descriptor): Use wide-int interfaces.
21406 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21407 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21408 (round_up_to_align): Use wide-int interfaces.
21409 (field_byte_offset): Likewise.
21410 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21411 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21412 CONST_DOUBLE handling. Use wide-int interfaces.
21413 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21414 (gen_enumeration_type_die): Use add_AT_wide.
21415 (hash_loc_operands): Add case dw_val_class_wide_int.
21416 (compare_loc_operands): Likewise.
21417 * dwarf2out.h: Include wide-int.h.
21418 (wide_int_ptr): New.
21419 (enum dw_val_class): Add dw_val_class_wide_int.
21420 (struct dw_val_struct): Add val_wide.
21421 * emit-rtl.c (const_wide_int_htab): New.
21422 (const_wide_int_htab_hash): New.
21423 (const_wide_int_htab_eq): New.
21424 (lookup_const_wide_int): New.
21425 (const_double_htab_hash): Use wide-int interfaces.
21426 (const_double_htab_eq): Likewise.
21427 (rtx_to_double_int): Conditionally compile for wide-int.
21428 (immed_double_int_const): Rename to immed_wide_int_const and
21429 update for wide-int.
21430 (immed_double_const): Conditionally compile for wide-int.
21431 (init_emit_once): Use wide-int interfaces.
21432 * explow.c (plus_constant): Likewise.
21433 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21434 (lshift_value): Use wide-int interfaces.
21435 (expand_mult): Likewise.
21436 (choose_multiplier): Likewise.
21437 (expand_smod_pow2): Likewise.
21438 (make_tree): Likewise.
21439 * expr.c (convert_modes): Consolidate handling of constants.
21440 Use wide-int interfaces.
21441 (emit_group_load_1): Add note.
21442 (store_expr): Update comment.
21443 (get_inner_reference): Use wide-int interfaces.
21444 (expand_constructor): Update comment.
21445 (expand_expr_real_2): Use wide-int interfaces.
21446 (expand_expr_real_1): Likewise.
21447 (reduce_to_bit_field_precision): Likewise.
21448 (const_vector_from_tree): Likewise.
21449 * final.c: Include wide-int-print.h.
21450 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21451 * fixed-value.c: Include wide-int.h.
21452 (fixed_from_string): Use wide-int interfaces.
21453 (fixed_to_decimal): Likewise.
21454 (fixed_convert_from_real): Likewise.
21455 (real_convert_from_fixed): Likewise.
21456 * fold-const.h (mem_ref_offset): Return an offset_int.
21457 (div_if_zero_remainder): Remove code parameter.
21458 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21459 Use wide-int interfaces.
21460 (may_negate_without_overflow_p): Use wide-int interfaces.
21461 (negate_expr_p): Likewise.
21462 (fold_negate_expr): Likewise.
21463 (int_const_binop_1): Likewise.
21464 (const_binop): Likewise.
21465 (fold_convert_const_int_from_int): Likewise.
21466 (fold_convert_const_int_from_real): Likewise.
21467 (fold_convert_const_int_from_fixed): Likewise.
21468 (fold_convert_const_fixed_from_int): Likewise.
21469 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21470 (sign_bit_p): Use wide-int interfaces.
21471 (make_range_step): Likewise.
21472 (build_range_check): Likewise. Pass an integer of the correct type
21473 instead of using integer_one_node.
21474 (range_predecessor): Pass an integer of the correct type instead
21475 of using integer_one_node.
21476 (range_successor): Likewise.
21477 (merge_ranges): Likewise.
21478 (unextend): Use wide-int interfaces.
21479 (extract_muldiv_1): Likewise.
21480 (fold_div_compare): Likewise.
21481 (fold_single_bit_test): Likewise.
21482 (fold_sign_changed_comparison): Likewise.
21483 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21484 (fold_plusminus_mult_expr): Use wide-int interfaces.
21485 (native_encode_int): Likewise.
21486 (native_interpret_int): Likewise.
21487 (fold_unary_loc): Likewise.
21488 (pointer_may_wrap_p): Likewise.
21489 (size_low_cst): Likewise.
21490 (mask_with_tz): Likewise.
21491 (fold_binary_loc): Likewise.
21492 (fold_ternary_loc): Likewise.
21493 (multiple_of_p): Likewise.
21494 (tree_call_nonnegative_warnv_p): Update calls to
21495 tree_int_cst_min_precision and real_from_integer.
21496 (fold_negate_const): Use wide-int interfaces.
21497 (fold_abs_const): Likewise.
21498 (fold_relational_const): Use tree_int_cst_lt.
21499 (round_up_loc): Use wide-int interfaces.
21500 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21501 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21502 * gengtype.c: Remove include of double-int.h.
21503 (do_typedef): Use wide-int interfaces.
21504 (open_base_files): Add wide-int.h.
21505 (main): Add offset_int and widest_int typedefs.
21506 * gengtype-lex.l: Handle "^".
21507 (CXX_KEYWORD): Add "static".
21508 * gengtype-parse.c (require3): New.
21509 (require_template_declaration): Handle constant template arguments
21510 and nested templates.
21511 * gengtype-state.c: Don't include "double-int.h".
21512 * genpreds.c (write_one_predicate_function): Update comment.
21513 (write_tm_constrs_h): Add check for hval and lval use in
21514 CONST_WIDE_INT.
21515 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21516 (add_to_sequence): Likewise.
21517 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21518 and const_double_operand.
21519 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21520 interfaces.
21521 * gimple-fold.c (get_base_constructor): Likewise.
21522 (fold_array_ctor_reference): Likewise.
21523 (fold_nonarray_ctor_reference): Likewise.
21524 (fold_const_aggregate_ref_1): Likewise.
21525 (gimple_val_nonnegative_real_p): Likewise.
21526 (gimple_fold_indirect_ref): Likewise.
21527 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21528 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21529 (struct slsr_cand_d): Change index to be widest_int.
21530 (struct incr_info_d): Change incr to be widest_int.
21531 (alloc_cand_and_find_basis): Use wide-int interfaces.
21532 (slsr_process_phi): Likewise.
21533 (backtrace_base_for_ref): Likewise. Return a widest_int.
21534 (restructure_reference): Take a widest_int instead of a double_int.
21535 (slsr_process_ref): Use wide-int interfaces.
21536 (create_mul_ssa_cand): Likewise.
21537 (create_mul_imm_cand): Likewise.
21538 (create_add_ssa_cand): Likewise.
21539 (create_add_imm_cand): Take a widest_int instead of a double_int.
21540 (slsr_process_add): Use wide-int interfaces.
21541 (slsr_process_cast): Likewise.
21542 (slsr_process_copy): Likewise.
21543 (dump_candidate): Likewise.
21544 (dump_incr_vec): Likewise.
21545 (replace_ref): Likewise.
21546 (cand_increment): Likewise. Return a widest_int.
21547 (cand_abs_increment): Likewise.
21548 (replace_mult_candidate): Take a widest_int instead of a double_int.
21549 (replace_unconditional_candidate): Use wide-int interfaces.
21550 (incr_vec_index): Take a widest_int instead of a double_int.
21551 (create_add_on_incoming_edge): Likewise.
21552 (create_phi_basis): Use wide-int interfaces.
21553 (replace_conditional_candidate): Likewise.
21554 (record_increment): Take a widest_int instead of a double_int.
21555 (record_phi_increments): Use wide-int interfaces.
21556 (phi_incr_cost): Take a widest_int instead of a double_int.
21557 (lowest_cost_path): Likewise.
21558 (total_savings): Likewise.
21559 (analyze_increments): Use wide-int interfaces.
21560 (ncd_with_phi): Take a widest_int instead of a double_int.
21561 (ncd_of_cand_and_phis): Likewise.
21562 (nearest_common_dominator_for_cands): Likewise.
21563 (insert_initializers): Use wide-int interfaces.
21564 (all_phi_incrs_profitable): Likewise.
21565 (replace_one_candidate): Likewise.
21566 (replace_profitable_candidates): Likewise.
21567 * godump.c: Include wide-int-print.h.
21568 (go_output_typedef): Use wide-int interfaces.
21569 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21570 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21571 (build_loop_iteration_domains): Likewise.
21572 * hooks.h: Include wide-int.h rather than double-int.h.
21573 (hook_bool_dint_dint_uint_bool_true): Delete.
21574 (hook_bool_wint_wint_uint_bool_true): Declare.
21575 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21576 (hook_bool_wint_wint_uint_bool_true): New.
21577 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21578 interfaces.
21579 (ubsan_expand_si_overflow_mul_check): Likewise.
21580 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21581 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21582 (get_ancestor_addr_info): Likewise.
21583 (ipa_modify_call_arguments): Likewise.
21584 * loop-doloop.c (doloop_modify): Likewise.
21585 (doloop_optimize): Likewise.
21586 * loop-iv.c (iv_number_of_iterations): Likewise.
21587 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21588 (unroll_loop_constant_iterations): Likewise.
21589 (decide_unroll_runtime_iterations): Likewise.
21590 (unroll_loop_runtime_iterations): Likewise.
21591 (decide_peel_simple): Likewise.
21592 (decide_unroll_stupid): Likewise.
21593 * lto-streamer-in.c (streamer_read_wi): Add.
21594 (input_cfg): Use wide-int interfaces.
21595 (lto_input_tree_1): Likewise.
21596 * lto-streamer-out.c (streamer_write_wi): Add.
21597 (hash_tree): Use wide-int interfaces.
21598 (output_cfg): Likewise.
21599 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21600 (GTFILES): Add wide-int.h and signop.h.
21601 (TAGS): Look for .cc files too.
21602 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21603 * optabs.c (expand_subword_shift): Likewise.
21604 (expand_doubleword_shift): Likewise.
21605 (expand_absneg_bit): Likewise.
21606 (expand_copysign_absneg): Likewise.
21607 (expand_copysign_bit): Likewise.
21608 * postreload.c (reload_cse_simplify_set): Likewise.
21609 * predict.c (predict_iv_comparison): Likewise.
21610 * pretty-print.h: Include wide-int-print.h.
21611 (pp_wide_int) New.
21612 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21613 * print-tree.c: Include wide-int-print.h.
21614 (print_node_brief): Use wide-int interfaces.
21615 (print_node): Likewise.
21616 * read-rtl.c (validate_const_wide_int): New.
21617 (read_rtx_code): Add CONST_WIDE_INT case.
21618 * real.c: Include wide-int.h.
21619 (real_to_integer2): Delete.
21620 (real_to_integer): New function, returning a wide_int.
21621 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21622 (ten_to_ptwo): Update call to real_from_integer.
21623 (real_digit): Likewise.
21624 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21625 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21626 (REAL_VALUE_TO_INT): Delete.
21627 (real_to_integer): Declare a wide-int form.
21628 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21629 * recog.c (const_int_operand): Improve comment.
21630 (const_scalar_int_operand): New.
21631 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21632 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21633 (split_double): Likewise.
21634 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21635 (rtx_size): Likewise.
21636 (rtx_alloc_stat_v): New.
21637 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21638 (cwi_output_hex): New.
21639 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21640 (cwi_check_failed_bounds): New.
21641 * rtl.def (CONST_WIDE_INT): New.
21642 * rtl.h: Include <utility> and wide-int.h.
21643 (struct hwivec_def): New.
21644 (CWI_GET_NUM_ELEM): New.
21645 (CWI_PUT_NUM_ELEM): New.
21646 (struct rtx_def): Add num_elem and hwiv.
21647 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21648 (CASE_CONST_UNIQUE): Likewise.
21649 (CASE_CONST_ANY): Likewise.
21650 (CONST_SCALAR_INT_P): Likewise.
21651 (CONST_WIDE_INT_P): New.
21652 (CWI_ELT): New.
21653 (HWIVEC_CHECK): New.
21654 (cwi_check_failed_bounds): New.
21655 (CWI_ELT): New.
21656 (HWIVEC_CHECK): New.
21657 (CONST_WIDE_INT_VEC) New.
21658 (CONST_WIDE_INT_NUNITS) New.
21659 (CONST_WIDE_INT_ELT) New.
21660 (rtx_mode_t): New type.
21661 (wi::int_traits <rtx_mode_t>): New.
21662 (wi::shwi): New.
21663 (wi::min_value): New.
21664 (wi::max_value): New.
21665 (rtx_alloc_v) New.
21666 (const_wide_int_alloc): New.
21667 (immed_wide_int_const): New.
21668 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21669 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21670 * signop.h: New file.
21671 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21672 (simplify_const_unary_operation): Use wide-int interfaces.
21673 (simplify_binary_operation_1): Likewise.
21674 (simplify_const_binary_operation): Likewise.
21675 (simplify_const_relational_operation): Likewise.
21676 (simplify_immed_subreg): Likewise.
21677 * stmt.c (expand_case): Likewise.
21678 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21679 signop rather than a bool.
21680 * stor-layout.c (layout_type): Use wide-int interfaces.
21681 (initialize_sizetypes): Update calls to
21682 set_min_and_max_values_for_integral_type.
21683 (set_min_and_max_values_for_integral_type): Take a signop rather
21684 than a bool. Use wide-int interfaces.
21685 (fixup_signed_type): Update accordingly. Remove
21686 HOST_BITS_PER_DOUBLE_INT limit.
21687 (fixup_unsigned_type): Likewise.
21688 * system.h (STATIC_CONSTANT_P): New.
21689 (STATIC_ASSERT): New.
21690 * target.def (can_use_doloop_p): Take widest_ints rather than
21691 double_ints.
21692 * target.h: Include wide-int.h rather than double-int.h.
21693 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21694 than double_ints.
21695 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21696 rather than INT_CST_LT_UNSIGNED.
21697 (can_use_doloop_if_innermost): Take widest_ints rather than
21698 double_ints.
21699 * tree-affine.c: Include wide-int-print.h.
21700 (double_int_ext_for_comb): Delete.
21701 (wide_int_ext_for_comb): New.
21702 (aff_combination_zero): Use wide-int interfaces.
21703 (aff_combination_const): Take a widest_int instead of a double_int.
21704 (aff_combination_elt): Use wide-int interfaces.
21705 (aff_combination_scale): Take a widest_int instead of a double_int.
21706 (aff_combination_add_elt): Likewise.
21707 (aff_combination_add_cst): Likewise.
21708 (aff_combination_add): Use wide-int interfaces.
21709 (aff_combination_convert): Likewise.
21710 (tree_to_aff_combination): Likewise.
21711 (add_elt_to_tree): Take a widest_int instead of a double_int.
21712 (aff_combination_to_tree): Use wide-int interfaces.
21713 (aff_combination_remove_elt): Likewise.
21714 (aff_combination_add_product): Take a widest_int instead of
21715 a double_int.
21716 (aff_combination_mult): Use wide-int interfaces.
21717 (aff_combination_expand): Likewise.
21718 (double_int_constant_multiple_p): Delete.
21719 (wide_int_constant_multiple_p): New.
21720 (aff_combination_constant_multiple_p): Take a widest_int pointer
21721 instead of a double_int pointer.
21722 (print_aff): Use wide-int interfaces.
21723 (get_inner_reference_aff): Take a widest_int pointer
21724 instead of a double_int pointer.
21725 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21726 * tree-affine.h: Include wide-int.h.
21727 (struct aff_comb_elt): Change type of coef to widest_int.
21728 (struct affine_tree_combination): Change type of offset to widest_int.
21729 (double_int_ext_for_comb): Delete.
21730 (wide_int_ext_for_comb): New.
21731 (aff_combination_const): Use widest_int instead of double_int.
21732 (aff_combination_scale): Likewise.
21733 (aff_combination_add_elt): Likewise.
21734 (aff_combination_constant_multiple_p): Likewise.
21735 (get_inner_reference_aff): Likewise.
21736 (aff_comb_cannot_overlap_p): Likewise.
21737 (aff_combination_zero_p): Use wide-int interfaces.
21738 * tree.c: Include tree.h.
21739 (init_ttree): Use make_int_cst.
21740 (tree_code_size): Removed code for INTEGER_CST case.
21741 (tree_size): Add INTEGER_CST case.
21742 (make_node_stat): Update comment.
21743 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21744 (build_int_cst_type): Use wide-int interfaces.
21745 (double_int_to_tree): Likewise.
21746 (double_int_fits_to_tree_p): Delete.
21747 (force_fit_type_double): Delete.
21748 (force_fit_type): New.
21749 (int_cst_hash_hash): Use wide-int interfaces.
21750 (int_cst_hash_eq): Likewise.
21751 (build_int_cst_wide): Delete.
21752 (wide_int_to_tree): New.
21753 (cache_integer_cst): Use wide-int interfaces.
21754 (build_low_bits_mask): Likewise.
21755 (cst_and_fits_in_hwi): Likewise.
21756 (real_value_from_int_cst): Likewise.
21757 (make_int_cst_stat): New.
21758 (integer_zerop): Use wide_int interfaces.
21759 (integer_onep): Likewise.
21760 (integer_all_onesp): Likewise.
21761 (integer_pow2p): Likewise.
21762 (integer_nonzerop): Likewise.
21763 (tree_log2): Likewise.
21764 (tree_floor_log2): Likewise.
21765 (tree_ctz): Likewise.
21766 (int_size_in_bytes): Likewise.
21767 (mem_ref_offset): Return an offset_int rather than a double_int.
21768 (build_type_attribute_qual_variant): Use wide_int interfaces.
21769 (type_hash_eq): Likewise
21770 (tree_int_cst_equal): Likewise.
21771 (tree_int_cst_lt): Delete.
21772 (tree_int_cst_compare): Likewise.
21773 (tree_fits_shwi_p): Use wide_int interfaces.
21774 (tree_fits_uhwi_p): Likewise.
21775 (tree_int_cst_sign_bit): Likewise.
21776 (tree_int_cst_sgn): Likewise.
21777 (tree_int_cst_min_precision): Take a signop rather than a bool.
21778 (simple_cst_equal): Use wide_int interfaces.
21779 (compare_tree_int): Likewise.
21780 (iterative_hash_expr): Likewise.
21781 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21782 INT_CST_LT.
21783 (get_type_static_bounds): Use wide_int interfaces.
21784 (tree_int_cst_elt_check_failed): New.
21785 (build_common_tree_nodes): Reordered to set prec before filling in
21786 value.
21787 (int_cst_value): Check cst_and_fits_in_hwi.
21788 (widest_int_cst_value): Use wide_int interfaces.
21789 (upper_bound_in_type): Likewise.
21790 (lower_bound_in_type): Likewise.
21791 (num_ending_zeros): Likewise.
21792 (drop_tree_overflow): Likewise.
21793 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21794 (gen_conditions_for_pow_cst_base): Likewise.
21795 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21796 (group_case_labels_stmt): Use wide-int interfaces.
21797 (verify_gimple_assign_binary): Likewise.
21798 (print_loop): Likewise.
21799 * tree-chrec.c (tree_fold_binomial): Likewise.
21800 * tree-core.h (struct tree_base): Add int_length.
21801 (struct tree_int_cst): Change rep of value.
21802 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21803 (dr_may_alias_p): Likewise.
21804 (max_stmt_executions_tree): Likewise.
21805 * tree.def (INTEGER_CST): Update comment.
21806 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21807 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21808 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21809 (dequeue_and_dump): Use wide-int interfaces.
21810 * tree.h: Include wide-int.h.
21811 (NULL_TREE): Moved to earlier loc in file.
21812 (TREE_INT_CST_ELT_CHECK): New.
21813 (tree_int_cst_elt_check_failed): New.
21814 (TYPE_SIGN): New.
21815 (TREE_INT_CST): Delete.
21816 (TREE_INT_CST_LOW): Use wide-int interfaces.
21817 (TREE_INT_CST_HIGH): Delete.
21818 (TREE_INT_CST_NUNITS): New.
21819 (TREE_INT_CST_EXT_NUNITS): Likewise.
21820 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21821 (TREE_INT_CST_ELT): Likewise.
21822 (INT_CST_LT): Delete.
21823 (tree_int_cst_elt_check): New (two forms).
21824 (type_code_size): Update comment.
21825 (make_int_cst_stat, make_int_cst): New.
21826 (tree_to_double_int): Delete.
21827 (double_int_fits_to_tree_p): Delete.
21828 (force_fit_type_double): Delete.
21829 (build_int_cstu): Replace with out-of-line function.
21830 (build_int_cst_wide): Delete.
21831 (tree_int_cst_lt): Define inline.
21832 (tree_int_cst_le): New.
21833 (tree_int_cst_compare): Define inline.
21834 (tree_int_cst_min_precision): Take a signop rather than a bool.
21835 (wi::int_traits <const_tree>): New.
21836 (wi::int_traits <tree>): New.
21837 (wi::extended_tree): New.
21838 (wi::int_traits <wi::extended_tree>): New.
21839 (wi::to_widest): New.
21840 (wi::to_offset): New.
21841 (wi::fits_to_tree_p): New.
21842 (wi::min_value): New.
21843 (wi::max_value): New.
21844 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21845 (copy_tree_body_r): Likewise.
21846 * tree-object-size.c (compute_object_offset): Likewise.
21847 (addr_object_size): Likewise.
21848 * tree-predcom.c: Include wide-int-print.h.
21849 (struct dref_d): Change type of offset to widest_int.
21850 (dump_dref): Call wide-int printer.
21851 (aff_combination_dr_offset): Use wide-int interfaces.
21852 (determine_offset): Take a widest_int pointer rather than a
21853 double_int pointer.
21854 (split_data_refs_to_components): Use wide-int interfaces.
21855 (suitable_component_p): Likewise.
21856 (order_drefs): Likewise.
21857 (add_ref_to_chain): Likewise.
21858 (valid_initializer_p): Likewise.
21859 (determine_roots_comp): Likewise.
21860 * tree-pretty-print.c: Include wide-int-print.h.
21861 (dump_generic_node): Use wide-int interfaces.
21862 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21863 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21864 (move_fixed_address_to_symbol): Likewise.
21865 (move_hint_to_base): Likewise.
21866 (move_pointer_to_base): Likewise.
21867 (move_variant_to_index): Likewise.
21868 (most_expensive_mult_to_index): Likewise.
21869 (addr_to_parts): Likewise.
21870 (copy_ref_info): Likewise.
21871 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21872 (indirect_refs_may_alias_p): Likewise.
21873 (stmt_kills_ref_p_1): Likewise.
21874 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21875 * tree-ssa-ccp.c: Update comment at top of file. Include
21876 wide-int-print.h.
21877 (struct prop_value_d): Change type of mask to widest_int.
21878 (extend_mask): New function.
21879 (dump_lattice_value): Use wide-int interfaces.
21880 (get_default_value): Likewise.
21881 (set_constant_value): Likewise.
21882 (set_value_varying): Likewise.
21883 (valid_lattice_transition): Likewise.
21884 (set_lattice_value): Likewise.
21885 (value_to_double_int): Delete.
21886 (value_to_wide_int): New.
21887 (get_value_from_alignment): Use wide-int interfaces.
21888 (get_value_for_expr): Likewise.
21889 (do_dbg_cnt): Likewise.
21890 (ccp_finalize): Likewise.
21891 (ccp_lattice_meet): Likewise.
21892 (bit_value_unop_1): Use widest_ints rather than double_ints.
21893 (bit_value_binop_1): Likewise.
21894 (bit_value_unop): Use wide-int interfaces.
21895 (bit_value_binop): Likewise.
21896 (bit_value_assume_aligned): Likewise.
21897 (evaluate_stmt): Likewise.
21898 (ccp_fold_stmt): Likewise.
21899 (visit_cond_stmt): Likewise.
21900 (ccp_visit_stmt): Likewise.
21901 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21902 (constant_pointer_difference): Likewise.
21903 (associate_pointerplus): Likewise.
21904 (combine_conversions): Likewise.
21905 * tree-ssa-loop.h: Include wide-int.h.
21906 (struct tree_niter_desc): Change type of max to widest_int.
21907 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21908 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21909 (remove_redundant_iv_tests): Likewise.
21910 (canonicalize_loop_induction_variables): Likewise.
21911 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21912 (constant_multiple_of): Take a widest_int pointer instead of
21913 a double_int pointer.
21914 (get_computation_aff): Use wide-int interfaces.
21915 (ptr_difference_cost): Likewise.
21916 (difference_cost): Likewise.
21917 (get_loop_invariant_expr_id): Likewise.
21918 (get_computation_cost_at): Likewise.
21919 (iv_elimination_compare_lt): Likewise.
21920 (may_eliminate_iv): Likewise.
21921 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21922 instead of double_int.
21923 (max_loop_iterations): Likewise.
21924 (max_stmt_executions): Likewise.
21925 (estimated_stmt_executions): Likewise.
21926 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21927 (split_to_var_and_offset): Use wide-int interfaces.
21928 (determine_value_range): Likewise.
21929 (bound_difference_of_offsetted_base): Likewise.
21930 (bounds_add): Take a widest_int instead of a double_int.
21931 (number_of_iterations_ne_max): Use wide-int interfaces.
21932 (number_of_iterations_ne): Likewise.
21933 (number_of_iterations_lt_to_ne): Likewise.
21934 (assert_loop_rolls_lt): Likewise.
21935 (number_of_iterations_lt): Likewise.
21936 (number_of_iterations_le): Likewise.
21937 (number_of_iterations_cond): Likewise.
21938 (number_of_iterations_exit): Likewise.
21939 (finite_loop_p): Likewise.
21940 (derive_constant_upper_bound_assign): Likewise.
21941 (derive_constant_upper_bound): Return a widest_int.
21942 (derive_constant_upper_bound_ops): Likewise.
21943 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21944 (record_estimate): Take a widest_int rather than a double_int.
21945 (record_nonwrapping_iv): Use wide-int interfaces.
21946 (double_int_cmp): Delete.
21947 (wide_int_cmp): New.
21948 (bound_index): Take a widest_int rather than a double_int.
21949 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21950 (maybe_lower_iteration_bound): Likewise.
21951 (estimate_numbers_of_iterations_loop): Likewise.
21952 (estimated_loop_iterations): Take a widest_int pointer than than
21953 a double_int pointer.
21954 (estimated_loop_iterations_int): Use wide-int interfaces.
21955 (max_loop_iterations): Take a widest_int pointer than than
21956 a double_int pointer.
21957 (max_loop_iterations_int): Use wide-int interfaces.
21958 (max_stmt_executions): Take a widest_int pointer than than
21959 a double_int pointer.
21960 (estimated_stmt_executions): Likewise.
21961 (n_of_executions_at_most): Use wide-int interfaces.
21962 (scev_probably_wraps_p): Likewise.
21963 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21964 to real_to_integer.
21965 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21966 interfaces.
21967 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21968 double_ints. Adjust for trailing_wide_ints <3> representation.
21969 (set_nonzero_bits): Likewise.
21970 (get_range_info): Return wide_ints rather than double_ints.
21971 Adjust for trailing_wide_ints <3> representation.
21972 (get_nonzero_bits): Likewise.
21973 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21974 representation.
21975 * tree-ssanames.h (struct range_info_def): Replace min, max and
21976 nonzero_bits with a trailing_wide_ints <3>.
21977 (set_range_info): Use wide_int_refs rather than double_ints.
21978 (set_nonzero_bits): Likewise.
21979 (get_range_info): Return wide_ints rather than double_ints.
21980 (get_nonzero_bits): Likewise.
21981 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21982 * tree-ssa-pre.c (phi_translate_1): Likewise.
21983 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21984 (acceptable_pow_call): Likewise.
21985 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21986 interfaces.
21987 (vn_reference_fold_indirect): Likewise.
21988 (vn_reference_maybe_forwprop_address): Likewise.
21989 (valueize_refs_1): Likewise.
21990 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21991 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21992 tree_int_cst_lt and tree_int_cst_le.
21993 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21994 interfaces.
21995 (streamer_alloc_tree): Likewise.
21996 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21997 (streamer_write_tree_header): Likewise.
21998 (streamer_write_integer_cst): Likewise.
21999 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22000 (build_constructors): Likewise.
22001 (array_value_type): Likewise.
22002 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22003 (vect_check_gather): Likewise.
22004 * tree-vect-generic.c (build_replicated_const): Likewise.
22005 (expand_vector_divmod): Likewise.
22006 * tree-vect-loop.c (vect_transform_loop): Likewise.
22007 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22008 (vect_do_peeling_for_alignment): Likewise.
22009 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22010 * tree-vrp.c: Include wide-int.h.
22011 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22012 (extract_range_from_assert): Use wide-int interfaces.
22013 (vrp_int_const_binop): Likewise.
22014 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22015 double_int pointers.
22016 (ranges_from_anti_range): Use wide-int interfaces.
22017 (quad_int_cmp): Delete.
22018 (quad_int_pair_sort): Likewise.
22019 (extract_range_from_binary_expr_1): Use wide-int interfaces.
22020 (extract_range_from_unary_expr_1): Likewise.
22021 (adjust_range_with_scev): Likewise.
22022 (masked_increment): Take and return wide_ints rather than double_ints.
22023 (register_edge_assert_for_2): Use wide-int interfaces.
22024 (check_array_ref): Likewise.
22025 (search_for_addr_array): Likewise.
22026 (maybe_set_nonzero_bits): Likewise.
22027 (union_ranges): Pass an integer of the correct type instead of
22028 using integer_one_node.
22029 (intersect_ranges): Likewise.
22030 (simplify_truth_ops_using_ranges): Likewise.
22031 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22032 (range_fits_type_p): Likewise.
22033 (simplify_cond_using_ranges): Likewise. Take a signop rather than
22034 a bool.
22035 (simplify_conversion_using_ranges): Use wide-int interfaces.
22036 (simplify_float_conversion_using_ranges): Likewise.
22037 (vrp_finalize): Likewise.
22038 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22039 (gimple_stringops_transform): Likewise.
22040 * varasm.c (decode_addr_const): Likewise.
22041 (const_hash_1): Likewise.
22042 (const_rtx_hash_1): Likewise
22043 (output_constant): Likewise.
22044 (array_size_for_constructor): Likewise.
22045 (output_constructor_regular_field): Likewise.
22046 (output_constructor_bitfield): Likewise.
22047 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22048 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22049 GENERATOR_FILEs.
22050 * gencheck.c: Define BITS_PER_UNIT.
22051 * wide-int.cc: New.
22052 * wide-int.h: New.
22053 * wide-int-print.cc: New.
22054 * wide-int-print.h: New.
22055
22056 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22057
22058 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22059
22060 2014-05-06 Richard Biener <rguenther@suse.de>
22061
22062 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22063 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22064 (TODO_verify_all): Adjust.
22065 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22066 TODO_verify_stmts and TODO_verify_rtl_sharing.
22067 * bb-reorder.c: Likewise.
22068 * cfgexpand.c: Likewise.
22069 * cprop.c: Likewise.
22070 * cse.c: Likewise.
22071 * function.c: Likewise.
22072 * fwprop.c: Likewise.
22073 * gcse.c: Likewise.
22074 * gimple-ssa-isolate-paths.c: Likewise.
22075 * gimple-ssa-strength-reduction.c: Likewise.
22076 * ipa-split.c: Likewise.
22077 * loop-init.c: Likewise.
22078 * loop-unroll.c: Likewise.
22079 * lower-subreg.c: Likewise.
22080 * modulo-sched.c: Likewise.
22081 * postreload-gcse.c: Likewise.
22082 * predict.c: Likewise.
22083 * recog.c: Likewise.
22084 * sched-rgn.c: Likewise.
22085 * store-motion.c: Likewise.
22086 * tracer.c: Likewise.
22087 * trans-mem.c: Likewise.
22088 * tree-call-cdce.c: Likewise.
22089 * tree-cfg.c: Likewise.
22090 * tree-cfgcleanup.c: Likewise.
22091 * tree-complex.c: Likewise.
22092 * tree-eh.c: Likewise.
22093 * tree-emutls.c: Likewise.
22094 * tree-if-conv.c: Likewise.
22095 * tree-into-ssa.c: Likewise.
22096 * tree-loop-distribution.c: Likewise.
22097 * tree-object-size.c: Likewise.
22098 * tree-parloops.c: Likewise.
22099 * tree-pass.h: Likewise.
22100 * tree-sra.c: Likewise.
22101 * tree-ssa-ccp.c: Likewise.
22102 * tree-ssa-copy.c: Likewise.
22103 * tree-ssa-copyrename.c: Likewise.
22104 * tree-ssa-dce.c: Likewise.
22105 * tree-ssa-dom.c: Likewise.
22106 * tree-ssa-dse.c: Likewise.
22107 * tree-ssa-forwprop.c: Likewise.
22108 * tree-ssa-ifcombine.c: Likewise.
22109 * tree-ssa-loop-ch.c: Likewise.
22110 * tree-ssa-loop-ivcanon.c: Likewise.
22111 * tree-ssa-loop.c: Likewise.
22112 * tree-ssa-math-opts.c: Likewise.
22113 * tree-ssa-phiopt.c: Likewise.
22114 * tree-ssa-phiprop.c: Likewise.
22115 * tree-ssa-pre.c: Likewise.
22116 * tree-ssa-reassoc.c: Likewise.
22117 * tree-ssa-sink.c: Likewise.
22118 * tree-ssa-strlen.c: Likewise.
22119 * tree-ssa-tail-merge.c: Likewise.
22120 * tree-ssa-uncprop.c: Likewise.
22121 * tree-switch-conversion.c: Likewise.
22122 * tree-tailcall.c: Likewise.
22123 * tree-vect-generic.c: Likewise.
22124 * tree-vectorizer.c: Likewise.
22125 * tree-vrp.c: Likewise.
22126 * tsan.c: Likewise.
22127 * var-tracking.c: Likewise.
22128 * bt-load.c: Likewise.
22129 * cfgcleanup.c: Likewise.
22130 * combine-stack-adj.c: Likewise.
22131 * combine.c: Likewise.
22132 * compare-elim.c: Likewise.
22133 * config/epiphany/resolve-sw-modes.c: Likewise.
22134 * config/i386/i386.c: Likewise.
22135 * config/mips/mips.c: Likewise.
22136 * config/s390/s390.c: Likewise.
22137 * config/sh/sh_treg_combine.cc: Likewise.
22138 * config/sparc/sparc.c: Likewise.
22139 * dce.c: Likewise.
22140 * dse.c: Likewise.
22141 * final.c: Likewise.
22142 * ifcvt.c: Likewise.
22143 * mode-switching.c: Likewise.
22144 * passes.c: Likewise.
22145 * postreload.c: Likewise.
22146 * ree.c: Likewise.
22147 * reg-stack.c: Likewise.
22148 * regcprop.c: Likewise.
22149 * regrename.c: Likewise.
22150 * web.c: Likewise.
22151
22152 2014-05-06 Richard Biener <rguenther@suse.de>
22153
22154 PR middle-end/61070
22155 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22156 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22157
22158 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22159
22160 PR ipa/60965
22161 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22162
22163 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22164 Tom de Vries <tom@codesourcery.com>
22165
22166 * target.def (call_fusage_contains_non_callee_clobbers): New
22167 DEFHOOKPOD.
22168 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22169 Hooks to @menu.
22170 (@node Miscellaneous Register Hooks): New node.
22171 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22172 * doc/tm.texi: Regenerate.
22173
22174 2014-05-05 Marek Polacek <polacek@redhat.com>
22175
22176 PR driver/61065
22177 * opts.c (common_handle_option): Call error_at instead of warning_at.
22178
22179 2014-05-05 Richard Biener <rguenther@suse.de>
22180
22181 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22182 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22183 under the TODO_verify_il umbrella.
22184
22185 2014-05-05 Richard Biener <rguenther@suse.de>
22186
22187 * passes.c (execute_function_todo): Move TODO_verify_flow under
22188 the TODO_verify_ul umbrella.
22189
22190 2014-05-05 Richard Biener <rguenther@suse.de>
22191
22192 PR middle-end/61010
22193 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22194 X & CST away from a CST that is the mask of a mode.
22195
22196 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22197
22198 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22199 int argument to enum machine_mode.
22200 (picochip_class_max_nregs): Ditto.
22201 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22202 (picochip_class_max_nregs): Ditto.
22203
22204 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22205
22206 * target.def: Add new target hook.
22207 * doc/tm.texi: Regenerate.
22208 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22209 * targhooks.c (default_keep_leaf_when_profiled): New function.
22210
22211 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22212 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22213
22214 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22215
22216 PR tree-optimization/60363
22217 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22218 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22219 (update_destination_phis): New parameter.
22220 (create_edge_and_update_destination_phis): Ditto.
22221 (ssa_fix_duplicate_block_edges): Pass new arguments.
22222 (thread_single_edge): Ditto.
22223
22224 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22225
22226 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22227 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22228 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22229 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22230 Use RS6000_BTM_HARD_FLOAT.
22231 (BU_MISC_2): Likewise.
22232 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22233 RS6000_BTM_HARD_FLOAT.
22234 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22235 is explicitly used.
22236 (rs6000_invalid_builtin): Add hard floating builtin support.
22237 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22238 hard float builtins.
22239 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22240
22241 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22242
22243 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22244 Add missing function* argument.
22245
22246 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22247
22248 * lra-constraints.c (valid_address_p): Move earlier in file.
22249 Add a constraint argument to the address_info version.
22250 (satisfies_memory_constraint_p): New function.
22251 (satisfies_address_constraint_p): Likewise.
22252 (process_alt_operands, curr_insn_transform): Use them.
22253 (process_address): Pass the constraint to valid_address_p when
22254 checking address operands.
22255
22256 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22257
22258 * config/mips/mips.c (mips_isa_rev): New variable.
22259 (mips_set_architecture): Set it.
22260 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22261 from mips_isa_rev.
22262 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22263 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22264 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22265 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22266 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22267 conditions in terms of mips_isa_rev.
22268 (mips_isa_rev): Declare.
22269
22270 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22271
22272 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22273 (prob_unlikely, prob_likely): Make variables const.
22274
22275 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22276
22277 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22278
22279 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22280
22281 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22282
22283 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22284
22285 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22286 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22287 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22288 functions.
22289 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22290 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22291 sh_pass_in_reg_p.
22292 Replace usage of ROUND_REG with sh_round_reg.
22293 Use CEIL instead of ROUND_ADVANCE.
22294
22295 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22296
22297 PR target/61026
22298 * config/sh/sh.c: Include stdlib headers before everything else.
22299
22300 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22301
22302 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22303 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22304 (gimplify_adjust_omp_clauses): Simd region is never
22305 directly nested in combined parallel. Instead, for linear
22306 with copyin/copyout, if in combined for simd loop, make decl
22307 firstprivate/lastprivate on OMP_FOR.
22308 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22309 expand_omp_for_static_chunk): When setting endvar, also set
22310 fd->loop.v to the same value.
22311
22312 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22313
22314 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22315
22316 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22317
22318 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22319 expression.
22320
22321 2014-05-02 Marek Polacek <polacek@redhat.com>
22322
22323 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22324
22325 2014-05-02 Kito Cheng <kito@0xlab.org>
22326
22327 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22328 to a C expression marco.
22329 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22330 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22331 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22332 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22333 HONOR_REG_ALLOC_ORDER.
22334 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22335
22336 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22337
22338 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22339
22340 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22341
22342 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22343
22344 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22345
22346 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22347 (convert_scalar_cond_reduction): Likewise.
22348 (predicate_scalar_phi): Add recognition and transformation
22349 of simple conditioanl reduction to be vectorizable.
22350
22351 2014-05-01 Marek Polacek <polacek@redhat.com>
22352
22353 PR c/43245
22354 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22355
22356 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22357
22358 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22359 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22360 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22361 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22362 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22363 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22364 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22365 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22366
22367 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22368
22369 * config/arc/arc.opt (mlra): Move comment above option name
22370 to avoid mis-parsing as language options.
22371
22372 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22373
22374 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22375 * config/sol2.h: ... here.
22376 * config/sol2-10.h: Remove.
22377
22378 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22379 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22380 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22381 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22382 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22383 * config/sol2.h: ... here.
22384 (SECTION_NAME_FORMAT): Don't redefine.
22385 (STARTFILE_ARCH32_SPEC): Rename to ...
22386 (STARTFILE_ARCH_SPEC): ... this.
22387 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22388 * config/sparc/sol2.h: ... here.
22389 (SECTION_NAME_FORMAT): Don't undef.
22390 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22391 (SUBTARGET_EXTRA_SPECS): Remove.
22392 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22393
22394 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22395 (MD_STARTFILE_PREFIX): Remove.
22396 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22397 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22398 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22399 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22400 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22401 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22402 * config/i386/sol2.h: ... here.
22403 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22404 * config/i386/sol2-bi.h: Remove.
22405 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22406 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22407
22408 * config/i386/t-sol2-64: Rename to ...
22409 * config/i386/t-sol2: ... this.
22410 * config/sparc/t-sol2-64: Rename to ...
22411 * config/sparc/t-sol2: ... this.
22412
22413 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22414 sol2_tm_file_head, sol2_tm_file_tail.
22415 Include ${cpu_type}/sol2.h before sol2.h.
22416 Remove sol2-10.h.
22417 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22418 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22419 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22420 Reflect i386/t-sol2-64 renaming.
22421 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22422 Reflect sparc/t-sol2-64 renaming.
22423
22424 2014-04-30 Richard Biener <rguenther@suse.de>
22425
22426 * passes.c (execute_function_todo): Move TODO_verify_stmts
22427 and TODO_verify_ssa under the TODO_verify_il umbrella.
22428 * tree-ssa.h (verify_ssa): Adjust prototype.
22429 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22430 we should verify SSA operands.
22431 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22432 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22433 whether we should verify whether not throwing stmts have EH info.
22434 * graphite-scop-detection.c (create_sese_edges): Adjust.
22435 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22436 * tree-eh.c (lower_try_finally_switch): Do not add the
22437 default case label twice.
22438
22439 2014-04-30 Marek Polacek <polacek@redhat.com>
22440
22441 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22442 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22443 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22444 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22445
22446 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22447
22448 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22449 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22450 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22451 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22452 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22453 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22454 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22455 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22456
22457 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22458
22459 * tree-cfg.c (dump_function_to_file): Dump the return type of
22460 functions, in a line to itself before the function body, mimicking
22461 the layout of a C function.
22462
22463 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22464
22465 PR tree-optimization/60971
22466 * tree-tailcall.c (process_assignment): Reject conversions which
22467 reduce precision.
22468
22469 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22470
22471 * calls.c (initialize_argument_information): Always treat
22472 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22473 (expand_call): Likewise.
22474 (emit_library_call_calue_1): Likewise.
22475 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22476 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22477 code accordingly.
22478
22479 2014-04-29 Nick Clifton <nickc@redhat.com>
22480
22481 * config/msp430/msp430.md (umulsidi): Fix typo.
22482 (mulhisi3): Enable even inside interrupt handlers.
22483 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22484 bigger return address pushed in large mode.
22485
22486 2014-04-29 Nick Clifton <nickc@redhat.com>
22487
22488 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22489 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22490 available modes.
22491 * config/m32r/m32r.c (init_reg_tables): Likewise.
22492 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22493 enum to hold the modes.
22494
22495 2014-04-29 Richard Biener <rguenther@suse.de>
22496
22497 * dominance.c (free_dominance_info): Add overload with
22498 function parameter.
22499 (dom_info_state): Likewise.
22500 (dom_info_available_p): Likewise.
22501 * basic-block.h (free_dominance_info, dom_info_state,
22502 dom_info_available_p): Declare overloads.
22503 * passes.c (execute_function_todo): Verify that verifiers
22504 don't change dominator info state. Drop dominator info
22505 for IPA pass invocations.
22506 * cgraph.c (release_function_body): Restore asserts that
22507 dominator information is released.
22508
22509 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22510
22511 * doc/invoke.texi: Fix typo.
22512 * tree-vrp.c: Fix typos.
22513 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22514
22515 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22516
22517 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22518
22519 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22520
22521 * config/aarch64/aarch64-builtins.c
22522 (aarch64_types_storestruct_lane_qualifiers): New.
22523 (TYPES_STORESTRUCT_LANE): Likewise.
22524 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22525 (st3_lane): Likewise.
22526 (st4_lane): Likewise.
22527 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22528 (vec_store_lanesci_lane<mode>): Likewise.
22529 (vec_store_lanesxi_lane<mode>): Likewise.
22530 (aarch64_st2_lane<VQ:mode>): Likewise.
22531 (aarch64_st3_lane<VQ:mode>): Likewise.
22532 (aarch64_st4_lane<VQ:mode>): Likewise.
22533 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22534 * config/aarch64/arm_neon.h
22535 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22536 use new macro arguments.
22537 (__ST3_LANE_FUNC): Likewise.
22538 (__ST4_LANE_FUNC): Likewise.
22539 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22540 (V_THREE_ELEM): Likewise.
22541 (V_FOUR_ELEM): Likewise.
22542
22543 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22544
22545 * doc/gimple.texi: Replace the description of the now-defunct
22546 union gimple_statement_d with a diagram showing the
22547 gimple_statement_base class hierarchy and its relationships to
22548 the GSS_ and GIMPLE_ enums.
22549
22550 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22551
22552 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22553 * config/aarch64/aarch64.c
22554 (aarch64_cannot_change_mode_class): Weaken conditions.
22555 (aarch64_modes_tieable_p): New.
22556 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22557
22558 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22559
22560 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22561 (loadsync_<mode>): Change mode.
22562 (load_quadpti, store_quadpti): New.
22563 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22564 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22565
22566 2014-04-28 Martin Jambor <mjambor@suse.cz>
22567
22568 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22569 same alias type as the original statement.
22570 (subreplacement_assignment_data): New type.
22571 (handle_unscalarized_data_in_subtree): New type of parameter,
22572 generate new memory accesses with same alias type as the original
22573 statement.
22574 (load_assign_lhs_subreplacements): Likewise.
22575 (sra_modify_constructor_assign): Generate new memory accesses with
22576 same alias type as the original statement.
22577
22578 2014-04-28 Richard Biener <rguenther@suse.de>
22579
22580 * tree-pass.h (TODO_verify_il): Define.
22581 (TODO_verify_all): Complete properly.
22582 * passes.c (execute_function_todo): Move existing loop-closed
22583 SSA verification under TODO_verify_il.
22584 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22585 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22586 Fix tree sharing issue.
22587
22588 2014-04-28 Richard Biener <rguenther@suse.de>
22589
22590 PR middle-end/60092
22591 * builtins.def (DEF_C11_BUILTIN): Add.
22592 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22593 * coretypes.h (enum function_class): Add function_c11_misc.
22594 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22595 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22596 (call_may_clobber_ref_p_1): Likewise.
22597 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22598 (mark_all_reaching_defs_necessary_1): Likewise.
22599 (propagate_necessity): Likewise.
22600 (eliminate_unnecessary_stmts): Likewise.
22601 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22602
22603 2014-04-28 Richard Biener <rguenther@suse.de>
22604
22605 * tree-vrp.c (vrp_var_may_overflow): Remove.
22606 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22607 with overflow immediately bump to one before that value and
22608 let iteration figure out overflow status.
22609
22610 2014-04-28 Richard Biener <rguenther@suse.de>
22611
22612 * configure.ac: Do valgrind header checks unconditionally.
22613 Add --enable-valgrind-annotations.
22614 * system.h: Guard valgrind header inclusion with
22615 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22616 * alloc-pool.c (pool_alloc, pool_free): Use
22617 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22618 to guard possibly dead code.
22619 * config.in: Regenerated.
22620 * configure: Likewise.
22621
22622 2014-04-28 Jeff Law <law@redhat.com>
22623
22624 PR tree-optimization/60902
22625 * tree-ssa-threadedge.c
22626 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22627 over real defs when invalidating outputs from statements that do not
22628 produce useful outputs for threading.
22629
22630 2014-04-28 Richard Biener <rguenther@suse.de>
22631
22632 PR tree-optimization/60979
22633 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22634 SCOPs that end in a block with a successor with abnormal
22635 predecessors.
22636
22637 2014-04-28 Richard Biener <rguenther@suse.de>
22638
22639 * tree-pass.h (execute_pass_list): Adjust prototype.
22640 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22641 (do_per_function): Change callback signature, push all actual
22642 work to the callbals.
22643 (do_per_function_toporder): Likewise.
22644 (execute_function_dump): Adjust.
22645 (execute_function_todo): Likewise.
22646 (clear_last_verified): Likewise.
22647 (verify_curr_properties): Likewise.
22648 (update_properties_after_pass): Likewise.
22649 (execute_pass_list_1): Split out from ...
22650 (execute_pass_list): ... here. Adjust.
22651 (execute_ipa_pass_list): Likewise.
22652 * cgraphunit.c (cgraph_add_new_function): Adjust.
22653 (analyze_function): Likewise.
22654 (expand_function): Likewise.
22655 * cgraph.c (release_function_body): Free dominance info
22656 here instead of asserting it was magically freed elsewhere.
22657
22658 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22659
22660 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22661 * configure: Regenerate.
22662 * config/sparc/sparc.opt (muser-mode): New option.
22663 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22664 for LEON3.
22665 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22666 * doc/invoke.texi (SPARC options): Document -muser-mode.
22667
22668 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22669
22670 * cselib.c (find_slot_memmode): Delete.
22671 (cselib_hasher): Change compare_type to a struct.
22672 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22673 constants.
22674 (preserve_constants_and_equivs): Adjust for new compare_type.
22675 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22676 (wrap_constant): Delete.
22677 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22678
22679 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22680
22681 * doc/install.texi (Building with profile feedback): Remove
22682 outdated sentence.
22683
22684 2014-04-26 Tom de Vries <tom@codesourcery.com>
22685
22686 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22687 array accesses.
22688
22689 2014-04-25 Cary Coutant <ccoutant@google.com>
22690
22691 PR debug/60929
22692 * dwarf2out.c (should_move_die_to_comdat): A type definition
22693 can contain a subprogram definition, but don't move it to a
22694 comdat unit.
22695 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22696 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22697 from original DIE.
22698 (clone_tree_hash): Rename to...
22699 (clone_tree_partial): ...this; change callers. Copy
22700 DW_TAG_subprogram DIEs as declarations.
22701 (copy_decls_walk): Don't copy children of a declaration into a
22702 type unit.
22703
22704 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22705
22706 PR target/60969
22707 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22708 alternative 12.
22709
22710 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22711
22712 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22713 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22714 reg for long_call.
22715 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22716 restriction.
22717
22718 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22719
22720 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22721
22722 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22723
22724 PR tree-optimization/60930
22725 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22726 creating a multiply candidate by folding two constant
22727 multiplicands when the result overflows.
22728
22729 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22730
22731 PR tree-optimization/60960
22732 * tree-vect-generic.c (expand_vector_operation): Only call
22733 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22734
22735 2014-04-25 Tom de Vries <tom@codesourcery.com>
22736
22737 * expr.c (clobber_reg_mode): New function.
22738 * expr.h (clobber_reg): New function.
22739
22740 2014-04-25 Tom de Vries <tom@codesourcery.com>
22741
22742 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22743 clobbers.
22744
22745 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22746 Tom de Vries <tom@codesourcery.com>
22747
22748 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22749 handle.
22750 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22751 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22752 new argument to find_all_hard_reg_sets call.
22753
22754 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22755
22756 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22757 Use HOST_WIDE_INT_C for mask literal.
22758 (aarch_rev16_shleft_mask_imm_p): Likewise.
22759
22760 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22761
22762 PR target/60941
22763 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22764
22765 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22766
22767 PR preprocessor/56540
22768 * config/i386/i386-c.c (ix86_target_macros): Define
22769 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22770
22771 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22772
22773 * configure.ac (tga_func): Remove.
22774 (LIB_TLS_SPEC): Remove.
22775 * configure: Regenerate.
22776 * config.in: Regenerate.
22777 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22778
22779 2014-04-25 Richard Biener <rguenther@suse.de>
22780
22781 PR ipa/60912
22782 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22783 call stmt use/clobber sets during stmt walk instead of
22784 walking the possibly incomplete set of caller edges.
22785
22786 2014-04-25 Richard Biener <rguenther@suse.de>
22787
22788 PR ipa/60911
22789 * passes.c (apply_ipa_transforms): Inline into only caller ...
22790 (execute_one_pass): ... here. Properly bring in function
22791 bodies for nodes we want to apply IPA transforms to.
22792
22793 2014-04-24 Cong Hou <congh@google.com>
22794
22795 PR tree-optimization/60896
22796 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22797 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22798 (vect_mark_pattern_stmts): Set the def type of all statements in
22799 PATTERN_DEF_SEQ as vect_internal_def.
22800
22801 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22802
22803 * doc/extend.texi (PowerPC Built-in Functions): Document new
22804 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22805 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22806
22807 * config/rs6000/predicates.md (const_0_to_3_operand): New
22808 predicate to match 0..3 integer constants.
22809
22810 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22811 to support adding miscellaneous builtin functions.
22812 (BU_DFP_MISC_2): Likewise.
22813 (BU_P7_MISC_1): Likewise.
22814 (BU_P7_MISC_2): Likewise.
22815 (BU_P8V_MISC_3): Likewise.
22816 (BU_MISC_1): Likewise.
22817 (BU_MISC_2): Likewise.
22818 (DIVWE): Add extended divide builtin functions.
22819 (DIVWEO): Likewise.
22820 (DIVWEU): Likewise.
22821 (DIVWEUO): Likewise.
22822 (DIVDE): Likewise.
22823 (DIVDEO): Likewise.
22824 (DIVDEU): Likewise.
22825 (DIVDEUO): Likewise.
22826 (DXEX): Add decimal floating-point builtin functions.
22827 (DXEXQ): Likewise.
22828 (DDEDPD): Likewise.
22829 (DDEDPDQ): Likewise.
22830 (DENBCD): Likewise.
22831 (DENBCDQ): Likewise.
22832 (DIEX): Likewise.
22833 (DIEXQ): Likewise.
22834 (DSCLI): Likewise.
22835 (DSCLIQ): Likewise.
22836 (DSCRI): Likewise.
22837 (DSCRIQ): Likewise.
22838 (CDTBCD): Add new BCD builtin functions.
22839 (CBCDTD): Likewise.
22840 (ADDG6S): Likewise.
22841 (BCDADD): Likewise.
22842 (BCDADD_LT): Likewise.
22843 (BCDADD_EQ): Likewise.
22844 (BCDADD_GT): Likewise.
22845 (BCDADD_OV): Likewise.
22846 (BCDSUB): Likewise.
22847 (BCDSUB_LT): Likewise.
22848 (BCDSUB_EQ): Likewise.
22849 (BCDSUB_GT): Likewise.
22850 (BCDSUB_OV): Likewise.
22851 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22852 (UNPACK_TD): Likewise.
22853 (PACK_TF): Likewise.
22854 (UNPACK_TF): Likewise.
22855 (UNPACK_TF_0): Likewise.
22856 (UNPACK_TF_1): Likewise.
22857 (PACK_V1TI): Likewise.
22858 (UNPACK_V1TI): Likewise.
22859
22860 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22861 support for decimal floating point builtin functions.
22862 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22863 functions that take constant arguments.
22864 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22865 (rs6000_init_builtins): Setup long double, _Decimal64, and
22866 _Decimal128 types for new builtin functions.
22867 (builtin_function_type): Set the unsigned flags appropriately for
22868 the new builtin functions.
22869 (rs6000_opt_masks): Add support for decimal floating point builtin
22870 functions.
22871
22872 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22873 floating point builtin functions.
22874 (RS6000_BTM_COMMON): Likewise.
22875 (RS6000_BTI_long_double): Likewise.
22876 (RS6000_BTI_dfloat64): Likewise.
22877 (RS6000_BTI_dfloat128): Likewise.
22878 (long_double_type_internal_node): Likewise.
22879 (dfloat64_type_internal_node): Likewise.
22880 (dfloat128_type_internal_node): Likewise.
22881
22882 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22883 2.07 bcd arithmetic instructions.
22884 (UNSPEC_BCDSUB): Likewise.
22885 (UNSPEC_BCD_OVERFLOW): Likewise.
22886 (UNSPEC_BCD_ADD_SUB): Likewise.
22887 (bcd_add_sub): Likewise.
22888 (BCD_TEST): Likewise.
22889 (bcd<bcd_add_sub>): Likewise.
22890 (bcd<bcd_add_sub>_test): Likewise.
22891 (bcd<bcd_add_sub>_test2): Likewise.
22892 (bcd<bcd_add_sub>_<code>): Likewise.
22893 (peephole2 for combined bcd ops): Likewise.
22894
22895 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22896 decimal floating point builtin functions.
22897 (UNSPEC_DENBCD): Likewise.
22898 (UNSPEC_DXEX): Likewise.
22899 (UNSPEC_DIEX): Likewise.
22900 (UNSPEC_DSCLI): Likewise.
22901 (UNSPEC_DSCRI): Likewise.
22902 (D64_D128): Likewise.
22903 (dfp_suffix): Likewise.
22904 (dfp_ddedpd_<mode>): Likewise.
22905 (dfp_denbcd_<mode>): Likewise.
22906 (dfp_dxex_<mode>): Likewise.
22907 (dfp_diex_<mode>): Likewise.
22908 (dfp_dscli_<mode>): Likewise.
22909 (dfp_dscri_<mode>): Likewise.
22910
22911 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22912 builtin functions.
22913 (UNSPEC_CDTBCD): Likewise.
22914 (UNSPEC_CBCDTD): Likewise.
22915 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22916 (UNSPEC_DIVEO): Likewise.
22917 (UNSPEC_DIVEU): Likewise.
22918 (UNSPEC_DIVEUO): Likewise.
22919 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22920 pack/unpack 128-bit types.
22921 (UNSPEC_PACK_128BIT): Likewise.
22922 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22923 (udiv<mode>3): Use idiv_ldiv mode attribute.
22924 (div<mode>3): Likewise.
22925 (addg6s): Add new BCD builtin functions.
22926 (cdtbcd): Likewise.
22927 (cbcdtd): Likewise.
22928 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22929 (div_extend): Likewise.
22930 (div<div_extend>_<mode>"): Likewise.
22931 (FP128_64): Add support for new builtin functions to pack/unpack
22932 128-bit types.
22933 (unpack<mode>): Likewise.
22934 (unpacktf_0): Likewise.
22935 (unpacktf_1): Likewise.
22936 (unpack<mode>_dm): Likewise.
22937 (unpack<mode>_nodm): Likewise.
22938 (pack<mode>): Likewise.
22939 (unpackv1ti): Likewise.
22940 (packv1ti): Likewise.
22941
22942 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22943
22944 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22945 is disabled.
22946
22947 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22948
22949 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22950 * gimplify.c (omp_is_private): Change last argument's type to int.
22951 Only diagnose lastprivate if the simd argument is 1, only diagnose
22952 linear if the simd argument is 2.
22953 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22954 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22955 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22956 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22957 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22958 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22959 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22960 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22961 * tree-nested.c (convert_nonlocal_omp_clauses,
22962 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22963
22964 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22965
22966 PR target/60822
22967 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22968 operand 1.
22969
22970 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22971
22972 * flag-types.h (enum ivar_visibility): Add.
22973
22974 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22975
22976 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22977 function * argument.
22978
22979 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22980
22981 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22982
22983 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22984 Tom de Vries <tom@codesourcery.com>
22985
22986 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22987 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22988 reg-note.
22989 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22990 * emit-rtl.c (try_split): Same.
22991
22992 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22993 Tom de Vries <tom@codesourcery.com>
22994
22995 * common.opt (fuse-caller-save): New option.
22996
22997 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22998
22999 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23000 elements for big-endian.
23001
23002 2014-04-24 Richard Biener <rguenther@suse.de>
23003
23004 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23005 during TER and instead use the sepops interface for expanding
23006 non-GIMPLE_SINGLE_RHS.
23007
23008 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23009
23010 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23011 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23012
23013 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23014
23015 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23016 assembler 64-bit option.
23017 * configure: Regenerate.
23018
23019 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23020
23021 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23022 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23023 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23024 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23025 (TARGET_CRYPTO): Take TARGET_SIMD into account.
23026
23027 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23028
23029 * config/aarch64/aarch64-builtins.c
23030 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23031 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23032 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23033 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23034 builtins.
23035 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23036 (Vrevsuff): New mode attribute.
23037
23038 2014-04-24 Terry Guo <terry.guo@arm.com>
23039
23040 * config/arm/arm.h (machine_function): Define variable
23041 after_arm_reorg here.
23042 * config/arm/arm.c (after_arm_reorg): Remove the definition.
23043 (arm_split_constant): Update the way to access variable
23044 after_arm_reorg.
23045 (arm_reorg): Ditto.
23046 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23047
23048 2014-04-23 Tom de Vries <tom@codesourcery.com>
23049
23050 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23051
23052 2014-04-23 David Malcolm <dmalcolm@redhat.com>
23053
23054 * is-a.h: Update comments to reflect the following changes to the
23055 "pointerness" of the API, making the template parameter match the
23056 return type, allowing use of is-a.h with typedefs of pointers.
23057 (is_a_helper::cast): Return a T rather then a pointer to a T, so
23058 that the return type matches the parameter to the is_a_helper.
23059 (as_a): Likewise.
23060 (dyn_cast): Likewise.
23061
23062 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23063 pointer from the is-a.h API.
23064
23065 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23066 (is_a_helper <cgraph_node *>::test): ...this, matching change to
23067 is-a.h API.
23068 (is_a_helper <varpool_node>::test): Likewise, convert to...
23069 (is_a_helper <varpool_node *>::test): ...this.
23070
23071 (varpool_first_variable): Update for removal of implicit pointer
23072 from the is-a.h API.
23073 (varpool_next_variable): Likewise.
23074 (varpool_first_static_initializer): Likewise.
23075 (varpool_next_static_initializer): Likewise.
23076 (varpool_first_defined_variable): Likewise.
23077 (varpool_next_defined_variable): Likewise.
23078 (cgraph_first_defined_function): Likewise.
23079 (cgraph_next_defined_function): Likewise.
23080 (cgraph_first_function): Likewise.
23081 (cgraph_next_function): Likewise.
23082 (cgraph_first_function_with_gimple_body): Likewise.
23083 (cgraph_next_function_with_gimple_body): Likewise.
23084 (cgraph_alias_target): Likewise.
23085 (varpool_alias_target): Likewise.
23086 (cgraph_function_or_thunk_node): Likewise.
23087 (varpool_variable_node): Likewise.
23088 (symtab_real_symbol_p): Likewise.
23089 * cgraphunit.c (referred_to_p): Likewise.
23090 (analyze_functions): Likewise.
23091 (handle_alias_pairs): Likewise.
23092 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23093 * gimple-ssa.h (gimple_vuse_op): Likewise.
23094 (gimple_vdef_op): Likewise.
23095 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23096 * gimple.c (gimple_build_asm_1): Likewise.
23097 (gimple_build_try): Likewise.
23098 (gimple_build_resx): Likewise.
23099 (gimple_build_eh_dispatch): Likewise.
23100 (gimple_build_omp_for): Likewise.
23101 (gimple_omp_for_set_clauses): Likewise.
23102
23103 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23104 (is_a_helper <gimple_statement_asm *>::test): ...this.
23105 (is_a_helper <gimple_statement_bind>::test): Convert to...
23106 (is_a_helper <gimple_statement_bind *>::test): ...this.
23107 (is_a_helper <gimple_statement_call>::test): Convert to...
23108 (is_a_helper <gimple_statement_call *>::test): ...this.
23109 (is_a_helper <gimple_statement_catch>::test): Convert to...
23110 (is_a_helper <gimple_statement_catch *>::test): ...this.
23111 (is_a_helper <gimple_statement_resx>::test): Convert to...
23112 (is_a_helper <gimple_statement_resx *>::test): ...this.
23113 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23114 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23115 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23116 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23117 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23118 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23119 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23120 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23121 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23122 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23123 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23124 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23125 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23126 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23127 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23128 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23129 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23130 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23131 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23132 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23133 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23134 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23135 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23136 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23137 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23138 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23139 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23140 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23141 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23142 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23143 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23144 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23145 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23146 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23147 (is_a_helper <gimple_statement_phi>::test): Convert to...
23148 (is_a_helper <gimple_statement_phi *>::test): ...this.
23149 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23150 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23151 (is_a_helper <gimple_statement_try>::test): Convert to...
23152 (is_a_helper <gimple_statement_try *>::test): ...this.
23153 (is_a_helper <gimple_statement_wce>::test): Convert to...
23154 (is_a_helper <gimple_statement_wce *>::test): ...this.
23155 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23156 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23157 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23158 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23159 (is_a_helper <const gimple_statement_call>::test): Convert to...
23160 (is_a_helper <const gimple_statement_call *>::test): ...this.
23161 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23162 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23163 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23164 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23165 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23166 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23167 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23168 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23169 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23170 Convert to...
23171 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23172 ...this.
23173 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23174 Convert to...
23175 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23176 ...this.
23177 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23178 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23179 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23180 to...
23181 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23182 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23183 to...
23184 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23185 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23186 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23187 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23188 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23189 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23190 to...
23191 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23192 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23193 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23194 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23195 to...
23196 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23197 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23198 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23199 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23200 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23201 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23202 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23203 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23204 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23205 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23206 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23207 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23208 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23209 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23210 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23211 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23212 to...
23213 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23214 ...this.
23215 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23216 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23217
23218 (gimple_use_ops): Update for removal of implicit pointer from the
23219 is-a.h API.
23220 (gimple_set_use_ops): Likewise.
23221 (gimple_vuse): Likewise.
23222 (gimple_vdef): Likewise.
23223 (gimple_vuse_ptr): Likewise.
23224 (gimple_vdef_ptr): Likewise.
23225 (gimple_set_vuse): Likewise.
23226 (gimple_set_vdef): Likewise.
23227 (gimple_omp_return_set_lhs): Likewise.
23228 (gimple_omp_return_lhs): Likewise.
23229 (gimple_omp_return_lhs_ptr): Likewise.
23230 (gimple_call_fntype): Likewise.
23231 (gimple_call_set_fntype): Likewise.
23232 (gimple_call_set_internal_fn): Likewise.
23233 (gimple_call_use_set): Likewise.
23234 (gimple_call_clobber_set): Likewise.
23235 (gimple_bind_vars): Likewise.
23236 (gimple_bind_set_vars): Likewise.
23237 (gimple_bind_body_ptr): Likewise.
23238 (gimple_bind_set_body): Likewise.
23239 (gimple_bind_add_stmt): Likewise.
23240 (gimple_bind_block): Likewise.
23241 (gimple_bind_set_block): Likewise.
23242 (gimple_asm_ninputs): Likewise.
23243 (gimple_asm_noutputs): Likewise.
23244 (gimple_asm_nclobbers): Likewise.
23245 (gimple_asm_nlabels): Likewise.
23246 (gimple_asm_input_op): Likewise.
23247 (gimple_asm_input_op_ptr): Likewise.
23248 (gimple_asm_output_op): Likewise.
23249 (gimple_asm_output_op_ptr): Likewise.
23250 (gimple_asm_set_output_op): Likewise.
23251 (gimple_asm_clobber_op): Likewise.
23252 (gimple_asm_set_clobber_op): Likewise.
23253 (gimple_asm_label_op): Likewise.
23254 (gimple_asm_set_label_op): Likewise.
23255 (gimple_asm_string): Likewise.
23256 (gimple_catch_types): Likewise.
23257 (gimple_catch_types_ptr): Likewise.
23258 (gimple_catch_handler_ptr): Likewise.
23259 (gimple_catch_set_types): Likewise.
23260 (gimple_catch_set_handler): Likewise.
23261 (gimple_eh_filter_types): Likewise.
23262 (gimple_eh_filter_types_ptr): Likewise.
23263 (gimple_eh_filter_failure_ptr): Likewise.
23264 (gimple_eh_filter_set_types): Likewise.
23265 (gimple_eh_filter_set_failure): Likewise.
23266 (gimple_eh_must_not_throw_fndecl): Likewise.
23267 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23268 (gimple_eh_else_n_body_ptr): Likewise.
23269 (gimple_eh_else_e_body_ptr): Likewise.
23270 (gimple_eh_else_set_n_body): Likewise.
23271 (gimple_eh_else_set_e_body): Likewise.
23272 (gimple_try_eval_ptr): Likewise.
23273 (gimple_try_cleanup_ptr): Likewise.
23274 (gimple_try_set_eval): Likewise.
23275 (gimple_try_set_cleanup): Likewise.
23276 (gimple_wce_cleanup_ptr): Likewise.
23277 (gimple_wce_set_cleanup): Likewise.
23278 (gimple_phi_capacity): Likewise.
23279 (gimple_phi_num_args): Likewise.
23280 (gimple_phi_result): Likewise.
23281 (gimple_phi_result_ptr): Likewise.
23282 (gimple_phi_set_result): Likewise.
23283 (gimple_phi_arg): Likewise.
23284 (gimple_phi_set_arg): Likewise.
23285 (gimple_resx_region): Likewise.
23286 (gimple_resx_set_region): Likewise.
23287 (gimple_eh_dispatch_region): Likewise.
23288 (gimple_eh_dispatch_set_region): Likewise.
23289 (gimple_omp_critical_name): Likewise.
23290 (gimple_omp_critical_name_ptr): Likewise.
23291 (gimple_omp_critical_set_name): Likewise.
23292 (gimple_omp_for_clauses): Likewise.
23293 (gimple_omp_for_clauses_ptr): Likewise.
23294 (gimple_omp_for_set_clauses): Likewise.
23295 (gimple_omp_for_collapse): Likewise.
23296 (gimple_omp_for_index): Likewise.
23297 (gimple_omp_for_index_ptr): Likewise.
23298 (gimple_omp_for_set_index): Likewise.
23299 (gimple_omp_for_initial): Likewise.
23300 (gimple_omp_for_initial_ptr): Likewise.
23301 (gimple_omp_for_set_initial): Likewise.
23302 (gimple_omp_for_final): Likewise.
23303 (gimple_omp_for_final_ptr): Likewise.
23304 (gimple_omp_for_set_final): Likewise.
23305 (gimple_omp_for_incr): Likewise.
23306 (gimple_omp_for_incr_ptr): Likewise.
23307 (gimple_omp_for_set_incr): Likewise.
23308 (gimple_omp_for_pre_body_ptr): Likewise.
23309 (gimple_omp_for_set_pre_body): Likewise.
23310 (gimple_omp_parallel_clauses): Likewise.
23311 (gimple_omp_parallel_clauses_ptr): Likewise.
23312 (gimple_omp_parallel_set_clauses): Likewise.
23313 (gimple_omp_parallel_child_fn): Likewise.
23314 (gimple_omp_parallel_child_fn_ptr): Likewise.
23315 (gimple_omp_parallel_set_child_fn): Likewise.
23316 (gimple_omp_parallel_data_arg): Likewise.
23317 (gimple_omp_parallel_data_arg_ptr): Likewise.
23318 (gimple_omp_parallel_set_data_arg): Likewise.
23319 (gimple_omp_task_clauses): Likewise.
23320 (gimple_omp_task_clauses_ptr): Likewise.
23321 (gimple_omp_task_set_clauses): Likewise.
23322 (gimple_omp_task_child_fn): Likewise.
23323 (gimple_omp_task_child_fn_ptr): Likewise.
23324 (gimple_omp_task_set_child_fn): Likewise.
23325 (gimple_omp_task_data_arg): Likewise.
23326 (gimple_omp_task_data_arg_ptr): Likewise.
23327 (gimple_omp_task_set_data_arg): Likewise.
23328 (gimple_omp_taskreg_clauses): Likewise.
23329 (gimple_omp_taskreg_clauses_ptr): Likewise.
23330 (gimple_omp_taskreg_set_clauses): Likewise.
23331 (gimple_omp_taskreg_child_fn): Likewise.
23332 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23333 (gimple_omp_taskreg_set_child_fn): Likewise.
23334 (gimple_omp_taskreg_data_arg): Likewise.
23335 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23336 (gimple_omp_taskreg_set_data_arg): Likewise.
23337 (gimple_omp_task_copy_fn): Likewise.
23338 (gimple_omp_task_copy_fn_ptr): Likewise.
23339 (gimple_omp_task_set_copy_fn): Likewise.
23340 (gimple_omp_task_arg_size): Likewise.
23341 (gimple_omp_task_arg_size_ptr): Likewise.
23342 (gimple_omp_task_set_arg_size): Likewise.
23343 (gimple_omp_task_arg_align): Likewise.
23344 (gimple_omp_task_arg_align_ptr): Likewise.
23345 (gimple_omp_task_set_arg_align): Likewise.
23346 (gimple_omp_single_clauses): Likewise.
23347 (gimple_omp_single_clauses_ptr): Likewise.
23348 (gimple_omp_single_set_clauses): Likewise.
23349 (gimple_omp_target_clauses): Likewise.
23350 (gimple_omp_target_clauses_ptr): Likewise.
23351 (gimple_omp_target_set_clauses): Likewise.
23352 (gimple_omp_target_child_fn): Likewise.
23353 (gimple_omp_target_child_fn_ptr): Likewise.
23354 (gimple_omp_target_set_child_fn): Likewise.
23355 (gimple_omp_target_data_arg): Likewise.
23356 (gimple_omp_target_data_arg_ptr): Likewise.
23357 (gimple_omp_target_set_data_arg): Likewise.
23358 (gimple_omp_teams_clauses): Likewise.
23359 (gimple_omp_teams_clauses_ptr): Likewise.
23360 (gimple_omp_teams_set_clauses): Likewise.
23361 (gimple_omp_sections_clauses): Likewise.
23362 (gimple_omp_sections_clauses_ptr): Likewise.
23363 (gimple_omp_sections_set_clauses): Likewise.
23364 (gimple_omp_sections_control): Likewise.
23365 (gimple_omp_sections_control_ptr): Likewise.
23366 (gimple_omp_sections_set_control): Likewise.
23367 (gimple_omp_for_set_cond): Likewise.
23368 (gimple_omp_for_cond): Likewise.
23369 (gimple_omp_atomic_store_set_val): Likewise.
23370 (gimple_omp_atomic_store_val): Likewise.
23371 (gimple_omp_atomic_store_val_ptr): Likewise.
23372 (gimple_omp_atomic_load_set_lhs): Likewise.
23373 (gimple_omp_atomic_load_lhs): Likewise.
23374 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23375 (gimple_omp_atomic_load_set_rhs): Likewise.
23376 (gimple_omp_atomic_load_rhs): Likewise.
23377 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23378 (gimple_omp_continue_control_def): Likewise.
23379 (gimple_omp_continue_control_def_ptr): Likewise.
23380 (gimple_omp_continue_set_control_def): Likewise.
23381 (gimple_omp_continue_control_use): Likewise.
23382 (gimple_omp_continue_control_use_ptr): Likewise.
23383 (gimple_omp_continue_set_control_use): Likewise.
23384 (gimple_transaction_body_ptr): Likewise.
23385 (gimple_transaction_label): Likewise.
23386 (gimple_transaction_label_ptr): Likewise.
23387 (gimple_transaction_set_body): Likewise.
23388 (gimple_transaction_set_label): Likewise.
23389
23390 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23391 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23392 * ipa-ref.c (ipa_record_reference): Likewise.
23393 * ipa-reference.c (analyze_function): Likewise.
23394 (ipa_reference_write_optimization_summary): Likewise.
23395 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23396 (address_taken_from_non_vtable_p): Likewise.
23397 (comdat_can_be_unshared_p_1): Likewise.
23398 * lto-cgraph.c (lto_output_ref): Likewise.
23399 (add_references): Likewise.
23400 (compute_ltrans_boundary): Likewise.
23401 (output_symtab): Likewise.
23402 (input_ref): Likewise.
23403 (input_cgraph_1): Likewise.
23404 (output_cgraph_opt_summary): Likewise.
23405 * lto-streamer-out.c (lto_output): Likewise.
23406 (output_symbol_p): Likewise.
23407 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23408 (lsei_start_function_in_partition): Likewise.
23409 (lsei_next_variable_in_partition): Likewise.
23410 (lsei_start_variable_in_partition): Likewise.
23411 * symtab.c (insert_to_assembler_name_hash): Likewise.
23412 (unlink_from_assembler_name_hash): Likewise.
23413 (symtab_unregister_node): Likewise.
23414 (symtab_remove_node): Likewise.
23415 (dump_symtab_node): Likewise.
23416 (verify_symtab_base): Likewise.
23417 (verify_symtab_node): Likewise.
23418 (symtab_make_decl_local): Likewise.
23419 (symtab_alias_ultimate_target): Likewise.
23420 (symtab_resolve_alias): Likewise.
23421 (symtab_get_symbol_partitioning_class): Likewise.
23422 * tree-phinodes.c (allocate_phi_node): Likewise.
23423 (reserve_phi_args_for_new_edge): Likewise.
23424 (remove_phi_args): Likewise.
23425 * varpool.c (varpool_node_for_asm): Likewise.
23426 (varpool_remove_unreferenced_decls): Likewise.
23427
23428 2014-04-23 Jeff Law <law@redhat.com>
23429
23430 PR tree-optimization/60902
23431 * tree-ssa-threadedge.c
23432 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23433 invalidate outputs from statements that do not produce useful
23434 outputs for threading.
23435
23436 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23437
23438 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23439 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23440 machine descriptions for Stack Smashing Protector.
23441
23442 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23443
23444 * aarch64.md (<optab>_rol<mode>3): New pattern.
23445 (<optab>_rolsi3_uxtw): Likewise.
23446 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23447
23448 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23449
23450 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23451 (arm_cortex_a12_tune): Likewise.
23452
23453 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23454
23455 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23456
23457 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23458
23459 * config/arm/arm.md (arm_rev16si2): New pattern.
23460 (arm_rev16si2_alt): Likewise.
23461 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23462
23463 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23464
23465 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23466 (rev16<mode>2_alt): Likewise.
23467 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23468 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23469 (aarch_rev16_shleft_mask_imm_p): Likewise.
23470 (aarch_rev16_p_1): Likewise.
23471 (aarch_rev16_p): Likewise.
23472 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23473 (aarch_rev16_shright_mask_imm_p): Likewise.
23474 (aarch_rev16_shleft_mask_imm_p): Likewise.
23475
23476 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23477
23478 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23479 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23480 rev cost.
23481 (cortex_a53_extra_costs): Likewise.
23482 (cortex_a57_extra_costs): Likewise.
23483 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23484 (cortexa7_extra_costs): Likewise.
23485 (cortexa8_extra_costs): Likewise.
23486 (cortexa12_extra_costs): Likewise.
23487 (cortexa15_extra_costs): Likewise.
23488 (v7m_extra_costs): Likewise.
23489 (arm_new_rtx_costs): Handle BSWAP.
23490
23491 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23492
23493 * config/arm/arm.c (cortexa8_extra_costs): New table.
23494 (arm_cortex_a8_tune): New tuning struct.
23495 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23496
23497 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23498
23499 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23500
23501 2014-04-23 Richard Biener <rguenther@suse.de>
23502
23503 * Makefile.in (OBJS): Remove loop-unswitch.o.
23504 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23505 * passes.def (pass_rtl_unswitch): Likewise.
23506 * loop-init.c (gate_rtl_unswitch): Likewise.
23507 (rtl_unswitch): Likewise.
23508 (pass_data_rtl_unswitch): Likewise.
23509 (pass_rtl_unswitch): Likewise.
23510 (make_pass_rtl_unswitch): Likewise.
23511 * rtl.h (reversed_condition): Likewise.
23512 (compare_and_jump_seq): Likewise.
23513 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23514 and make static.
23515 * loop-unroll.c (compare_and_jump_seq): Likewise.
23516
23517 2014-04-23 Richard Biener <rguenther@suse.de>
23518
23519 PR tree-optimization/60903
23520 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23521 commented code block.
23522 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23523 loop flags to newly created BBs and edges.
23524
23525 2014-04-23 Nick Clifton <nickc@redhat.com>
23526
23527 * config/msp430/msp430.c (msp430_handle_option): Move function
23528 to msp430-common.c
23529 (msp430_option_override): Simplify mcu and mcpu option handling.
23530 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23531 support for -mhwmult command line option.
23532 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23533 -mhwmult command line option.
23534 (msp430_hwmult_enabled): Delete.
23535 (msp43o_output_labelref): Add support for -mhwmult command line option.
23536 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23537 (umulsidi3): Likewise.
23538 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23539 (mcpu, mlarge, msmall): Likewise.
23540 (mhwmult): New option.
23541 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23542 prototype.
23543 (msp430_is_f5_mcu): Remove prototype.
23544 (msp430_use_f5_series_hwmult): Add prototype.
23545 * config/msp430/msp430-opts.h: New file.
23546 * common/config/msp430: New directory.
23547 * common/config/msp430/msp430-common.c: New file.
23548 * config.gcc (msp430): Remove target_has_targetm_common.
23549 * doc/invoke.texi: Document -mhwmult command line option.
23550
23551 2014-04-23 Nick Clifton <nickc@redhat.com>
23552
23553 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23554 default-manifest.o if it can be found in the search path.
23555 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23556
23557 2014-04-23 Terry Guo <terry.guo@arm.com>
23558
23559 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23560
23561 2014-04-23 Richard Biener <rguenther@suse.de>
23562
23563 PR middle-end/60895
23564 * tree-inline.c (declare_return_variable): Use mark_addressable.
23565
23566 2014-04-23 Richard Biener <rguenther@suse.de>
23567
23568 PR middle-end/60891
23569 * loop-init.c (loop_optimizer_init): Make sure to apply
23570 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23571
23572 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23573
23574 PR sanitizer/60275
23575 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23576 New options.
23577 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23578 if flag_sanitize_undefined_trap_on_error.
23579 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23580 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23581 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23582 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23583 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23584 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23585 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23586 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23587 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23588 * ubsan.c (ubsan_instrument_unreachable): Return
23589 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23590 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23591 if flag_sanitize_undefined_trap_on_error and
23592 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23593 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23594 instrument_bool_enum_load): Emit __builtin_trap () if
23595 flag_sanitize_undefined_trap_on_error and
23596 __builtin_handle_*_abort () if !flag_sanitize_recover.
23597 * doc/invoke.texi (-fsanitize-recover,
23598 -fsanitize-undefined-trap-on-error): Document.
23599
23600 2014-04-22 Christian Bruel <christian.bruel@st.com>
23601
23602 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23603 Force immediates to SImode.
23604
23605 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23606
23607 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23608 (lroundsfsi2): New.
23609 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23610 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23611 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23612 (nios2_fpu_insn): Add entry for round.
23613 (N2FPU_NO_ERRNO_P): Define.
23614 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23615 flag_errno_math.
23616 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23617
23618 2014-04-22 Richard Henderson <rth@redhat.com>
23619
23620 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23621 (add<GPI>3_compare0): Remove leading * from name.
23622 (add<GPI>3_carryin): Likewise.
23623 (sub<GPI>3_compare0): Likewise.
23624 (sub<GPI>3_carryin): Likewise.
23625 (<su_optab>mulditi3): New expander.
23626 (multi3): New expander.
23627 (madd<GPI>): Remove leading * from name.
23628
23629 2014-04-22 Martin Jambor <mjambor@suse.cz>
23630
23631 * cgraphclones.c (cgraph_function_versioning): Copy
23632 ipa_transforms_to_apply instead of asserting it is empty.
23633
23634 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23635
23636 PR target/60868
23637 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23638 on count_exp to get mode.
23639
23640 2014-04-22 Andrew Pinski <apinski@cavium.com>
23641
23642 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23643 Handle TLS for ILP32.
23644 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23645 (tlsie_small_<mode>): this and handle PTR.
23646 (tlsie_small_sidi): New pattern.
23647 (tlsle_small): Change to an expand to handle ILP32.
23648 (tlsle_small_<mode>): New pattern.
23649 (tlsdesc_small): Rename to ...
23650 (tlsdesc_small_<mode>): this and handle PTR.
23651
23652 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23653
23654 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23655
23656 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23657
23658 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23659 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23660 (aarch64_types_signed_poly_qualifiers): Likewise.
23661 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23662 (aarch64_types_poly_signed_qualifiers): Likewise.
23663 (TYPES_REINTERP_SS): Type macro added.
23664 (TYPES_REINTERP_SU): Likewise.
23665 (TYPES_REINTERP_SP): Likewise.
23666 (TYPES_REINTERP_US): Likewise.
23667 (TYPES_REINTERP_PS): Likewise.
23668 (aarch64_fold_builtin): New expression folding added.
23669 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23670 Declarations removed.
23671 (REINTERP_SS): Declarations added.
23672 (REINTERP_US): Likewise.
23673 (REINTERP_PS): Likewise.
23674 (REINTERP_SU): Likewise.
23675 (REINTERP_SP): Likewise.
23676 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23677 (vreinterpretq_p8_f64): Likewise.
23678 (vreinterpret_p16_f64): Likewise.
23679 (vreinterpretq_p16_f64): Likewise.
23680 (vreinterpret_f32_f64): Likewise.
23681 (vreinterpretq_f32_f64): Likewise.
23682 (vreinterpret_f64_f32): Likewise.
23683 (vreinterpret_f64_p8): Likewise.
23684 (vreinterpret_f64_p16): Likewise.
23685 (vreinterpret_f64_s8): Likewise.
23686 (vreinterpret_f64_s16): Likewise.
23687 (vreinterpret_f64_s32): Likewise.
23688 (vreinterpret_f64_s64): Likewise.
23689 (vreinterpret_f64_u8): Likewise.
23690 (vreinterpret_f64_u16): Likewise.
23691 (vreinterpret_f64_u32): Likewise.
23692 (vreinterpret_f64_u64): Likewise.
23693 (vreinterpretq_f64_f32): Likewise.
23694 (vreinterpretq_f64_p8): Likewise.
23695 (vreinterpretq_f64_p16): Likewise.
23696 (vreinterpretq_f64_s8): Likewise.
23697 (vreinterpretq_f64_s16): Likewise.
23698 (vreinterpretq_f64_s32): Likewise.
23699 (vreinterpretq_f64_s64): Likewise.
23700 (vreinterpretq_f64_u8): Likewise.
23701 (vreinterpretq_f64_u16): Likewise.
23702 (vreinterpretq_f64_u32): Likewise.
23703 (vreinterpretq_f64_u64): Likewise.
23704 (vreinterpret_s64_f64): Likewise.
23705 (vreinterpretq_s64_f64): Likewise.
23706 (vreinterpret_u64_f64): Likewise.
23707 (vreinterpretq_u64_f64): Likewise.
23708 (vreinterpret_s8_f64): Likewise.
23709 (vreinterpretq_s8_f64): Likewise.
23710 (vreinterpret_s16_f64): Likewise.
23711 (vreinterpretq_s16_f64): Likewise.
23712 (vreinterpret_s32_f64): Likewise.
23713 (vreinterpretq_s32_f64): Likewise.
23714 (vreinterpret_u8_f64): Likewise.
23715 (vreinterpretq_u8_f64): Likewise.
23716 (vreinterpret_u16_f64): Likewise.
23717 (vreinterpretq_u16_f64): Likewise.
23718 (vreinterpret_u32_f64): Likewise.
23719 (vreinterpretq_u32_f64): Likewise.
23720
23721 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23722
23723 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23724 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23725 (vreinterpret_p8_s8): Likewise.
23726 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23727 (vreinterpret_p8_s16): Likewise.
23728 (vreinterpret_p8_s32): Likewise.
23729 (vreinterpret_p8_s64): Likewise.
23730 (vreinterpret_p8_f32): Likewise.
23731 (vreinterpret_p8_u8): Likewise.
23732 (vreinterpret_p8_u16): Likewise.
23733 (vreinterpret_p8_u32): Likewise.
23734 (vreinterpret_p8_u64): Likewise.
23735 (vreinterpret_p8_p16): Likewise.
23736 (vreinterpretq_p8_s8): Likewise.
23737 (vreinterpretq_p8_s16): Likewise.
23738 (vreinterpretq_p8_s32): Likewise.
23739 (vreinterpretq_p8_s64): Likewise.
23740 (vreinterpretq_p8_f32): Likewise.
23741 (vreinterpretq_p8_u8): Likewise.
23742 (vreinterpretq_p8_u16): Likewise.
23743 (vreinterpretq_p8_u32): Likewise.
23744 (vreinterpretq_p8_u64): Likewise.
23745 (vreinterpretq_p8_p16): Likewise.
23746 (vreinterpret_p16_s8): Likewise.
23747 (vreinterpret_p16_s16): Likewise.
23748 (vreinterpret_p16_s32): Likewise.
23749 (vreinterpret_p16_s64): Likewise.
23750 (vreinterpret_p16_f32): Likewise.
23751 (vreinterpret_p16_u8): Likewise.
23752 (vreinterpret_p16_u16): Likewise.
23753 (vreinterpret_p16_u32): Likewise.
23754 (vreinterpret_p16_u64): Likewise.
23755 (vreinterpret_p16_p8): Likewise.
23756 (vreinterpretq_p16_s8): Likewise.
23757 (vreinterpretq_p16_s16): Likewise.
23758 (vreinterpretq_p16_s32): Likewise.
23759 (vreinterpretq_p16_s64): Likewise.
23760 (vreinterpretq_p16_f32): Likewise.
23761 (vreinterpretq_p16_u8): Likewise.
23762 (vreinterpretq_p16_u16): Likewise.
23763 (vreinterpretq_p16_u32): Likewise.
23764 (vreinterpretq_p16_u64): Likewise.
23765 (vreinterpretq_p16_p8): Likewise.
23766 (vreinterpret_f32_s8): Likewise.
23767 (vreinterpret_f32_s16): Likewise.
23768 (vreinterpret_f32_s32): Likewise.
23769 (vreinterpret_f32_s64): Likewise.
23770 (vreinterpret_f32_u8): Likewise.
23771 (vreinterpret_f32_u16): Likewise.
23772 (vreinterpret_f32_u32): Likewise.
23773 (vreinterpret_f32_u64): Likewise.
23774 (vreinterpret_f32_p8): Likewise.
23775 (vreinterpret_f32_p16): Likewise.
23776 (vreinterpretq_f32_s8): Likewise.
23777 (vreinterpretq_f32_s16): Likewise.
23778 (vreinterpretq_f32_s32): Likewise.
23779 (vreinterpretq_f32_s64): Likewise.
23780 (vreinterpretq_f32_u8): Likewise.
23781 (vreinterpretq_f32_u16): Likewise.
23782 (vreinterpretq_f32_u32): Likewise.
23783 (vreinterpretq_f32_u64): Likewise.
23784 (vreinterpretq_f32_p8): Likewise.
23785 (vreinterpretq_f32_p16): Likewise.
23786 (vreinterpret_s64_s8): Likewise.
23787 (vreinterpret_s64_s16): Likewise.
23788 (vreinterpret_s64_s32): Likewise.
23789 (vreinterpret_s64_f32): Likewise.
23790 (vreinterpret_s64_u8): Likewise.
23791 (vreinterpret_s64_u16): Likewise.
23792 (vreinterpret_s64_u32): Likewise.
23793 (vreinterpret_s64_u64): Likewise.
23794 (vreinterpret_s64_p8): Likewise.
23795 (vreinterpret_s64_p16): Likewise.
23796 (vreinterpretq_s64_s8): Likewise.
23797 (vreinterpretq_s64_s16): Likewise.
23798 (vreinterpretq_s64_s32): Likewise.
23799 (vreinterpretq_s64_f32): Likewise.
23800 (vreinterpretq_s64_u8): Likewise.
23801 (vreinterpretq_s64_u16): Likewise.
23802 (vreinterpretq_s64_u32): Likewise.
23803 (vreinterpretq_s64_u64): Likewise.
23804 (vreinterpretq_s64_p8): Likewise.
23805 (vreinterpretq_s64_p16): Likewise.
23806 (vreinterpret_u64_s8): Likewise.
23807 (vreinterpret_u64_s16): Likewise.
23808 (vreinterpret_u64_s32): Likewise.
23809 (vreinterpret_u64_s64): Likewise.
23810 (vreinterpret_u64_f32): Likewise.
23811 (vreinterpret_u64_u8): Likewise.
23812 (vreinterpret_u64_u16): Likewise.
23813 (vreinterpret_u64_u32): Likewise.
23814 (vreinterpret_u64_p8): Likewise.
23815 (vreinterpret_u64_p16): Likewise.
23816 (vreinterpretq_u64_s8): Likewise.
23817 (vreinterpretq_u64_s16): Likewise.
23818 (vreinterpretq_u64_s32): Likewise.
23819 (vreinterpretq_u64_s64): Likewise.
23820 (vreinterpretq_u64_f32): Likewise.
23821 (vreinterpretq_u64_u8): Likewise.
23822 (vreinterpretq_u64_u16): Likewise.
23823 (vreinterpretq_u64_u32): Likewise.
23824 (vreinterpretq_u64_p8): Likewise.
23825 (vreinterpretq_u64_p16): Likewise.
23826 (vreinterpret_s8_s16): Likewise.
23827 (vreinterpret_s8_s32): Likewise.
23828 (vreinterpret_s8_s64): Likewise.
23829 (vreinterpret_s8_f32): Likewise.
23830 (vreinterpret_s8_u8): Likewise.
23831 (vreinterpret_s8_u16): Likewise.
23832 (vreinterpret_s8_u32): Likewise.
23833 (vreinterpret_s8_u64): Likewise.
23834 (vreinterpret_s8_p8): Likewise.
23835 (vreinterpret_s8_p16): Likewise.
23836 (vreinterpretq_s8_s16): Likewise.
23837 (vreinterpretq_s8_s32): Likewise.
23838 (vreinterpretq_s8_s64): Likewise.
23839 (vreinterpretq_s8_f32): Likewise.
23840 (vreinterpretq_s8_u8): Likewise.
23841 (vreinterpretq_s8_u16): Likewise.
23842 (vreinterpretq_s8_u32): Likewise.
23843 (vreinterpretq_s8_u64): Likewise.
23844 (vreinterpretq_s8_p8): Likewise.
23845 (vreinterpretq_s8_p16): Likewise.
23846 (vreinterpret_s16_s8): Likewise.
23847 (vreinterpret_s16_s32): Likewise.
23848 (vreinterpret_s16_s64): Likewise.
23849 (vreinterpret_s16_f32): Likewise.
23850 (vreinterpret_s16_u8): Likewise.
23851 (vreinterpret_s16_u16): Likewise.
23852 (vreinterpret_s16_u32): Likewise.
23853 (vreinterpret_s16_u64): Likewise.
23854 (vreinterpret_s16_p8): Likewise.
23855 (vreinterpret_s16_p16): Likewise.
23856 (vreinterpretq_s16_s8): Likewise.
23857 (vreinterpretq_s16_s32): Likewise.
23858 (vreinterpretq_s16_s64): Likewise.
23859 (vreinterpretq_s16_f32): Likewise.
23860 (vreinterpretq_s16_u8): Likewise.
23861 (vreinterpretq_s16_u16): Likewise.
23862 (vreinterpretq_s16_u32): Likewise.
23863 (vreinterpretq_s16_u64): Likewise.
23864 (vreinterpretq_s16_p8): Likewise.
23865 (vreinterpretq_s16_p16): Likewise.
23866 (vreinterpret_s32_s8): Likewise.
23867 (vreinterpret_s32_s16): Likewise.
23868 (vreinterpret_s32_s64): Likewise.
23869 (vreinterpret_s32_f32): Likewise.
23870 (vreinterpret_s32_u8): Likewise.
23871 (vreinterpret_s32_u16): Likewise.
23872 (vreinterpret_s32_u32): Likewise.
23873 (vreinterpret_s32_u64): Likewise.
23874 (vreinterpret_s32_p8): Likewise.
23875 (vreinterpret_s32_p16): Likewise.
23876 (vreinterpretq_s32_s8): Likewise.
23877 (vreinterpretq_s32_s16): Likewise.
23878 (vreinterpretq_s32_s64): Likewise.
23879 (vreinterpretq_s32_f32): Likewise.
23880 (vreinterpretq_s32_u8): Likewise.
23881 (vreinterpretq_s32_u16): Likewise.
23882 (vreinterpretq_s32_u32): Likewise.
23883 (vreinterpretq_s32_u64): Likewise.
23884 (vreinterpretq_s32_p8): Likewise.
23885 (vreinterpretq_s32_p16): Likewise.
23886 (vreinterpret_u8_s8): Likewise.
23887 (vreinterpret_u8_s16): Likewise.
23888 (vreinterpret_u8_s32): Likewise.
23889 (vreinterpret_u8_s64): Likewise.
23890 (vreinterpret_u8_f32): Likewise.
23891 (vreinterpret_u8_u16): Likewise.
23892 (vreinterpret_u8_u32): Likewise.
23893 (vreinterpret_u8_u64): Likewise.
23894 (vreinterpret_u8_p8): Likewise.
23895 (vreinterpret_u8_p16): Likewise.
23896 (vreinterpretq_u8_s8): Likewise.
23897 (vreinterpretq_u8_s16): Likewise.
23898 (vreinterpretq_u8_s32): Likewise.
23899 (vreinterpretq_u8_s64): Likewise.
23900 (vreinterpretq_u8_f32): Likewise.
23901 (vreinterpretq_u8_u16): Likewise.
23902 (vreinterpretq_u8_u32): Likewise.
23903 (vreinterpretq_u8_u64): Likewise.
23904 (vreinterpretq_u8_p8): Likewise.
23905 (vreinterpretq_u8_p16): Likewise.
23906 (vreinterpret_u16_s8): Likewise.
23907 (vreinterpret_u16_s16): Likewise.
23908 (vreinterpret_u16_s32): Likewise.
23909 (vreinterpret_u16_s64): Likewise.
23910 (vreinterpret_u16_f32): Likewise.
23911 (vreinterpret_u16_u8): Likewise.
23912 (vreinterpret_u16_u32): Likewise.
23913 (vreinterpret_u16_u64): Likewise.
23914 (vreinterpret_u16_p8): Likewise.
23915 (vreinterpret_u16_p16): Likewise.
23916 (vreinterpretq_u16_s8): Likewise.
23917 (vreinterpretq_u16_s16): Likewise.
23918 (vreinterpretq_u16_s32): Likewise.
23919 (vreinterpretq_u16_s64): Likewise.
23920 (vreinterpretq_u16_f32): Likewise.
23921 (vreinterpretq_u16_u8): Likewise.
23922 (vreinterpretq_u16_u32): Likewise.
23923 (vreinterpretq_u16_u64): Likewise.
23924 (vreinterpretq_u16_p8): Likewise.
23925 (vreinterpretq_u16_p16): Likewise.
23926 (vreinterpret_u32_s8): Likewise.
23927 (vreinterpret_u32_s16): Likewise.
23928 (vreinterpret_u32_s32): Likewise.
23929 (vreinterpret_u32_s64): Likewise.
23930 (vreinterpret_u32_f32): Likewise.
23931 (vreinterpret_u32_u8): Likewise.
23932 (vreinterpret_u32_u16): Likewise.
23933 (vreinterpret_u32_u64): Likewise.
23934 (vreinterpret_u32_p8): Likewise.
23935 (vreinterpret_u32_p16): Likewise.
23936 (vreinterpretq_u32_s8): Likewise.
23937 (vreinterpretq_u32_s16): Likewise.
23938 (vreinterpretq_u32_s32): Likewise.
23939 (vreinterpretq_u32_s64): Likewise.
23940 (vreinterpretq_u32_f32): Likewise.
23941 (vreinterpretq_u32_u8): Likewise.
23942 (vreinterpretq_u32_u16): Likewise.
23943 (vreinterpretq_u32_u64): Likewise.
23944 (vreinterpretq_u32_p8): Likewise.
23945 (vreinterpretq_u32_p16): Likewise.
23946
23947 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23948
23949 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23950 Pattern extended.
23951 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23952 (sqabs): Likewise.
23953 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23954 (vqnegd_s64): Likewise.
23955 (vqabs_s64): Likewise.
23956 (vqabsd_s64): Likewise.
23957
23958 2014-04-22 Richard Henderson <rth@redhat.com>
23959
23960 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23961 computation to the top of the loop.
23962
23963 2014-04-22 Renlin <renlin.li@arm.com>
23964 Jiong Wang <jiong.wang@arm.com>
23965
23966 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23967 * config/aarch64/aarch64.c (aarch64_layout_frame)
23968 (aarch64_initial_elimination_offset): Likewise.
23969
23970 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23971
23972 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23973 Fix indentation.
23974
23975 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23976
23977 * machmode.h (bitwise_mode_for_mode): Declare.
23978 * stor-layout.h (bitwise_type_for_mode): Likewise.
23979 * stor-layout.c (bitwise_mode_for_mode): New function.
23980 (bitwise_type_for_mode): Likewise.
23981 * builtins.c (fold_builtin_memory_op): Use it instead of
23982 int_mode_for_mode and build_nonstandard_integer_type.
23983
23984 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23985
23986 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23987 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23988 (*-*-solaris2*): Simplify.
23989 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23990 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23991 *-*-solaris2.9* handling.
23992
23993 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23994 as bug.
23995 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23996 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23997 handling, simplify.
23998 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23999 * configure: Regenerate.
24000
24001 * config/i386/sol2-9.h: Remove.
24002
24003 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24004 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24005 Remove Solaris 9 references.
24006
24007 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
24008
24009 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24010 (floatuns<GPI:mode><GPF:mode>2): Remove.
24011 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24012 and floatuns conversions.
24013 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24014 and floatuns conversions.
24015 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24016 (w1,w2): New mode attributes for inequal width conversions.
24017
24018 2014-04-22 Renlin Li <Renlin.Li@arm.com>
24019
24020 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24021 the output asm format.
24022
24023 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24024
24025 * config/aarch64/aarch64-simd.md
24026 (aarch64_cm<optab>di): Always split.
24027 (*aarch64_cm<optab>di): New.
24028 (aarch64_cmtstdi): Always split.
24029 (*aarch64_cmtstdi): New.
24030
24031 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24032
24033 PR tree-optimization/60823
24034 * omp-low.c (ipa_simd_modify_function_body): Go through
24035 all SSA_NAMEs and for those refering to vector arguments
24036 which are going to be replaced adjust SSA_NAME_VAR and,
24037 if it is a default definition, change it into a non-default
24038 definition assigned at the beginning of function from new_decl.
24039 (ipa_simd_modify_stmt_ops): Rewritten.
24040 * tree-dfa.c (set_ssa_default_def): When removing default def,
24041 check for NULL loc instead of NULL *loc.
24042
24043 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24044
24045 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24046 restrictions on core registers for DImode values in Thumb2.
24047
24048 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24049
24050 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24051 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24052
24053 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24054
24055 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24056 (*iordi_notzesidi_di): Likewise.
24057 (*iordi_notsesidi_di): Likewise.
24058
24059 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24060
24061 * config/arm/arm-protos.h (tune_params): New struct members.
24062 * config/arm/arm.c: Initialise tune_params per processor.
24063 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24064 for speed, based on new tune_params.
24065
24066 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24067
24068 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24069 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24070 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24071 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24072 * config/aarch64/arm_neon.h (vrnd_f64): Added.
24073 (vrnda_f64): Likewise.
24074 (vrndi_f64): Likewise.
24075 (vrndm_f64): Likewise.
24076 (vrndn_f64): Likewise.
24077 (vrndp_f64): Likewise.
24078 (vrndx_f64): Likewise.
24079
24080 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24081
24082 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24083 GET_MODE_SIZE argument is enum machine_mode.
24084
24085 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24086
24087 PR target/60910
24088 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24089 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24090
24091 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
24092
24093 PR middle-end/60281
24094 * asan.c (asan_emit_stack_protection): Force the base to align to
24095 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
24096 appropriate bits if STRICT_ALIGNMENT.
24097 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24098 when asan is on.
24099 (expand_used_vars): Leave a space in the stack frame for alignment
24100 if STRICT_ALIGNMENT.
24101
24102 2014-04-21 David Malcolm <dmalcolm@redhat.com>
24103
24104 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24105 than a gimple.
24106 (gimple_store_p): Likewise.
24107 (gimple_assign_load_p): Likewise.
24108 (gimple_assign_cast_p): Likewise.
24109 (gimple_clobber_p): Likewise.
24110
24111 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24112 rather than a gimple.
24113 (gimple_assign_cast_p): Likewise.
24114
24115 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24116
24117 PR target/60735
24118 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24119 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24120
24121 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24122 more debug information for E500 if -mdebug=reg.
24123
24124 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24125
24126 PR target/60909
24127 * config/i386/i386.c (ix86_expand_builtin)
24128 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24129 register for target RTX.
24130 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24131
24132 2014-04-18 Cong Hou <congh@google.com>
24133
24134 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24135 the widen-mult pattern by handling two operands with different sizes,
24136 and operands whose size is smaller than half of the result type.
24137
24138 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24139
24140 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24141 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24142 (do_estimate_edge_time): Compute it.
24143 * ipa-inline.c (want_inline_small_function_p): Bypass
24144 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24145
24146 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24147
24148 * ipa-inline.c (spec_rem): New static variable.
24149 (dump_overall_stats): New function.
24150 (dump_inline_stats): New function.
24151
24152 2014-04-18 Richard Henderson <rth@redhat.com>
24153
24154 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24155 to GET_MODE_SIZE, not a reg_class_t.
24156
24157 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24158
24159 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24160 (vsx_xxmrglw_<mode>): Likewise.
24161
24162 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24163
24164 PR target/60876
24165 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24166 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24167 (rs6000_init_hard_regno_mode_ok): Likewise.
24168
24169 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24170
24171 * ipa-inline.c (inline_small_functions): Account only non-cold
24172 functions.
24173 * doc/invoke.texi (inline-unit-growth): Update documentation.
24174
24175 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24176
24177 * config/rs6000/rs6000.md (addti3, subti3): New.
24178
24179 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24180
24181 PR target/60863
24182 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24183 comment. Check optimize_insn_for_size_p instead of
24184 optimize_insn_for_speed_p.
24185
24186 2014-04-17 Martin Jambor <mjambor@suse.cz>
24187
24188 * gimple-iterator.c (gsi_start_edge): New function.
24189 * gimple-iterator.h (gsi_start_edge): Declare.
24190 * tree-sra.c (single_non_eh_succ): New function.
24191 (disqualify_ops_if_throwing_stmt): Renamed to
24192 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24193 having one non-EH successor BB.
24194 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24195 generate loads into replacements.
24196 (sra_modify_assign): Likewise and and also use the simple path for
24197 such statements.
24198 (sra_modify_function_body): Commit statements on edges.
24199
24200 2014-04-17 Richard Biener <rguenther@suse.de>
24201
24202 PR middle-end/60849
24203 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24204 comparison results and add clarifying comment.
24205
24206 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24207
24208 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24209 (blank_mode): Initialize it.
24210 (emit_mode_size_inline, emit_mode_nunits_inline,
24211 emit_mode_inner_inline): New functions.
24212 (emit_insn_modes_h): Call them and surround their output with
24213 #if GCC_VERSION >= 4001 ... #endif.
24214 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24215 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24216 mode_* arrays if the argument is __builtin_constant_p.
24217 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24218 is enum machine_mode.
24219
24220 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24221
24222 * passes.c (opt_pass::execute): Adjust.
24223 (pass_manager::execute_pass_mode_switching): Likewise.
24224 (early_local_passes::execute): Likewise.
24225 (execute_one_pass): Pass cfun to the pass's execute method.
24226 * tree-pass.h (opt_pass::execute): Add function * argument.
24227 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24228 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24229 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24230 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24231 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24232 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24233 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24234 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24235 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24236 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24237 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24238 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24239 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24240 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24241 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24242 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24243 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24244 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24245 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24246 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24247 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24248 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24249 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24250 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24251 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24252 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24253 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24254 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24255 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24256 Adjust.
24257
24258 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24259
24260 * passes.c (opt_pass::gate): Take function * argument.
24261 (gate_all_early_local_passes): Merge into
24262 (early_local_passes::gate): this.
24263 (gate_all_early_optimizations): Merge into
24264 (all_early_optimizations::gate): this.
24265 (gate_all_optimizations): Mege into
24266 (all_optimizations::gate): this.
24267 (gate_all_optimizations_g): Merge into
24268 (all_optimizations_g::gate): this.
24269 (gate_rest_of_compilation): Mege into
24270 (rest_of_compilation::gate): this.
24271 (gate_postreload): Merge into
24272 (postreload::gate): this.
24273 (dump_one_pass): Pass cfun to the pass's gate method.
24274 (execute_ipa_summary_passes): Likewise.
24275 (execute_one_pass): Likewise.
24276 (ipa_write_summaries_2): Likewise.
24277 (ipa_write_optimization_summaries_1): Likewise.
24278 (ipa_read_summaries_1): Likewise.
24279 (ipa_read_optimization_summaries_1): Likewise.
24280 (execute_ipa_stmt_fixups): Likewise.
24281 * tree-pass.h (opt_pass::gate): Add function * argument.
24282 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24283 combine-stack-adj.c, combine.c, compare-elim.c,
24284 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24285 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24286 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24287 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24288 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24289 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24290 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24291 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24292 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24293 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24294 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24295 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24296 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24297 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24298 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24299 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24300 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24301 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24302 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24303 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24304 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24305 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24306 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24307 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24308 var-tracking.c, vtable-verify.c, web.c: Adjust.
24309
24310 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24311
24312 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24313 * configure: Regenerate.
24314
24315 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24316
24317 * passes.c (dump_one_pass): don't check pass->has_gate.
24318 (execute_ipa_summary_passes): Likewise.
24319 (execute_one_pass): Likewise.
24320 (ipa_write_summaries_2): Likewise.
24321 (ipa_write_optimization_summaries_1): Likewise.
24322 (ipa_read_optimization_summaries_1): Likewise.
24323 (execute_ipa_stmt_fixups): Likewise.
24324 * tree-pass.h (pass_data::has_gate): Remove.
24325 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24326 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24327 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24328 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24329 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24330 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24331 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24332 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24333 gimple-low.c, gimple-ssa-isolate-paths.c,
24334 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24335 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24336 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24337 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24338 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24339 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24340 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24341 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24342 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24343 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24344 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24345 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24346 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24347 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24348 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24349 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24350 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24351 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24352 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24353 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24354 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24355 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24356 Adjust.
24357
24358 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24359
24360 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24361 declaration.
24362 * passes.c (pass_manager::register_dump_files_1): Merge into
24363 (pass_manager::register_dump_files): this, and remove its handling of
24364 properties since the pass always has the properties anyway.
24365 (pass_manager::pass_manager): Adjust.
24366
24367 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24368
24369 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24370 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24371 dealing with properties.
24372 (pass_manager::register_dump_files): Adjust.
24373
24374 2014-03-20 Mark Wielaard <mjw@redhat.com>
24375
24376 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24377 then represent the bound as normal constant value.
24378
24379 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24380
24381 PR target/60847
24382 Forward port from 4.8 branch
24383 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24384
24385 * config/i386/bmiintrin.h (_blsi_u32): New.
24386 (_blsi_u64): Ditto.
24387 (_blsr_u32): Ditto.
24388 (_blsr_u64): Ditto.
24389 (_blsmsk_u32): Ditto.
24390 (_blsmsk_u64): Ditto.
24391 (_tzcnt_u32): Ditto.
24392 (_tzcnt_u64): Ditto.
24393
24394 2014-04-17 Kito Cheng <kito@0xlab.org>
24395
24396 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24397
24398 2014-04-17 Richard Biener <rguenther@suse.de>
24399
24400 PR middle-end/60849
24401 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24402 boolean results for comparisons.
24403
24404 2014-04-17 Richard Biener <rguenther@suse.de>
24405
24406 PR tree-optimization/60836
24407 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24408 initial PHI args to be gimple values.
24409
24410 2014-04-17 Richard Biener <rguenther@suse.de>
24411
24412 PR tree-optimization/60841
24413 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24414 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24415 of stmts to SLP build.
24416 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24417 (vect_analyze_slp): Likewise.
24418 (vect_analyze_slp_instance): Likewise.
24419 (vect_build_slp_tree): Limit overall SLP tree growth.
24420 * tree-vectorizer.h (vect_analyze_data_refs,
24421 vect_analyze_slp): Adjust prototypes.
24422
24423 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24424
24425 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24426 Silvermont.
24427
24428 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24429
24430 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24431 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24432 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24433 for TARGET_SLOW_PSHUFB
24434
24435 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24436
24437 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24438 * config/i386/i386.c (intel_cost): Ditto.
24439
24440 2014-04-17 Joey Ye <joey.ye@arm.com>
24441
24442 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24443
24444 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24445
24446 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24447 with -fuse-profile.
24448
24449 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24450
24451 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24452 (type_all_derivations_known_p): New predicate.
24453 (type_all_ctors_visible_p): New predicate.
24454 (type_possibly_instantiated_p): New predicate.
24455 (get_odr_type): Compute all_derivations_known.
24456 (dump_odr_type): Dump the flag.
24457 (maybe_record_type): Cleanup.
24458 (record_target_from_binfo): Add bases_to_consider array;
24459 record bases for types w/o instances and skip CXX destructor.
24460 (possible_polymorphic_call_targets_1): Add bases_to_consider
24461 and consider_construction parameters; check if type may have instance.
24462 (get_polymorphic_call_info): Set maybe_in_construction to true
24463 when we know nothing.
24464 (record_targets_from_bases): Skip CXX destructors; they are
24465 never called for types in construction.
24466 (possible_polymorphic_call_targets): Do not record target when
24467 type may not have instance.
24468
24469 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24470
24471 PR ipa/60854
24472 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24473 external aliases alive, too.
24474
24475 2014-04-16 Andrew Pinski <apinski@cavium.com>
24476
24477 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24478 definition.
24479
24480 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24481
24482 * final.c (compute_alignments): Do not apply loop alignment to a block
24483 falling through to the exit.
24484
24485 2014-04-16 Catherine Moore <clm@codesourcery.com>
24486
24487 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24488 Adjust constraints for microMIPS store patterns.
24489
24490 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24491
24492 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24493
24494 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24495
24496 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24497 (append_use): Run at -O0.
24498 (append_vdef): Likewise.
24499 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24500 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24501
24502 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24503
24504 PR tree-optimization/60844
24505 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24506 (propagate_op_to_single_use, remove_visited_stmt_chain,
24507 linearize_expr, repropagate_negates, reassociate_bb): Use it
24508 instead of gsi_remove.
24509
24510 2014-04-16 Martin Jambor <mjambor@suse.cz>
24511
24512 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24513 ipa_transforms_to_apply.
24514 (cgraph_function_versioning): Assert that old_node has empty
24515 ipa_transforms_to_apply.
24516 * trans-mem.c (ipa_tm_create_version): Likewise.
24517 * tree-inline.c (tree_function_versioning): Do not duplicate
24518 ipa_transforms_to_apply.
24519
24520 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24521
24522 PR target/60817
24523 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24524 x86_64-*-* cases.
24525 Pass necessary as flags on 64-bit Solaris/x86.
24526 Use lowercase relocs for x86_64-*-*.
24527 * configure: Regenerate.
24528
24529 2014-04-15 Jan Hubicka <jh@suse.cz>
24530
24531 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24532 (maybe_record_node, likely_target_p): Use it.
24533
24534 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24535
24536 PR target/60839
24537 Revert following patch
24538
24539 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24540
24541 PR target/60735
24542 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24543 software floating point or no floating point registers, do not
24544 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24545 in GPRs that occurs after we tested for GPRs that would never be
24546 true.
24547
24548 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24549 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24550 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24551 specifically allow DDmode, since that does not use the SPE SIMD
24552 instructions.
24553
24554 2014-03-21 Mark Wielaard <mjw@redhat.com>
24555
24556 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24557 as unsigned or int depending on type and value used.
24558
24559 2014-04-15 Richard Biener <rguenther@suse.de>
24560
24561 PR rtl-optimization/56965
24562 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24563 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24564 ... here.
24565 * alias.c (true_dependence_1): Do not call
24566 nonoverlapping_component_refs_p.
24567 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24568 nonoverlapping_component_refs_p.
24569 (indirect_refs_may_alias_p): Likewise.
24570
24571 2014-04-15 Teresa Johnson <tejohnson@google.com>
24572
24573 * cfg.c (dump_bb_info): Fix flags check.
24574 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24575
24576 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24577
24578 PR rtl-optimization/60663
24579 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24580 avoid 0 cost.
24581
24582 2014-04-15 Richard Biener <rguenther@suse.de>
24583
24584 * lto-streamer.h (LTO_major_version): Bump to 4.
24585
24586 2014-04-15 Richard Biener <rguenther@suse.de>
24587
24588 * common.opt (lto_partition_model): New enum.
24589 (flto-partition=): Merge separate options with a single with argument,
24590 add -flto-partition=one support.
24591 * flag-types.h (enum lto_partition_model): Declare.
24592 * opts.c (finish_options): Remove duplicate -flto-partition=
24593 option check.
24594 * lto-wrapper.c (run_gcc): Adjust.
24595
24596 2014-04-15 Richard Biener <rguenther@suse.de>
24597
24598 * alias.c (ncr_compar): New function.
24599 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24600
24601 2014-04-15 Richard Biener <rguenther@suse.de>
24602
24603 * alias.c (record_component_aliases): Do not walk BINFOs.
24604
24605 2014-04-15 Richard Biener <rguenther@suse.de>
24606
24607 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24608 Add struct function argument and adjust.
24609 (find_func_aliases_for_call): Likewise.
24610 (find_func_aliases): Likewise.
24611 (find_func_clobbers): Likewise.
24612 (intra_create_variable_infos): Likewise.
24613 (compute_points_to_sets): Likewise.
24614 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24615
24616 2014-04-15 Richard Biener <rguenther@suse.de>
24617
24618 * tree.c (iterative_hash_expr): Use enum tree_code_class
24619 to store TREE_CODE_CLASS.
24620 (tree_block): Likewise.
24621 (tree_set_block): Likewise.
24622 * tree.h (fold_build_pointer_plus_loc): Use
24623 convert_to_ptrofftype_loc.
24624
24625 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24626
24627 PR plugins/59335
24628 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24629 added in 4.9.
24630
24631 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24632
24633 * cfgloop.h (struct loop): Move force_vectorize down.
24634 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24635 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24636 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24637 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24638 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24639 * tree-core.h (enum annot_expr_kind): Add new kind values.
24640 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24641 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24642 kinds.
24643 * tree.def (ANNOTATE_EXPR): Tweak comment.
24644
24645 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24646
24647 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24648 cxa_pure_virtual).
24649
24650 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24651
24652 * tree.h (TYPE_IDENTIFIER): Declare.
24653 * tree.c (subrange_type_for_debug_p): Use it.
24654 * godump.c (go_format_type): Likewise.
24655 * dwarf2out.c (is_cxx_auto, modified_type_die,
24656 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24657 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24658
24659 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24660
24661 PR lto/60820
24662 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24663
24664 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24665
24666 * config/i386/i386.c (examine_argument): Return bool. Return true if
24667 parameter should be passed in memory.
24668 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24669 (construct_container): Update calls to examine_argument.
24670 (function_arg_advance_64): Ditto.
24671 (return_in_memory_32): Merge with ix86_return_in_memory.
24672 (return_in_memory_64): Ditto.
24673 (return_in_memory_ms_64): Ditto.
24674
24675 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24676
24677 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24678 * coverage.c (coverage_compute_profile_id): Handle externally visible
24679 symbols.
24680
24681 2014-04-14 Martin Jambor <mjambor@suse.cz>
24682
24683 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24684 DECL_DISREGARD_INLINE_LIMITS functions.
24685
24686 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24687
24688 PR target/60827
24689 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24690
24691 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24692
24693 PR target/60827
24694 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24695 optimize_insn_for_speed_p instead of
24696 optimize_function_for_speed_p.
24697
24698 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24699
24700 * doc/invoke.texi (free): Document AArch64.
24701
24702 2014-04-14 Richard Biener <rguenther@suse.de>
24703
24704 PR tree-optimization/60042
24705 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24706 (insert_into_preds_of_block): Do not prevent PHI insertion
24707 for REFERENCE exprs here ...
24708 (eliminate_dom_walker::before_dom_children): ... but prevent
24709 their use here under similar conditions when applied to the
24710 IL after PRE optimizations.
24711
24712 2014-04-14 Richard Biener <rguenther@suse.de>
24713
24714 * passes.def: Move early points-to after early SRA.
24715
24716 2014-04-14 Richard Biener <rguenther@suse.de>
24717
24718 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24719 check for which sign-changes we allow when forwarding
24720 a converted value into a switch.
24721
24722 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24723
24724 * stor-layout.c (place_field): Finalize non-constant offset for the
24725 field, if any.
24726
24727 2014-04-14 Richard Biener <rguenther@suse.de>
24728
24729 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24730 as argument.
24731 (expand_switch_using_bit_tests_p): Likewise.
24732 (process_switch): Compute and pass on speed_p based on the
24733 switch stmt.
24734 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24735 optimize_bb_for_speed_p.
24736
24737 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24738
24739 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24740 * function.h (struct function): Rename has_force_vect_loops into
24741 has_force_vectorize_loops.
24742 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24743 (input_struct_function_base): Likewise.
24744 * lto-streamer-out.c (output_cfg): Likewise.
24745 (output_struct_function_base): Likewise.
24746 * omp-low.c (expand_omp_simd): Likewise.
24747 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24748 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24749 (version_loop_for_if_conversion): Likewise.
24750 (tree_if_conversion): Likewise.
24751 (main_tree_if_conversion): Likewise.
24752 (gate_tree_if_conversion): Likewise.
24753 * tree-inline.c (copy_loops): Likewise.
24754 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24755 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24756 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24757 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24758 * tree-vectorizer.c (vectorize_loops): Likewise.
24759 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24760
24761 2014-04-14 Richard Biener <rguenther@suse.de>
24762
24763 PR lto/60720
24764 * lto-streamer-out.c (wrap_refs): New function.
24765 (lto_output): Wrap symbol references in global initializes in
24766 type-preserving MEM_REFs.
24767
24768 2014-04-14 Christian Bruel <christian.bruel@st.com>
24769
24770 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24771
24772 2014-04-14 Christian Bruel <christian.bruel@st.com>
24773
24774 * config/sh/sh.md (setmemqi): New expand pattern.
24775 * config/sh/sh.h (CLEAR_RATIO): Define.
24776 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24777 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24778
24779 2014-04-14 Richard Biener <rguenther@suse.de>
24780
24781 PR middle-end/55022
24782 * fold-const.c (negate_expr_p): Don't negate directional rounding
24783 division.
24784 (fold_negate_expr): Likewise.
24785
24786 2014-04-14 Richard Biener <rguenther@suse.de>
24787
24788 PR tree-optimization/59817
24789 PR tree-optimization/60453
24790 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24791 recursion to catch all CHRECs in the scalar evolution and restrict
24792 the predicate for the remains appropriately.
24793
24794 2014-04-12 Catherine Moore <clm@codesourcery.com>
24795
24796 * config/mips/constraints.md: Add new register constraint "kb".
24797 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24798 (*movhi_internal): Likewise.
24799 (*movqi_internal): Likewise.
24800 * config/mips/mips.h (M16_STORE_REGS): New register class.
24801 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24802 (REG_CLASS_CONTENTS): Likewise.
24803 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24804
24805 2014-04-11 Tobias Burnus <burnus@net-b.de>
24806
24807 PR c/60194
24808 * doc/invoke.texi (-Wformat-signedness): Document it.
24809 (Wformat=2): Mention that this enables -Wformat-signedness.
24810
24811 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24812
24813 * common/config/epiphany/epiphany-common.c
24814 (epiphany_option_optimization_table): Enable section anchors by
24815 default at -O1 or higher.
24816 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24817 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24818 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24819 carries no extra cost.
24820 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24821 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24822 * config/epiphany/predicates.md (memclob_operand): New predicate.
24823 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24824 Use memclob_operand predicate and X constraint for operand 3.
24825
24826 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24827
24828 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24829 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24830 its operands.
24831
24832 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24833
24834 PR rtl-optimization/60651
24835 * mode-switching.c (optimize_mode_switching): Make sure to emit
24836 sets of a lower numbered entity before sets of a higher numbered
24837 entity to a mode of the same or lower priority.
24838 When creating a seginfo for a basic block that starts with a code
24839 label, move the insertion point past the code label.
24840 (new_seginfo): Document and enforce requirement that
24841 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24842 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24843 * doc/tm.texi: Regenerate.
24844
24845 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24846
24847 PR target/60811
24848 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24849
24850 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24851
24852 * BASE-VER: Set to 4.10.0.
24853
24854 2014-04-11 Tobias Burnus <burnus@net-b.de>
24855
24856 PR other/59055
24857 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24858 * doc/gcc.texi (Service): Update description in the @menu
24859 * doc/invoke.texi (Option Summary): Remove misplaced and
24860 duplicated @menu.
24861
24862 2014-04-11 Steve Ellcey <sellcey@mips.com>
24863 Jakub Jelinek <jakub@redhat.com>
24864
24865 PR middle-end/60556
24866 * expr.c (convert_move): Use emit_store_flag_force instead of
24867 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24868 argument to it.
24869
24870 2014-04-11 Richard Biener <rguenther@suse.de>
24871
24872 PR middle-end/60797
24873 * varasm.c (assemble_alias): Avoid endless error reporting
24874 recursion by setting TREE_ASM_WRITTEN.
24875
24876 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24877
24878 * config/s390/s390.md: Add a splitter for NOT rtx.
24879
24880 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24881
24882 PR rtl-optimization/60663
24883 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24884
24885 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24886 Jakub Jelinek <jakub@redhat.com>
24887
24888 PR lto/60567
24889 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24890 flag from decl_node to node.
24891
24892 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24893
24894 PR debug/60655
24895 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24896 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24897 ameliorating the cases where it can be.
24898
24899 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24900
24901 Revert
24902 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24903
24904 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24905 (loadsync_<mode>): Change mode.
24906 (load_quadpti, store_quadpti): New.
24907 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24908 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24909 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24910
24911 2014-04-09 Cong Hou <congh@google.com>
24912
24913 PR testsuite/60773
24914 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24915 documentation.
24916
24917 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24918
24919 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24920 instead of vnor to exploit possible fusion opportunity in the
24921 future.
24922 (altivec_expand_vec_perm_const_le): Likewise.
24923
24924 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24925
24926 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24927 (loadsync_<mode>): Change mode.
24928 (load_quadpti, store_quadpti): New.
24929 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24930 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24931
24932 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24933
24934 PR target/60763
24935 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24936 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24937 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24938
24939 2014-04-08 Richard Biener <rguenther@suse.de>
24940
24941 PR middle-end/60706
24942 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24943 a 64bit widest int print double-int similar to on HWI64 hosts.
24944
24945 2014-04-08 Richard Biener <rguenther@suse.de>
24946
24947 PR tree-optimization/60785
24948 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24949 default defs properly.
24950
24951 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24952
24953 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24954 (Weffc++): Likewise.
24955
24956 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24957
24958 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24959 set completep to false rather than true.
24960
24961 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24962
24963 PR target/60504
24964 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24965 ARM_TARGET2_DWARF_FORMAT.
24966
24967 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24968
24969 PR target/60609
24970 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24971 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24972 ADDR_DIFF_VEC.
24973
24974 2014-04-07 Richard Biener <rguenther@suse.de>
24975
24976 PR tree-optimization/60766
24977 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24978 (may_eliminate_iv): Convert cand_value_at result to desired type.
24979
24980 2014-04-07 Jason Merrill <jason@redhat.com>
24981
24982 PR c++/60731
24983 * common.opt (-fno-gnu-unique): Add.
24984 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24985
24986 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24987
24988 * haifa-sched.c: Fix outdated function reference and minor
24989 grammar errors in introductory comment.
24990
24991 2014-04-07 Richard Biener <rguenther@suse.de>
24992
24993 PR middle-end/60750
24994 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24995 for noreturn calls.
24996 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24997
24998 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24999
25000 PR debug/55794
25001 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25002 size accounting for thunks.
25003 (pa_asm_output_mi_thunk): Use final_start_function() and
25004 final_end_function() to output function start and end directives.
25005
25006 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
25007
25008 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25009 device specific ISA/ feature information. Remove short_sp and
25010 errata_skip ds. Add avr_device_specific_features enum to have device
25011 specific info.
25012 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25013 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25014 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25015 updated device specific info.
25016 * config/avr/avr-mcus.def: Merge device specific details to
25017 dev_attribute field.
25018 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25019 errata_skip.
25020 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25021 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25022 assembler if RMW isa supported by current device.
25023 * config/avr/genmultilib.awk: Update as device info structure changed.
25024 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25025
25026 2014-04-04 Cong Hou <congh@google.com>
25027
25028 PR tree-optimization/60656
25029 * tree-vect-stmts.c (supportable_widening_operation):
25030 Fix a bug that elements in a vector with vect_used_by_reduction
25031 property are incorrectly reordered when the operation on it is not
25032 consistant with the one in reduction operation.
25033
25034 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
25035
25036 PR rtl-optimization/60155
25037 * gcse.c (record_set_data): New function.
25038 (single_set_gcse): New function.
25039 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25040 (hoist_code): Likewise.
25041 (get_pressure_class_and_nregs): Likewise.
25042
25043 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
25044
25045 * explow.c (probe_stack_range): Emit a final optimization blockage.
25046
25047 2014-04-04 Anthony Green <green@moxielogic.com>
25048
25049 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25050 typos.
25051
25052 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
25053
25054 PR ipa/59626
25055 * lto-cgraph.c (input_overwrite_node): Check that partitioning
25056 flags are set only during streaming.
25057 * ipa.c (process_references, walk_polymorphic_call_targets,
25058 symtab_remove_unreachable_nodes): Drop bodies of always inline
25059 after early inlining.
25060 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25061
25062 2014-04-04 Jakub Jelinek <jakub@redhat.com>
25063 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25064
25065 PR debug/60655
25066 * dwarf2out.c (const_ok_for_output_1): Reject expressions
25067 containing a NOT.
25068
25069 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25070
25071 PR bootstrap/60743
25072 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25073 duration.
25074 (cortex_a53_fdivd): Likewise.
25075
25076 2014-04-04 Martin Jambor <mjambor@suse.cz>
25077
25078 PR ipa/60640
25079 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25080 Adjust all callers.
25081 * cgraph.c (clone_of_p): Also return true if thunks match.
25082 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25083 cgraph_function_or_thunk_node and an obsolete comment.
25084 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25085 file.
25086 (build_function_decl_skip_args): Likewise.
25087 (set_new_clone_decl_and_node_flags): New function.
25088 (duplicate_thunk_for_node): Likewise.
25089 (redirect_edge_duplicating_thunks): Likewise.
25090 (cgraph_clone_node): New parameter args_to_skip, pass it to
25091 redirect_edge_duplicating_thunks which is called instead of
25092 cgraph_redirect_edge_callee.
25093 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25094 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25095
25096 2014-04-04 Jeff Law <law@redhat.com>
25097
25098 PR target/60657
25099 * config/arm/predicates.md (const_int_I_operand): New predicate.
25100 (const_int_M_operand): Similarly.
25101 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25102 const_int_operand.
25103 (insv_t2, extv_reg, extzv_t2): Likewise.
25104 (load_multiple_with_writeback): Similarly for const_int_I_operand.
25105 (pop_multiple_with_writeback_and_return): Likewise.
25106 (vfp_pop_multiple_with_writeback): Likewise
25107
25108 2014-04-04 Richard Biener <rguenther@suse.de>
25109
25110 PR ipa/60746
25111 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25112 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25113 non-GIMPLE_LABELs.
25114 * gimplify.h (gimple_add_tmp_var_fn): Declare.
25115 * gimplify.c (gimple_add_tmp_var_fn): New function.
25116 * gimple-expr.h (create_tmp_reg_fn): Declare.
25117 * gimple-expr.c (create_tmp_reg_fn): New function.
25118 * gimple-low.c (record_vars_into): Don't change cfun.
25119 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25120 code generation without cfun.
25121
25122 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25123
25124 PR bootstrap/60719
25125 * Makefile.in (install-driver): Fix shell scripting.
25126
25127 2014-04-03 Cong Hou <congh@google.com>
25128
25129 PR tree-optimization/60505
25130 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25131 threshold of number of iterations below which no vectorization
25132 will be done.
25133 * tree-vect-loop.c (new_loop_vec_info):
25134 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25135 * tree-vect-loop.c (vect_analyze_loop_operations):
25136 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25137 * tree-vect-loop.c (vect_transform_loop):
25138 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25139 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25140 of iterations of the loop and see if we should build the epilogue.
25141
25142 2014-04-03 Richard Biener <rguenther@suse.de>
25143
25144 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25145 (streamer_tree_cache_create): Adjust.
25146 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25147 to allow optional nodes array.
25148 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25149 (streamer_tree_cache_append): Likewise.
25150 (streamer_tree_cache_create): Create nodes array optionally
25151 as specified by parameter.
25152 * lto-streamer-out.c (create_output_block): Avoid maintaining
25153 the node array in the writer cache.
25154 (DFS_write_tree): Remove assertion.
25155 (produce_asm_for_decls): Free the out decl state hash table early.
25156 * lto-streamer-in.c (lto_data_in_create): Adjust for
25157 streamer_tree_cache_create prototype change.
25158
25159 2014-04-03 Richard Biener <rguenther@suse.de>
25160
25161 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25162 set TREE_CHAIN to NULL_TREE.
25163
25164 2014-04-03 Richard Biener <rguenther@suse.de>
25165
25166 PR tree-optimization/60740
25167 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25168 over all GIMPLE_COND operands.
25169
25170 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25171
25172 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25173 (Weffc++): Remove Scott's numbering, merge lists and reference
25174 Wnon-virtual-dtor.
25175
25176 2014-04-03 Nick Clifton <nickc@redhat.com>
25177
25178 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25179 properly.
25180
25181 2014-04-03 Martin Jambor <mjambor@suse.cz>
25182
25183 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25184 mention gcc_unreachable before failing.
25185 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25186 removed symbols.
25187
25188 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25189
25190 PR ipa/60659
25191 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25192 inconsistent code and instead mark the context inconsistent.
25193 (possible_polymorphic_call_targets): For inconsistent contexts
25194 return empty complete list.
25195
25196 2014-04-02 Anthony Green <green@moxielogic.com>
25197
25198 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25199 (extendqisi2, extendhisi2): Define.
25200 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25201 (WCHAR_TYPE): Change to unsigned int.
25202
25203 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25204
25205 PR tree-optimization/60733
25206 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25207 insertion point for PHI candidates to be the end of the feeding
25208 block for the PHI argument.
25209
25210 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25211
25212 PR rtl-optimization/60650
25213 * lra-constraints.c (process_alt_operands): Decrease reject for
25214 earlyclobber matching.
25215
25216 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25217
25218 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25219
25220 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25221
25222 * config/spu/spu.c (pad_bb): Do not crash when the last
25223 insn is CODE_FOR_blockage.
25224
25225 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25226
25227 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25228 lies outside the target mode.
25229
25230 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25231
25232 PR target/60735
25233 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25234 software floating point or no floating point registers, do not
25235 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25236 in GPRs that occurs after we tested for GPRs that would never be
25237 true.
25238
25239 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25240 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25241 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25242 specifically allow DDmode, since that does not use the SPE SIMD
25243 instructions.
25244
25245 2014-04-02 Richard Biener <rguenther@suse.de>
25246
25247 PR middle-end/60729
25248 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25249 MODE_INTs. Properly use negv_optab.
25250 (expand_abs): Likewise.
25251
25252 2014-04-02 Richard Biener <rguenther@suse.de>
25253
25254 PR bootstrap/60719
25255 * Makefile.in (install-driver): Guard extra installs with special
25256 names properly.
25257
25258 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25259
25260 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25261 Document vec_vgbbd.
25262
25263 2014-04-01 Richard Henderson <rth@redhat.com>
25264
25265 PR target/60704
25266 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25267 alternative enabled before register allocation.
25268
25269 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25270
25271 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25272 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25273 typo.
25274 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25275 (nios2_got_address): Update nios2_large_got_address call site.
25276 (nios2_delegitimize_address): New function.
25277 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25278 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25279 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25280
25281 2014-04-01 Martin Husemann <martin@duskware.de>
25282
25283 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25284 for -mabi=32.
25285
25286 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25287
25288 PR rtl-optimization/60604
25289 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25290 check from register_operand.
25291 (register_operand): Redefine in terms of general_operand.
25292 (nonmemory_operand): Use register_operand for the non-constant cases.
25293
25294 2014-04-01 Richard Biener <rguenther@suse.de>
25295
25296 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25297
25298 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25299
25300 * doc/invoke.texi (mapp-regs): Clarify.
25301
25302 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25303
25304 * config/i386/avx512fintrin.h (__v32hi): Define type.
25305 (__v64qi): Likewise.
25306 (_mm512_set1_epi8): Define.
25307 (_mm512_set1_epi16): Define.
25308 (_mm512_set4_epi32): Define.
25309 (_mm512_set4_epi64): Define.
25310 (_mm512_set4_pd): Define.
25311 (_mm512_set4_ps): Define.
25312 (_mm512_setr4_epi64): Define.
25313 (_mm512_setr4_epi32): Define.
25314 (_mm512_setr4_pd): Define.
25315 (_mm512_setr4_ps): Define.
25316 (_mm512_setzero_epi32): Define.
25317
25318 2014-03-31 Martin Jambor <mjambor@suse.cz>
25319
25320 PR middle-end/60647
25321 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25322 callsite_arguments_match_p. Updated all callers. Also check types of
25323 corresponding formal parameters and actual arguments.
25324 (not_all_callers_have_enough_arguments_p) Renamed to
25325 some_callers_have_mismatched_arguments_p.
25326
25327 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25328
25329 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25330
25331 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25332
25333 PR target/60034
25334 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25335 section anchor.
25336
25337 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25338
25339 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25340 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25341 Split out
25342 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25343 Use FMAMODE_NOVF512 mode iterator.
25344 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25345 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25346 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25347 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25348 Split out
25349 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25350 Use VF_128_256 mode iterator.
25351 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25352 Ditto.
25353
25354 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25355
25356 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25357 static chain if needed.
25358
25359 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25360
25361 PR target/60697
25362 * lra-constraints.c (index_part_to_reg): New.
25363 (process_address): Use it.
25364
25365 2014-03-27 Jeff Law <law@redhat.com>
25366 Jakub Jelinek <jakub@redhat.com>
25367
25368 PR target/60648
25369 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25370 gen_rtx_{PLUS,MULT} to build up the address expression.
25371
25372 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25373 creating non-canonical RTL.
25374
25375 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25376
25377 PR ipa/60243
25378 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25379 functions; reorganize to make cheap checks first.
25380 (inline_small_functions): Do not estimate growth when dumping;
25381 it is expensive.
25382 * ipa-inline.h (inline_summary): Add min_size.
25383 (growth_likely_positive): New function.
25384 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25385 (set_cond_stmt_execution_predicate): Cleanup.
25386 (estimate_edge_size_and_time): Compute min_size.
25387 (estimate_calls_size_and_time): Likewise.
25388 (estimate_node_size_and_time): Likewise.
25389 (inline_update_overall_summary): Update min_size.
25390 (do_estimate_edge_time): Likewise.
25391 (do_estimate_edge_size): Update.
25392 (do_estimate_edge_hints): Update.
25393 (growth_likely_positive): New function.
25394
25395 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25396
25397 PR target/60693
25398 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25399 also if addr has VOIDmode.
25400
25401 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25402
25403 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25404 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25405 Declare extern.
25406 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25407 instructions as well as AdvancedSIMD loads.
25408
25409 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25410
25411 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25412 Use crypto_aese type.
25413 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25414 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25415 crypto_aese, crypto_aesmc. Move to types.md.
25416 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25417 crypto_aesmc.
25418 * config/arm/iterators.md (crypto_type): Likewise.
25419
25420 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25421
25422 * cgraph.c: Include expr.h and tree-dfa.h.
25423 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25424 remove LHS.
25425
25426 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25427
25428 PR target/60675
25429 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25430 regs from checking multi-reg pseudos.
25431
25432 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25433
25434 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25435
25436 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25437
25438 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25439 if it would clobber the stack pointer, even temporarily.
25440
25441 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25442
25443 * mode-switching.c: Make small adjustments to the top comment.
25444
25445 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25446
25447 * config/rs6000/constraints.md (wD constraint): New constraint to
25448 match the constant integer to get the top DImode/DFmode out of a
25449 vector in a VSX register.
25450
25451 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25452 match the constant integer to get the top DImode/DFmode out of a
25453 vector in a VSX register.
25454
25455 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25456 for ISA 2.07.
25457
25458 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25459 vbpermq builtins.
25460
25461 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25462 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25463
25464 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25465 Optimize vec_extract of 64-bit values, where the value being
25466 extracted is in the top word, where we can use scalar
25467 instructions. Add direct move and store support. Combine the big
25468 endian/little endian vector select load support into a single insn.
25469 (vsx_extract_<mode>_internal1): Likewise.
25470 (vsx_extract_<mode>_internal2): Likewise.
25471 (vsx_extract_<mode>_load): Likewise.
25472 (vsx_extract_<mode>_store): Likewise.
25473 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25474 combined into vsx_extract_<mode>_load.
25475 (vsx_extract_<mode>_one_le): Likewise.
25476
25477 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25478 define the top 64-bit vector element.
25479
25480 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25481 constraint.
25482
25483 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25484 Document vec_vbpermq builtin.
25485
25486 PR target/60672
25487 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25488 enable use of xxsldwi and xxpermdi builtin functions.
25489 (vec_xxpermdi): Likewise.
25490
25491 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25492 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25493
25494 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25495
25496 PR rtl-optimization/60650
25497 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25498 first_p. Use it.
25499 (find_spills_for): New.
25500 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25501 Spill all pseudos on the second iteration.
25502
25503 2014-03-27 Marek Polacek <polacek@redhat.com>
25504
25505 PR c/50347
25506 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25507 types.
25508
25509 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25510
25511 * config/s390/s390.c (s390_can_use_return_insn): Check for
25512 call-saved FPRs on 31 bit.
25513
25514 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25515
25516 PR middle-end/60682
25517 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25518 if they need regimplification, just drop them instead of
25519 calling gimple_regimplify_operands on them.
25520
25521 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25522
25523 PR target/60580
25524 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25525 (aarch64_frame_pointer_required): Adjust logic.
25526 (aarch64_can_eliminate): Adjust logic.
25527 (aarch64_override_options_after_change): Adjust logic.
25528
25529 2014-03-27 Dehao Chen <dehao@google.com>
25530
25531 * ipa-inline.c (early_inliner): Update node's inline info.
25532
25533 2014-03-26 Dehao Chen <dehao@google.com>
25534
25535 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25536 compiler inserted conditional jumps for NAN float check.
25537
25538 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25539
25540 * ubsan.h (ubsan_create_data): Change second argument's type
25541 to const location_t *.
25542 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25543 _("<unknown>").
25544 (ubsan_create_data): Change second argument to const location_t *PLOC.
25545 Create Loc field whenever PLOC is non-NULL.
25546 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25547 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25548 callers.
25549
25550 PR other/59545
25551 * real.c (real_to_integer2): Change type of low to UHWI.
25552
25553 2014-03-26 Tobias Burnus <burnus@net-b.de>
25554
25555 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25556 (CILK_SELF_SPECS): New define.
25557 (driver_self_specs): Use it.
25558
25559 2014-03-26 Richard Biener <rguenther@suse.de>
25560
25561 * tree-pretty-print.c (percent_K_format): Implement special
25562 case for LTO and its stripped down BLOCK tree.
25563
25564 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25565
25566 PR sanitizer/60636
25567 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25568
25569 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25570 one range is range_int_cst_p, but not both, at least optimize
25571 addition/subtraction of 0 and multiplication by 0 or 1.
25572 * gimple-fold.c (gimple_fold_call): Fold
25573 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25574 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25575 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25576
25577 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25578
25579 PR rtl-optimization/60452
25580 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25581 <case REG>: Return 1 for invalid offsets from the frame pointer.
25582
25583 2014-03-26 Marek Polacek <polacek@redhat.com>
25584
25585 PR c/37428
25586 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25587 a structure/union.
25588
25589 2014-03-26 Marek Polacek <polacek@redhat.com>
25590
25591 PR c/39525
25592 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25593 field members.
25594
25595 2014-03-26 Marek Polacek <polacek@redhat.com>
25596
25597 PR other/59545
25598 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25599 multiplication in unsigned type.
25600
25601 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25602
25603 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25604
25605 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25606
25607 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25608
25609 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25610
25611 PR ipa/60315
25612 * cif-code.def (UNREACHABLE) New code.
25613 * ipa-inline.c (inline_small_functions): Skip edges to
25614 __builtlin_unreachable.
25615 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25616 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25617 predicate to __bulitin_unreachable.
25618 (set_cond_stmt_execution_predicate): Fix issue when
25619 invert_tree_comparison returns ERROR_MARK.
25620 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25621 propagate to inline clones.
25622 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25623 to unreachable.
25624 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25625 * cgraphclones.c (cgraph_clone_node): If call destination is already
25626 ureachable, do not redirect it back.
25627 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25628 unreachable.
25629
25630 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25631
25632 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25633 Do not modify inline clones.
25634
25635 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25636
25637 * config/i386/i386.md (general_sext_operand): New mode attr.
25638 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25639 don't generate (sign_extend (const_int)).
25640 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25641 operands[2]. Use We constraint instead of <i> and
25642 <general_sext_operand> predicate instead of <general_operand>.
25643 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25644 * config/i386/constraints.md (We): New constraint.
25645 * config/i386/predicates.md (x86_64_sext_operand,
25646 sext_operand): New predicates.
25647
25648 2014-03-25 Martin Jambor <mjambor@suse.cz>
25649
25650 PR ipa/60600
25651 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25652 inconsistent devirtualizations to __builtin_unreachable.
25653
25654 2014-03-25 Marek Polacek <polacek@redhat.com>
25655
25656 PR c/35449
25657 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25658
25659 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25660
25661 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25662 order of elements for big-endian.
25663
25664 2014-03-25 Richard Biener <rguenther@suse.de>
25665
25666 PR middle-end/60635
25667 * gimplify-me.c (gimple_regimplify_operands): Update the
25668 re-gimplifed stmt.
25669
25670 2014-03-25 Martin Jambor <mjambor@suse.cz>
25671
25672 PR ipa/59176
25673 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25674 (lto_output_varpool_node): Likewise.
25675 (input_overwrite_node): Likewise.
25676 (input_varpool_node): Likewise.
25677
25678 2014-03-25 Richard Biener <rguenther@suse.de>
25679
25680 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25681 (run_gcc): Likewise.
25682
25683 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25684
25685 * combine.c (simplify_compare_const): Add MODE argument.
25686 Handle mode_width 0 as very large mode_width.
25687 (try_combine, simplify_comparison): Adjust callers.
25688
25689 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25690 type to avoid signed integer overflow.
25691 * explow.c (plus_constant): Likewise.
25692
25693 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25694
25695 * doc/generic.texi: Correct typos.
25696
25697 2014-03-24 Tobias Burnus <burnus@net-b.de>
25698
25699 * doc/invoke.texi (-flto): Expand section about
25700 using static libraries with LTO.
25701
25702 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25703
25704 PR rtl-optimization/60501
25705 * optabs.def (addptr3_optab): New optab.
25706 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25707 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25708 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25709
25710 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25711
25712 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25713
25714 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25715
25716 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25717 _mm512_set1_pd.
25718
25719 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25720 (_mm256_undefined_ps): Define.
25721 (_mm256_undefined_pd): Define.
25722 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25723 (_mm_undefined_pd): Define.
25724 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25725 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25726 (_mm512_undefined_ps): Define.
25727 (_mm512_undefined_pd): Define.
25728 Use _mm*_undefined_*.
25729 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25730
25731 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25732
25733 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25734 (lshr_simd): DI mode added.
25735 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25736 (aarch64_ushr_simddi): Likewise.
25737 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25738 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25739 (vshrd_n_u64): Likewise.
25740
25741 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25742
25743 * Makefile.in (s-macro_list): Depend on cc1.
25744
25745 2014-03-23 Teresa Johnson <tejohnson@google.com>
25746
25747 * ipa-utils.c (ipa_print_order): Use specified dump file.
25748
25749 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25750
25751 PR rtl-optimization/60601
25752 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25753
25754 * gcc.c (eval_spec_function): Initialize save_growing_value.
25755
25756 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25757
25758 PR sanitizer/60613
25759 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25760 code == MINUS_EXPR, never swap op0 with op1.
25761
25762 * toplev.c (init_local_tick): Avoid signed integer multiplication
25763 overflow.
25764 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25765 shift by first operand's bitsize.
25766
25767 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25768
25769 PR target/60610
25770 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25771 redefine to 1 or 0.
25772 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25773 TARGET_ISA_64BIT_P(x).
25774
25775 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25776
25777 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25778 pattern for vector nor instead of subtract from splat(-1).
25779 (altivec_expand_vec_perm_const_le): Likewise.
25780
25781 2014-03-21 Richard Henderson <rth@twiddle.net>
25782
25783 PR target/60598
25784 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25785 related insns after epilogue_completed.
25786
25787 2014-03-21 Martin Jambor <mjambor@suse.cz>
25788
25789 PR ipa/59176
25790 * cgraph.h (symtab_node): New flag body_removed.
25791 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25792 when removing bodies.
25793 * symtab.c (dump_symtab_base): Dump body_removed flag.
25794 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25795 had their bodies removed.
25796
25797 2014-03-21 Martin Jambor <mjambor@suse.cz>
25798
25799 PR ipa/60419
25800 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25801 in the border.
25802
25803 2014-03-21 Richard Biener <rguenther@suse.de>
25804
25805 PR tree-optimization/60577
25806 * tree-core.h (struct tree_base): Document nothrow_flag use
25807 in DECL_NONALIASED.
25808 * tree.h (DECL_NONALIASED): New.
25809 (may_be_aliased): Adjust.
25810 * coverage.c (build_var): Set DECL_NONALIASED.
25811
25812 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25813
25814 * expr.c (expand_expr_real_1): Remove outdated comment.
25815
25816 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25817
25818 PR middle-end/60597
25819 * ira.c (adjust_cleared_regs): Call copy_rtx on
25820 *reg_equiv[REGNO (loc)].src_p before passing it to
25821 simplify_replace_fn_rtx.
25822
25823 PR target/60568
25824 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25825 into CONST, put pic register as first operand of PLUS. Use
25826 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25827
25828 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25829
25830 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25831
25832 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25833
25834 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25835 around for store forwarding issue in the FPU on the UT699.
25836 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25837 loads and operations if -mfix-ut699 is specified.
25838 (divtf3_hq): Tweak attribute.
25839 (sqrttf2_hq): Likewise.
25840
25841 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25842
25843 * calls.c (store_one_arg): Remove incorrect const qualification on the
25844 type of the temporary.
25845 * cfgexpand.c (expand_return): Likewise.
25846 * expr.c (expand_constructor): Likewise.
25847 (expand_expr_real_1): Likewise.
25848
25849 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25850
25851 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25852 of parts.
25853
25854 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25855
25856 PR target/60039
25857 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25858
25859 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25860
25861 * config/arm/aarch-common-protos.h
25862 (alu_cost_table): Fix spelling of "extend".
25863 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25864
25865 2014-03-19 Richard Biener <rguenther@suse.de>
25866
25867 PR middle-end/60553
25868 * tree-core.h (tree_type_common): Re-order pointer members
25869 to reduce recursion depth during GC walks.
25870
25871 2014-03-19 Marek Polacek <polacek@redhat.com>
25872
25873 PR sanitizer/60569
25874 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25875 before accessing it.
25876
25877 2014-03-19 Richard Biener <rguenther@suse.de>
25878
25879 PR lto/59543
25880 * lto-streamer-in.c (input_function): In WPA stage do not drop
25881 debug stmts.
25882
25883 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25884
25885 PR tree-optimization/60559
25886 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25887 with build_zero_cst assignment.
25888
25889 2014-03-18 Kai Tietz <ktietz@redhat.com>
25890
25891 PR rtl-optimization/56356
25892 * sdbout.c (sdbout_parms): Verify that parms'
25893 incoming argument is valid.
25894 (sdbout_reg_parms): Likewise.
25895
25896 2014-03-18 Richard Henderson <rth@redhat.com>
25897
25898 PR target/60562
25899 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25900 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25901 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25902
25903 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25904
25905 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25906 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25907 Italicize plugin event names in description. Explain that
25908 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25909 Remind that no GCC functions should be called after PLUGIN_FINISH.
25910 Explain what pragmas with expansion are.
25911
25912 2014-03-18 Martin Liska <mliska@suse.cz>
25913
25914 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25915 gimple call statement is update.
25916 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25917 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25918
25919 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25920
25921 PR sanitizer/60557
25922 * ubsan.c (ubsan_instrument_unreachable): Call
25923 initialize_sanitizer_builtins.
25924 (ubsan_pass): Likewise.
25925
25926 PR sanitizer/60535
25927 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25928 varpool_finalize_decl instead of rest_of_decl_compilation.
25929
25930 2014-03-18 Richard Biener <rguenther@suse.de>
25931
25932 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25933 by using bitmap_and_compl instead of bitmap_and_compl_into.
25934 (df_rd_transfer_function): Likewise.
25935
25936 2014-03-18 Richard Biener <rguenther@suse.de>
25937
25938 * doc/lto.texi (fresolution): Fix typo.
25939
25940 2014-03-18 Richard Biener <rguenther@suse.de>
25941
25942 * doc/invoke.texi (flto): Update for changes in 4.9.
25943
25944 2014-03-18 Richard Biener <rguenther@suse.de>
25945
25946 * doc/loop.texi: Remove section on the removed lambda framework.
25947 Update loop docs with recent changes in preserving loop structure.
25948
25949 2014-03-18 Richard Biener <rguenther@suse.de>
25950
25951 * doc/lto.texi (-fresolution): Document.
25952
25953 2014-03-18 Richard Biener <rguenther@suse.de>
25954
25955 * doc/contrib.texi: Adjust my name.
25956
25957 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25958
25959 PR ipa/58721
25960 * internal-fn.c: Include diagnostic-core.h.
25961 (expand_BUILTIN_EXPECT): New function.
25962 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25963 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25964 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25965 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25966 IFN_BUILTIN_EXPECT.
25967 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25968 Revert 3 argument __builtin_expect code.
25969 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25970 * gimple-fold.c (gimple_fold_call): Likewise.
25971 * tree.h (fold_builtin_expect): New prototype.
25972 * builtins.c (build_builtin_expect_predicate): Add predictor
25973 argument, if non-NULL, create 3 argument __builtin_expect.
25974 (fold_builtin_expect): No longer static. Add ARG2 argument,
25975 pass it through to build_builtin_expect_predicate.
25976 (fold_builtin_2): Adjust caller.
25977 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25978 * internal-fn.def (BUILTIN_EXPECT): New.
25979
25980 2014-03-18 Tobias Burnus <burnus@net-b.de>
25981
25982 PR ipa/58721
25983 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25984 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25985 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25986
25987 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25988
25989 PR ipa/58721
25990 * predict.c (combine_predictions_for_bb): Fix up formatting.
25991 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25992 fill what it points to if non-NULL.
25993 (tree_predict_by_opcode): Adjust caller, use the predictor.
25994 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25995
25996 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25997
25998 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25999 proper constant for the store mode.
26000
26001 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
26002
26003 * symtab.c (change_decl_assembler_name): Fix transparent alias
26004 chain construction.
26005
26006 2014-03-16 Renlin Li <Renlin.Li@arm.com>
26007
26008 * config/aarch64/aarch64.c: Correct the comments about the
26009 aarch64 stack layout.
26010
26011 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
26012
26013 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26014 check for GF_OMP_FOR_KIND_FOR.
26015
26016 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
26017
26018 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26019 ymm and zmm register names.
26020
26021 2014-03-17 Jakub Jelinek <jakub@redhat.com>
26022
26023 PR target/60516
26024 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26025 note creation for the 2010-08-31 changes.
26026
26027 2014-03-17 Marek Polacek <polacek@redhat.com>
26028
26029 PR middle-end/60534
26030 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26031 as -fno-tree-loop-vectorize.
26032 (expand_omp_simd): Likewise.
26033
26034 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
26035
26036 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26037 (eligible_for_call_delay): New prototype.
26038 * config/sparc/sparc.c (tls_call_delay): Rename into...
26039 (eligible_for_call_delay): ...this. Return false if the instruction
26040 cannot be put in the delay slot of a branch.
26041 (eligible_for_restore_insn): Simplify.
26042 (eligible_for_return_delay): Return false if the instruction cannot be
26043 put in the delay slot of a branch and simplify.
26044 (eligible_for_sibcall_delay): Return false if the instruction cannot be
26045 put in the delay slot of a branch.
26046 * config/sparc/sparc.md (fix_ut699): New attribute.
26047 (tls_call_delay): Delete.
26048 (in_call_delay): Reimplement.
26049 (eligible_for_sibcall_delay): Rename into...
26050 (in_sibcall_delay): ...this.
26051 (eligible_for_return_delay): Rename into...
26052 (in_return_delay): ...this.
26053 (in_branch_delay): Reimplement.
26054 (in_uncond_branch_delay): Delete.
26055 (in_annul_branch_delay): Delete.
26056
26057 2014-03-14 Richard Henderson <rth@redhat.com>
26058
26059 PR target/60525
26060 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26061 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26062 (*floathi<X87MODEF>2_i387_with_temp): Remove.
26063 (floathi splitters): Remove.
26064 (float<SWI48x>xf2): New pattern.
26065 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
26066 code that tried to handle DImode for 32-bit, but which was excluded
26067 by the pattern's condition. Drop allocation of stack temporary.
26068 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26069 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26070 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26071 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26072 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26073 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26074 (*float<SWI48><MODEF>2_sse_interunit): Remove.
26075 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26076 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26077 (*float<SWI48x><X87MODEF>2_i387): Remove.
26078 (all float _with_temp splitters): Remove.
26079 (*float<SWI48x><MODEF>2_i387): New pattern.
26080 (*float<SWI48><MODEF>2_sse): New pattern.
26081 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26082 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26083
26084 2014-03-14 Jakub Jelinek <jakub@redhat.com>
26085 Marek Polacek <polacek@redhat.com>
26086
26087 PR middle-end/60484
26088 * common.opt (dump_base_name_prefixed): New Variable.
26089 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26090 if x_dump_base_name_prefixed is already set, set it at the end.
26091
26092 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
26093
26094 PR rtl-optimization/60508
26095 * lra-constraints.c (get_reload_reg): Add new parameter
26096 in_subreg_p.
26097 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26098 Pass the new parameter values.
26099
26100 2014-03-14 Richard Biener <rguenther@suse.de>
26101
26102 * common.opt: Revert unintented changes from r205065.
26103 * opts.c: Likewise.
26104
26105 2014-03-14 Richard Biener <rguenther@suse.de>
26106
26107 PR middle-end/60518
26108 * cfghooks.c (split_block): Properly adjust all loops the
26109 block was a latch of.
26110
26111 2014-03-14 Martin Jambor <mjambor@suse.cz>
26112
26113 PR lto/60461
26114 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26115 and simplify it.
26116
26117 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26118
26119 PR target/59396
26120 * config/avr/avr.c (avr_set_current_function): Pass function name
26121 through default_strip_name_encoding before sanity checking instead
26122 of skipping the first char of the assembler name.
26123
26124 2014-03-13 Richard Henderson <rth@redhat.com>
26125
26126 PR debug/60438
26127 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26128 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26129 * config/i386/i386-protos.h: Likewise.
26130 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26131 in the expander instead of a splitter.
26132 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26133 any possibility of requiring a memory.
26134 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26135 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26136 (fp branch splitters): Update for ix86_split_fp_branch.
26137 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26138 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26139 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26140 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26141 (*fop_<MODEF>_3_i387): Likewise.
26142 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26143 (splitters for the fop_* register patterns): Remove.
26144 (fscalexf4_i387): Rename from *fscalexf4_i387.
26145 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26146
26147 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26148
26149 PR tree-optimization/59779
26150 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26151 type for bitsize and maxsize instead of HOST_WIDE_INT.
26152
26153 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26154
26155 PR rtl-optimization/57320
26156 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26157 the CFG after thread_prologue_and_epilogue_insns.
26158
26159 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26160
26161 PR rtl-optimization/57189
26162 * lra-constraints.c (process_alt_operands): Disfavor spilling
26163 vector pseudos.
26164
26165 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26166
26167 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26168
26169 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26170
26171 PR tree-optimization/59025
26172 PR middle-end/60418
26173 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26174 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26175
26176 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26177
26178 PR target/60486
26179 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26180 calls of avr_out_plus_1.
26181
26182 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26183
26184 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26185 BB's single pred and update the father loop's latch info later.
26186
26187 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26188
26189 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26190 (VEC_M): Likewise.
26191 (VEC_N): Likewise.
26192 (VEC_R): Likewise.
26193 (VEC_base): Likewise.
26194 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26195 registers, we need to swap double words in little endian mode.
26196
26197 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26198 to be a container mode for 128-bit integer operations added in ISA
26199 2.07. Unlike TImode and PTImode, the preferred register set is
26200 the Altivec/VMX registers for the 128-bit operations.
26201
26202 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26203 declarations.
26204 (rs6000_split_128bit_ok_p): Likewise.
26205
26206 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26207 macros for creating ISA 2.07 normal and overloaded builtin
26208 functions with 3 arguments.
26209 (BU_P8V_OVERLOAD_3): Likewise.
26210 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26211 for use as overloaded functions.
26212 (VPERM_1TI_UNS): Likewise.
26213 (VSEL_1TI): Likewise.
26214 (VSEL_1TI_UNS): Likewise.
26215 (ST_INTERNAL_1ti): Likewise.
26216 (LD_INTERNAL_1ti): Likewise.
26217 (XXSEL_1TI): Likewise.
26218 (XXSEL_1TI_UNS): Likewise.
26219 (VPERM_1TI): Likewise.
26220 (VPERM_1TI_UNS): Likewise.
26221 (XXPERMDI_1TI): Likewise.
26222 (SET_1TI): Likewise.
26223 (LXVD2X_V1TI): Likewise.
26224 (STXVD2X_V1TI): Likewise.
26225 (VEC_INIT_V1TI): Likewise.
26226 (VEC_SET_V1TI): Likewise.
26227 (VEC_EXT_V1TI): Likewise.
26228 (EQV_V1TI): Likewise.
26229 (NAND_V1TI): Likewise.
26230 (ORC_V1TI): Likewise.
26231 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26232 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26233 overloaded builtin.
26234 (VADDUQM): Likewise.
26235 (VSUBCUQ): Likewise.
26236 (VADDEUQM): Likewise.
26237 (VADDECUQ): Likewise.
26238 (VSUBEUQM): Likewise.
26239 (VSUBECUQ): Likewise.
26240
26241 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26242 __int128_t and __uint128_t types.
26243 (__uint128_type): Likewise.
26244 (altivec_categorize_keyword): Add support for vector __int128_t,
26245 vector __uint128_t, vector __int128, and vector unsigned __int128
26246 as a container type for TImode operations that need to be done in
26247 VSX/Altivec registers.
26248 (rs6000_macro_to_expand): Likewise.
26249 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26250 to support 128-bit integer instructions vaddcuq, vadduqm,
26251 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26252 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26253
26254 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26255 for V1TImode, and set up preferences to use VSX/Altivec registers.
26256 Setup VSX reload handlers.
26257 (rs6000_debug_reg_global): Likewise.
26258 (rs6000_init_hard_regno_mode_ok): Likewise.
26259 (rs6000_preferred_simd_mode): Likewise.
26260 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26261 (easy_altivec_constant): Likewise.
26262 (output_vec_const_move): Likewise.
26263 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26264 simple move.
26265 (rs6000_expand_vector_extract): Likewise.
26266 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26267 addressing.
26268 (rs6000_const_vec): Add support for V1TImode.
26269 (rs6000_emit_le_vsx_load): Swap double words when loading or
26270 storing TImode/V1TImode.
26271 (rs6000_emit_le_vsx_store): Likewise.
26272 (rs6000_emit_le_vsx_move): Likewise.
26273 (rs6000_emit_move): Add support for V1TImode.
26274 (altivec_expand_ld_builtin): Likewise.
26275 (altivec_expand_st_builtin): Likewise.
26276 (altivec_expand_vec_init_builtin): Likewise.
26277 (altivec_expand_builtin): Likewise.
26278 (rs6000_init_builtins): Add support for V1TImode type. Add
26279 support for ISA 2.07 128-bit integer builtins. Define type names
26280 for the VSX/Altivec vector types.
26281 (altivec_init_builtins): Add support for overloaded vector
26282 functions with V1TImode type.
26283 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26284 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26285 external function.
26286 (rs6000_split_128bit_ok_p): Likewise.
26287 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26288 __int128_t and vector __uint128_t.
26289
26290 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26291 and mode attributes.
26292 (VSX_M): Likewise.
26293 (VSX_M2): Likewise.
26294 (VSm): Likewise.
26295 (VSs): Likewise.
26296 (VSr): Likewise.
26297 (VSv): Likewise.
26298 (VS_scalar): Likewise.
26299 (VS_double): Likewise.
26300 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26301
26302 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26303 we support the ISA 2.07 128-bit integer arithmetic instructions.
26304 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26305 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26306 and TImode types for use with the builtin functions.
26307 (V1TI_type_node): Likewise.
26308 (unsigned_V1TI_type_node): Likewise.
26309 (intTI_type_internal_node): Likewise.
26310 (uintTI_type_internal_node): Likewise.
26311
26312 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26313 128-bit builtin functions.
26314 (UNSPEC_VADDEUQM): Likewise.
26315 (UNSPEC_VADDECUQ): Likewise.
26316 (UNSPEC_VSUBCUQ): Likewise.
26317 (UNSPEC_VSUBEUQM): Likewise.
26318 (UNSPEC_VSUBECUQ): Likewise.
26319 (VM): Add V1TImode to vector mode iterators.
26320 (VM2): Likewise.
26321 (VI_unit): Likewise.
26322 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26323 (altivec_vaddcuq): Likewise.
26324 (altivec_vsubuqm): Likewise.
26325 (altivec_vsubcuq): Likewise.
26326 (altivec_vaddeuqm): Likewise.
26327 (altivec_vaddecuq): Likewise.
26328 (altivec_vsubeuqm): Likewise.
26329 (altivec_vsubecuq): Likewise.
26330
26331 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26332 mode iterators.
26333 (BOOL_128): Likewise.
26334 (BOOL_REGS_OUTPUT): Likewise.
26335 (BOOL_REGS_OP1): Likewise.
26336 (BOOL_REGS_OP2): Likewise.
26337 (BOOL_REGS_UNARY): Likewise.
26338 (BOOL_REGS_AND_CR0): Likewise.
26339
26340 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26341 128-bit integer builtin support.
26342 (vec_vadduqm): Likewise.
26343 (vec_vaddecuq): Likewise.
26344 (vec_vaddeuqm): Likewise.
26345 (vec_vsubecuq): Likewise.
26346 (vec_vsubeuqm): Likewise.
26347 (vec_vsubcuq): Likewise.
26348 (vec_vsubuqm): Likewise.
26349
26350 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26351 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26352 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26353 128-bit integer add/subtract to ISA 2.07.
26354
26355 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26356
26357 * config/arc/arc.c (arc_predicate_delay_insns):
26358 Fix third argument passed to conditionalize_nonjump.
26359
26360 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26361
26362 * config/aarch64/aarch64-builtins.c
26363 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26364 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26365 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26366 instead of __builtin_lfloor.
26367 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26368
26369 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26370
26371 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26372 (tree_ssa_ifcombine_bb_1): New function.
26373 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26374 is an empty forwarder block to then_bb or vice versa and then_bb
26375 and else_bb are effectively swapped.
26376
26377 2014-03-12 Christian Bruel <christian.bruel@st.com>
26378
26379 PR target/60264
26380 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26381 REG_CFA_DEF_CFA note.
26382 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26383 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26384
26385 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26386
26387 PR tree-optimization/60454
26388 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26389
26390 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26391
26392 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26393 Do not define target_cpu_default2 to generic.
26394 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26395 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26396 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26397
26398 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26399 Marc Glisse <marc.glisse@inria.fr>
26400
26401 PR tree-optimization/60502
26402 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26403 instead of build_low_bits_mask.
26404
26405 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26406
26407 PR middle-end/60482
26408 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26409 if there are multiple uses, but op doesn't live on E edge.
26410 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26411 clobber stmts before __builtin_unreachable.
26412
26413 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26414
26415 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26416 hard_frame_pointer_rtx.
26417 * cse.c (cse_insn): Remove volatile check.
26418 * cselib.c (cselib_process_insn): Likewise.
26419 * dse.c (scan_insn): Likewise.
26420
26421 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26422
26423 * config/arc/arc.c (conditionalize_nonjump): New function,
26424 broken out of ...
26425 (arc_ifcvt): ... this.
26426 (arc_predicate_delay_insns): Use it.
26427
26428 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26429
26430 * config/arc/predicates.md (extend_operand): During/after reload,
26431 allow const_int_operand.
26432 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26433 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26434 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26435 to "i".
26436 (umulsi3_highpart_i): Likewise.
26437
26438 2014-03-11 Richard Biener <rguenther@suse.de>
26439
26440 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26441 Add asserts to guard possible wrong-code bugs.
26442
26443 2014-03-11 Richard Biener <rguenther@suse.de>
26444
26445 PR tree-optimization/60429
26446 PR tree-optimization/60485
26447 * tree-ssa-structalias.c (set_union_with_increment): Properly
26448 take into account all fields that overlap the shifted vars.
26449 (do_sd_constraint): Likewise.
26450 (do_ds_constraint): Likewise.
26451 (get_constraint_for_ptr_offset): Likewise.
26452
26453 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26454
26455 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26456 (nios2_compute_frame_layout):
26457 Add calculation of cfun->machine->fp_save_offset.
26458 (nios2_expand_prologue): Correct setting of frame pointer register
26459 in prologue.
26460 (nios2_expand_epilogue): Update recovery of stack pointer from
26461 frame pointer accordingly.
26462 (nios2_initial_elimination_offset): Update calculation of offset
26463 for eliminating to HARD_FRAME_POINTER_REGNUM.
26464
26465 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26466
26467 PR ipa/60457
26468 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26469 cgraph_get_create_node on VAR_DECLs.
26470
26471 2014-03-10 Richard Biener <rguenther@suse.de>
26472
26473 PR middle-end/60474
26474 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26475
26476 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26477
26478 * config/vms/vms.opt (vms_float_format): New variable.
26479
26480 2014-03-08 Tobias Burnus <burnus@net-b.de>
26481
26482 * doc/invoke.texi (-fcilkplus): Update implementation status.
26483
26484 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26485 Richard Biener <rguenther@suse.de>
26486
26487 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26488 consistently accross all TUs.
26489 (run_gcc): Enable -fshort-double automatically at link at link-time
26490 and disallow override.
26491
26492 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26493
26494 PR target/58271
26495 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26496 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26497 if they can't be used.
26498
26499 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26500
26501 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26502 for Solaris 11/x86 ld.
26503 * configure: Regenerate.
26504
26505 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26506
26507 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26508 (LIB_TLS_SPEC): Save as ld_tls_libs.
26509 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26510 (HAVE_AS_IX86_TLSLDM): New test.
26511 * configure, config.in: Regenerate.
26512 * config/i386/i386.c (legitimize_tls_address): Fall back to
26513 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26514 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26515 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26516 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26517
26518 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26519
26520 * common.opt (fira-loop-pressure): Mark as optimization.
26521
26522 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26523
26524 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26525 an OpenMP mappable type.
26526
26527 2014-03-06 Matthias Klose <doko@ubuntu.com>
26528
26529 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26530 MULTILIB_OSDIRNAMES is not defined.
26531
26532 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26533 Meador Inge <meadori@codesourcery.com>
26534
26535 PR target/58595
26536 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26537 (arm_legitimize_address): Call legitimize_tls_address for any
26538 arm_tls_referenced_p expression, handle constant addend. Call it
26539 before testing for !TARGET_ARM.
26540 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26541
26542 2014-03-06 Richard Biener <rguenther@suse.de>
26543
26544 PR middle-end/60445
26545 PR lto/60424
26546 PR lto/60427
26547 Revert
26548 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26549
26550 * tree-streamer.c (record_common_node): Assert we don't record
26551 nodes with type double.
26552 (preload_common_node): Skip type double, complex double and double
26553 pointer since it is now frontend dependent due to fshort-double option.
26554
26555 2014-03-06 Richard Biener <rguenther@suse.de>
26556
26557 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26558 or -fno-lto is specified and the linker has full plugin support.
26559 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26560 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26561 * lto-wrapper.c (merge_and_complain): Merge compile-time
26562 optimization levels.
26563 (run_gcc): And pass it through to the link options.
26564
26565 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26566
26567 PR debug/60381
26568 Revert:
26569 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26570 PR debug/59992
26571 * cselib.c (remove_useless_values): Skip to avoid quadratic
26572 behavior if the condition moved from...
26573 (cselib_process_insn): ... here holds.
26574
26575 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26576
26577 PR plugins/59335
26578 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26579 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26580
26581 PR plugins/59335
26582 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26583 (TM_H): Add x86-tune.def.
26584
26585 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26586
26587 * config/aarch64/aarch64.c (generic_tunings):
26588 Use cortexa57_extra_costs.
26589
26590 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26591
26592 PR lto/60404
26593 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26594 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26595 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26596 cost for in_lto_p.
26597
26598 2014-03-04 Heiher <r@hev.cc>
26599
26600 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26601 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26602
26603 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26604
26605 * config/i386/predicates.md (const2356_operand): Change to ...
26606 (const2367_operand): ... this.
26607 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26608 const2367_operand.
26609 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26610 (*avx512pf_scatterpf<mode>sf): Ditto.
26611 (avx512pf_scatterpf<mode>df): Ditto.
26612 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26613 (*avx512pf_scatterpf<mode>df): Ditto.
26614 * config/i386/i386.c (ix86_expand_builtin): Update
26615 incorrect hint operand error message.
26616
26617 2014-03-04 Richard Biener <rguenther@suse.de>
26618
26619 * lto-section-in.c (lto_get_section_data): Fix const cast.
26620
26621 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26622
26623 * tree-streamer.c (record_common_node): Assert we don't record
26624 nodes with type double.
26625 (preload_common_node): Skip type double, complex double and double
26626 pointer since it is now frontend dependent due to fshort-double option.
26627
26628 2014-03-04 Richard Biener <rguenther@suse.de>
26629
26630 PR lto/60405
26631 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26632 (lto_input_toplevel_asms): Likewise.
26633 * lto-section-in.c (lto_get_section_data): Instead do it here
26634 for every section.
26635
26636 2014-03-04 Richard Biener <rguenther@suse.de>
26637
26638 PR tree-optimization/60382
26639 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26640 dead PHIs a reduction.
26641
26642 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26643
26644 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26645 hint value.
26646 (_mm_prefetch): Move out of GCC target("sse") pragma.
26647 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26648 GCC target("prfchw") pragma.
26649 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26650 for locality <= 2.
26651 * config/i386/i386.c (ix86_option_override_internal): Enable
26652 -mprfchw with -mprefetchwt1.
26653
26654 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26655
26656 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26657 Mark as varying.
26658
26659 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26660
26661 * opts.h (CL_PCH_IGNORE): Define.
26662 * targhooks.c (option_affects_pch_p):
26663 Return false for options that have CL_PCH_IGNORE set.
26664 * opt-functions.awk: Process PchIgnore.
26665 * doc/options.texi: Document PchIgnore.
26666
26667 * config/arc/arc.opt (misize): Add PchIgnore property.
26668
26669 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26670
26671 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26672 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26673 constraint on constants to permit them being loaded into
26674 GENERAL_REGS or BASE_REGS.
26675
26676 2014-03-03 Nick Clifton <nickc@redhat.com>
26677
26678 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26679 anti-cacnonical alternatives.
26680 (negandhi3_real): New pattern.
26681 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26682
26683 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26684
26685 * config/avr/avr-mcus.def: Remove atxmega16x1.
26686 * config/avr/avr-tables.opt: Regenerate.
26687 * config/avr/t-multilib: Regenerate.
26688 * doc/avr-mmcu.texi: Regenerate.
26689
26690 2014-03-03 Tobias Grosser <tobias@grosser.es>
26691 Mircea Namolaru <mircea.namolaru@inria.fr>
26692
26693 PR tree-optimization/58028
26694 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26695 scalar dimensions.
26696
26697 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26698
26699 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26700 not handled by recognizers.
26701
26702 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26703
26704 PR middle-end/60175
26705 * function.c (expand_function_end): Don't emit
26706 clobber_return_register sequence if clobber_after is a BARRIER.
26707 * cfgexpand.c (construct_exit_block): Append instructions before
26708 return_label to prev_bb.
26709
26710 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26711
26712 * config/rs6000/constraints.md: Document reserved use of "wc".
26713
26714 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26715
26716 PR ipa/60150
26717 * ipa.c (function_and_variable_visibility): When dissolving comdat
26718 group, also set all symbols to local.
26719
26720 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26721
26722 PR ipa/60306
26723
26724 Revert:
26725 2013-12-14 Jan Hubicka <jh@suse.cz>
26726 PR middle-end/58477
26727 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26728
26729 2014-03-02 Jon Beniston <jon@beniston.com>
26730
26731 PR bootstrap/48230
26732 PR bootstrap/50927
26733 PR bootstrap/52466
26734 PR target/46898
26735 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26736 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26737 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26738 (simple_return, *simple_return): New patterns
26739 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26740 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26741
26742 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26743
26744 * dwarf2out.c (gen_subprogram_die): Tidy.
26745
26746 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26747
26748 PR target/60071
26749 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26750 (*mov_t_msb_neg_negc): ... this new insn.
26751
26752 2014-02-28 Jason Merrill <jason@redhat.com>
26753
26754 PR c++/58678
26755 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26756 function.
26757
26758 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26759
26760 PR c++/60314
26761 * dwarf2out.c (decltype_auto_die): New static.
26762 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26763 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26764 (is_cxx_auto): Likewise.
26765
26766 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26767
26768 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26769 we are not using general regs only.
26770
26771 2014-02-28 Richard Biener <rguenther@suse.de>
26772
26773 PR target/60280
26774 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26775 previous fix and only allow to remove trivial pre-headers
26776 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26777 (remove_forwarder_block): Properly update the latch of a loop.
26778
26779 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26780
26781 PR debug/59992
26782 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26783 (cselib_preserved_hash_table): New.
26784 (preserve_constants_and_equivs): Move preserved vals to it.
26785 (cselib_find_slot): Look it up first.
26786 (cselib_init): Initialize it.
26787 (cselib_finish): Release it.
26788 (dump_cselib_table): Dump it.
26789
26790 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26791
26792 PR debug/59992
26793 * cselib.c (remove_useless_values): Skip to avoid quadratic
26794 behavior if the condition moved from...
26795 (cselib_process_insn): ... here holds.
26796
26797 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26798
26799 PR debug/57232
26800 * var-tracking.c (vt_initialize): Apply the same condition to
26801 preserve the CFA base value.
26802
26803 2014-02-28 Joey Ye <joey.ye@arm.com>
26804
26805 PR target/PR60169
26806 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26807 if reload in progress or completed.
26808
26809 2014-02-28 Tobias Burnus <burnus@net-b.de>
26810
26811 PR middle-end/60147
26812 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26813 NAMELIST_DECL.
26814
26815 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26816
26817 * doc/tm.texi.in (Condition Code Status): Update documention for
26818 relative locations of cc0-setter and cc0-user.
26819
26820 2014-02-27 Jeff Law <law@redhat.com>
26821
26822 PR rtl-optimization/52714
26823 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26824 into two independent simple sets, if I3 is a jump, ensure the
26825 pattern we place into I3 is a (set (pc) ...).
26826
26827 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26828 Jeff Law <law@redhat.com>
26829
26830 PR rtl-optimization/49847
26831 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26832 are in different blocks.
26833 * doc/tm.texi (Condition Code Status): Update documention for
26834 relative locations of cc0-setter and cc0-user.
26835
26836 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26837
26838 PR target/59222
26839 * lra.c (lra_emit_add): Check SUBREG too.
26840
26841 2014-02-27 Andreas Schwab <schwab@suse.de>
26842
26843 * config/m68k/m68k.c (m68k_option_override): Disable
26844 -flive-range-shrinkage for classic m68k.
26845 (m68k_override_options_after_change): Likewise.
26846
26847 2014-02-27 Marek Polacek <polacek@redhat.com>
26848
26849 PR middle-end/59223
26850 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26851 -Wmaybe-uninitialized.
26852
26853 2014-02-27 Alan Modra <amodra@gmail.com>
26854
26855 PR target/57936
26856 * reload1.c (emit_input_reload_insns): When reload_override_in,
26857 set old to rl->in_reg when rl->in_reg is a subreg.
26858
26859 2014-02-26 Richard Biener <rguenther@suse.de>
26860
26861 PR bootstrap/60343
26862 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26863
26864 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26865
26866 * common/config/i386/predicates.md (const1256_operand): Remove.
26867 (const2356_operand): New.
26868 (const_1_to_2_operand): Remove.
26869 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26870 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26871 (*avx512pf_gatherpf<mode>sf): Ditto.
26872 (avx512pf_gatherpf<mode>df): Ditto.
26873 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26874 (*avx512pf_gatherpf<mode>df): Ditto.
26875 (avx512pf_scatterpf<mode>sf): Ditto.
26876 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26877 (*avx512pf_scatterpf<mode>sf): Ditto.
26878 (avx512pf_scatterpf<mode>df): Ditto.
26879 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26880 (*avx512pf_scatterpf<mode>df): Ditto.
26881 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26882
26883 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26884
26885 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26886 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26887 (_mm512_mask_testn_epi64_mask): Move to ...
26888 * config/i386/avx512cdintrin.h: Here.
26889 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26890 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26891 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26892 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26893 TARGET_AVX512F from TARGET_AVX512CD.
26894
26895 2014-02-26 Richard Biener <rguenther@suse.de>
26896
26897 PR ipa/60327
26898 * ipa.c (walk_polymorphic_call_targets): Properly guard
26899 call to inline_update_overall_summary.
26900
26901 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26902
26903 PR target/60280
26904 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26905 and latches only if requested. Fix latch if it is removed.
26906 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26907 LOOPS_HAVE_PREHEADERS.
26908
26909 2014-02-25 Andrew Pinski <apinski@cavium.com>
26910
26911 * builtins.c (expand_builtin_thread_pointer): Create a new target
26912 when the target is NULL.
26913
26914 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26915
26916 PR rtl-optimization/60317
26917 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26918 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26919 * lra-assigns.c: Include params.h.
26920 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26921 other reload pseudos considerations.
26922
26923 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26924
26925 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26926 to use canonical form for nor<mode>3.
26927
26928 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26929
26930 PR target/55426
26931 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26932 conversions.
26933
26934 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26935
26936 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26937 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26938 (ix86_handle_option): Handle OPT_mprefetchwt1.
26939 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26940 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26941 PREFETCHWT1 CPUID.
26942 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26943 OPTION_MASK_ISA_PREFETCHWT1.
26944 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26945 (PTA_PREFETCHWT1): New.
26946 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26947 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26948 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26949 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26950 (*prefetch_avx512pf_<mode>_: Change into ...
26951 (*prefetch_prefetchwt1_<mode>: This.
26952 * config/i386/i386.opt (mprefetchwt1): New.
26953 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26954 (_mm_prefetch): Handle intent to write.
26955 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26956
26957 2014-02-25 Richard Biener <rguenther@suse.de>
26958
26959 PR middle-end/60291
26960 * emit-rtl.c (mem_attrs_htab): Remove.
26961 (mem_attrs_htab_hash): Likewise.
26962 (mem_attrs_htab_eq): Likewise.
26963 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26964 (init_emit_once): Do not allocate mem_attrs_htab.
26965
26966 2014-02-25 Richard Biener <rguenther@suse.de>
26967
26968 PR lto/60319
26969 * lto-opts.c (lto_write_options): Output non-explicit conservative
26970 -fwrapv, -fno-trapv and -fno-strict-overflow.
26971 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26972 (run_gcc): And pass them through.
26973
26974 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26975
26976 * sel-sched.c (calculate_new_fences): New parameter ptime.
26977 Calculate it as a maximum over all fence cycles.
26978 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26979 Print the final schedule timing when sched_verbose.
26980
26981 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26982
26983 PR rtl-optimization/60292
26984 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26985 bit fot the fence instruction.
26986
26987 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26988
26989 * calls.h: Fix typo in comment.
26990
26991 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26992
26993 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26994 adjusting offsetable addresses.
26995
26996 2014-02-24 Guozhi Wei <carrot@google.com>
26997
26998 * sparseset.h (sparseset_pop): Fix the wrong index.
26999
27000 2014-02-24 Walter Lee <walt@tilera.com>
27001
27002 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27003 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27004 triplet.
27005 * common/config/tilegx/tilegx-common.c
27006 (TARGET_DEFAULT_TARGET_FLAGS): Define.
27007 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27008 (LINK_SPEC): Ditto.
27009 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27010 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27011 (tilegx_gimplify_va_arg_expr): Handle big endian.
27012 (tilegx_expand_unaligned_load): Ditto.
27013 (tilegx_expand_unaligned_store): Ditto.
27014 (TARGET_RETURN_IN_MSB): New.
27015 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27016 (TARGET_ENDIAN_DEFAULT): New.
27017 (TARGET_BIG_ENDIAN): Handle big endian.
27018 (BYTES_BIG_ENDIAN): Ditto.
27019 (WORDS_BIG_ENDIAN): Ditto.
27020 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27021 (ENDIAN_SPEC): New.
27022 (EXTRA_SPECS): New.
27023 * config/tilegx/tilegx.md (extv): Handle big endian.
27024 (extzv): Ditto.
27025 (insn_st<n>): Ditto.
27026 (insn_st<n>_add<bitsuffix>): Ditto.
27027 (insn_stnt<n>): Ditto.
27028 (insn_stnt<n>_add<bitsuffix>):Ditto.
27029 (vec_interleave_highv8qi): Handle big endian.
27030 (vec_interleave_highv8qi_be): New.
27031 (vec_interleave_highv8qi_le): New.
27032 (insn_v1int_h): Handle big endian.
27033 (vec_interleave_lowv8qi): Handle big endian.
27034 (vec_interleave_lowv8qi_be): New.
27035 (vec_interleave_lowv8qi_le): New.
27036 (insn_v1int_l): Handle big endian.
27037 (vec_interleave_highv4hi): Handle big endian.
27038 (vec_interleave_highv4hi_be): New.
27039 (vec_interleave_highv4hi_le): New.
27040 (insn_v2int_h): Handle big endian.
27041 (vec_interleave_lowv4hi): Handle big endian.
27042 (vec_interleave_lowv4hi_be): New.
27043 (vec_interleave_lowv4hi_le): New.
27044 (insn_v2int_l): Handle big endian.
27045 (vec_interleave_highv2si): Handle big endian.
27046 (vec_interleave_highv2si_be): New.
27047 (vec_interleave_highv2si_le): New.
27048 (insn_v4int_h): Handle big endian.
27049 (vec_interleave_lowv2si): Handle big endian.
27050 (vec_interleave_lowv2si_be): New.
27051 (vec_interleave_lowv2si_le): New.
27052 (insn_v4int_l): Handle big endian.
27053 * config/tilegx/tilegx.opt (mbig-endian): New option.
27054 (mlittle-endian): New option.
27055 * doc/install.texi: Document tilegxbe-linux.
27056 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27057
27058 2014-02-24 Martin Jambor <mjambor@suse.cz>
27059
27060 PR ipa/60266
27061 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27062 there are no parameter descriptors.
27063
27064 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
27065
27066 PR rtl-optimization/60268
27067 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27068 initialization to ...
27069 (sched_rgn_init): ... here.
27070 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27071
27072 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27073
27074 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27075 names.
27076
27077 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27078
27079 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27080 definition.
27081
27082 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27083
27084 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27085 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27086
27087 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27088
27089 * config/microblaze/predicates.md: Add cmp_op predicate.
27090 * config/microblaze/microblaze.md: Add branch_compare instruction
27091 which uses cmp_op predicate and emits cmp insn before branch.
27092 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27093 to microblaze_expand_conditional_branch and consolidate logic.
27094 (microblaze_expand_conditional_branch): emit branch_compare
27095 insn instead of handling cmp op separate from branch insn.
27096
27097 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27098
27099 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27100 to permit subregs.
27101
27102 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27103
27104 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27105 define_insn with define_expand and new define_insn
27106 *altivec_lve<VI_char>x_internal.
27107 (altivec_stve<VI_char>x): Replace define_insn with define_expand
27108 and new define_insn *altivec_stve<VI_char>x_internal.
27109 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27110 prototype.
27111 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27112 lve*x built-ins.
27113 (altivec_expand_stvex_be): New function.
27114
27115 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27116
27117 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27118 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27119 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27120 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27121
27122 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27123
27124 PR target/60298
27125 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27126 instead of emit_move_insn.
27127
27128 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27129
27130 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27131 vspltw with vsldoi.
27132 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27133 gen_altivec_vsumsws.
27134
27135 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27136
27137 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27138 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27139 (altivec_lvxl_<mode>): New define_expand incorporating
27140 -maltivec=be semantics where needed.
27141 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27142 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27143 semantics where needed.
27144 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27145 (altivec_stvx_<mode>): New define_expand incorporating
27146 -maltivec=be semantics where needed.
27147 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27148 VM2 iterator instead of V4SI.
27149 (altivec_stvxl_<mode>): New define_expand incorporating
27150 -maltivec=be semantics where needed.
27151 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27152 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27153 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27154 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27155 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27156 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27157 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27158 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27159 ALTIVEC_BUILTIN_STVXL.
27160 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27161 (altivec_expand_stvx_be): Likewise.
27162 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27163 (altivec_expand_lvx_be): Likewise.
27164 (altivec_expand_stvx_be): Likewise.
27165 (altivec_expand_builtin): Add cases for
27166 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27167 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27168 (altivec_init_builtins): Add definitions for
27169 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27170 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27171
27172 2014-02-21 Catherine Moore <clm@codesourcery.com>
27173
27174 * doc/invoke.texi (mvirt, mno-virt): Document.
27175 * config/mips/mips.opt (mvirt): New option.
27176 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27177
27178 2014-02-21 Richard Biener <rguenther@suse.de>
27179
27180 PR tree-optimization/60276
27181 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27182 (STMT_VINFO_MIN_NEG_DIST): New macro.
27183 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27184 STMT_VINFO_MIN_NEG_DIST.
27185 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27186 made for negative dependence distances still hold.
27187
27188 2014-02-21 Richard Biener <rguenther@suse.de>
27189
27190 PR middle-end/60291
27191 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27192 DECL_INITIAL for globals not in the current function context.
27193
27194 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27195
27196 PR tree-optimization/56490
27197 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27198 * tree-ssa-uninit.c: Include params.h.
27199 (compute_control_dep_chain): Add num_calls argument, return false
27200 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27201 num_calls to recursive call.
27202 (find_predicates): Change dep_chain into normal array,
27203 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27204 variable and adjust compute_control_dep_chain caller.
27205 (find_def_preds): Likewise.
27206
27207 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27208
27209 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27210 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27211
27212 2014-02-21 Nick Clifton <nickc@redhat.com>
27213
27214 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27215 (pushhi1): Likewise.
27216 (popqi1): Add mode to pre_dec.
27217 (pophi1): Likewise.
27218
27219 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27220
27221 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27222 mode for mask of V8SFmode permutation.
27223
27224 2014-02-20 Richard Henderson <rth@redhat.com>
27225
27226 PR c++/60272
27227 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27228 a new pseudo for OLDVAL.
27229
27230 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27231
27232 PR target/57896
27233 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27234 gen_reg_rtx if d->testing_p.
27235 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27236 if d->testing_p and we will certainly return true.
27237 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27238 if d->testing_p.
27239
27240 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27241
27242 * emit-rtl.c (gen_reg_rtx): Assert that
27243 crtl->emit.regno_pointer_align_length is non-zero.
27244
27245 2014-02-20 Richard Henderson <rth@redhat.com>
27246
27247 PR c++/60272
27248 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27249 on failure the store back into EXPECT.
27250
27251 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27252 Sandra Loosemore <sandra@codesourcery.com>
27253
27254 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27255 * config/nios2/nios2.c (nios2_function_profiler): Add
27256 -fPIC (flag_pic == 2) support.
27257 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27258 (nios2_large_offset_p): New function.
27259 (nios2_unspec_reloc_p): Move up position, update to use
27260 nios2_large_offset_p.
27261 (nios2_unspec_address): Remove function.
27262 (nios2_unspec_offset): New function.
27263 (nios2_large_got_address): New function.
27264 (nios2_got_address): Add large offset support.
27265 (nios2_legitimize_tls_address): Update usage of removed and new
27266 functions.
27267 (nios2_symbol_binds_local_p): New function.
27268 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27269 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27270 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27271 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27272 processing for (const (unspec ...)).
27273 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27274
27275 2014-02-20 Richard Biener <rguenther@suse.de>
27276
27277 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27278 doing the substitution.
27279 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27280
27281 2014-02-20 Martin Jambor <mjambor@suse.cz>
27282
27283 PR ipa/55260
27284 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27285 info when checking whether lattices are bottom.
27286
27287 2014-02-20 Richard Biener <rguenther@suse.de>
27288
27289 PR middle-end/60221
27290 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27291 regions at -O0.
27292
27293 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27294
27295 PR ipa/58555
27296 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27297 parameter specifying the scaling.
27298 (inline_call): Update.
27299 (want_inline_recursively): Guard division by zero.
27300 (recursive_inlining): Update.
27301 * ipa-inline.h (clone_inlined_nodes): Update.
27302
27303 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27304
27305 PR target/60204
27306 * config/i386/i386.c (classify_argument): Pass structures of size
27307 64 bytes or less in register.
27308
27309 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27310 Kirill Yukhin <kirill.yukhin@intel.com>
27311
27312 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27313 (_mm_rcp28_round_ss): Ditto.
27314 (_mm_rsqrt28_round_sd): Ditto.
27315 (_mm_rsqrt28_round_ss): Ditto.
27316 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27317 (_mm_rcp14_round_ss): Ditto.
27318 (_mm_rsqrt14_round_sd): Ditto.
27319 (_mm_rsqrt14_round_ss): Ditto.
27320 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27321 the first input operand, get rid of match_dup.
27322 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27323 attribute to sse.
27324 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27325 Ditto.
27326 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27327 operand as the first input operand, set type attribute.
27328 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27329 Set type attribute.
27330 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27331 operand as the first input operand, set type attribute.
27332
27333 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27334
27335 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27336 bit of zero.
27337
27338 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27339
27340 PR target/60207
27341 * config/i386/i386.c (construct_container): Remove TFmode check
27342 for X86_64_INTEGER_CLASS.
27343
27344 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27345
27346 PR target/59794
27347 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27348 only when -Wpsabi is enabled.
27349
27350 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27351
27352 PR target/59799
27353 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27354 passing arrays in registers are the same as for structs, so remove the
27355 special case for them.
27356
27357 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27358
27359 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27360 destination type, extract only the valid bits if the source type is not
27361 integral and has a different mode.
27362
27363 2014-02-19 Richard Biener <rguenther@suse.de>
27364
27365 PR ipa/60243
27366 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27367 for all calls.
27368
27369 2014-02-19 Richard Biener <rguenther@suse.de>
27370
27371 PR ipa/60243
27372 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27373 (ipa_modify_call_arguments): Emit an argument load explicitely and
27374 preserve virtual SSA form there and for the replacement call.
27375 Do not update SSA form nor free dominance info.
27376
27377 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27378
27379 * ipa.c (function_and_variable_visibility): Also clear WEAK
27380 flag when disolving COMDAT_GROUP.
27381
27382 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27383
27384 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27385 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27386 not devirtualizing.
27387 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27388 do more sanity checks.
27389 (detect_type_change): Return true when giving up early.
27390 (compute_complex_assign_jump_func): Fix type parameter of
27391 ipa_set_ancestor_jf.
27392 (compute_complex_ancestor_jump_func): Likewise.
27393 (update_jump_functions_after_inlining): Fix updating of
27394 ancestor function.
27395 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27396
27397 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27398
27399 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27400 inline clones when edge disappears.
27401
27402 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27403
27404 PR target/60203
27405 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27406 Split 64-bit moves into 2 patterns. Do not allow the use of
27407 direct move for TDmode in little endian, since the decimal value
27408 has little endian bytes within a word, but the 64-bit pieces are
27409 ordered in a big endian fashion, and normal subreg's of TDmode are
27410 not allowed.
27411 (mov<mode>_64bit_dm): Likewise.
27412 (movtd_64bit_nodm): Likewise.
27413
27414 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27415
27416 PR tree-optimization/60174
27417 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27418 statement of an SSA_NAME that occurs in an abnormal PHI node.
27419
27420 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27421
27422 PR sanitizer/60142
27423 * final.c (SEEN_BB): Remove.
27424 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27425 (final_scan_insn): Don't force_source_line on second
27426 NOTE_INSN_BASIC_BLOCK.
27427
27428 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27429
27430 PR target/60205
27431 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27432 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27433 (type_natural_mode): Warn ABI change when %zmm register is not
27434 available for AVX512F vector value passing.
27435
27436 2014-02-18 Kai Tietz <ktietz@redhat.com>
27437
27438 PR target/60193
27439 * config/i386/i386.c (ix86_expand_prologue): Use value in
27440 rax register as displacement when restoring %r10 or %rax.
27441 Fix wrong offset when restoring both registers.
27442
27443 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27444
27445 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27446 assertion with conditional return.
27447
27448 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27449 Uros Bizjak <ubizjak@gmail.com>
27450
27451 PR driver/60233
27452 * config/i386/driver-i386.c (host_detect_local_cpu): If
27453 YMM state is not saved by the OS, also clear has_f16c. Move
27454 CPUID 0x80000001 handling before YMM state saving checking.
27455
27456 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27457
27458 PR rtl-optimization/58960
27459 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27460 factored out from ...
27461 (sched_init): ... here.
27462 (free_global_sched_pressure_data): New, factored out from ...
27463 (sched_finish): ... here.
27464 * sched-int.h (free_global_sched_pressure_data): Declare.
27465 * sched-rgn.c (nr_regions_initial): New static global.
27466 (haifa_find_rgns): Initialize it.
27467 (schedule_region): Disable sched-pressure for the newly
27468 generated regions.
27469
27470 2014-02-17 Richard Biener <rguenther@suse.de>
27471
27472 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27473 release SSA defs of pattern stmts.
27474
27475 2014-02-17 Richard Biener <rguenther@suse.de>
27476
27477 * tree-inline.c (expand_call_inline): Release the virtual
27478 operand defined by the call we are about to inline.
27479
27480 2014-02-17 Richard Biener <rguenther@suse.de>
27481
27482 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27483
27484 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27485 Ilya Tocar <ilya.tocar@intel.com>
27486
27487 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27488 arguments order in builtin.
27489 (_mm512_permutexvar_epi64): Ditto.
27490 (_mm512_mask_permutexvar_epi64): Ditto
27491 (_mm512_maskz_permutexvar_epi32): Ditto
27492 (_mm512_permutexvar_epi32): Ditto
27493 (_mm512_mask_permutexvar_epi32): Ditto
27494
27495 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27496
27497 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27498 (p8_vmrgow): Likewise.
27499
27500 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27501
27502 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27503 endian targets.
27504
27505 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27506
27507 PR target/60203
27508 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27509 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27510 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27511 using direct move instructions on ISA 2.07. Also adjust
27512 instruction length for 64-bit.
27513 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27514 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27515
27516 2014-02-15 Alan Modra <amodra@gmail.com>
27517
27518 PR target/58675
27519 PR target/57935
27520 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27521 find_replacement on parts of insn rtl that might be reloaded.
27522
27523 2014-02-15 Richard Biener <rguenther@suse.de>
27524
27525 PR tree-optimization/60183
27526 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27527 (tree_ssa_phiprop): Calculate and free post-dominators.
27528
27529 2014-02-14 Jeff Law <law@redhat.com>
27530
27531 PR rtl-optimization/60131
27532 * ree.c (get_extended_src_reg): New function.
27533 (combine_reaching_defs): Use it rather than assuming location of REG.
27534 (find_and_remove_re): Verify first operand of extension is
27535 a REG before adding the insns to the copy list.
27536
27537 2014-02-14 Roland McGrath <mcgrathr@google.com>
27538
27539 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27540 * configure: Regenerated.
27541 * config.in: Regenerated.
27542 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27543 instead of ASM_SHORT.
27544
27545 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27546 Richard Earnshaw <rearnsha@arm.com>
27547
27548 PR rtl-optimization/59535
27549 * lra-constraints.c (process_alt_operands): Encourage alternative
27550 when unassigned pseudo class is superset of the alternative class.
27551 (inherit_reload_reg): Don't inherit when optimizing for code size.
27552 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27553 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27554 modes not less than 4 for Thumb1.
27555
27556 2014-02-14 Kyle McMartin <kyle@redhat.com>
27557
27558 PR pch/60010
27559 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27560
27561 2014-02-14 Richard Biener <rguenther@suse.de>
27562
27563 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27564 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27565 Do not strip INDIRECT_REFs.
27566
27567 2014-02-14 Richard Biener <rguenther@suse.de>
27568
27569 PR lto/60179
27570 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27571 DECL_FUNCTION_SPECIFIC_TARGET.
27572 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27573 * tree-streamer-out.c (pack_ts_target_option): Remove.
27574 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27575 (write_ts_function_decl_tree_pointers): Do not stream
27576 DECL_FUNCTION_SPECIFIC_TARGET.
27577 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27578 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27579 (lto_input_ts_function_decl_tree_pointers): Do not stream
27580 DECL_FUNCTION_SPECIFIC_TARGET.
27581
27582 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27583
27584 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27585 (get_initial_def_for_induction, vectorizable_induction): Ignore
27586 debug stmts when looking for exit_phi.
27587 (vectorizable_live_operation): Fix up condition.
27588
27589 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27590
27591 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27592 nreverse() because it changes the content of original tree list.
27593
27594 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27595
27596 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27597 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27598
27599 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27600
27601 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27602 GNU coding standards.
27603
27604 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27605
27606 PR debug/60152
27607 * dwarf2out.c (gen_subprogram_die): Don't call
27608 add_calling_convention_attribute if subr_die is old_die.
27609
27610 2014-02-13 Sharad Singhai <singhai@google.com>
27611
27612 * doc/optinfo.texi: Fix order of nodes.
27613
27614 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27615
27616 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27617 operands[2], not operands[3].
27618
27619 2014-02-13 Richard Biener <rguenther@suse.de>
27620
27621 PR bootstrap/59878
27622 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27623 mention the possibility of an in-tree build.
27624 (CLooG): Update recommended version to 0.18.1, mention the
27625 possibility of an in-tree build and clarify that the ISL
27626 bundled with CLooG does not work.
27627
27628 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27629
27630 PR target/43546
27631 * expr.c (compress_float_constant): If x is a hard register,
27632 extend into a pseudo and then move to x.
27633
27634 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27635
27636 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27637 caused by bad second argument to warning_at() with -mhotpatch and
27638 nested functions (e.g. with gfortran).
27639
27640 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27641
27642 * opts.c (option_name): Remove "enabled by default" rider.
27643
27644 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27645
27646 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27647
27648 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27649 Uros Bizjak <ubizjak@gmail.com>
27650
27651 PR target/60151
27652 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27653 * configure: Regenerated.
27654
27655 2014-02-12 Richard Biener <rguenther@suse.de>
27656
27657 * vec.c (vec_prefix::calculate_allocation): Move as
27658 inline variant to vec.h.
27659 (vec_prefix::calculate_allocation_1): New out-of-line version.
27660 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27661 (vec_prefix::m_has_auto_buf): Rename to ...
27662 (vec_prefix::m_using_auto_storage): ... this.
27663 (vec_prefix::calculate_allocation): Inline the easy cases
27664 and dispatch to calculate_allocation_1 which doesn't need the
27665 prefix address.
27666 (va_heap::reserve): Use gcc_checking_assert.
27667 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27668 m_using_auto_storage.
27669 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27670 member and adjust.
27671 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27672 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27673 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27674
27675 2014-02-12 Richard Biener <rguenther@suse.de>
27676
27677 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27678 when we found a dependence.
27679
27680 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27681
27682 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27683 common code...
27684 (maybe_fold_stmt): ... into this new function.
27685 * omp-low.c (lower_omp): Update comment.
27686
27687 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27688 last use.
27689
27690 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27691 dereference.
27692
27693 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27694
27695 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27696 identifiers in comments.
27697 (cortexa53_extra_costs): Likewise.
27698 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27699 (cortexa7_extra_costs): Likewise.
27700 (cortexa12_extra_costs): Likewise.
27701 (cortexa15_extra_costs): Likewise.
27702 (v7m_extra_costs): Likewise.
27703
27704 2014-02-12 Richard Biener <rguenther@suse.de>
27705
27706 PR middle-end/60092
27707 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27708 of posix_memalign being successful.
27709 (lower_stmt): Restrict lowering of posix_memalign to when
27710 -ftree-bit-ccp is enabled.
27711
27712 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27713
27714 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27715 arg_loc.
27716 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27717
27718 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27719
27720 PR rtl-optimization/60116
27721 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27722 other_insn once the combination has been validated.
27723
27724 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27725
27726 PR lto/59468
27727 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27728 and wrapper.
27729 * ipa-devirt.c: Include demangle.h
27730 (odr_violation_reported): New static variable.
27731 (add_type_duplicate): Update odr_violations.
27732 (maybe_record_node): Add completep parameter; update it.
27733 (record_target_from_binfo): Add COMPLETEP parameter;
27734 update it as needed.
27735 (possible_polymorphic_call_targets_1): Likewise.
27736 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27737 rename FINAL to COMPLETE.
27738 (record_targets_from_bases): Sanity check we found the binfo;
27739 fix COMPLETEP updating.
27740 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27741 parameter, fix computing of COMPLETEP.
27742 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27743 at LTO time do demangling.
27744 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27745 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27746 parameter.
27747 (gimple_get_virt_method_for_binfo): Likewise.
27748 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27749 gimple_get_virt_method_for_vtable): Update prototypes.
27750
27751 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27752
27753 PR target/49008
27754 * genautomata.c (add_presence_absence): Fix typo with
27755 {final_}presence_list.
27756
27757 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27758
27759 PR target/60137
27760 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27761 for VSX/Altivec vectors that land in GPR registers.
27762
27763 2014-02-11 Richard Henderson <rth@redhat.com>
27764 Jakub Jelinek <jakub@redhat.com>
27765
27766 PR debug/59776
27767 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27768 around drhs if type conversion to lacc->type is not useless.
27769
27770 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27771
27772 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27773 tuning struct.
27774 (cortex-a57.cortex-a53): Likewise.
27775 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27776
27777 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27778
27779 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27780 arm_restrict_it.
27781
27782 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27783
27784 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27785 add_options_for_arm_vfp3.
27786
27787 2014-02-11 Jeff Law <law@redhat.com>
27788
27789 PR middle-end/54041
27790 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27791 object with an undesirable mode.
27792
27793 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27794
27795 PR libgomp/60107
27796 * config/i386/sol2-9.h: New file.
27797 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27798 *-*-solaris2.9*): Use it.
27799
27800 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27801
27802 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27803 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27804
27805 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27806
27807 * config/microblaze/microblaze.c: Extend mcpu version format
27808
27809 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27810
27811 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27812
27813 2014-02-10 Richard Henderson <rth@redhat.com>
27814
27815 PR target/59927
27816 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27817 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27818 ms-abi vs -mno-accumulate-outgoing-args.
27819 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27820 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27821 respect to ms-abi.
27822
27823 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27824
27825 PR middle-end/60080
27826 * cfgexpand.c (expand_asm_operands): Attach source location to
27827 ASM_INPUT rtx objects.
27828 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27829
27830 2014-02-10 Nick Clifton <nickc@redhat.com>
27831
27832 * config/mn10300/mn10300.c (popcount): New function.
27833 (mn10300_expand_prologue): Include saved registers in stack usage
27834 count.
27835
27836 2014-02-10 Jeff Law <law@redhat.com>
27837
27838 PR middle-end/52306
27839 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27840 when changing the SET_DEST of a prior insn to avoid an input reload.
27841
27842 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27843
27844 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27845 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27846 -mcall-openbsd, or -mcall-linux.
27847 (CC1_ENDIAN_BIG_SPEC): Remove.
27848 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27849 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27850 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27851 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27852 and %cc1_endian_default.
27853 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27854
27855 2014-02-10 Richard Biener <rguenther@suse.de>
27856
27857 PR tree-optimization/60115
27858 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27859 MEM_REF handling. Properly verify that the accesses are not
27860 out of the objects bound.
27861
27862 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27863
27864 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27865 coretex to cortex.
27866
27867 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27868
27869 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27870 proper constants and fix formatting.
27871 (possible_polymorphic_call_targets): Fix formatting.
27872
27873 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27874 Ilya Tocar <ilya.tocar@intel.com>
27875
27876 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27877 (_mm512_loadu_epi32): Renamed into...
27878 (_mm512_loadu_si512): This.
27879 (_mm512_storeu_epi32): Renamed into...
27880 (_mm512_storeu_si512): This.
27881 (_mm512_maskz_ceil_ps): Removed.
27882 (_mm512_maskz_ceil_pd): Ditto.
27883 (_mm512_maskz_floor_ps): Ditto.
27884 (_mm512_maskz_floor_pd): Ditto.
27885 (_mm512_floor_round_ps): Ditto.
27886 (_mm512_floor_round_pd): Ditto.
27887 (_mm512_ceil_round_ps): Ditto.
27888 (_mm512_ceil_round_pd): Ditto.
27889 (_mm512_mask_floor_round_ps): Ditto.
27890 (_mm512_mask_floor_round_pd): Ditto.
27891 (_mm512_mask_ceil_round_ps): Ditto.
27892 (_mm512_mask_ceil_round_pd): Ditto.
27893 (_mm512_maskz_floor_round_ps): Ditto.
27894 (_mm512_maskz_floor_round_pd): Ditto.
27895 (_mm512_maskz_ceil_round_ps): Ditto.
27896 (_mm512_maskz_ceil_round_pd): Ditto.
27897 (_mm512_expand_pd): Ditto.
27898 (_mm512_expand_ps): Ditto.
27899 * config/i386/i386.c (ix86_builtins): Remove
27900 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27901 (bdesc_args): Ditto.
27902 * config/i386/predicates.md (const1256_operand): New.
27903 (const_1_to_2_operand): Ditto.
27904 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27905 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27906 (*avx512pf_gatherpf<mode>sf): Ditto.
27907 (avx512pf_gatherpf<mode>df): Ditto.
27908 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27909 (*avx512pf_gatherpf<mode>df): Ditto.
27910 (avx512pf_scatterpf<mode>sf): Ditto.
27911 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27912 (*avx512pf_scatterpf<mode>sf): Ditto.
27913 (avx512pf_scatterpf<mode>df): Ditto.
27914 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27915 (*avx512pf_scatterpf<mode>df): Ditto.
27916 (avx512f_expand<mode>): Removed.
27917 (<shift_insn><mode>3<mask_name>): Change predicate type.
27918
27919 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27920
27921 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27922 not at the end of datarefs vector use ordered_remove to avoid
27923 reordering datarefs vector.
27924
27925 PR c/59984
27926 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27927 mark local addressable non-static vars as GOVD_PRIVATE
27928 instead of GOVD_LOCAL.
27929 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27930 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27931 than copying them.
27932
27933 PR middle-end/60092
27934 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27935 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27936 assume_aligned or alloc_align attributes.
27937 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27938 arguments. Handle also assume_aligned and alloc_align attributes.
27939 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27940 calls to functions with assume_aligned or alloc_align attributes.
27941 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27942
27943 2014-02-08 Terry Guo <terry.guo@arm.com>
27944
27945 * doc/invoke.texi: Document ARM -march=armv7e-m.
27946
27947 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27948
27949 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27950 flag on __cilkrts_rethrow builtin.
27951
27952 PR ipa/60026
27953 * ipa-cp.c (determine_versionability): Fail at -O0
27954 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27955 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27956
27957 Revert:
27958 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27959
27960 PR ipa/60026
27961 * tree-inline.c (copy_forbidden): Fail for
27962 __attribute__((optimize (0))) functions.
27963
27964 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27965
27966 * varpool.c: Include pointer-set.h.
27967 (varpool_remove_unreferenced_decls): Variables in other partitions
27968 will not be output; be however careful to not lose information
27969 about partitioning.
27970
27971 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27972
27973 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27974 lookup in the vtable constructor.
27975
27976 2014-02-07 Jeff Law <law@redhat.com>
27977
27978 PR target/40977
27979 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27980 define_insn_and_split.
27981
27982 * ipa-inline.c (inline_small_functions): Fix typos.
27983
27984 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27985
27986 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27987 (s390_can_use_return_insn): Declare.
27988 * config/s390/s390.h (EPILOGUE_USES): Define.
27989 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27990 instructions.
27991 (s390_chunkify_start): Handle return JUMP_LABELs.
27992 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27993 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27994 (s390_can_use_return_insn): New functions.
27995 (s390_fix_long_loop_prediction): Handle conditional returns.
27996 (TARGET_SET_UP_BY_PROLOGUE): Define.
27997 * config/s390/s390.md (ANY_RETURN): New code iterator.
27998 (*creturn, *csimple_return, return, simple_return): New patterns.
27999
28000 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28001
28002 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28003 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
28004 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
28005 REG_CFA_RESTORE list when deciding not to restore a register.
28006
28007 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28008
28009 * config/s390/s390.c: Include tree-pass.h and context.h.
28010 (s390_early_mach): New function, split out from...
28011 (s390_emit_prologue): ...here.
28012 (pass_data_s390_early_mach): New pass structure.
28013 (pass_s390_early_mach): New class.
28014 (s390_option_override): Create and register early_mach pass.
28015 Move to end of file.
28016
28017 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28018
28019 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28020 to match for the exit block.
28021
28022 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28023
28024 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28025 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28026 Reject misaligned operands.
28027
28028 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28029
28030 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28031
28032 2014-02-07 Richard Biener <rguenther@suse.de>
28033
28034 PR middle-end/60092
28035 * gimple-low.c (lower_builtin_posix_memalign): New function.
28036 (lower_stmt): Call it to lower posix_memalign in a way
28037 to make alignment info accessible.
28038
28039 2014-02-07 Jakub Jelinek <jakub@redhat.com>
28040
28041 PR c++/60082
28042 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28043 __builtin_setjmp_receiver.
28044
28045 2014-02-07 Richard Biener <rguenther@suse.de>
28046
28047 PR middle-end/60092
28048 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28049 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28050 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28051 Handle BUILT_IN_POSIX_MEMALIGN.
28052 (find_func_clobbers): Likewise.
28053 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28054 (call_may_clobber_ref_p_1): Likewise.
28055
28056 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28057
28058 PR ipa/59918
28059 * ipa-devirt.c (record_target_from_binfo): Remove overactive
28060 sanity check.
28061
28062 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28063
28064 PR ipa/59469
28065 * lto-cgraph.c (lto_output_node): Use
28066 symtab_get_symbol_partitioning_class.
28067 (lto_output_varpool_node): likewise.
28068 (symtab_get_symbol_partitioning_class): Move here from
28069 lto/lto-partition.c
28070 * cgraph.h (symbol_partitioning_class): Likewise.
28071 (symtab_get_symbol_partitioning_class): Declare.
28072
28073 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28074
28075 * ggc.h (ggc_internal_cleared_alloc): New macro.
28076 * vec.h (vec_safe_copy): Handle memory stats.
28077 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28078 * target-globals.c (save_target_globals): Likewise.
28079
28080 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28081
28082 PR target/60077
28083 * expr.c (emit_move_resolve_push): Export; be bit more selective
28084 on when to clear alias set.
28085 * expr.h (emit_move_resolve_push): Declare.
28086 * function.h (struct function): Add tail_call_marked.
28087 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28088 * config/i386/i386-protos.h (ix86_expand_push): Remove.
28089 * config/i386/i386.md (TImode move expander): De not call
28090 ix86_expand_push.
28091 (FP push expanders): Preserve memory attributes.
28092 * config/i386/sse.md (push<mode>1): Remove.
28093 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28094 (ix86_expand_push): Remove.
28095 * config/i386/mmx.md (push<mode>1): Remove.
28096
28097 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28098
28099 PR rtl-optimization/60030
28100 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28101 lopart with paradoxical subreg before shifting it up by hprec.
28102
28103 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28104
28105 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28106 Remove extra newline at end of file.
28107 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28108 (arm_issue_rate): Handle cortexa57.
28109 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28110 (cortex-a57.cortex-a53): Likewise.
28111
28112 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28113
28114 PR target/59575
28115 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28116 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28117 bitmask.
28118 (arm_expand_prologue): Adjust all callers.
28119 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28120 info, registers also at the lowest numbered registers side. Use
28121 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28122 XEXP.
28123
28124 PR debug/59992
28125 * var-tracking.c (adjust_mems): Before adding a SET to
28126 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28127
28128 2014-02-06 Alan Modra <amodra@gmail.com>
28129
28130 PR target/60032
28131 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28132 change SDmode to DDmode when lra_in_progress.
28133
28134 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28135
28136 PR middle-end/59150
28137 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28138 free_data_ref on the dr first, and before goto again also set dr
28139 to the next dr. For simd_lane_access, free old datarefs[i] before
28140 overwriting it. For get_vectype_for_scalar_type failure, don't
28141 free_data_ref if simd_lane_access.
28142
28143 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28144
28145 PR target/60062
28146 * tree.h (opts_for_fn): New inline function.
28147 (opt_for_fn): Define.
28148 * config/i386/i386.c (ix86_function_regparm): Use
28149 opt_for_fn (decl, optimize) instead of optimize.
28150
28151 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28152
28153 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28154 for SYMBOL_REF in large memory model.
28155
28156 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28157
28158 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28159 and crypto support.
28160 (cortex-a57): Likewise.
28161 (cortex-a57.cortex-a53): Likewise.
28162
28163 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28164 Kugan Vivekanandarajah <kuganv@linaro.org>
28165
28166 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28167 unaligned_access.
28168 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28169
28170 2014-02-06 Richard Biener <rguenther@suse.de>
28171
28172 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28173 set_loop_copy and initialize_original_copy_tables.
28174
28175 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28176
28177 * config/aarch64/aarch64-simd.md
28178 (aarch64_ashr_simddi): Change QI to SI.
28179
28180 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28181 Jakub Jelinek <jakub@redhat.com>
28182
28183 PR middle-end/60013
28184 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28185 of the dataflow.
28186
28187 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28188
28189 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28190 CODE_FOR_altivec_vpku[hw]um to
28191 CODE_FOR_altivec_vpku[hw]um_direct.
28192 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28193 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28194 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28195 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28196
28197 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28198
28199 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28200 generation for -maltivec=be.
28201 (altivec_vsumsws): Simplify redundant test.
28202
28203 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28204
28205 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28206 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28207 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28208 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28209 gen_altivec_vpkuwum.
28210 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28211 BYTES_BIG_ENDIAN.
28212 (altivec_vpks<VI_char>ss): Likewise.
28213 (altivec_vpks<VI_char>us): Likewise.
28214 (altivec_vpku<VI_char>us): Likewise.
28215 (altivec_vpku<VI_char>um): Likewise.
28216 (altivec_vpku<VI_char>um_direct): New (copy of
28217 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28218 internal use).
28219 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28220 target is little endian and -maltivec=be is not specified.
28221 (*altivec_vupkhs<VU_char>_direct): New (copy of
28222 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28223 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28224 target is little endian and -maltivec=be is not specified.
28225 (*altivec_vupkls<VU_char>_direct): New (copy of
28226 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28227 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28228 little endian and -maltivec=be is not specified.
28229 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28230 little endian and -maltivec=be is not specified.
28231
28232 2014-02-05 Richard Henderson <rth@redhat.com>
28233
28234 PR debug/52727
28235 * combine-stack-adj.c: Revert r206943.
28236 * sched-int.h (struct deps_desc): Add last_args_size.
28237 * sched-deps.c (init_deps): Initialize it.
28238 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28239 contain REG_ARGS_SIZE notes.
28240
28241 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28242
28243 * lto-cgraph.c (asm_nodes_output): Make global.
28244 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28245 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28246 (driver_handle_option): Handle OPT_fwpa.
28247
28248 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28249
28250 PR ipa/59947
28251 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28252 a comment typo and formatting issue. If odr_hash hasn't been
28253 created, return vNULL and set *completep to false.
28254
28255 PR middle-end/57499
28256 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28257 bb with no successors.
28258
28259 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28260
28261 PR target/59718
28262 * doc/invoke.texi (-march): Clarify documentation for ARM.
28263 (-mtune): Likewise.
28264 (-mcpu): Likewise.
28265
28266 2014-02-05 Richard Biener <rguenther@suse.de>
28267
28268 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28269 when not vectorizing because of too many alias checks.
28270 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28271 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28272
28273 2014-02-05 Nick Clifton <nickc@redhat.com>
28274
28275 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28276 accept extended registers in any mode when compiling for the MN10300.
28277
28278 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28279
28280 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28281 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28282 sanitization attributes.
28283 (can_inline_edge_p): Likewise.
28284 (sanitize_attrs_match_for_inline_p): New function.
28285
28286 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28287
28288 * ipa-prop.c (detect_type_change): Shor circuit testing of
28289 type changes on THIS pointer.
28290
28291 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28292
28293 PR target/59777
28294 * config/pa/pa.c (legitimize_tls_address): Return original address
28295 if not passed a SYMBOL_REF rtx.
28296 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28297 addresses.
28298 (pa_emit_move_sequence): Simplify TLS source operands.
28299 (pa_legitimate_constant_p): Reject all TLS constants.
28300 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28301 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28302
28303 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28304
28305 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28306 groups when we know they are controlled by LTO.
28307 * varasm.c (default_binds_local_p_1): If object is in other partition,
28308 it will be resolved locally.
28309
28310 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28311
28312 * config/host-linux.c (linux_gt_pch_use_address): Don't
28313 use SSIZE_MAX because it is not always defined.
28314
28315 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28316
28317 PR bootstrap/59913
28318 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28319 threshold for pseudo splitting.
28320 (update_ebb_live_info): Process call argument hard registers and
28321 hard registers from insn definition too.
28322 (max_small_class_regs_num): New constant.
28323 (inherit_in_ebb): Update live hard regs through EBBs. Update
28324 reloads_num only for small register classes. Don't split for
28325 outputs of jumps.
28326
28327 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28328
28329 PR ipa/60058
28330 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28331 is non-null.
28332
28333 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28334
28335 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28336 visibility is safe.
28337
28338 2014-02-04 Marek Polacek <polacek@redhat.com>
28339
28340 * gdbinit.in (pel): Define.
28341
28342 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28343
28344 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28345 behavior.
28346
28347 2014-02-04 Richard Biener <rguenther@suse.de>
28348
28349 PR lto/59723
28350 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28351 in function context local.
28352 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28353 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28354 similar to LTO_imported_decl_ref.
28355
28356 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28357
28358 PR tree-optimization/60002
28359 * cgraphclones.c (build_function_decl_skip_args): Clear
28360 DECL_LANG_SPECIFIC.
28361
28362 PR tree-optimization/60023
28363 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28364 false to gsi_replace.
28365 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28366 has been in some EH region and vec_stmt could throw, add
28367 vec_stmt into the same EH region.
28368 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28369 has no lhs, ignore it.
28370 * internal-fn.c (expand_MASK_LOAD): Likewise.
28371
28372 PR ipa/60026
28373 * tree-inline.c (copy_forbidden): Fail for
28374 __attribute__((optimize (0))) functions.
28375
28376 PR other/58712
28377 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28378 is set, copy one less argument.
28379 (expand_simd_clones): Don't subtract clone_info->inbranch
28380 from simd_clone_struct_alloc argument.
28381
28382 PR rtl-optimization/57915
28383 * recog.c (simplify_while_replacing): If all unary/binary/relational
28384 operation arguments are constant, attempt to simplify those.
28385
28386 PR middle-end/59261
28387 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28388 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28389
28390 2014-02-04 Richard Biener <rguenther@suse.de>
28391
28392 PR tree-optimization/60012
28393 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28394 TBAA disambiguation to all DDRs.
28395
28396 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28397
28398 PR target/59788
28399 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28400 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28401
28402 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28403
28404 PR ipa/59882
28405 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28406
28407 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28408
28409 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28410 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28411
28412 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28413
28414 PR ipa/59831
28415 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28416 to figure out targets of polymorphic calls with known decl.
28417 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28418 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28419 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28420 (get_polymorphic_call_info): ... here.
28421 (get_polymorphic_call_info_from_invariant): New function.
28422
28423 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28424
28425 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28426 lookup via vtable pointer; check for type consistency
28427 and turn inconsitent facts into UNREACHABLE.
28428 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28429 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28430 type inconsistent querries; return UNREACHABLE instead.
28431
28432 2014-02-03 Richard Henderson <rth@twiddle.net>
28433
28434 PR tree-opt/59924
28435 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28436 already processed this node.
28437 (normalize_one_pred_1): Pass along mark_set.
28438 (normalize_one_pred): Create and destroy a pointer_set_t.
28439 (normalize_one_pred_chain): Likewise.
28440
28441 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28442
28443 PR gcov-profile/58602
28444 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28445
28446 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28447
28448 PR ipa/59831
28449 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28450 -fno-devirtualize; try to devirtualize by the knowledge of
28451 virtual table pointer given by aggregate propagation.
28452 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28453 (ipa_print_node_jump_functions): Dump also offset that
28454 is relevant for polymorphic calls.
28455 (determine_known_aggregate_parts): Add arg_type parameter; use it
28456 instead of determining the type from pointer type.
28457 (ipa_compute_jump_functions_for_edge): Update call of
28458 determine_known_aggregate_parts.
28459 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28460 (gimple_get_virt_method_for_binfo): ... here; simplify using
28461 vtable_pointer_value_to_vtable.
28462 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28463 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28464 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28465 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28466 POINTER_PLUS_EXPR.
28467 (vtable_pointer_value_to_binfo): ... here.
28468 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28469
28470 2014-02-03 Teresa Johnson <tejohnson@google.com>
28471
28472 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28473 redef of outer loop index variable.
28474
28475 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28476
28477 PR c++/53017
28478 PR c++/59211
28479 * doc/extend.texi (Function Attributes): Typo.
28480
28481 2014-02-03 Cong Hou <congh@google.com>
28482
28483 PR tree-optimization/60000
28484 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28485 if the vectorized statement is a store. A store statement can only
28486 appear at the end of pattern statements.
28487
28488 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28489
28490 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28491 (ix86_option_override_internal): Default long double to 64-bit for
28492 32-bit Bionic and to 128-bit for 64-bit Bionic.
28493
28494 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28495 TARGET_LONG_DOUBLE_128 is true.
28496 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28497
28498 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28499 (mlong-double-64): Negate -mlong-double-128.
28500 (mlong-double-128): New option.
28501
28502 * config/i386/i386-c.c (ix86_target_macros): Define
28503 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28504
28505 * doc/invoke.texi: Document -mlong-double-128.
28506
28507 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28508
28509 PR rtl-optimization/60024
28510 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28511
28512 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28513
28514 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28515
28516 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28517
28518 PR rtl-optimization/57662
28519 * sel-sched.c (code_motion_path_driver): Do not mark already not
28520 existing blocks in the visiting bitmap.
28521
28522 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28523
28524 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28525 on the insn being emitted.
28526
28527 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28528 Will Deacon <will.deacon@arm.com>
28529
28530 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28531
28532 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28533
28534 * config/arm/arm-tables.opt: Regenerate.
28535
28536 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28537
28538 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28539 for vector types other than V16QImode.
28540 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28541 define_expand, and call altivec_expand_vec_perm_le when producing
28542 code with little endian element order.
28543 (*altivec_vperm_<mode>_internal): New insn having previous
28544 behavior of altivec_vperm_<mode>.
28545 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28546 altivec_expand_vec_perm_le when producing code with little endian
28547 element order.
28548 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28549 behavior of altivec_vperm_<mode>_uns.
28550
28551 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28552
28553 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28554 (altivec_vsumsws): Add handling for -maltivec=be with a little
28555 endian target.
28556 (altivec_vsumsws_direct): New.
28557 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28558 gen_altivec_vsumsws.
28559
28560 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28561
28562 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28563 vtable_pointer_value_to_binfo): New functions.
28564 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28565 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28566
28567 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28568
28569 * config/nios2/nios2.md (load_got_register): Initialize GOT
28570 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28571 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28572
28573 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28574
28575 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28576 preserverd by passthrough, do not propagate the type.
28577
28578 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28579
28580 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28581 (mips_atomic_assign_expand_fenv): New function.
28582 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28583
28584 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28585
28586 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28587 (__builtin_mips_set_fcsr): Likewise.
28588 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28589 MIPS_USI_FTYPE_VOID.
28590 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28591 (mips16_expand_set_fcsr): Likewise.
28592 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28593 (mips16_set_fcsr_stub): Likewise.
28594 (mips16_get_fcsr_one_only_stub): New class.
28595 (mips16_set_fcsr_one_only_stub): Likewise.
28596 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28597 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28598 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28599 (hard_float): New availability predicate.
28600 (mips_builtins): Add get_fcsr and set_fcsr.
28601 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28602 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28603 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28604 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28605 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28606 patterns.
28607
28608 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28609
28610 * config/mips/mips.c (mips_one_only_stub): New class.
28611 (mips_need_mips16_rdhwr_p): Replace with...
28612 (mips16_rdhwr_stub): ...this new variable.
28613 (mips16_stub_call_address): New function.
28614 (mips16_rdhwr_one_only_stub): New class.
28615 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28616 (mips_output_mips16_rdhwr): Delete.
28617 (mips_finish_stub): New function.
28618 (mips_code_end): Use it to handle rdhwr stubs.
28619
28620 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28621
28622 PR target/60017
28623 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28624 when calculating size of integer atomic types.
28625
28626 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28627
28628 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28629
28630 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28631
28632 PR tree-optimization/60003
28633 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28634 * profile.c (branch_prob): Use gimple_call_builtin_p
28635 to check for BUILT_IN_SETJMP_RECEIVER.
28636 * tree-inline.c (copy_bb): Call notice_special_calls.
28637
28638 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28639
28640 PR bootstrap/59985
28641 * lra-constraints.c (process_alt_operands): Update reload_sum only
28642 on the first pass.
28643
28644 2014-01-31 Richard Henderson <rth@redhat.com>
28645
28646 PR middle-end/60004
28647 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28648 until after else_eh is processed.
28649
28650 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28651
28652 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28653 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28654 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28655 in smmintrin.h, remove them.
28656 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28657 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28658 * config/i386/i386.md (ROUND_SAE): Fix value.
28659 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28660 (const48_operand): New.
28661 * config/i386/subst.md (round), (round_expand): Use
28662 const_4_or_8_to_11_operand.
28663 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28664
28665 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28666
28667 * config/i386/constraints.md (Yk): Swap meaning with k.
28668 * config/i386/i386.md (movhi_internal): Change Yk to k.
28669 (movqi_internal): Ditto.
28670 (*k<logic><mode>): Ditto.
28671 (*andhi_1): Ditto.
28672 (*andqi_1): Ditto.
28673 (kandn<mode>): Ditto.
28674 (*<code>hi_1): Ditto.
28675 (*<code>qi_1): Ditto.
28676 (kxnor<mode>): Ditto.
28677 (kortestzhi): Ditto.
28678 (kortestchi): Ditto.
28679 (kunpckhi): Ditto.
28680 (*one_cmplhi2_1): Ditto.
28681 (*one_cmplqi2_1): Ditto.
28682 * config/i386/sse.md (): Change k to Yk.
28683 (avx512f_load<mode>_mask): Ditto.
28684 (avx512f_blendm<mode>): Ditto.
28685 (avx512f_store<mode>_mask): Ditto.
28686 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28687 (avx512f_storedqu<mode>_mask): Ditto.
28688 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28689 Ditto.
28690 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28691 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28692 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28693 (avx512f_maskcmp<mode>3): Ditto.
28694 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28695 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28696 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28697 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28698 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28699 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28700 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28701 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28702 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28703 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28704 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28705 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28706 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28707 (vec_extract_lo_<mode>_maskm): Ditto.
28708 (vec_extract_hi_<mode>_maskm): Ditto.
28709 (avx512f_vternlog<mode>_mask): Ditto.
28710 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28711 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28712 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28713 (avx512f_<code>v8div16qi2_mask): Ditto.
28714 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28715 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28716 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28717 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28718 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28719 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28720 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28721 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28722 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28723 (avx512cd_maskb_vec_dupv8di): Ditto.
28724 (avx512cd_maskw_vec_dupv16si): Ditto.
28725 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28726 (avx512f_vpermi2var<mode>3_mask): Ditto.
28727 (avx512f_vpermi2var<mode>3_mask): Ditto.
28728 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28729 (*avx512f_gathersi<mode>): Ditto.
28730 (*avx512f_gathersi<mode>_2): Ditto.
28731 (*avx512f_gatherdi<mode>): Ditto.
28732 (*avx512f_gatherdi<mode>_2): Ditto.
28733 (*avx512f_scattersi<mode>): Ditto.
28734 (*avx512f_scatterdi<mode>): Ditto.
28735 (avx512f_compress<mode>_mask): Ditto.
28736 (avx512f_compressstore<mode>_mask): Ditto.
28737 (avx512f_expand<mode>_mask): Ditto.
28738 * config/i386/subst.md (mask): Change k to Yk.
28739 (mask_scalar_merge): Ditto.
28740 (sd): Ditto.
28741
28742 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28743
28744 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28745
28746 2014-01-31 Richard Biener <rguenther@suse.de>
28747
28748 PR middle-end/59990
28749 * builtins.c (fold_builtin_memory_op): Make sure to not
28750 use a floating-point mode or a boolean or enumeral type for
28751 the copy operation.
28752
28753 2014-01-30 DJ Delorie <dj@redhat.com>
28754
28755 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28756 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28757 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28758 whenever main() has an epilogue.
28759
28760 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28761
28762 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28763 unused variable "field".
28764 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28765 (vsx_mergeh_<mode>): Likewise.
28766 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28767 (altivec_vmrghh): Likewise.
28768 (altivec_vmrghw): Likewise.
28769 (altivec_vmrglb): Likewise.
28770 (altivec_vmrglh): Likewise.
28771 (altivec_vmrglw): Likewise.
28772 (altivec_vspltb): Add missing uses.
28773 (altivec_vsplth): Likewise.
28774 (altivec_vspltw): Likewise.
28775 (altivec_vspltsf): Likewise.
28776
28777 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28778
28779 PR target/59923
28780 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28781 frame related instructions.
28782
28783 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28784
28785 PR rtl-optimization/59959
28786 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28787 any reload of register whose subreg is invalid.
28788
28789 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28790
28791 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28792 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28793 Add missing return type - void.
28794
28795 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28796
28797 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28798 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28799 remove element index adjustment for endian (now handled in vsx.md
28800 and altivec.md).
28801 (altivec_expand_vec_perm_const): Use
28802 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28803 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28804 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28805 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28806 define_expand and a new define_insn *altivec_vspltb_internal;
28807 adjust for -maltivec=be on a little endian target.
28808 (altivec_vspltb_direct): New.
28809 (altivec_vsplth): Divide into a define_expand and a new
28810 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28811 little endian target.
28812 (altivec_vsplth_direct): New.
28813 (altivec_vspltw): Divide into a define_expand and a new
28814 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28815 little endian target.
28816 (altivec_vspltw_direct): New.
28817 (altivec_vspltsf): Divide into a define_expand and a new
28818 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28819 a little endian target.
28820
28821 2014-01-30 Richard Biener <rguenther@suse.de>
28822
28823 PR tree-optimization/59993
28824 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28825 can propagate form the earlier stmt and avoid the transform
28826 when the intermediate result is needed.
28827
28828 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28829
28830 * README.Portability: Fix typo.
28831
28832 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28833
28834 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28835 comparison_operator with ordered_comparison_operator.
28836
28837 2014-01-30 Nick Clifton <nickc@redhat.com>
28838
28839 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28840 Rename to mn10300_store_multiple_regs.
28841 * config/mn10300/mn10300.c: Likewise.
28842 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28843 store_multiple_regs.
28844 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28845 Call mn10300_store_multiple_regs.
28846
28847 2014-01-30 Nick Clifton <nickc@redhat.com>
28848 DJ Delorie <dj@redhat.com>
28849
28850 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28851 %fp 2 to keep registers after it properly word-aligned.
28852 (rl78_alloc_physical_registers_umul): Handle the case where both
28853 input operands are the same.
28854
28855 2014-01-30 Richard Biener <rguenther@suse.de>
28856
28857 PR tree-optimization/59903
28858 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28859 check properly.
28860
28861 2014-01-30 Jason Merrill <jason@redhat.com>
28862
28863 PR c++/59633
28864 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28865
28866 PR c++/59645
28867 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28868
28869 2014-01-30 Richard Biener <rguenther@suse.de>
28870
28871 PR tree-optimization/59951
28872 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28873
28874 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28875
28876 PR target/59784
28877 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28878 SFmode to DFmode case.
28879
28880 2014-01-29 DJ Delorie <dj@redhat.com>
28881
28882 * config/msp430/msp430.opt (-minrt): New.
28883 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28884 if -minrt given.
28885 (ENDFILE_SPEC): Likewise.
28886
28887 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28888
28889 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28890 (estimate_function_body_sizes): Use it.
28891
28892 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28893
28894 PR c++/58561
28895 * dwarf2out.c (is_cxx_auto): New.
28896 (is_base_type): Use it.
28897 (gen_type_die_with_usage): Likewise.
28898
28899 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28900
28901 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28902 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28903 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28904 -maltivec=be with LE targets.
28905 (vsx_mergeh_<mode>): Likewise.
28906 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28907 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28908 (altivec_vmrghb): Replace with define_expand and new
28909 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28910 (altivec_vmrghb_direct): New define_insn.
28911 (altivec_vmrghh): Replace with define_expand and new
28912 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28913 (altivec_vmrghh_direct): New define_insn.
28914 (altivec_vmrghw): Replace with define_expand and new
28915 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28916 (altivec_vmrghw_direct): New define_insn.
28917 (*altivec_vmrghsf): Adjust for endianness.
28918 (altivec_vmrglb): Replace with define_expand and new
28919 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28920 (altivec_vmrglb_direct): New define_insn.
28921 (altivec_vmrglh): Replace with define_expand and new
28922 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28923 (altivec_vmrglh_direct): New define_insn.
28924 (altivec_vmrglw): Replace with define_expand and new
28925 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28926 (altivec_vmrglw_direct): New define_insn.
28927 (*altivec_vmrglsf): Adjust for endianness.
28928 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28929 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28930 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28931 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28932 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28933 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28934 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28935 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28936
28937 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28938
28939 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28940 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28941 whitespace.
28942
28943 2014-01-29 Richard Biener <rguenther@suse.de>
28944
28945 PR tree-optimization/58742
28946 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28947 associate_pointerplus_align.
28948 (associate_pointerplus_diff): New function.
28949 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28950 and associate_pointerplus_diff.
28951
28952 2014-01-29 Richard Biener <rguenther@suse.de>
28953
28954 * lto-streamer.h (LTO_major_version): Bump to 3.
28955 (LTO_minor_version): Reset to 0.
28956
28957 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28958
28959 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28960 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28961 (arm_file_start): Generate correct asm header for armv7ve.
28962 * config/arm/bpabi.h: Add multilib support for armv7ve.
28963 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28964 and cortex-a15 to armv7ve.
28965 * config/arm/t-aprofile: Add multilib support for armv7ve.
28966 * doc/invoke.texi: Document -march=armv7ve.
28967
28968 2014-01-29 Richard Biener <rguenther@suse.de>
28969
28970 PR tree-optimization/58742
28971 * tree-ssa-forwprop.c (associate_plusminus): Return true
28972 if we changed sth, defer EH cleanup to ...
28973 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28974 (simplify_mult): New function.
28975
28976 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28977
28978 PR middle-end/59917
28979 PR tree-optimization/59920
28980 * tree.c (build_common_builtin_nodes): Remove
28981 __builtin_setjmp_dispatcher initialization.
28982 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28983 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28984 instead of gsi_after_labels + manually skipping debug stmts.
28985 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28986 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28987 * tree-inline.c (copy_edges_for_bb): Remove
28988 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28989 argument. Ignore computed_goto_p stmts. Don't call
28990 make_abnormal_goto_edges. If a call might need abnormal edges
28991 for non-local gotos, see if it already has an edge to
28992 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28993 with true argument, don't do anything then, otherwise add
28994 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28995 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28996 caller.
28997 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28998 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28999 (lower_stmt): Don't set data->calls_builtin_setjmp.
29000 (lower_builtin_setjmp): Adjust comment.
29001 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29002 * tree-cfg.c (found_computed_goto): Remove.
29003 (factor_computed_gotos): Remove.
29004 (make_goto_expr_edges): Return bool, true for computed gotos.
29005 Don't call make_abnormal_goto_edges.
29006 (build_gimple_cfg): Don't set found_computed_goto, don't call
29007 factor_computed_gotos.
29008 (computed_goto_p): No longer static.
29009 (make_blocks): Don't set found_computed_goto.
29010 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29011 (make_edges): If make_goto_expr_edges returns true, push bb
29012 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29013 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29014 vector. Record mapping between bbs and OpenMP regions if there
29015 are any, adjust make_gimple_omp_edges caller. Call
29016 handle_abnormal_edges.
29017 (make_abnormal_goto_edges): Remove.
29018 * tree-cfg.h (make_abnormal_goto_edges): Remove.
29019 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29020 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29021 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29022 * internal-fn.def (ABNORMAL_DISPATCHER): New.
29023 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29024 filling *region also set *region_idx to (*region)->entry->index.
29025
29026 PR other/58712
29027 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29028 For REGs set ORIGINAL_REGNO.
29029
29030 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
29031
29032 * doc/md.texi: Mention that a target shouldn't implement
29033 vec_widen_(s|u)mul_even/odd pair if it is less efficient
29034 than hi/lo pair.
29035
29036 2014-01-29 Jakub Jelinek <jakub@redhat.com>
29037
29038 PR tree-optimization/59594
29039 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29040 a copy of the datarefs vector rather than the vector itself.
29041
29042 2014-01-28 Jason Merrill <jason@redhat.com>
29043
29044 PR c++/53756
29045 * dwarf2out.c (auto_die): New static.
29046 (gen_type_die_with_usage): Handle C++1y 'auto'.
29047 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29048 on definition.
29049
29050 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
29051
29052 PR target/59672
29053 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29054 (SPEC_X32): Likewise.
29055 (SPEC_64): Likewise.
29056 * config/i386/i386.c (ix86_option_override_internal): Turn off
29057 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29058 for TARGET_16BIT.
29059 (x86_file_start): Output .code16gcc for TARGET_16BIT.
29060 * config/i386/i386.h (TARGET_16BIT): New macro.
29061 (TARGET_16BIT_P): Likewise.
29062 * config/i386/i386.opt: Add m16.
29063 * doc/invoke.texi: Document -m16.
29064
29065 2014-01-28 Jakub Jelinek <jakub@redhat.com>
29066
29067 PR preprocessor/59935
29068 * input.c (location_get_source_line): Bail out on when line number
29069 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29070
29071 2014-01-28 Richard Biener <rguenther@suse.de>
29072
29073 PR tree-optimization/58742
29074 * tree-ssa-forwprop.c (associate_plusminus): Handle
29075 pointer subtraction of the form (T)(P + A) - (T)P.
29076
29077 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29078
29079 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29080 at const_int_cost.
29081
29082 2014-01-28 Richard Biener <rguenther@suse.de>
29083
29084 Revert
29085 2014-01-28 Richard Biener <rguenther@suse.de>
29086
29087 PR rtl-optimization/45364
29088 PR rtl-optimization/59890
29089 * var-tracking.c (local_get_addr_clear_given_value): Handle
29090 already cleared slot.
29091 (val_reset): Handle not allocated local_get_addr_cache.
29092 (vt_find_locations): Use post-order on the inverted CFG.
29093
29094 2014-01-28 Richard Biener <rguenther@suse.de>
29095
29096 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29097
29098 2014-01-28 Richard Biener <rguenther@suse.de>
29099
29100 PR rtl-optimization/45364
29101 PR rtl-optimization/59890
29102 * var-tracking.c (local_get_addr_clear_given_value): Handle
29103 already cleared slot.
29104 (val_reset): Handle not allocated local_get_addr_cache.
29105 (vt_find_locations): Use post-order on the inverted CFG.
29106
29107 2014-01-28 Alan Modra <amodra@gmail.com>
29108
29109 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29110 * configure.ac <recursive call for build != host>: Define
29111 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29112 and LD_FOR_BUILD too.
29113 * configure: Regenerate.
29114
29115 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29116
29117 * config/i386/i386.c (get_builtin_code_for_version): Separate
29118 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29119 Broadwell from Haswell.
29120
29121 2014-01-27 Steve Ellcey <sellcey@mips.com>
29122
29123 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29124 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29125 * config/mips/mips.c (mips_option_override): Change setting
29126 of TARGET_DSP.
29127 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29128 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29129 Change from Mask to Var.
29130
29131 2014-01-27 Jeff Law <law@redhat.com>
29132
29133 * ipa-inline.c (inline_small_functions): Fix typo.
29134
29135 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29136
29137 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29138 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29139 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29140 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29141 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29142 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29143 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29144 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29145 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29146 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29147 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29148 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29149 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29150 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29151 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29152 (_mm512_storeu_epi64): Ditto.
29153 (_mm512_cmpge_epi32_mask): Ditto.
29154 (_mm512_cmpge_epu32_mask): Ditto.
29155 (_mm512_cmpge_epi64_mask): Ditto.
29156 (_mm512_cmpge_epu64_mask): Ditto.
29157 (_mm512_cmple_epi32_mask): Ditto.
29158 (_mm512_cmple_epu32_mask): Ditto.
29159 (_mm512_cmple_epi64_mask): Ditto.
29160 (_mm512_cmple_epu64_mask): Ditto.
29161 (_mm512_cmplt_epi32_mask): Ditto.
29162 (_mm512_cmplt_epu32_mask): Ditto.
29163 (_mm512_cmplt_epi64_mask): Ditto.
29164 (_mm512_cmplt_epu64_mask): Ditto.
29165 (_mm512_cmpneq_epi32_mask): Ditto.
29166 (_mm512_cmpneq_epu32_mask): Ditto.
29167 (_mm512_cmpneq_epi64_mask): Ditto.
29168 (_mm512_cmpneq_epu64_mask): Ditto.
29169 (_mm512_expand_pd): Ditto.
29170 (_mm512_expand_ps): Ditto.
29171 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29172 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29173 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29174 * config/i386/i386.c (ix86_builtins): Add
29175 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29176 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29177 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29178 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29179 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29180 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29181 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29182 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29183 IX86_BUILTIN_PMOVUSQW512_MEM.
29184 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29185 __builtin_ia32_pmovsqd512mem_mask,
29186 __builtin_ia32_pmovqd512mem_mask,
29187 __builtin_ia32_pmovusqw512mem_mask,
29188 __builtin_ia32_pmovsqw512mem_mask,
29189 __builtin_ia32_pmovqw512mem_mask,
29190 __builtin_ia32_pmovusdw512mem_mask,
29191 __builtin_ia32_pmovsdw512mem_mask,
29192 __builtin_ia32_pmovdw512mem_mask,
29193 __builtin_ia32_pmovqb512mem_mask,
29194 __builtin_ia32_pmovusqb512mem_mask,
29195 __builtin_ia32_pmovsqb512mem_mask,
29196 __builtin_ia32_pmovusdb512mem_mask,
29197 __builtin_ia32_pmovsdb512mem_mask,
29198 __builtin_ia32_pmovdb512mem_mask.
29199 (bdesc_args): Add __builtin_ia32_expanddf512,
29200 __builtin_ia32_expandsf512.
29201 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29202 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29203 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29204 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29205 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29206 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29207 (avx512f_<code>v8div16qi2_mask_store): This.
29208 (avx512f_expand<mode>): New.
29209
29210 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29211
29212 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29213 New.
29214 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29215 (_mm512_prefetch_i32scatter_pd): Ditto.
29216 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29217 (_mm512_prefetch_i64scatter_pd): Ditto.
29218 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29219 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29220 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29221 (_mm512_prefetch_i32scatter_ps): Ditto.
29222 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29223 (_mm512_prefetch_i64scatter_ps): Ditto.
29224 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29225 * config/i386/i386-builtin-types.def: Define
29226 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29227 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29228 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29229 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29230 IX86_BUILTIN_SCATTERPFQPD.
29231 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29232 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29233 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29234 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29235 __builtin_ia32_scatterpfqps.
29236 (ix86_expand_builtin): Expand new built-ins.
29237 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29238 fix memory access data type.
29239 (*avx512pf_gatherpf<mode>_mask): Ditto.
29240 (*avx512pf_gatherpf<mode>): Ditto.
29241 (avx512pf_scatterpf<mode>): Ditto.
29242 (*avx512pf_scatterpf<mode>_mask): Ditto.
29243 (*avx512pf_scatterpf<mode>): Ditto.
29244 (GATHER_SCATTER_SF_MEM_MODE): New.
29245 (avx512pf_gatherpf<mode>df): Ditto.
29246 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29247 (*avx512pf_scatterpf<mode>df): Ditto.
29248
29249 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29250
29251 PR bootstrap/59934
29252 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29253 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29254 reached.
29255
29256 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29257
29258 * common/config/arm/arm-common.c
29259 (arm_rewrite_mcpu): Handle multiple names.
29260 * config/arm/arm.h
29261 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29262
29263 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29264
29265 * gimple-builder.h (create_gimple_tmp): Delete.
29266
29267 2014-01-27 Christian Bruel <christian.bruel@st.com>
29268
29269 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29270 words comparisons.
29271
29272 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29273
29274 * config/pa/pa.md (call): Generate indirect long calls to non-local
29275 functions when outputing 32-bit code.
29276 (call_value): Likewise except for special call to buggy powf function.
29277
29278 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29279 portable runtime and PIC indirect calls.
29280 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29281 and PIC call sequences. Use ldo instead of blr to set return register
29282 in PIC call sequence.
29283
29284 2014-01-25 Walter Lee <walt@tilera.com>
29285
29286 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29287 avoid clobbering a live register.
29288
29289 2014-01-25 Walter Lee <walt@tilera.com>
29290
29291 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29292 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29293 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29294 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29295
29296 2014-01-25 Walter Lee <walt@tilera.com>
29297
29298 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29299 arguments on even registers.
29300 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29301 STACK_BOUNDARY.
29302 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29303 (BIGGEST_ALIGNMENT): Ditto.
29304 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29305
29306 2014-01-25 Walter Lee <walt@tilera.com>
29307
29308 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29309 insns before bundling.
29310 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29311
29312 2014-01-25 Walter Lee <walt@tilera.com>
29313
29314 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29315 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29316 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29317
29318 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29319
29320 * config/mips/constraints.md (kl): Delete.
29321 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29322 define expands, using...
29323 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29324 instructions for MIPS16.
29325 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29326 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29327
29328 2014-01-25 Walter Lee <walt@tilera.com>
29329
29330 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29331 (clzdi2): Ditto.
29332 (ffsdi2): Ditto.
29333
29334 2014-01-25 Walter Lee <walt@tilera.com>
29335
29336 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29337 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29338
29339 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29340
29341 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29342 Handle XOR.
29343
29344 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29345
29346 * print-rtl.c (in_call_function_usage): New var.
29347 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29348 EXPR_LIST mode as mode and not as reg note name.
29349
29350 PR middle-end/59561
29351 * cfgloopmanip.c (copy_loop_info): If
29352 loop->warned_aggressive_loop_optimizations, make sure
29353 the flag is set in target loop too.
29354
29355 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29356
29357 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29358 flag_cilkplus.
29359 * builtins.def: Likewise.
29360 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29361 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29362 * ira.c (ira_setup_eliminable_regset): Likewise.
29363 * omp-low.c (gate_expand_omp): Likewise.
29364 (execute_lower_omp): Likewise.
29365 (diagnose_sb_0): Likewise.
29366 (gate_diagnose_omp_blocks): Likewise.
29367 (simd_clone_clauses_extract): Likewise.
29368 (gate): Likewise.
29369
29370 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29371
29372 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29373 correction for little endian...
29374 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29375 here.
29376
29377 2014-01-24 Jeff Law <law@redhat.com>
29378
29379 PR tree-optimization/59919
29380 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29381 for non-returning calls.
29382
29383 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29384
29385 * common/config/aarch64/aarch64-common.c
29386 (aarch64_rewrite_mcpu): Handle multiple names.
29387 * config/aarch64/aarch64.h
29388 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29389
29390 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29391
29392 * input.c (add_file_to_cache_tab): Handle the case where fopen
29393 returns NULL.
29394
29395 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29396
29397 PR target/59929
29398 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29399 from push operand if code of push isn't PRE_DEC.
29400
29401 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29402
29403 PR target/59909
29404 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29405 -mquad-memory-atomic. Update -mquad-memory documentation to say
29406 it is only used for non-atomic loads/stores.
29407
29408 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29409 -mquad-memory or -mquad-memory-atomic switches.
29410
29411 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29412 -mquad-memory-atomic to ISA 2.07 support.
29413
29414 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29415 to separate support of normal quad word memory operations (ldq, stq)
29416 from the atomic quad word memory operations.
29417
29418 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29419 support to separate non-atomic quad word operations from atomic
29420 quad word operations. Disable non-atomic quad word operations in
29421 little endian mode so that we don't have to swap words after the
29422 load and before the store.
29423 (quad_load_store_p): Add comment about atomic quad word support.
29424 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29425 options printed with -mdebug=reg.
29426
29427 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29428 -mquad-memory-atomic as the test for whether we have quad word
29429 atomic instructions.
29430 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29431 or -mp8-vector are used, allow byte/half-word atomic operations.
29432
29433 * config/rs6000/sync.md (load_lockedti): Insure that the address
29434 is a proper indexed or indirect address for the lqarx instruction.
29435 On little endian systems, swap the hi/lo registers after the lqarx
29436 instruction.
29437 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29438 insure the address is valid for the lqarx instruction.
29439 (store_conditionalti): Insure that the address is a proper indexed
29440 or indirect address for the stqcrx. instruction. On little endian
29441 systems, swap the hi/lo registers before doing the stqcrx.
29442 instruction.
29443 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29444 insure the address is valid for the stqcrx. instruction.
29445
29446 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29447 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29448 type of quad memory support is available.
29449
29450 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29451
29452 PR regression/59915
29453 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29454 there is a danger of looping.
29455
29456 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29457
29458 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29459 force flag_ira_loop_pressure if set via command line.
29460
29461 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29462
29463 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29464 (ashr_simd): New builtin handling DI mode.
29465 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29466 (aarch64_sshr_simddi): New match pattern.
29467 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29468 (vshrd_n_s64): Likewise.
29469 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29470
29471 2014-01-23 Nick Clifton <nickc@redhat.com>
29472
29473 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29474 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29475 favour of mcu specific scripts.
29476 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29477 430x multilibs.
29478
29479 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29480 Alex Velenko <Alex.Velenko@arm.com>
29481
29482 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29483 (vaddv_s16): Likewise.
29484 (vaddv_s32): Likewise.
29485 (vaddv_u8): Likewise.
29486 (vaddv_u16): Likewise.
29487 (vaddv_u32): Likewise.
29488 (vaddvq_s8): Likewise.
29489 (vaddvq_s16): Likewise.
29490 (vaddvq_s32): Likewise.
29491 (vaddvq_s64): Likewise.
29492 (vaddvq_u8): Likewise.
29493 (vaddvq_u16): Likewise.
29494 (vaddvq_u32): Likewise.
29495 (vaddvq_u64): Likewise.
29496 (vaddv_f32): Likewise.
29497 (vaddvq_f32): Likewise.
29498 (vaddvq_f64): Likewise.
29499 (vmaxv_f32): Likewise.
29500 (vmaxv_s8): Likewise.
29501 (vmaxv_s16): Likewise.
29502 (vmaxv_s32): Likewise.
29503 (vmaxv_u8): Likewise.
29504 (vmaxv_u16): Likewise.
29505 (vmaxv_u32): Likewise.
29506 (vmaxvq_f32): Likewise.
29507 (vmaxvq_f64): Likewise.
29508 (vmaxvq_s8): Likewise.
29509 (vmaxvq_s16): Likewise.
29510 (vmaxvq_s32): Likewise.
29511 (vmaxvq_u8): Likewise.
29512 (vmaxvq_u16): Likewise.
29513 (vmaxvq_u32): Likewise.
29514 (vmaxnmv_f32): Likewise.
29515 (vmaxnmvq_f32): Likewise.
29516 (vmaxnmvq_f64): Likewise.
29517 (vminv_f32): Likewise.
29518 (vminv_s8): Likewise.
29519 (vminv_s16): Likewise.
29520 (vminv_s32): Likewise.
29521 (vminv_u8): Likewise.
29522 (vminv_u16): Likewise.
29523 (vminv_u32): Likewise.
29524 (vminvq_f32): Likewise.
29525 (vminvq_f64): Likewise.
29526 (vminvq_s8): Likewise.
29527 (vminvq_s16): Likewise.
29528 (vminvq_s32): Likewise.
29529 (vminvq_u8): Likewise.
29530 (vminvq_u16): Likewise.
29531 (vminvq_u32): Likewise.
29532 (vminnmv_f32): Likewise.
29533 (vminnmvq_f32): Likewise.
29534 (vminnmvq_f64): Likewise.
29535
29536 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29537
29538 * config/aarch64/aarch64-simd.md
29539 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29540 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29541 (*aarch64_mul3_elt<mode>): Likewise.
29542 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29543 (*aarch64_mul3_elt_to_64v2df): Likewise.
29544 (*aarch64_mla_elt<mode>): Likewise.
29545 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29546 (*aarch64_mls_elt<mode>): Likewise.
29547 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29548 (*aarch64_fma4_elt<mode>): Likewise.
29549 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29550 (*aarch64_fma4_elt_to_64v2df): Likewise.
29551 (*aarch64_fnma4_elt<mode>): Likewise.
29552 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29553 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29554 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29555 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29556 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29557 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29558 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29559 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29560 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29561
29562 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29563
29564 * config/aarch64/aarch64-simd.md
29565 (aarch64_be_checked_get_lane<mode>): New define_expand.
29566 * config/aarch64/aarch64-simd-builtins.def
29567 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29568 New builtin definition.
29569 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29570 Use new safe be builtin.
29571
29572 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29573
29574 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29575 New define_insn.
29576 (aarch64_be_st1<mode>): Likewise.
29577 (aarch_ld1<VALL:mode>): Define_expand modified.
29578 (aarch_st1<VALL:mode>): Likewise.
29579 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29580 (UNSPEC_ST1): Likewise.
29581
29582 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29583
29584 * config/microblaze/microblaze.md: Add trap insn and attribute
29585
29586 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29587
29588 PR preprocessor/58580
29589 * input.h (location_get_source_line): Take an additional line_size
29590 parameter.
29591 (void diagnostics_file_cache_fini): Declare new function.
29592 * input.c (struct fcache): New type.
29593 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29594 New static constants.
29595 (diagnostic_file_cache_init, total_lines_num)
29596 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29597 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29598 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29599 (get_next_line, read_next_line, goto_next_line, read_line_num):
29600 New static function definitions.
29601 (diagnostic_file_cache_fini): New function.
29602 (location_get_source_line): Take an additional output line_len
29603 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29604 read_line_num.
29605 * diagnostic.c (diagnostic_finish): Call
29606 diagnostic_file_cache_fini.
29607 (adjust_line): Take an additional input parameter for the length
29608 of the line, rather than calculating it with strlen.
29609 (diagnostic_show_locus): Adjust the use of
29610 location_get_source_line and adjust_line with respect to their new
29611 signature. While displaying a line now, do not stop at the first
29612 null byte. Rather, display the zero byte as a space and keep
29613 going until we reach the size of the line.
29614 * Makefile.in: Add vec.o to OBJS-libcommon
29615
29616 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29617 Ilya Tocar <ilya.tocar@intel.com>
29618
29619 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29620 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29621 (__builtin_ia32_kmov16): Ditto.
29622 * config/i386/i386.md (UNSPEC_KMOV): New.
29623 (kmovw): Ditto.
29624
29625 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29626
29627 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29628 (_mm512_storeu_si512): Ditto.
29629
29630 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29631
29632 PR target/52125
29633 * rtl.h (get_referenced_operands): Declare.
29634 * recog.c (get_referenced_operands): New function.
29635 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29636 operands have been referenced when recording LO_SUM references.
29637
29638 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29639
29640 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29641
29642 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29643
29644 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29645 Enable for generic and recent AMD targets.
29646
29647 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29648
29649 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29650 ARG_SIZE note when adjustment was eliminated.
29651
29652 2014-01-22 Jeff Law <law@redhat.com>
29653
29654 PR tree-optimization/59597
29655 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29656 in file. Accept new argument REGISTERING and use it to modify
29657 dump output appropriately.
29658 (register_jump_thread): Corresponding changes.
29659 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29660 thread paths involving joiner blocks. Add code to dump cancelled
29661 jump threading paths.
29662
29663 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29664
29665 PR rtl-optimization/59477
29666 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29667 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29668
29669 2014-01-22 Tom Tromey <tromey@redhat.com>
29670
29671 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29672 PARAMS.
29673 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29674
29675 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29676
29677 PR rtl-optimization/59896
29678 * lra-constraints.c (process_alt_operands): Check unused note for
29679 matched operands of insn with no output reloads.
29680
29681 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29682
29683 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29684 (mips_move_from_gpr_cost): Likewise.
29685
29686 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29687
29688 PR rtl-optimization/59858
29689 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29690 ira_class_hard_regs_num.
29691 (process_alt_operands): Increase reject for dying matched operand.
29692
29693 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29694
29695 PR target/59003
29696 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29697 smaller than size, perform several stores or loads and stores
29698 at dst + count - size to store or copy all of size bytes, rather
29699 than just last modesize bytes.
29700
29701 2014-01-20 DJ Delorie <dj@redhat.com>
29702
29703 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29704 that CLOBBERs are REGs before propogating their values.
29705
29706 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29707
29708 PR middle-end/59789
29709 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29710 (cgraph_inline_failed_type): New function.
29711 * cgraph.h (DEFCIFCODE): Add type.
29712 (cgraph_inline_failed_type_t): New enum.
29713 (cgraph_inline_failed_type): New prototype.
29714 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29715 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29716 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29717 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29718 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29719 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29720 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29721 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29722 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29723 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29724 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29725 OPTIMIZATION_MISMATCH.
29726 * tree-inline.c (expand_call_inline): Emit errors during
29727 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29728
29729 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29730
29731 PR target/59685
29732 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29733 mode attribute in insn output.
29734
29735 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29736
29737 * output.h (output_constant): Delete.
29738 * varasm.c (output_constant): Make private.
29739
29740 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29741
29742 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29743
29744 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29745
29746 PR middle-end/59860
29747 * tree.h (fold_builtin_strcat): New prototype.
29748 * builtins.c (fold_builtin_strcat): No longer static. Add len
29749 argument, if non-NULL, don't call c_strlen. Optimize
29750 directly into __builtin_memcpy instead of __builtin_strcpy.
29751 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29752 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29753
29754 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29755
29756 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29757 for SImode_address_operand operands, having only a REG argument.
29758
29759 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29760
29761 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29762 loader name using mbig-endian.
29763 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29764
29765 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29766
29767 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29768 (-mtune): Likewise.
29769 (-mcpu): Likewise.
29770
29771 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29772
29773 * config/aarch64/aarch64-protos.h
29774 (aarch64_cannot_change_mode_class_ptr): Declare.
29775 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29776 aarch64_cannot_change_mode_class_ptr): New.
29777 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29778 backend hook aarch64_cannot_change_mode_class.
29779
29780 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29781
29782 * common/config/aarch64/aarch64-common.c
29783 (aarch64_handle_option): Don't handle any option order logic here.
29784 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29785 selected_cpu, warn on architecture version mismatch.
29786 (aarch64_override_options): Fix parsing order for option strings.
29787
29788 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29789 Iain Sandoe <iain@codesourcery.com>
29790
29791 PR bootstrap/59496
29792 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29793 warning. Amend comment to reflect current functionality.
29794
29795 2014-01-20 Richard Biener <rguenther@suse.de>
29796
29797 PR middle-end/59860
29798 * builtins.c (fold_builtin_strcat): Remove case better handled
29799 by tree-ssa-strlen.c.
29800
29801 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29802
29803 * config/aarch64/aarch64.opt
29804 (mcpu, march, mtune): Make case-insensitive.
29805
29806 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29807
29808 PR target/59880
29809 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29810 if operands[1] is a REG or ZERO_EXTEND of a REG.
29811
29812 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29813
29814 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29815
29816 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29817
29818 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29819 long non-pic millicode calls.
29820
29821 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29822
29823 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29824
29825 2014-01-19 Kito Cheng <kito@0xlab.org>
29826
29827 * builtins.c (expand_movstr): Check movstr expand done or fail.
29828
29829 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29830 H.J. Lu <hongjiu.lu@intel.com>
29831
29832 PR target/59379
29833 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29834 to DImode for zero-extended addresses.
29835
29836 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29837
29838 PR rtl-optimization/57763
29839 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29840 on the new indirect jump_insn and increment LABEL_NUSES (label).
29841
29842 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29843
29844 PR bootstrap/59580
29845 PR bootstrap/59583
29846 * config.gcc (x86_archs): New variable.
29847 (x86_64_archs): Likewise.
29848 (x86_cpus): Likewise.
29849 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29850 --with-arch/--with-cpu= options.
29851 Support --with-arch=/--with-cpu={nehalem,westmere,
29852 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29853
29854 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29855
29856 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29857 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29858
29859 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29860
29861 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29862
29863 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29864
29865 PR target/58944
29866 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29867 clear cpp_get_options (parse_in)->warn_unused_macros for
29868 ix86_target_macros_internal with cpp_define.
29869
29870 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29871
29872 * jump.c (delete_related_insns): Keep (use (insn))s.
29873 * reorg.c (redundant_insn): Check for barriers too.
29874
29875 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29876
29877 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29878
29879 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29880
29881 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29882 call to $$dyncall when TARGET_LONG_CALLS is true.
29883
29884 2014-01-17 Jeff Law <law@redhat.com>
29885
29886 * ree.c (combine_set_extension): Temporarily disable test for
29887 changing number of hard registers.
29888
29889 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29890
29891 PR middle-end/58125
29892 * ipa-inline-analysis.c (inline_free_summary):
29893 Do not free summary of aliases.
29894
29895 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29896
29897 PR middle-end/59706
29898 * gimplify.c (gimplify_expr): Use create_tmp_var
29899 instead of create_tmp_var_raw. If cond doesn't have
29900 integral type, don't add the IFN_ANNOTATE builtin at all.
29901
29902 2014-01-17 Martin Jambor <mjambor@suse.cz>
29903
29904 PR ipa/59736
29905 * ipa-cp.c (prev_edge_clone): New variable.
29906 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29907 Also resize prev_edge_clone vector.
29908 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29909 (ipcp_edge_removal_hook): New function.
29910 (ipcp_driver): Register ipcp_edge_removal_hook.
29911
29912 2014-01-17 Andrew Pinski <apinski@cavium.com>
29913 Steve Ellcey <sellcey@mips.com>
29914
29915 PR target/59462
29916 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29917 of operator mode.
29918
29919 2014-01-17 Jeff Law <law@redhat.com>
29920
29921 PR middle-end/57904
29922 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29923 so that pass_ccp runs first.
29924
29925 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29926
29927 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29928 (ix86_adjust_cost): Use !TARGET_XXX.
29929 (do_reorder_for_imul): Likewise.
29930 (swap_top_of_ready_list): Likewise.
29931 (ix86_sched_reorder): Likewise.
29932
29933 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29934
29935 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29936 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29937 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29938 (intel_memset): New. Duplicate slm_memset.
29939 (intel_cost): New. Duplicate slm_cost.
29940 (m_INTEL): New macro.
29941 (processor_target_table): Add "intel".
29942 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29943 with PROCESSOR_INTEL for "intel".
29944 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29945 PROCESSOR_SILVERMONT.
29946 (ix86_issue_rate): Likewise.
29947 (ix86_adjust_cost): Likewise.
29948 (ia32_multipass_dfa_lookahead): Likewise.
29949 (swap_top_of_ready_list): Likewise.
29950 (ix86_sched_reorder): Likewise.
29951 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29952 instead of TARGET_OPT_AGU.
29953 * config/i386/i386.h (TARGET_INTEL): New.
29954 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29955 (processor_type): Add PROCESSOR_INTEL.
29956 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29957 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29958
29959 2014-01-17 Marek Polacek <polacek@redhat.com>
29960
29961 PR c/58346
29962 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29963 size is zero.
29964
29965 2014-01-17 Richard Biener <rguenther@suse.de>
29966
29967 PR tree-optimization/46590
29968 * opts.c (default_options_table): Add entries for
29969 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29970 all enabled at -O1 but not for -Og.
29971 * common.opt (fbranch-count-reg): Remove Init(1).
29972 (fmove-loop-invariants): Likewise.
29973 (ftree-pta): Likewise.
29974
29975 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29976
29977 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29978 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29979 decls to at least the GCC 4.8 used alignments.
29980
29981 PR fortran/59440
29982 * tree-nested.c (convert_nonlocal_reference_stmt,
29983 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29984 of GIMPLE_BIND stmts, adjust associated decls.
29985
29986 2014-01-17 Richard Biener <rguenther@suse.de>
29987
29988 PR tree-optimization/46590
29989 * vec.h (vec<>::bseach): New member function implementing
29990 binary search according to C89 bsearch.
29991 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29992 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29993 bitmap pointer again. Make accesses_in_loop a flat array.
29994 (mem_ref_obstack): New global.
29995 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29996 (mark_ref_stored): Likewise.
29997 (ref_indep_loop_p_2): Likewise.
29998 (set_ref_stored_in_loop): New helper function.
29999 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30000 (memref_free): Adjust.
30001 (record_mem_ref_loc): Simplify.
30002 (gather_mem_refs_stmt): Adjust.
30003 (sort_locs_in_loop_postorder_cmp): New function.
30004 (analyze_memory_references): Sort accesses_in_loop after
30005 loop postorder number.
30006 (find_ref_loc_in_loop_cmp): New function.
30007 (for_all_locs_in_loop): Find relevant cluster of locs in
30008 accesses_in_loop and iterate without recursion.
30009 (execute_sm): Avoid uninit warning.
30010 (struct ref_always_accessed): Simplify.
30011 (ref_always_accessed::operator ()): Likewise.
30012 (ref_always_accessed_p): Likewise.
30013 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30014 loop postorder numbers here.
30015 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30016 numbers.
30017
30018 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
30019
30020 PR c++/57945
30021 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30022 on decls for which assemble_alias has been called.
30023
30024 2014-01-17 Nick Clifton <nickc@redhat.com>
30025
30026 * config/msp430/msp430.opt: (mcpu): New option.
30027 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30028 (msp430_option_override): Parse target_cpu. If the MCU name
30029 matches a generic string, clear target_mcu.
30030 (msp430_attr): Allow numeric interrupt values up to 63.
30031 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30032 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30033 option.
30034 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30035 Add mcpu matches.
30036 * config/msp430/msp430.md (popm): Use %J rather than %I.
30037 (addsi3): Use msp430_nonimmediate_operand for operand 2.
30038 (addhi_cy_i): Use immediate_operand for operand 2.
30039 * doc/invoke.texi: Document -mcpu option.
30040
30041 2014-01-17 Richard Biener <rguenther@suse.de>
30042
30043 PR rtl-optimization/38518
30044 * df.h (df_analyze_loop): Declare.
30045 * df-core.c: Include cfgloop.h.
30046 (df_analyze_1): Split out main part of df_analyze.
30047 (df_analyze): Adjust.
30048 (loop_inverted_post_order_compute): New function.
30049 (loop_post_order_compute): Likewise.
30050 (df_analyze_loop): New function avoiding whole-function
30051 postorder computes.
30052 * loop-invariant.c (find_defs): Use df_analyze_loop.
30053 (find_invariants): Adjust.
30054 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30055
30056 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
30057
30058 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30059 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30060
30061 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30062
30063 * ipa-ref.c (ipa_remove_stmt_references): Fix references
30064 traversal when removing references.
30065
30066 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
30067
30068 PR ipa/59775
30069 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30070
30071 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
30072
30073 PR middle-end/56791
30074 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30075 pushing a reload for an autoinc when we had previously reloaded an
30076 inner part of the address.
30077
30078 2014-01-16 Jakub Jelinek <jakub@redhat.com>
30079
30080 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30081 field.
30082 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30083 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30084 when not giving up or versioning for alias only because of
30085 loop->safelen.
30086 (vect_analyze_data_ref_dependences): Set to true.
30087 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30088 is a GIMPLE_PHI.
30089 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30090 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30091 to the condition.
30092
30093 PR middle-end/58344
30094 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30095
30096 PR target/59839
30097 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30098 operand 0 predicate for gathers, use a new pseudo as subtarget.
30099
30100 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30101
30102 PR middle-end/59609
30103 * lra-constraints.c (process_alt_operands): Add printing debug info.
30104 Check absence of input/output reloads for matched operands too.
30105
30106 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30107
30108 PR rtl-optimization/59835
30109 * ira.c (ira_init_register_move_cost): Increase cost for
30110 impossible modes.
30111
30112 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
30113
30114 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30115
30116 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30117
30118 PR target/59780
30119 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30120 non-register objects. Use gen_(high/low)part more consistently.
30121 Fix assertions.
30122
30123 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30124
30125 PR target/59844
30126 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30127 endian support, remove tests for WORDS_BIG_ENDIAN.
30128 (p8_mfvsrd_3_<mode>): Likewise.
30129 (reload_gpr_from_vsx<mode>): Likewise.
30130 (reload_gpr_from_vsxsf): Likewise.
30131 (p8_mfvsrd_4_disf): Likewise.
30132
30133 2014-01-16 Richard Biener <rguenther@suse.de>
30134
30135 PR rtl-optimization/46590
30136 * lcm.c (compute_antinout_edge): Use postorder iteration.
30137 (compute_laterin): Use inverted postorder iteration.
30138
30139 2014-01-16 Nick Clifton <nickc@redhat.com>
30140
30141 PR middle-end/28865
30142 * varasm.c (output_constant): Return the number of bytes actually
30143 emitted.
30144 (output_constructor_array_range): Update the field size with the
30145 number of bytes emitted by output_constant.
30146 (output_constructor_regular_field): Likewise. Also do not
30147 complain if the total number of bytes emitted is now greater
30148 than the expected fieldpos.
30149 * output.h (output_constant): Update prototype and descriptive comment.
30150
30151 2014-01-16 Marek Polacek <polacek@redhat.com>
30152
30153 PR middle-end/59827
30154 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30155 it is error_mark_node.
30156
30157 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30158
30159 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30160 VALID_AVX256_REG_OR_OI_MODE.
30161
30162 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30163
30164 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30165 current procedure should be profiled.
30166
30167 2014-01-15 Andrew Pinski <apinski@cavium.com>
30168
30169 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30170 of moving from/to the STACK_REG register class.
30171
30172 2014-01-15 Richard Henderson <rth@redhat.com>
30173
30174 PR debug/54694
30175 * reginfo.c (global_regs_decl): Globalize.
30176 * rtl.h (global_regs_decl): Declare.
30177 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30178 reserved via global_regs.
30179
30180 2014-01-15 Teresa Johnson <tejohnson@google.com>
30181
30182 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30183
30184 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30185
30186 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30187 and vmulosh rather than call gen_vec_widen_smult_*.
30188 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30189 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30190 (vec_widen_smult_even_v16qi): Likewise.
30191 (vec_widen_umult_even_v8hi): Likewise.
30192 (vec_widen_smult_even_v8hi): Likewise.
30193 (vec_widen_umult_odd_v16qi): Likewise.
30194 (vec_widen_smult_odd_v16qi): Likewise.
30195 (vec_widen_umult_odd_v8hi): Likewise.
30196 (vec_widen_smult_odd_v8hi): Likewise.
30197 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30198 vmuloub rather than call gen_vec_widen_umult_*.
30199 (vec_widen_umult_lo_v16qi): Likewise.
30200 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30201 vmulosb rather than call gen_vec_widen_smult_*.
30202 (vec_widen_smult_lo_v16qi): Likewise.
30203 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30204 rather than call gen_vec_widen_umult_*.
30205 (vec_widen_umult_lo_v8hi): Likewise.
30206 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30207 rather than call gen_vec_widen_smult_*.
30208 (vec_widen_smult_lo_v8hi): Likewise.
30209
30210 2014-01-15 Jeff Law <law@redhat.com>
30211
30212 PR tree-optimization/59747
30213 * ree.c (find_and_remove_re): Properly handle case where a second
30214 eliminated extension requires widening a copy created for elimination
30215 of a prior extension.
30216 (combine_set_extension): Ensure that the number of hard regs needed
30217 for a destination register does not change when we widen it.
30218
30219 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30220
30221 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30222 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30223 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30224 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30225 (avr-*-rtems*): Likewise.
30226 (bfin*-rtems*): Likewise.
30227 (moxie-*-rtems*): Likewise.
30228 (h8300-*-rtems*): Likewise.
30229 (i[34567]86-*-rtems*): Likewise.
30230 (lm32-*-rtems*): Likewise.
30231 (m32r-*-rtems*): Likewise.
30232 (m68k-*-rtems*): Likewise.
30233 (microblaze*-*-rtems*): Likewise.
30234 (mips*-*-rtems*): Likewise.
30235 (powerpc-*-rtems*): Likewise.
30236 (sh-*-rtems*): Likewise.
30237 (sparc-*-rtems*): Likewise.
30238 (sparc64-*-rtems*): Likewise.
30239 (v850-*-rtems*): Likewise.
30240 (m32c-*-rtems*): Likewise.
30241
30242 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30243
30244 PR rtl-optimization/59511
30245 * ira.c (ira_init_register_move_cost): Use memory costs for some
30246 cases of register move cost calculations.
30247 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30248 instead of BB frequency.
30249 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30250 * lra-assigns.c (find_hard_regno_for): Ditto.
30251
30252 2014-01-15 Richard Biener <rguenther@suse.de>
30253
30254 PR tree-optimization/59822
30255 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30256 (vectorizable_load): Use it to hoist defs of uses of invariant
30257 loads out of the loop.
30258
30259 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30260 Kugan Vivekanandarajah <kuganv@linaro.org>
30261
30262 PR target/59695
30263 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30264 truncation.
30265
30266 2014-01-15 Richard Biener <rguenther@suse.de>
30267
30268 PR rtl-optimization/59802
30269 * lcm.c (compute_available): Use inverted postorder to seed
30270 the initial worklist.
30271
30272 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30273
30274 PR target/59803
30275 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30276 ADDR_REGS for invalid symrefs in non-PIC code.
30277
30278 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30279
30280 PR other/58712
30281 * builtins.c (determine_block_size): Initialize *probable_max_size
30282 even if len_rtx is CONST_INT.
30283
30284 2014-01-14 Andrew Pinski <apinski@cavium.com>
30285
30286 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30287 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30288 (cortexa53_tunings): Likewise.
30289 (aarch64_sched_issue_rate): New function.
30290 (TARGET_SCHED_ISSUE_RATE): Define.
30291
30292 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30293
30294 * ira-costs.c (find_costs_and_classes): Add missed
30295 ira_init_register_move_cost_if_necessary.
30296
30297 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30298
30299 PR target/59787
30300 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30301
30302 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30303
30304 PR target/59794
30305 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30306 to indicate if type is used for function return value. Warn ABI
30307 change if the vector mode isn't available for function return value.
30308 (ix86_function_arg_advance): Pass false to type_natural_mode.
30309 (ix86_function_arg): Likewise.
30310 (ix86_gimplify_va_arg): Likewise.
30311 (function_arg_32): Don't warn ABI change.
30312 (ix86_function_value): Pass true to type_natural_mode.
30313 (ix86_return_in_memory): Likewise.
30314 (ix86_struct_value_rtx): Removed.
30315 (TARGET_STRUCT_VALUE_RTX): Likewise.
30316
30317 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30318
30319 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30320 converting a conditional jump into a conditional return.
30321
30322 2014-01-14 Richard Biener <rguenther@suse.de>
30323
30324 PR tree-optimization/58921
30325 PR tree-optimization/59006
30326 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30327 hoisting invariant stmts.
30328 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30329 invariant loads on the preheader edge if possible.
30330
30331 2014-01-14 Joey Ye <joey.ye@arm.com>
30332
30333 * doc/plugin.texi (Building GCC plugins): Update to C++.
30334
30335 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30336
30337 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30338 (_mm_rcp28_round_ss): Ditto.
30339 (_mm_rsqrt28_round_sd): Ditto.
30340 (_mm_rsqrt28_round_ss): Ditto.
30341 (_mm_rcp28_sd): Ditto.
30342 (_mm_rcp28_ss): Ditto.
30343 (_mm_rsqrt28_sd): Ditto.
30344 (_mm_rsqrt28_ss): Ditto.
30345 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30346 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30347 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30348 (IX86_BUILTIN_RCP28SD): Ditto.
30349 (IX86_BUILTIN_RCP28SS): Ditto.
30350 (IX86_BUILTIN_RSQRT28SD): Ditto.
30351 (IX86_BUILTIN_RSQRT28SS): Ditto.
30352 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30353 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30354 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30355 (ix86_expand_special_args_builtin): Expand new FTYPE.
30356 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30357 (srcp14<mode>): Make insn unary.
30358 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30359 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30360 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30361 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30362 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30363 Fix rounding: make it SAE only.
30364 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30365 Ditto.
30366 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30367 Ditto.
30368 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30369 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30370 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30371 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30372 (round_saeonly_mask_scalar_operand4): Ditto.
30373 (round_saeonly_mask_scalar_op3): Ditto.
30374 (round_saeonly_mask_scalar_op4): Ditto.
30375
30376 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30377
30378 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30379 Implement -maltivec=be for vec_insert and vec_extract.
30380
30381 2014-01-10 DJ Delorie <dj@redhat.com>
30382
30383 * config/msp430/msp430.md (call_internal): Don't allow memory
30384 references with SP as the base register.
30385 (call_value_internal): Likewise.
30386 * config/msp430/constraints.md (Yc): New. For memory references
30387 that don't use SP as a base register.
30388
30389 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30390 "an integer without a # prefix"
30391 * config/msp430/msp430.md (epilogue_helper): Use it.
30392
30393 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30394
30395 PR target/59617
30396 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30397 AVX512F gather builtins.
30398 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30399 on gather decls with INTEGER_TYPE masktype.
30400 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30401 directly into the builtin rather than hoisting it before loop.
30402
30403 PR tree-optimization/59387
30404 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30405 (scev_const_prop): If folded_casts and type has undefined overflow,
30406 use force_gimple_operand instead of force_gimple_operand_gsi and
30407 for each added stmt if it is assign with
30408 arith_code_with_undefined_signed_overflow, call
30409 rewrite_to_defined_overflow.
30410 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30411 gimple-fold.h instead.
30412 (arith_code_with_undefined_signed_overflow,
30413 rewrite_to_defined_overflow): Moved to ...
30414 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30415 rewrite_to_defined_overflow): ... here. No longer static.
30416 Include gimplify-me.h.
30417 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30418 rewrite_to_defined_overflow): New prototypes.
30419
30420 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30421
30422 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30423
30424 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30425
30426 * builtins.c (get_object_alignment_2): Minor tweak.
30427 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30428
30429 2014-01-13 Christian Bruel <christian.bruel@st.com>
30430
30431 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30432 optimized non constant lengths.
30433
30434 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30435
30436 PR libgomp/59194
30437 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30438 load as __atomic_load_N if possible.
30439
30440 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30441
30442 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30443 target parameter.
30444 (rs6000_expand_builtin): Adjust call.
30445
30446 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30447
30448 PR target/58115
30449 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30450 * config/rs6000/rs6000.c: Include target-globals.h.
30451 (rs6000_set_current_function): Instead of doing target_reinit
30452 unconditionally, use save_target_globals_default_opts and
30453 restore_target_globals.
30454
30455 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30456 FPSCR.
30457 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30458 (rs6000_expand_builtin): Handle mffs and mtfsf.
30459 (rs6000_init_builtins): Define mffs and mtfsf.
30460 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30461 (rs6000_mffs): New pattern.
30462 (rs6000_mtfsf): New pattern.
30463
30464 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30465
30466 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30467 Start narrowing with START. Apply candidate-use pair
30468 and check overall cost in narrowing.
30469 (iv_ca_prune): Pass new argument.
30470
30471 2014-01-10 Jeff Law <law@redhat.com>
30472
30473 PR middle-end/59743
30474 * ree.c (combine_reaching_defs): Ensure the defining statement
30475 occurs before the extension when optimizing extensions with
30476 different source and destination hard registers.
30477
30478 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30479
30480 PR ipa/58585
30481 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30482 vtables into the type inheritance graph.
30483
30484 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30485
30486 PR rtl-optimization/59754
30487 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30488 modes in the REGNO != REGNO case.
30489
30490 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30491
30492 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30493
30494 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30495
30496 PR tree-optimization/59745
30497 * tree-predcom.c (tree_predictive_commoning_loop): Call
30498 free_affine_expand_cache if giving up because components is NULL.
30499
30500 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30501 GC in payload of target_globals struct instead of allocating them on
30502 the heap and the larger structs separately using GC.
30503 * target-globals.h (struct target_globals): Make regs, hard_regs,
30504 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30505 of GTY((skip)) and change type to void *.
30506 (reset_target_globals): Cast loads from those fields to corresponding
30507 types.
30508
30509 2014-01-10 Steve Ellcey <sellcey@mips.com>
30510
30511 PR plugins/59335
30512 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30513 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30514 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30515
30516 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30517
30518 PR target/59744
30519 * aarch64-modes.def (CC_Zmode): New flags mode.
30520 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30521 represents an equality.
30522 (aarch64_get_condition_code): Handle CC_Zmode.
30523 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30524
30525 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30526
30527 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30528 extraction in good case.
30529
30530 2014-01-10 Richard Biener <rguenther@suse.de>
30531
30532 PR tree-optimization/59374
30533 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30534 checking after SLP discovery. Mark stmts not participating
30535 in any SLP instance properly.
30536
30537 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30538
30539 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30540 when handling a SET rtx.
30541
30542 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30543
30544 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30545 (cortex-a57): Likewise.
30546 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30547
30548 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30549
30550 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30551 non-iwmmxt builtins.
30552
30553 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30554
30555 PR ipa/58252
30556 PR ipa/59226
30557 * ipa-devirt.c record_target_from_binfo): Take as argument
30558 stack of binfos and lookup matching one for virtual inheritance.
30559 (possible_polymorphic_call_targets_1): Update.
30560
30561 2014-01-10 Huacai Chen <chenhc@lemote.com>
30562
30563 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30564 kernel strings for Loongson-2E/2F/3A.
30565
30566 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30567
30568 PR middle-end/59670
30569 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30570 is_gimple_call before calling gimple_call_internal_p.
30571
30572 2014-01-09 Steve Ellcey <sellcey@mips.com>
30573
30574 * Makefile.in (TREE_FLOW_H): Remove.
30575 (TREE_SSA_H): Add file names from tree-flow.h.
30576 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30577 * tree.h: Remove tree-flow.h reference.
30578 * hash-table.h: Remove tree-flow.h reference.
30579 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30580 reference with tree-ssa-loop.h.
30581
30582 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30583
30584 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30585 default element-order behavior for -maltivec.
30586 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30587 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30588 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30589 when targeting big endian, at least for now.
30590 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30591
30592 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30593
30594 PR middle-end/47735
30595 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30596 var satisfies use_register_for_decl, just take into account type
30597 alignment, rather than decl alignment.
30598
30599 PR tree-optimization/59622
30600 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30601 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30602 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30603 Don't devirtualize for inplace at all. For targets.length () == 1,
30604 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30605
30606 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30607
30608 * config/i386/i386.md (cpu): Remove the unused btver1.
30609
30610 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30611
30612 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30613
30614 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30615
30616 PR target/58115
30617 * tree-core.h (struct target_globals): New forward declaration.
30618 (struct tree_target_option): Add globals field.
30619 * tree.h (TREE_TARGET_GLOBALS): Define.
30620 (prepare_target_option_nodes_for_pch): New prototype.
30621 * target-globals.h (struct target_globals): Define even if
30622 !SWITCHABLE_TARGET.
30623 * tree.c (prepare_target_option_node_for_pch,
30624 prepare_target_option_nodes_for_pch): New functions.
30625 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30626 * config/i386/i386.c: Include target-globals.h.
30627 (ix86_set_current_function): Instead of doing target_reinit
30628 unconditionally, use save_target_globals_default_opts and
30629 restore_target_globals.
30630
30631 2014-01-09 Richard Biener <rguenther@suse.de>
30632
30633 PR tree-optimization/59715
30634 * tree-cfg.h (split_critical_edges): Declare.
30635 * tree-cfg.c (split_critical_edges): Export.
30636 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30637
30638 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30639
30640 * cfgexpand.c (expand_stack_vars): Optionally disable
30641 asan stack protection.
30642 (expand_used_vars): Likewise.
30643 (partition_stack_vars): Likewise.
30644 * asan.c (asan_emit_stack_protection): Optionally disable
30645 after return stack usage.
30646 (instrument_derefs): Optionally disable memory access instrumentation.
30647 (instrument_builtin_call): Likewise.
30648 (instrument_strlen_call): Likewise.
30649 (asan_protect_global): Optionally disable global variables protection.
30650 * doc/invoke.texi: Added doc for new options.
30651 * params.def: Added new options.
30652 * params.h: Likewise.
30653
30654 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30655
30656 PR rtl-optimization/59724
30657 * ifcvt.c (cond_exec_process_if_block): Don't call
30658 flow_find_head_matching_sequence with 0 longest_match.
30659 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30660 non-active insns if !stop_after.
30661 (try_head_merge_bb): Revert 2014-01-07 changes.
30662
30663 2014-01-08 Jeff Law <law@redhat.com>
30664
30665 * ree.c (get_sub_rtx): New function, extracted from...
30666 (merge_def_and_ext): Here.
30667 (combine_reaching_defs): Use get_sub_rtx.
30668
30669 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30670
30671 * cgraph.h (varpool_variable_node): Do not choke on null node.
30672
30673 2014-01-08 Catherine Moore <clm@codesourcery.com>
30674
30675 * config/mips/mips.md (simple_return): Attempt to use JRC
30676 for microMIPS.
30677 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30678
30679 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30680
30681 PR rtl-optimization/59137
30682 * reorg.c (steal_delay_list_from_target): Call update_block for
30683 elided insns.
30684 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30685
30686 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30687
30688 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30689 two duplicate entries.
30690
30691 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30692
30693 Revert:
30694 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30695
30696 * config/mips/mips.c (mips_truncated_op_cost): New function.
30697 (mips_rtx_costs): Adjust test for BADDU.
30698 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30699
30700 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30701
30702 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30703 (*baddu_si): ...this new pattern.
30704
30705 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30706
30707 PR ipa/59722
30708 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30709
30710 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30711
30712 PR middle-end/57748
30713 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30714 inner_reference_p.
30715 (expand_expr, expand_normal): Adjust.
30716 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30717 inner_reference_p. Use inner_reference_p to expand inner references.
30718 (store_expr): Adjust.
30719 * cfgexpand.c (expand_call_stmt): Adjust.
30720
30721 2014-01-08 Rong Xu <xur@google.com>
30722
30723 * gcov-io.c (gcov_var): Move from gcov-io.h.
30724 (gcov_position): Ditto.
30725 (gcov_is_error): Ditto.
30726 (gcov_rewrite): Ditto.
30727 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30728 only part to libgcc/libgcov.h.
30729
30730 2014-01-08 Marek Polacek <polacek@redhat.com>
30731
30732 PR middle-end/59669
30733 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30734
30735 2014-01-08 Marek Polacek <polacek@redhat.com>
30736
30737 PR sanitizer/59667
30738 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30739
30740 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30741
30742 PR rtl-optimization/59649
30743 * stor-layout.c (get_mode_bounds): For BImode return
30744 0 and STORE_FLAG_VALUE.
30745
30746 2014-01-08 Richard Biener <rguenther@suse.de>
30747
30748 PR middle-end/59630
30749 * gimple.h (is_gimple_builtin_call): Remove.
30750 (gimple_builtin_call_types_compatible_p): New.
30751 (gimple_call_builtin_p): New overload.
30752 * gimple.c (is_gimple_builtin_call): Remove.
30753 (validate_call): Rename to ...
30754 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30755 check return types.
30756 (validate_type): New static function.
30757 (gimple_call_builtin_p): New overload and adjust.
30758 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30759 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30760 (gimple_fold_stmt_to_constant_1): Likewise.
30761 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30762
30763 2014-01-08 Richard Biener <rguenther@suse.de>
30764
30765 PR middle-end/59471
30766 * gimplify.c (gimplify_expr): Gimplify register-register type
30767 VIEW_CONVERT_EXPRs to separate stmts.
30768
30769 2014-01-07 Jeff Law <law@redhat.com>
30770
30771 PR middle-end/53623
30772 * ree.c (combine_set_extension): Handle case where source
30773 and destination registers in an extension insn are different.
30774 (combine_reaching_defs): Allow source and destination registers
30775 in extension to be different under limited circumstances.
30776 (add_removable_extension): Remove restriction that the
30777 source and destination registers in the extension are the same.
30778 (find_and_remove_re): Emit a copy from the extension's
30779 destination to its source after the defining insn if
30780 the source and destination registers are different.
30781
30782 PR middle-end/59285
30783 * ifcvt.c (merge_if_block): If we are merging a block with more than
30784 one successor with a block with no successors, remove any BARRIER
30785 after the second block.
30786
30787 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30788
30789 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30790
30791 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30792
30793 PR target/59652
30794 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30795 for 14-bit register offsets when INT14_OK_STRICT is false.
30796
30797 2014-01-07 Roland Stigge <stigge@antcom.de>
30798 Michael Meissner <meissner@linux.vnet.ibm.com>
30799
30800 PR 57386/target
30801 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30802 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30803
30804 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30805
30806 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30807 -mcpu.
30808
30809 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30810
30811 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30812 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30813 rtx is const0_rtx or not.
30814
30815 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30816
30817 PR target/58115
30818 * target-globals.c (save_target_globals): Remove this_fn_optab
30819 handling.
30820 * toplev.c: Include optabs.h.
30821 (target_reinit): Temporarily restore the global options if another
30822 set of options are in force.
30823
30824 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30825
30826 PR rtl-optimization/58668
30827 * cfgcleanup.c (flow_find_cross_jump): Don't count
30828 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30829 to determine what is counted.
30830 (flow_find_head_matching_sequence): Use active_insn_p to determine
30831 what is counted.
30832 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30833 counting change.
30834 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30835 determine what is counted.
30836
30837 PR tree-optimization/59643
30838 * tree-predcom.c (split_data_refs_to_components): If one dr is
30839 read and one write, determine_offset fails and the write isn't
30840 in the bad component, just put the read into the bad component.
30841
30842 2014-01-07 Mike Stump <mikestump@comcast.net>
30843 Jakub Jelinek <jakub@redhat.com>
30844
30845 PR pch/59436
30846 * tree-core.h (struct tree_optimization_option): Change optabs
30847 type from unsigned char * to void *.
30848 * optabs.c (init_tree_optimization_optabs): Adjust
30849 TREE_OPTIMIZATION_OPTABS initialization.
30850
30851 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30852
30853 PR target/59644
30854 * config/i386/i386.h (struct machine_function): Add
30855 no_drap_save_restore field.
30856 * config/i386/i386.c (ix86_save_reg): Use
30857 !cfun->machine->no_drap_save_restore instead of
30858 crtl->stack_realign_needed.
30859 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30860 this function clears frame_pointer_needed. Set
30861 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30862 and DRAP reg is needed.
30863
30864 2014-01-06 Marek Polacek <polacek@redhat.com>
30865
30866 PR c/57773
30867 * doc/implement-c.texi: Mention that other integer types are
30868 permitted as bit-field types in strictly conforming mode.
30869
30870 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30871
30872 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30873 is newly allocated.
30874
30875 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30876
30877 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30878
30879 2014-01-06 Martin Jambor <mjambor@suse.cz>
30880
30881 PR ipa/59008
30882 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30883 to int.
30884 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30885
30886 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30887
30888 PR debug/59350
30889 PR debug/59510
30890 * var-tracking.c (add_stores): Preserve the value of the source even if
30891 we don't record the store.
30892
30893 2014-01-06 Terry Guo <terry.guo@arm.com>
30894
30895 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30896
30897 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30898
30899 PR bootstrap/59541
30900 * config/darwin.c (darwin_function_section): Adjust return values to
30901 correspond to optimisation changes made in r206070.
30902
30903 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30904
30905 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30906 from prefetch_block tune setting.
30907 (nocona_cost): Correct size of prefetch block to 64.
30908
30909 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30910
30911 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30912 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30913 used to save the static chain register in the computation of the offset
30914 from which the FP registers need to be restored.
30915
30916 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30917
30918 PR tree-optimization/59519
30919 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30920 ICE if get_current_def (current_new_name) is already non-NULL, as long
30921 as it is a phi result of some other phi in *new_exit_bb that has
30922 the same argument.
30923
30924 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30925 or vmovdqu* for misaligned_operand.
30926 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30927 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30928 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30929 aligned_mem for AVX512F masked aligned load and store builtins and for
30930 non-temporal moves.
30931
30932 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30933
30934 PR tree-optimization/59651
30935 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30936 Address range for negative step should be added by TYPE_SIZE_UNIT.
30937
30938 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30939
30940 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30941 overlapping registers also for registers other than the stack pointer.
30942
30943 2014-01-03 Marek Polacek <polacek@redhat.com>
30944
30945 PR other/59661
30946 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30947 __builtin_FILE.
30948
30949 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30950
30951 PR target/59625
30952 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30953 asm goto as jump.
30954
30955 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30956 (push splitter): Use <P:MODE_SIZE> instead of
30957 GET_MODE_SIZE (<P:MODE>mode).
30958 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30959 (mov -1, reg peephole2): Likewise.
30960 * config/i386/sse.md (*mov<mode>_internal,
30961 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30962 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30963 *<code><mode>3, *andnot<mode>3<mask_name>,
30964 <mask_codefor><code><mode>3<mask_name>): Likewise.
30965 * config/i386/subst.md (mask_mode512bit_condition,
30966 sd_mask_mode512bit_condition): Likewise.
30967
30968 2014-01-02 Xinliang David Li <davidxl@google.com>
30969
30970 PR tree-optimization/59303
30971 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30972 (dump_predicates): Better output format.
30973 (pred_equal_p): New function.
30974 (is_neq_relop_p): Ditto.
30975 (is_neq_zero_form_p): Ditto.
30976 (pred_expr_equal_p): Ditto.
30977 (pred_neg_p): Ditto.
30978 (simplify_pred): Ditto.
30979 (simplify_preds_2): Ditto.
30980 (simplify_preds_3): Ditto.
30981 (simplify_preds_4): Ditto.
30982 (simplify_preds): Ditto.
30983 (push_pred): Ditto.
30984 (push_to_worklist): Ditto.
30985 (get_pred_info_from_cmp): Ditto.
30986 (is_degenerated_phi): Ditto.
30987 (normalize_one_pred_1): Ditto.
30988 (normalize_one_pred): Ditto.
30989 (normalize_one_pred_chain): Ditto.
30990 (normalize_preds): Ditto.
30991 (normalize_cond_1): Remove function.
30992 (normalize_cond): Ditto.
30993 (is_gcond_subset_of): Ditto.
30994 (is_subset_of_any): Ditto.
30995 (is_or_set_subset_of): Ditto.
30996 (is_and_set_subset_of): Ditto.
30997 (is_norm_cond_subset_of): Ditto.
30998 (pred_chain_length_cmp): Ditto.
30999 (convert_control_dep_chain_into_preds): Type change.
31000 (find_predicates): Ditto.
31001 (find_def_preds): Ditto.
31002 (destroy_predicates_vecs): Ditto.
31003 (find_matching_predicates_in_rest_chains): Ditto.
31004 (use_pred_not_overlap_with_undef_path_pred): Ditto.
31005 (is_pred_expr_subset): Ditto.
31006 (is_pred_chain_subset_of): Ditto.
31007 (is_included_in): Ditto.
31008 (is_superset_of): Ditto.
31009
31010 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31011
31012 Update copyright years.
31013
31014 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31015
31016 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31017 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31018 config/arc/arc.md, config/arc/arc.opt,
31019 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31020 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31021 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31022 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31023 config/linux-protos.h, config/linux.c, config/winnt-c.c,
31024 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31025 vtable-verify.c, vtable-verify.h: Use the standard form for the
31026 copyright notice.
31027
31028 2014-01-02 Tobias Burnus <burnus@net-b.de>
31029
31030 * gcc.c (process_command): Update copyright notice dates.
31031 * gcov-dump.c: Ditto.
31032 * gcov.c: Ditto.
31033 * doc/cpp.texi: Bump @copying's copyright year.
31034 * doc/cppinternals.texi: Ditto.
31035 * doc/gcc.texi: Ditto.
31036 * doc/gccint.texi: Ditto.
31037 * doc/gcov.texi: Ditto.
31038 * doc/install.texi: Ditto.
31039 * doc/invoke.texi: Ditto.
31040
31041 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31042
31043 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31044
31045 2014-01-01 Jakub Jelinek <jakub@redhat.com>
31046
31047 * config/i386/sse.md (*mov<mode>_internal): Guard
31048 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31049
31050 PR rtl-optimization/59647
31051 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31052 new_rtx into UNSIGNED_FLOAT rtxes.
31053 \f
31054 Copyright (C) 2014 Free Software Foundation, Inc.
31055
31056 Copying and distribution of this file, with or without modification,
31057 are permitted in any medium without royalty provided the copyright
31058 notice and this notice are preserved.