The TARGET_CAN_FOLLOW_JUMP hook takes insns
[gcc.git] / gcc / ChangeLog
1 2014-09-15 David Malcolm <dmalcolm@redhat.com>
2
3 * config/arc/arc.c (arc_can_follow_jump): Strengthen both params
4 from const_rtx to const rtx_insn *. Update union members from rtx
5 to rtx_insn *.
6 * doc/tm.texi (TARGET_CAN_FOLLOW_JUMP): Autogenerated change.
7 * hooks.c (hook_bool_const_rtx_const_rtx_true): Rename to...
8 (hook_bool_const_rtx_insn_const_rtx_insn_true): ...this, and
9 strengthen both params from const_rtx to const rtx_insn *.
10 * hooks.h (hook_bool_const_rtx_const_rtx_true): Likewise.
11 (hook_bool_const_rtx_insn_const_rtx_insn_true): Likewise.
12 * reorg.c (follow_jumps): Strengthen param "jump" from rtx to
13 rtx_insn *.
14 * target.def (can_follow_jump): Strengthen both params from
15 const_rtx to const rtx_insn *, and update default implementation
16 from hook_bool_const_rtx_const_rtx_true to
17 hook_bool_const_rtx_insn_const_rtx_insn_true.
18
19 2014-09-15 David Malcolm <dmalcolm@redhat.com>
20
21 * sched-deps.c (deps_start_bb): Strengthen param "head" and local
22 "insn" from rtx to rtx_insn *.
23 * sched-int.h (deps_start_bb): Likewise for 2nd param.
24
25 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
26 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
27 Anna Tikhonova <anna.tikhonova@intel.com>
28 Ilya Tocar <ilya.tocar@intel.com>
29 Andrey Turetskiy <andrey.turetskiy@intel.com>
30 Ilya Verbin <ilya.verbin@intel.com>
31 Kirill Yukhin <kirill.yukhin@intel.com>
32 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
33
34 * config/i386/sse.md
35 (define_insn "vcvtph2ps<mask_name>"): Add masking.
36 (define_insn "*vcvtph2ps_load<mask_name>"): Ditto.
37 (define_insn "vcvtph2ps256<mask_name>"): Ditto.
38 (define_expand "vcvtps2ph_mask"): New.
39 (define_insn "*vcvtps2ph<mask_name>"): Add masking.
40 (define_insn "*vcvtps2ph_store<mask_name>"): Ditto.
41 (define_insn "vcvtps2ph256<mask_name>"): Ditto.
42
43 2014-09-15 Alexander Ivchenko <alexander.ivchenko@intel.com>
44 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
45 Anna Tikhonova <anna.tikhonova@intel.com>
46 Ilya Tocar <ilya.tocar@intel.com>
47 Andrey Turetskiy <andrey.turetskiy@intel.com>
48 Ilya Verbin <ilya.verbin@intel.com>
49 Kirill Yukhin <kirill.yukhin@intel.com>
50 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
51
52 * config/i386/sse.md (define_mode_iterator VI248_AVX512BW_AVX512VL):
53 New.
54 (define_mode_iterator VI24_AVX512BW_1): Ditto.
55 (define_insn "<mask_codefor>ashr<mode>3<mask_name>"): Ditto.
56 (define_insn "<mask_codefor>ashrv2di3<mask_name>"): Ditto.
57 (define_insn "ashr<VI248_AVX512BW_AVX512VL:mode>3<mask_name>"): Enable
58 also for TARGET_AVX512VL.
59 (define_expand "ashrv2di3"): Update to enable TARGET_AVX512VL.
60
61 2014-09-15 Markus Trippelsdorf <markus@trippelsdorf.de>
62
63 * doc/install.texi (Options specification): add
64 --disable-libsanitizer item.
65
66 2014-09-14 James Clarke <jrtc27@jrtc27.com>
67 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
68
69 PR target/61407
70 * config/darwin-c.c (version_as_macro): Added extra 0 for OS X 10.10
71 and above.
72 * config/darwin-driver.c (darwin_find_version_from_kernel): Removed
73 kernel version check to avoid incrementing it after every major OS X
74 release.
75 (darwin_default_min_version): Avoid static memory buffer.
76
77 2014-09-13 Jan Hubicka <hubicka@ucw.cz>
78
79 * tree.c (need_assembler_name_p): Store C++ type mangling only
80 for aggregates.
81
82 2014-09-13 Marek Polacek <polacek@redhat.com>
83
84 * tree.c (protected_set_expr_location): Don't check whether T is
85 non-null here.
86
87 2014-09-12 DJ Delorie <dj@redhat.com>
88
89 * config/msp430/msp430.md (extendhipsi2): Use 20-bit form of RLAM/RRAM.
90 (extend_and_shift1_hipsi2): Likewise.
91 (extend_and_shift2_hipsi2): Likewise.
92
93 2014-09-12 David Malcolm <dmalcolm@redhat.com>
94
95 * config/alpha/alpha.c (alpha_ra_ever_killed): Replace NULL_RTX
96 with NULL when dealing with an insn.
97 * config/sh/sh.c (sh_reorg): Strengthen local "last_float_move"
98 from rtx to rtx_insn *.
99 * rtl.h (reg_set_between_p): Strengthen params 2 and 3 from
100 const_rtx to const rtx_insn *.
101 * rtlanal.c (reg_set_between_p): Likewise, removing a checked cast.
102
103 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
104
105 * hash-table.h (gt_pch_nx): Don't call gt_pch_note_object within an
106 assert.
107
108 2014-09-12 Joseph Myers <joseph@codesourcery.com>
109
110 * target.def (libgcc_floating_mode_supported_p): New hook.
111 * targhooks.c (default_libgcc_floating_mode_supported_p): New
112 function.
113 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
114 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
115 (LIBGCC2_HAS_TF_MODE): Remove.
116 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
117 * doc/tm.texi: Regenerate.
118 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
119 machine mode.
120 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
121 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
122 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
123 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
124 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
125 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
126 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
127 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
128 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
129 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
130 function.
131 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
132 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
133 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
134 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
135 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
136 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
137 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
138 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
139 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
140 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
141 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
142 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
143 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
144 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
145 Remove.
146 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
147 New macro.
148 (ia64_libgcc_floating_mode_supported_p): New function.
149 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
150 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
151 (IA64_NO_LIBGCC_TFMODE): Define.
152 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
153 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
154 macro.
155 (pdp11_scalar_mode_supported_p): New function.
156 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
157 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
158
159 2014-09-12 Richard Biener <rguenther@suse.de>
160
161 PR middle-end/63237
162 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
163
164 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
165
166 * tree.c (integer_each_onep): New function.
167 * tree.h (integer_each_onep): Declare it.
168 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
169 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
170 (X & 1) == 0 for vector and complex.
171
172 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
173
174 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
175 for A57.
176 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
177 cost to spilling from integer to FP registers.
178
179 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
180
181 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
182 move handling.
183 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
184 are now handled correctly.
185
186 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
187
188 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
189 handling of CALLER_SAVE_REGS and POINTER_REGS.
190
191 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
192
193 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
194 the number of hard registers.
195
196 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
197 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
198 Anna Tikhonova <anna.tikhonova@intel.com>
199 Ilya Tocar <ilya.tocar@intel.com>
200 Andrey Turetskiy <andrey.turetskiy@intel.com>
201 Ilya Verbin <ilya.verbin@intel.com>
202 Kirill Yukhin <kirill.yukhin@intel.com>
203 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
204
205 * config/i386/sse.md
206 (define_mode_iterator VI48_AVX512VL): New.
207 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
208 "avx512f_vternlog<mode>_maskz" and update mode iterator.
209 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
210 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
211 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
212 "avx512f_vternlog<mode>_mask" and update mode iterator.
213 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
214 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
215 iterator.
216 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
217 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
218 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
219 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
220 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
221 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
222
223 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
224 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
225 Anna Tikhonova <anna.tikhonova@intel.com>
226 Ilya Tocar <ilya.tocar@intel.com>
227 Andrey Turetskiy <andrey.turetskiy@intel.com>
228 Ilya Verbin <ilya.verbin@intel.com>
229 Kirill Yukhin <kirill.yukhin@intel.com>
230 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
231
232 * config/i386/sse.md (VI128_256): Delete.
233 (define_mode_iterator VI124_256): New.
234 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
235 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
236 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
237 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
238 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
239 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
240 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
241 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
242 iterator.
243 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
244 in presence of AVX-512.
245
246 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
247 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
248 Anna Tikhonova <anna.tikhonova@intel.com>
249 Ilya Tocar <ilya.tocar@intel.com>
250 Andrey Turetskiy <andrey.turetskiy@intel.com>
251 Ilya Verbin <ilya.verbin@intel.com>
252 Kirill Yukhin <kirill.yukhin@intel.com>
253 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
254
255 * config/i386/sse.md
256 (define_expand "<avx512>_gathersi<mode>"): Rename from
257 "avx512f_gathersi<mode>".
258 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
259 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
260 (define_expand "<avx512>_gatherdi<mode>"): Rename from
261 "avx512f_gatherdi<mode>".
262 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
263 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
264 wide versions.
265 (define_expand "<avx512>_scattersi<mode>"): Rename from
266 "avx512f_scattersi<mode>".
267 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
268 (define_expand "<avx512>_scatterdi<mode>"): Rename from
269 "avx512f_scatterdi<mode>".
270 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
271
272 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
273
274 * ira.h (ira_finish_once): Delete.
275 * ira-int.h (target_ira_int::~target_ira_int): Declare.
276 (target_ira_int::free_ira_costs): Likewise.
277 (target_ira_int::free_register_move_costs): Likewise.
278 (ira_finish_costs_once): Delete.
279 * ira.c (free_register_move_costs): Replace with...
280 (target_ira_int::free_register_move_costs): ...this new function.
281 (target_ira_int::~target_ira_int): Define.
282 (ira_init): Call free_register_move_costs as a member function rather
283 than a global function.
284 (ira_finish_once): Delete.
285 * ira-costs.c (free_ira_costs): Replace with...
286 (target_ira_int::free_ira_costs): ...this new function.
287 (ira_init_costs): Call free_ira_costs as a member function rather
288 than a global function.
289 (ira_finish_costs_once): Delete.
290 * target-globals.c (target_globals::~target_globals): Call the
291 target_ira_int destructor.
292 * toplev.c: Include lra.h.
293 (finalize): Call lra_finish_once rather than ira_finish_once.
294
295 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
296
297 * common.opt (flto-odr-type-merging): New flag.
298 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
299 (types_same_for_odr): Likewise.
300 (odr_subtypes_equivalent_p): Likewise.
301 (add_type_duplicate): Do not walk type variants.
302 (register_odr_type): New function.
303 * ipa-utils.h (register_odr_type): Declare.
304 (odr_type_p): New function.
305 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
306 TYPE_DECLs
307 * doc/invoke.texi (-flto-odr-type-merging): Document.
308 * tree.c (need_assembler_name_p): Compute ODR names when asked
309 for it.
310 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
311
312 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
313
314 PR target/63228
315 * config/i386/i386.c (ix86_option_override_internal): Also turn
316 off OPTION_MASK_ABI_X32 for -m16.
317
318 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
319
320 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
321 GPR instead of P.
322
323 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
324
325 PR target/58757
326 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
327 Directly forward to __*_DENORM_MIN__.
328
329 2014-09-11 David Malcolm <dmalcolm@redhat.com>
330
331 * rtl.h (LABEL_REF_LABEL): New macro.
332
333 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
334 of XEXP (, 0), where we know that we have a LABEL_REF.
335 * cfgbuild.c (make_edges): Likewise.
336 (purge_dead_tablejump_edges): Likewise.
337 * cfgexpand.c (convert_debug_memory_address): Likewise.
338 * cfgrtl.c (patch_jump_insn): Likewise.
339 * combine.c (distribute_notes): Likewise.
340 * cse.c (hash_rtx_cb): Likewise.
341 (exp_equiv_p): Likewise.
342 (fold_rtx): Likewise.
343 (check_for_label_ref): Likewise.
344 * cselib.c (rtx_equal_for_cselib_1): Likewise.
345 (cselib_hash_rtx): Likewise.
346 * emit-rtl.c (mark_label_nuses): Likewise.
347 * explow.c (convert_memory_address_addr_space): Likewise.
348 * final.c (output_asm_label): Likewise.
349 (output_addr_const): Likewise.
350 * gcse.c (add_label_notes): Likewise.
351 * genconfig.c (walk_insn_part): Likewise.
352 * genrecog.c (validate_pattern): Likewise.
353 * ifcvt.c (cond_exec_get_condition): Likewise.
354 (noce_emit_store_flag): Likewise.
355 (noce_get_alt_condition): Likewise.
356 (noce_get_condition): Likewise.
357 * jump.c (maybe_propagate_label_ref): Likewise.
358 (mark_jump_label_1): Likewise.
359 (redirect_exp_1): Likewise.
360 (rtx_renumbered_equal_p): Likewise.
361 * lra-constraints.c (operands_match_p): Likewise.
362 * reload.c (operands_match_p): Likewise.
363 (find_reloads): Likewise.
364 * reload1.c (set_label_offsets): Likewise.
365 * reorg.c (get_branch_condition): Likewise.
366 * rtl.c (rtx_equal_p_cb): Likewise.
367 (rtx_equal_p): Likewise.
368 * rtlanal.c (reg_mentioned_p): Likewise.
369 (rtx_referenced_p): Likewise.
370 (get_condition): Likewise.
371 * sched-vis.c (print_value): Likewise.
372 * varasm.c (const_hash_1): Likewise.
373 (compare_constant): Likewise.
374 (const_rtx_hash_1): Likewise.
375 (output_constant_pool_1): Likewise.
376
377 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
378
379 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
380 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
381 instead of minus.
382 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
383 cr6_test_for_lt_reverse): Ditto.
384
385 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
386
387 PR c++/61489
388 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
389
390 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
391
392 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
393 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
394 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
395 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
396 Delete.
397
398 (aarch64_fold_builtin): Remove all reinterpret cases.
399
400 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
401
402 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
403
404 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
405 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
406 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
407 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
408 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
409 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
410 aarch64_reinterpretv2df<mode>): Delete.
411
412 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
413
414 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
415 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
416 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
417 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
418 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
419 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
420 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
421 vreinterpret_u32_f64): Use cast.
422
423 * config/aarch64/iterators.md (VD_RE): Delete.
424
425 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
426
427 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
428 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
429 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
430 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
431 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
432 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
433 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
434 Replace inline assembler with __aarch64_vset_lane_any.
435
436 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
437
438 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
439 types.
440 (vmull_high_lane_s32): Likewise.
441 (vmull_high_lane_u16): Likewise.
442 (vmull_high_lane_u32): Likewise.
443
444 2014-09-11 Jason Merrill <jason@redhat.com>
445
446 PR c++/58678
447 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
448
449 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
450
451 PR target/63223
452 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
453 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
454 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
455
456 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
457 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
458 Anna Tikhonova <anna.tikhonova@intel.com>
459 Ilya Tocar <ilya.tocar@intel.com>
460 Andrey Turetskiy <andrey.turetskiy@intel.com>
461 Ilya Verbin <ilya.verbin@intel.com>
462 Kirill Yukhin <kirill.yukhin@intel.com>
463 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
464
465 * config/i386/sse.md
466 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
467 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
468 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
469 New.
470 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
471 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
472 iterator.
473 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
474 New.
475 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
476 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
477 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
478 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
479 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
480 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
481 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
482 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
483 iterator.
484 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
485 New.
486 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
487 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
488 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
489
490 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
491
492 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
493 to access removed nodes.
494
495 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
496
497 PR tree-optimization/63186
498 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
499 (mark_nonssa_use): Likewise.
500 (verify_non_ssa_vars): Verify all header blocks for label
501 definitions.
502
503 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
504 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
505 Anna Tikhonova <anna.tikhonova@intel.com>
506 Ilya Tocar <ilya.tocar@intel.com>
507 Andrey Turetskiy <andrey.turetskiy@intel.com>
508 Ilya Verbin <ilya.verbin@intel.com>
509 Kirill Yukhin <kirill.yukhin@intel.com>
510 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
511
512 * config/i386/sse.md
513 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
514 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
515 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
516 "<avx2_avx512f>_permvar<mode><mask_name>".
517 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
518 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
519 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
520 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
521 Ditto.
522 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
523 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
524 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
525 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
526
527 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
528
529 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
530 V2DF, V4SF, DF, and DI modes.
531 (vsx_fmav2df2): Likewise.
532 (vsx_float_fix_<mode>2): Likewise.
533 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
534
535 2014-09-10 Xinliang David Li <davidxl@google.com>
536
537 PR target/63209
538 * config/arm/arm.md (movcond_addsi): Handle case where source
539 and target operands are the same.
540
541 2014-09-10 David Malcolm <dmalcolm@redhat.com>
542
543 * final.c (this_is_asm_operands): Strengthen this variable from
544 rtx to const rtx_insn *.
545 * output.h (this_is_asm_operands): Likewise.
546 * rtl-error.c (location_for_asm): Strengthen param "insn" from
547 const_rtx to const rtx_insn *.
548 (diagnostic_for_asm): Likewise.
549 * rtl-error.h (error_for_asm): Likewise.
550 (warning_for_asm): Likewise.
551
552 2014-09-10 David Malcolm <dmalcolm@redhat.com>
553
554 * genextract.c (print_header): When writing out insn_extract to
555 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
556 * recog.h (insn_extract): Strengthen the param from rtx to
557 rtx_insn *.
558
559 2014-09-10 Mike Stump <mikestump@comcast.net>
560
561 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
562 8.6.1.
563
564 2014-09-10 Martin Jambor <mjambor@suse.cz>
565
566 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
567 (analyze): Do not set analyze flag if expand_thunk returns false;.
568 (create_wrapper): Likewise.
569 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
570
571 2014-09-10 Martin Jambor <mjambor@suse.cz>
572
573 PR ipa/61654
574 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
575 new decl properly. Analyze the new thunk if it is expanded.
576
577 2014-09-10 Andreas Schwab <schwab@suse.de>
578
579 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
580 [USED_FOR_TARGET]: Define.
581
582 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
583
584 * config/mips/mips.c (mips_secondary_reload_class): Handle
585 regno < 0 case.
586
587 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
588
589 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
590 assignment.
591
592 2014-09-10 Jakub Jelinek <jakub@redhat.com>
593
594 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
595 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
596 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
597 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
598 flag_delete_null_pointer_checks for them.
599 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
600 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
601 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
602 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
603 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
604 stmt's iterator.
605 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
606 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
607 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
608 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
609 * doc/invoke.texi (-fsanitize=nonnull-attribute,
610 -fsanitize=returns-nonnull-attribute): Document.
611
612 * ubsan.h (struct ubsan_mismatch_data): Removed.
613 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
614 * ubsan.c (ubsan_source_location): For unknown locations,
615 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
616 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
617 Allow more than one location and arbitrary extra arguments passed
618 in ... instead of through MISMATCH pointer.
619 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
620 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
621 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
622 callers.
623
624 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
625 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
626 Anna Tikhonova <anna.tikhonova@intel.com>
627 Ilya Tocar <ilya.tocar@intel.com>
628 Andrey Turetskiy <andrey.turetskiy@intel.com>
629 Ilya Verbin <ilya.verbin@intel.com>
630 Kirill Yukhin <kirill.yukhin@intel.com>
631 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
632
633 * config/i386/sse.md
634 (define_mode_iterator VI48F): New.
635 (define_insn "<avx512>_compress<mode>_mask"): Rename from
636 "avx512f_compress<mode>_mask" and update mode iterator.
637 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
638 "avx512f_compressstore<mode>_mask" and update mode iterator.
639 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
640 "avx512f_expand<mode>_maskz" and update mode iterator.
641 (define_insn "<avx512>_expand<mode>_mask"): Rename from
642 "avx512f_expand<mode>_mask" and update mode iterator.
643
644 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
645 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
646 Anna Tikhonova <anna.tikhonova@intel.com>
647 Ilya Tocar <ilya.tocar@intel.com>
648 Andrey Turetskiy <andrey.turetskiy@intel.com>
649 Ilya Verbin <ilya.verbin@intel.com>
650 Kirill Yukhin <kirill.yukhin@intel.com>
651 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
652
653 * config/i386/i386.c
654 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
655 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
656 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
657 avx512dq_rangepv4sf_mask.
658 * config/i386/sse.md
659 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
660 UNSPEC_RANGE.
661 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
662 (define_insn "reduces<mode>"): Ditto.
663 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
664 Ditto.
665 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
666 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
667 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
668
669 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
670 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
671 Anna Tikhonova <anna.tikhonova@intel.com>
672 Ilya Tocar <ilya.tocar@intel.com>
673 Andrey Turetskiy <andrey.turetskiy@intel.com>
674 Ilya Verbin <ilya.verbin@intel.com>
675 Kirill Yukhin <kirill.yukhin@intel.com>
676 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
677
678 * config/i386/i386.c
679 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
680 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
681 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
682 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
683 avx512vl_getmantv2df_mask.
684 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
685 avx512f_vgetmantv4sf_round.
686 * config/i386/sse.md
687 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
688 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
689 mode iterator.
690 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
691 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
692 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
693 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
694 iterator..
695 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
696 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
697 update mode iterator.
698 (define_expand
699 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
700 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
701 mode iterator.
702 (define_insn
703 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
704 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
705 update mode iterator.
706 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
707 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
708 iterator..
709 (define_insn
710 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
711 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
712 mode iterator..
713 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
714 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
715 update mode iterator.
716 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
717 "avx512f_getmant<mode><round_saeonly_name>".
718
719 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
720
721 PR ipa/63166
722 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
723
724 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
725 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
726 Anna Tikhonova <anna.tikhonova@intel.com>
727 Ilya Tocar <ilya.tocar@intel.com>
728 Andrey Turetskiy <andrey.turetskiy@intel.com>
729 Ilya Verbin <ilya.verbin@intel.com>
730 Kirill Yukhin <kirill.yukhin@intel.com>
731 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
732
733 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
734 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
735 (define_mode_iterator FMAMODE_AVX512): New.
736 (define_mode_iterator FMAMODE): Remove conditions.
737 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
738 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
739 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
740 mode iterator.
741 (define_mode_iterator FMAMODE_NOVF512): Remove.
742 (define_insn "*fma_fmadd_<mode>"): Rename from
743 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
744 FMAMODE mode iterator.
745 (define_mode_iterator VF_SF_AVX512VL): New.
746 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
747 Use VF_SF_AVX512VL mode iterator.
748 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
749 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
750 iterator.
751 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
752 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
753 iterator.
754 (define_insn "*fma_fmsub_<mode>"): Rename from
755 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
756 FMAMODE mode iterator.
757 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
758 Use VF_SF_AVX512VL mode iterator.
759 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
760 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
761 iterator.
762 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
763 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
764 iterator.
765 (define_insn "*fma_fnmadd_<mode>"): Rename from
766 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
767 use FMAMODE mode iterator.
768 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
769 Use VF_SF_AVX512VL mode iterator.
770 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
771 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
772 iterator.
773 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
774 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
775 iterator.
776 (define_insn "*fma_fnmsub_<mode>"): Rename from
777 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
778 FMAMODE mode iterator.
779 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
780 Use VF_SF_AVX512VL mode iterator.
781 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
782 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
783 iterator.
784 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
785 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
786 iterator.
787 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
788 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
789 use VF_AVX512VL mode iterator.
790 (define_insn "*fma_fmaddsub_<mode>"): Rename from
791 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
792 remove subst usage.
793 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
794 Use VF_SF_AVX512VL mode iterator.
795 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
796 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
797 iterator.
798 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
799 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
800 iterator.
801 (define_insn "*fma_fmsubadd_<mode>"): Rename from
802 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
803 remove usage of subst.
804 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
805 Use VF_SF_AVX512VL mode iterator.
806 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
807 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
808 iterator.
809 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
810 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
811 iterator.
812
813 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
814
815 Revert r213751:
816 * calls.c (precompute_arguments): Check
817 promoted_for_signed_and_unsigned_p and set the promoted mode.
818 (promoted_for_signed_and_unsigned_p): New function.
819 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
820 and set the promoted mode.
821 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
822 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
823 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
824
825 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
826
827 * opth-gen.awk: Generate mapping from cpp message reasons to the
828 options that enable them.
829 * doc/options.texi (CppReason): Document.
830
831 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
832
833 * doc/invoke.texi (Wnormalized=): Update.
834
835 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
836
837 PR target/63195
838 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
839 operands. Split off the constant operand alternative to ...
840 (*bool<mode>3_imm): New.
841
842 2014-09-09 David Malcolm <dmalcolm@redhat.com>
843
844 * rtl.h (single_set_2): Strengthen first param from const_rtx to
845 const rtx_insn *, and move prototype to above...
846 (single_set): ...this. Convert this from a macro to an inline
847 function, enforcing the requirement that the param is a const
848 rtx_insn *.
849 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
850
851 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
852 Strengthen both params from rtx to rtx_insn *.
853 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
854 Likewise; introduce locals "producer_set", "consumer_set", using
855 them in place of "producer" and "consumer" when dealing with SET
856 rather than insn.
857 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
858 when invoking single_set in region guarded by INSN_P.
859 (avr_out_bitop): Likewise.
860 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
861 region guarded by GET_CODE check, using methods to strengthen
862 local "this_insn" from rtx to rtx_insn *, and for clarity.
863 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
864 Strengthen local "insn" from rtx to rtx_insn *.
865 (define_insn_and_split "xload<mode>_A"): Likewise.
866 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
867 "insn".
868 (find_load): Likewise for return type.
869 (workaround_speculation): Likewise for both locals named
870 "load_insn".
871 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
872 local "cc0_user".
873 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
874 for local "prev".
875 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
876 param 2.
877 * config/h8300/h8300.c (notice_update_cc): Likewise.
878 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
879 "insn" and "dep_insn".
880 (exact_store_load_dependency): Likewise for both params.
881 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
882 since this now clashes with inline function. Instead, delay
883 calling single_set until the point where its needed, and then
884 assign the result to "compare_set" and rework the conditional that
885 follows.
886 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
887 local "last" from rtx to rtx_insn *.
888 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
889 second param.
890 (mips_store_data_bypass_p): Likewise for both params.
891 * config/mips/mips.c (mips_load_store_insns): Likewise for second
892 param.
893 (mips_store_data_bypass_p): Likewise for both params.
894 (mips_orphaned_high_part_p): Likewise for param "insn".
895 * config/mn10300/mn10300.c (extract_bundle): Likewise.
896 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
897 Introduce local rtx "insn2_pat".
898 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
899 "ninsn".
900 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
901 Introduce local rtx "set", using it in place of "insn" for the
902 result of single_set. This appears to fix a bug, since the call
903 to find_regno_note on a SET does nothing.
904 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
905 params from rtx to rtx_insn *.
906 (set_to_load_agen): Likewise.
907 * config/s390/s390.c (s390_label_align): Likewise for local
908 "prev_insn". Introduce new rtx locals "set" and "src", using
909 them in place of "prev_insn" for the results of single_set
910 and SET_SRC respectively.
911 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
912 Introduce new rtx local "set" using in place of "jump" for the
913 result of single_set. Use SET_SRC (set) rather than plain
914 XEXP (set, 1).
915 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
916 rtx to rtx_insn *.
917 (noncall_uses_reg): Likewise.
918 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
919 guarded by GET_CODE check, using its methods for clarity, and to
920 enable strengthening local "this_insn" from rtx to rtx_insn *.
921 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
922 "insn" from rtx to rtx_insn *.
923 (define_expand "umulhisi3"): Likewise.
924 (define_expand "smulsi3_highpart"): Likewise.
925 (define_expand "umulsi3_highpart"): Likewise.
926 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
927 local "after". Replace GET_CODE check with a dyn_cast,
928 introducing new local rtx_sequence * "seq", using insn method for
929 typesafety.
930
931 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
932 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
933 place of "insn" once we're dealing with patterns rather than the
934 input insn.
935 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
936 (scan_trace): Likewise for local "elt", updating lookups within
937 sequence to use insn method rather than element method.
938 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
939 to rtx_insn *.
940 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
941 * ifcvt.c (noce_try_abs): Likewise for local "insn".
942 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
943 invoking single_set.
944 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
945 "insn" from rtx to rtx_insn *.
946 (skip_usage_debug_insns): Likewise for return type, adding a
947 checked cast.
948 (check_secondary_memory_needed_p): Likewise for local "insn".
949 (inherit_reload_reg): Likewise.
950 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
951 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
952 checked casts.
953 (store_data_bypass_p): Likewise for both params.
954 (if_test_bypass_p): Likewise.
955 * recog.h (store_data_bypass_p): Likewise for both params.
956 (if_test_bypass_p): Likewise.
957 * reload.c (find_equiv_reg): Likewise for local "where".
958 * reorg.c (delete_jump): Likewise for param "insn".
959 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
960 to const rtx_insn *.
961 * store-motion.c (replace_store_insn): Likewise for param "del".
962 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
963 and use its methods for clarity, and to strengthen local "del"
964 from rtx to rtx_insn *.
965 (build_store_vectors): Use insn method of "st" when calling
966 replace_store_insn for typesafety and clarity.
967
968 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
969
970 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
971 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
972 on how to make it legal in future.
973
974 2014-09-09 David Malcolm <dmalcolm@redhat.com>
975
976 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
977 to rtx_insn *.
978 (restinsn): Likewise.
979 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
980 Likewise for param.
981 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
982 Likewise.
983 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
984 first param.
985 (arc_hazard): Likewise for both params.
986 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
987 checked casts to rtx_sequence * and uses of the insn method for
988 type-safety.
989 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
990 (arc_adjust_insn_length): Likewise for param "insn".
991 (struct insn_length_parameters_s): Likewise for first param of
992 "get_variants" callback field.
993 (arc_get_insn_variants): Likewise for first param and local
994 "inner". Replace a check of GET_CODE with a dyn_cast to
995 rtx_sequence *, using methods for type-safety and clarity.
996 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
997 rtx_sequence * and uses of the insn method for type-safety when
998 invoking arc_adjust_insn_length.
999 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
1000 for param.
1001 (arm_address_offset_is_imm): Likewise.
1002 (struct tune_params): Likewise for params 1 and 3 of the
1003 "sched_adjust_cost" callback field.
1004 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
1005 params 1 and 3 ("insn" and "dep").
1006 (xscale_sched_adjust_cost): Likewise.
1007 (fa726te_sched_adjust_cost): Likewise.
1008 (cortexa7_older_only): Likewise for param "insn".
1009 (cortexa7_younger): Likewise.
1010 (arm_attr_length_move_neon): Likewise.
1011 (arm_address_offset_is_imm): Likewise.
1012 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
1013 * config/avr/avr.c (avr_notice_update_cc): Likewise.
1014 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
1015 (workaround_speculation): Likewise for local "last_condjump".
1016 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
1017 (shadow_or_blockage_p): Likewise.
1018 (get_unit_reqs): Likewise.
1019 (get_unit_operand_masks): Likewise.
1020 (c6x_registers_update): Likewise.
1021 (returning_call_p): Likewise.
1022 (can_use_callp): Likewise.
1023 (convert_to_callp): Likewise.
1024 (find_last_same_clock): Likwise for local "t".
1025 (reorg_split_calls): Likewise for local "shadow".
1026 (hwloop_pattern_reg): Likewise for param "insn".
1027 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
1028 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
1029 (frv_extract_membar): Likewise.
1030 (frv_optimize_membar_local): Strengthen param "last_membar" from
1031 rtx * to rtx_insn **.
1032 (frv_optimize_membar_global): Strengthen param "membar" from rtx
1033 to rtx_insn *.
1034 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
1035 to rtx_insn **.
1036 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
1037 both params from rtx to rtx_insn *.
1038 (ia64_ld_address_bypass_p): Likewise.
1039 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
1040 "insn".
1041 (ia64_safe_type): Likewise.
1042 (group_barrier_needed): Likewise.
1043 (safe_group_barrier_needed): Likewise.
1044 (ia64_single_set): Likewise.
1045 (is_load_p): Likewise.
1046 (record_memory_reference): Likewise.
1047 (get_mode_no_for_insn): Likewise.
1048 (important_for_bundling_p): Likewise.
1049 (unknown_for_bundling_p): Likewise.
1050 (ia64_st_address_bypass_p): Likewise for both params.
1051 (ia64_ld_address_bypass_p): Likewise.
1052 (expand_vselect): Introduce new local rtx_insn * "insn", using it
1053 in place of rtx "x" after the emit_insn call.
1054 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
1055 Strengthen param from rtx to rtx_insn *.
1056 (ix86_agi_dependent): Likewise for both params.
1057 (ix86_attr_length_immediate_default): Likewise for param 1.
1058 (ix86_attr_length_address_default): Likewise for param.
1059 (ix86_attr_length_vex_default): Likewise for param 1.
1060 * config/i386/i386.c (ix86_attr_length_immediate_default):
1061 Likewise for param "insn".
1062 (ix86_attr_length_address_default): Likewise.
1063 (ix86_attr_length_vex_default): Likewise.
1064 (ix86_agi_dependent): Likewise for both params.
1065 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
1066 (vselect_insn): Likewise for this variable.
1067 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
1068 for param 1.
1069 (m68k_sched_attr_opy_type): Likewise.
1070 * config/m68k/m68k.c (sched_get_operand): Likewise.
1071 (sched_attr_op_type): Likewise.
1072 (m68k_sched_attr_opx_type): Likewise.
1073 (m68k_sched_attr_opy_type): Likewise.
1074 (sched_get_reg_operand): Likewise.
1075 (sched_get_mem_operand): Likewise.
1076 (m68k_sched_address_bypass_p): Likewise for both params.
1077 (sched_get_indexed_address_scale): Likewise.
1078 (m68k_sched_indexed_address_bypass_p): Likewise.
1079 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
1080 (m68k_sched_indexed_address_bypass_p): Likewise.
1081 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
1082 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
1083 removing another.
1084 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
1085 params from rtx to rtx_insn *.
1086 (mips_fmadd_bypass): Likewise.
1087 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
1088 (mips_linked_madd_p): Likewise.
1089 (mips_macc_chains_last_hilo): Likewise for this variable.
1090 (mips_macc_chains_record): Likewise for param.
1091 (vr4130_last_insn): Likewise for this variable.
1092 (vr4130_swap_insns_p): Likewise for both params.
1093 (mips_ls2_variable_issue): Likewise for param.
1094 (mips_need_noat_wrapper_p): Likewise for param "insn".
1095 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
1096 in place of "x" after the emit_insn.
1097 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
1098 params from rtx to rtx_insn *.
1099 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
1100 (pa_combine_instructions): Introduce local "par" for result of
1101 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1102 to make_insn_raw.
1103 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1104 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1105 (rl78_alloc_physical_registers_op1): Likewise.
1106 (rl78_alloc_physical_registers_op2): Likewise.
1107 (rl78_alloc_physical_registers_ro1): Likewise.
1108 (rl78_alloc_physical_registers_cmp): Likewise.
1109 (rl78_alloc_physical_registers_umul): Likewise.
1110 (rl78_alloc_address_registers_macax): Likewise.
1111 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1112 * config/s390/predicates.md (execute_operation): Likewise for
1113 local "insn".
1114 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1115 params.
1116 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1117 (addr_generation_dependency_p): Likewise for param "insn".
1118 (s390_agen_dep_p): Likewise for both params.
1119 (s390_fpload_toreg): Likewise for param "insn".
1120 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1121 * config/sh/sh.c (sh_loop_align): Likewise for param and local
1122 "next".
1123 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1124 * config/sh/sh_treg_combine.cc
1125 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1126 and local "i".
1127 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1128 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1129 "and_insn", "load", "shift".
1130 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1131 "insn".
1132 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1133 for XEXP (note, 0) of the REG_CC_SETTER note.
1134 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1135 rtx_insn *, eliminating a checked cast made redundant by this.
1136 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1137 to rtx_insn *.
1138 * genattr.c (main): When writing out the prototype to
1139 const_num_delay_slots, strengthen the param from rtx to
1140 rtx_insn *.
1141 * genattrtab.c (write_const_num_delay_slots): Likewise when
1142 writing out the implementation of const_num_delay_slots.
1143 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1144 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1145 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1146 favor of new rtx locals "src" and "set" and new local rtx_insn *
1147 "insn" and "seq".
1148 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1149 to rtx_insn *.
1150 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1151 locals "cond", "if_then_else", "set" and new rtx_insn * locals
1152 "insn" and "seq".
1153 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1154 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
1155 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
1156 the top-level scope, replacing with new more tightly-scoped rtx
1157 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1158 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1159 tightly-scoped.
1160 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1161 rtx_insn *.
1162 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1163 "move_insn".
1164 (ira_setup_alts): Likewise for param "insn".
1165 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1166 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1167 and an rtx_insn *.
1168 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1169 new more-tightly scoped rtx locals "add3_insn", "insn",
1170 "add2_insn" and rtx_insn * "move_insn".
1171 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1172 checked cast on result of gen_move_insn when invoking
1173 extract_insn.
1174 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1175 rtx_insn *.
1176 (verify_changes): Add a checked cast on "object" when invoking
1177 insn_invalid_p.
1178 (extract_insn_cached): Strengthen param "insn" from rtx to
1179 rtx_insn *.
1180 (extract_constrain_insn_cached): Likewise.
1181 (extract_insn): Likewise.
1182 * recog.h (insn_invalid_p): Likewise for param 1.
1183 (recog_memoized): Likewise for param.
1184 (extract_insn): Likewise.
1185 (extract_constrain_insn_cached): Likewise.
1186 (extract_insn_cached): Likewise.
1187 * reload.c (can_reload_into): Likewise for local "test_insn".
1188 * reload.h (cleanup_subreg_operands): Likewise for param.
1189 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1190 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1191 result of emit_insn. Remove a checked cast made redundant by this
1192 change.
1193 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1194 rtx to rtx_insn *.
1195 * sel-sched.c (get_reg_class): Likewise.
1196
1197 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1198 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1199
1200 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1201 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1202 Define.
1203 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1204
1205 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1206
1207 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1208 const rtx_insn *, and from rtx to rtx_insn * for the other
1209 overloaded variant.
1210 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1211 INSN_LOCATION, since we know INSN_P holds.
1212 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1213 (insn_file): Likewise.
1214 (insn_scope): Likewise.
1215 (insn_location): Likewise.
1216
1217 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1218 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1219 for the result of gen_load_const_gp.
1220 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1221 param from rtx to rtx_insn *.
1222 * config/rs6000/rs6000.c (output_call): Likewise.
1223 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1224 introducing a checked cast to rtx_sequence * and use of the insn
1225 method.
1226 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1227 from rtx to rtx_insn *.
1228 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1229 (insn_line): Likewise.
1230 (insn_file): Likewise.
1231 (insn_location): Likewise.
1232 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1233 from rtx to rtx_insn *.
1234 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1235 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1236 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1237 via a checked cast.
1238 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1239 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1240
1241 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1242
1243 * combine.c (try_combine): Eliminate checked cast on result of
1244 gen_rtx_INSN.
1245 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1246 autogenerated one by strengthening the return type and params 2 and 3
1247 from rtx to rtx_insn *, and by naming the params.
1248 * gengenrtl.c (special_rtx): Add INSN to those that are
1249 special-cased.
1250 * rtl.h (gen_rtx_INSN): New prototype.
1251
1252 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1253
1254 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1255 than NULL_RTX.
1256 (no_equiv): Likewise.
1257 (update_equiv_regs): Likewise.
1258 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1259 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1260 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1261 clarity.
1262 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1263 from rtx to rtx_insn_list *.
1264 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1265 rtx_insn_list * and use methods for clarity and typesafety.
1266 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1267 "list".
1268 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1269 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1270 an INSN_LIST, not an insn.
1271 (reverse_equiv_p): Strengthen local "insns" from rtx to
1272 rtx_insn_list * and use methods for clarity and typesafety.
1273 (contains_reloaded_insn_p): Likewise for local "list".
1274
1275 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1276
1277 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1278 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1279 (arm_builtin_vectorized_function): Likewise.
1280 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1281 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1282
1283 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1284
1285 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1286 * builtins.h (default_target_builtins): Likewise.
1287 * gcse.h (default_target_gcse): Likewise.
1288 * target-globals.h (target_globals): Add a destructor. Convert
1289 void-pointer fields back to their real type and change from
1290 GTY((atomic)) to GTY((skip)).
1291 (restore_target_globals): Remove casts accordingly.
1292 * target-globals.c (save_target_globals): Use XCNEW rather than
1293 ggc_internal_cleared_alloc to allocate non-GC structures.
1294 Use ggc_cleared_alloc to allocate the target_globals structure
1295 itself.
1296 (target_globals::~target_globals): Define.
1297
1298 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1299
1300 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1301 mnemonic instead of fldmfdd.
1302 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1303 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1304 Output vpush when address register is SP.
1305 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1306 (vfp_output_vstmd): ... This.
1307 * config/arm/vfp.md (push_multi_vfp): Update call to
1308 vfp_output_vstmd.
1309
1310 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1311
1312 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1313
1314 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1315
1316 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1317 (*sqrtdf2_vfp): Likewise.
1318 (*cmpsf_vfp): Likewise.
1319 (*cmpsf_trap_vfp): Likewise.
1320 (*cmpdf_vfp): Likewise.
1321 (*cmpdf_trap_vfp): Likewise.
1322
1323 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1324
1325 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1326 (*truncdfsf2_vfp): Likewise.
1327 (*truncsisf2_vfp): Likewise.
1328 (*truncsidf2_vfp): Likewise.
1329 (fixuns_truncsfsi2): Likewise.
1330 (fixuns_truncdfsi2): Likewise.
1331 (*floatsisf2_vfp): Likewise.
1332 (*floatsidf2_vfp): Likewise.
1333 (floatunssisf2): Likewise.
1334 (floatunssidf2): Likewise.
1335
1336 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1337
1338 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1339 (*muldf3_vfp): Likewise.
1340 (*mulsf3negsf_vfp): Likewise.
1341 (*muldf3negdf_vfp): Likewise.
1342 (*mulsf3addsf_vfp): Likewise.
1343 (*muldf3adddf_vfp): Likewise.
1344 (*mulsf3subsf_vfp): Likewise.
1345 (*muldf3subdf_vfp): Likewise.
1346 (*mulsf3negsfaddsf_vfp): Likewise.
1347 (*fmuldf3negdfadddf_vfp): Likewise.
1348 (*mulsf3negsfsubsf_vfp): Likewise.
1349 (*muldf3negdfsubdf_vfp): Likewise.
1350
1351 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1352
1353 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1354 (*absdf2_vfp): Likewise.
1355 (*negsf2_vfp): Likewise.
1356 (*negdf2_vfp): Likewise.
1357 (*addsf3_vfp): Likewise.
1358 (*adddf3_vfp): Likewise.
1359 (*subsf3_vfp): Likewise.
1360 (*subdf3_vfp): Likewise.
1361 (*divsf3_vfp): Likewise.
1362 (*divdf3_vfp): Likewise.
1363
1364 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1365
1366 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1367 multiple.
1368 (arm_print_operand): Don't convert real values to decimal
1369 representation in default case.
1370 (fp_immediate_constant): Delete.
1371 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1372 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1373 syntax.
1374 (*thumb2_movsi_vfp): Likewise.
1375 (*movdi_vfp): Likewise.
1376 (*movdi_vfp_cortexa8): Likewise.
1377 (*movhf_vfp_neon): Likewise.
1378 (*movhf_vfp): Likewise.
1379 (*movsf_vfp): Likewise.
1380 (*thumb2_movsf_vfp): Likewise.
1381 (*movdf_vfp): Likewise.
1382 (*thumb2_movdf_vfp): Likewise.
1383 (*movsfcc_vfp): Likewise.
1384 (*thumb2_movsfcc_vfp): Likewise.
1385 (*movdfcc_vfp): Likewise.
1386 (*thumb2_movdfcc_vfp): Likewise.
1387
1388 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1389
1390 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1391 (-mtune): Likewise.
1392 (-mcpu): Likewise.
1393
1394 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1395
1396 PR target/61749
1397 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1398 Use qualifier_immediate for last operand. Rename to...
1399 (aarch64_types_ternop_lane_qualifiers): ... This.
1400 (TYPES_QUADOP): Rename to...
1401 (TYPES_TERNOP_LANE): ... This.
1402 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1403 error. Change return of 0 to return of NULL_RTX.
1404 (aarch64_crc32_expand_builtin): Likewise.
1405 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1406 ICE when expanding unknown builtin.
1407 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1408 TERNOP_LANE qualifiers.
1409 (sqdmlsl_lane): Likewise.
1410 (sqdmlal_laneq): Likewise.
1411 (sqdmlsl_laneq): Likewise.
1412 (sqdmlal2_lane): Likewise.
1413 (sqdmlsl2_lane): Likewise.
1414 (sqdmlal2_laneq): Likewise.
1415 (sqdmlsl2_laneq): Likewise.
1416
1417 2014-09-09 Nick Clifton <nickc@redhat.com>
1418
1419 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1420 end of a line.
1421 (S/390 and zSeries Options): Remove superfluous word from the
1422 description of the -mhotpatch option.
1423
1424 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1425
1426 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1427 * ira.c: #include "shrink-wrap.h"
1428 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1429 * ifcvt.c: #include "shrink-wrap.h"
1430 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1431
1432 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1433
1434 * common/config/picochip/picochip-common.c: Remove.
1435 * config.gcc: Remove support for picochip.
1436 * config/picochip/constraints.md: Remove.
1437 * config/picochip/dfa_space.md: Remove.
1438 * config/picochip/dfa_speed.md: Remove.
1439 * config/picochip/picochip-protos.h: Remove.
1440 * config/picochip/picochip.c: Remove.
1441 * config/picochip/picochip.h: Remove.
1442 * config/picochip/picochip.md: Remove.
1443 * config/picochip/picochip.opt: Remove.
1444 * config/picochip/predicates.md: Remove.
1445 * config/picochip/t-picochip: Remove.
1446 * doc/md.texi: Don't document picochi.
1447
1448 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1449
1450 * basic-block.h (control_flow_insn_p): Strengthen param from
1451 const_rtx to const rtx_insn *.
1452 * cfgbuild.c (control_flow_insn_p): Likewise.
1453
1454 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1455
1456 * gcse.c (modify_mem_list): Strengthen this variable from
1457 vec<rtx> * to vec<rtx_insn *> *.
1458 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1459 vec<rtx_insn *>.
1460 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1461 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1462 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1463 rtx_insn *.
1464 (record_last_set_info): Likewise for local "last_set_insn".
1465
1466 2014-09-08 DJ Delorie <dj@redhat.com>
1467
1468 * doc/invoke.texi (MSP430 Options): Add -minrt.
1469
1470 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1471
1472 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1473 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1474 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1475 handling SH_SPLAT.
1476 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1477 of extracted lane.
1478 (adjust_splat): New function.
1479 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1480 (dump_swap_insn_table): Add case for SH_SPLAT.
1481
1482 2014-09-08 Richard Biener <rguenther@suse.de>
1483
1484 PR ipa/63196
1485 * tree-inline.c (copy_loops): The source loop header should
1486 always be non-NULL.
1487 (tree_function_versioning): If loops need fixup after removing
1488 unreachable blocks fix them.
1489 * omp-low.c (simd_clone_adjust): Do not add incr block to
1490 loop under construction.
1491
1492 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1493
1494 * config/aarch64/aarch64-builtins.c
1495 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1496
1497 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1498
1499 * config/i386/cygming.h (TF_SIZE): Remove.
1500 * config/i386/darwin.h (TF_SIZE): Remove.
1501 * config/i386/dragonfly.h (TF_SIZE): Remove.
1502 * config/i386/freebsd.h (TF_SIZE): Remove.
1503 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1504 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1505 * config/i386/sol2.h (TF_SIZE): Remove.
1506 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1507 * config/ia64/linux.h (TF_SIZE): Remove.
1508 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1509 * doc/tm.texi: Regenerate.
1510 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1511
1512 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1513
1514 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1515 Remove.
1516 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1517 Remove.
1518 * doc/tm.texi: Regenerate.
1519 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1520 Poison.
1521 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1522 * config/cris/cris.h (__make_dp): Remove.
1523
1524 2014-09-08 Richard Biener <rguenther@suse.de>
1525
1526 PR bootstrap/63204
1527 * cfgloop.c (mark_loop_for_removal): Track former header
1528 unconditionally.
1529 * cfgloop.h (struct loop): Add former_header member unconditionally.
1530 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1531 diagnostic unconditionally.
1532
1533 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1534
1535 PR target/63190
1536 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1537 constraint for operand0 and remove write only modifier from operand3.
1538
1539 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1540
1541 PR rtl-optimization/62208
1542 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1543 rather than const0_rtx in eq/ne-xor simplifications.
1544
1545 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1546
1547 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1548 (arc_output_mi_thunk): Likewise.
1549
1550 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1551 arguments to silence bogus warning.
1552
1553 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1554
1555 PR middle-end/63171
1556 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1557
1558 2014-09-06 Tom de Vries <tom@codesourcery.com>
1559
1560 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1561 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1562 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1563
1564 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1565
1566 PR target/63188
1567 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1568 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1569
1570 2014-09-05 Easwaran Raman <eraman@google.com>
1571
1572 PR rtl-optimization/62146
1573 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1574 hoisted instruction unconditional.
1575
1576 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1577
1578 PR target/63187
1579 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1580 Do not allow any_mask_operand for operands[2].
1581 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1582
1583 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1584
1585 * config/arc/arc.c (arc_print_operand): Use insn method of
1586 final_sequence for type-safety.
1587 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1588 "insn" from rtx to rtx_insn *.
1589 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1590 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1591 Likewise for locals "branch", "label".
1592 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1593 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1594 (same_cmp_following_p): Likewise for locals "i2", "i3".
1595 * config/sh/sh_optimize_sett_clrt.cc
1596 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1597 param "cbranch_insn".
1598 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1599 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1600 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1601 const rtx_insn *.
1602 (condjump_p): Likewise.
1603 (condjump_in_parallel_p): Likewise.
1604 (pc_set): Likewise.
1605 (any_uncondjump_p): Likewise.
1606 (any_condjump_p): Likewise.
1607 (condjump_label): Likewise.
1608 (returnjump_p): Strengthen param "insn" from rtx to
1609 const rtx_insn *.
1610 (onlyjump_p): Strengthen param "insn" from const_rtx to
1611 const rtx_insn *.
1612 (jump_to_label_p): Likewise.
1613 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1614 (invert_jump): Likewise.
1615 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1616 simplejump_p.
1617 (get_jump_flags): Strengthen param "insn" from rtx to
1618 const rtx_insn *.
1619 (get_branch_condition): Likewise.
1620 (condition_dominates_p): Likewise.
1621 (make_return_insns): Move declaration of local "pat" earlier, to
1622 after we've handled NONJUMP_INSN_P and non-sequences, using its
1623 methods to simplify the code and for type-safety.
1624 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1625 const rtx_insn *.
1626 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1627 (condjump_p): Strengthen param from const_rtx to
1628 const rtx_insn *.
1629 (any_condjump_p): Likewise.
1630 (any_uncondjump_p): Likewise.
1631 (pc_set): Likewise.
1632 (condjump_label): Likewise.
1633 (simplejump_p): Likewise.
1634 (returnjump_p): Likewise.
1635 (onlyjump_p): Likewise.
1636 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1637 (invert_jump): Likewise.
1638 (condjump_in_parallel_p): Strengthen param from const_rtx to
1639 const rtx_insn *.
1640 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1641 to const rtx_insn *.
1642 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1643 to const rtx_insn *.
1644 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1645
1646 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1647
1648 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1649 above the conditional, and convert the check on GET_CODE to a
1650 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1651 the conditional. Simplify the conditional by using methods of
1652 "trial_seq".
1653
1654 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1655
1656 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1657 "link" from rtx to rtx_insn_list *, and use its methods for
1658 clarity and type-safety.
1659 (toggle_cancelled_flags): Likewise.
1660 (restore_last_backtrack_point): Likewise.
1661 (queue_to_ready): Use insn method of "link" in one place.
1662 (schedule_block): Strengthen local "link" from rtx to
1663 rtx_insn_list *, and use its methods for clarity and type-safety.
1664
1665 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1666
1667 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1668 param "insn" from const_rtx to const rtx_insn *.
1669 (sched_get_reverse_condition_uncached): Likewise.
1670 (sched_get_condition_with_rev): Likewise.
1671 (sched_has_condition_p): Likewise.
1672 (sched_insns_conditions_mutex_p): Likewise for both params.
1673 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1674 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1675 (setup_insn_reg_uses): Move local "list" to be more tightly
1676 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1677 its methods for clarity and type-safety.
1678 (sched_analyze_1): Strengthen local "pending" from rtx to
1679 rtx_insn_list *, and local "pending_mem" from rtx to
1680 rtx_expr_list *. Use methods of each for clarity and type-safety.
1681 (sched_analyze_2): Likewise.
1682 (sched_analyze_insn): Likewise.
1683
1684 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1685 param from const_rtx to const rtx_insn *.
1686 (sched_insns_conditions_mutex_p): Likewise for both params.
1687 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1688 param.
1689
1690 * system.h (CONST_CAST_RTX_INSN): New macro.
1691
1692 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1693
1694 * recog.c (peep2_attempt): Strengthen return type from rtx to
1695 rtx_insn *.
1696 (peep2_update_life): Likewise for params "last", "prev", removing
1697 a checked cast made redundant by this.
1698 (peephole2_optimize): Likewise for local "last".
1699
1700 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1701
1702 * basic-block.h (set_block_for_insn): Eliminate this macro in
1703 favor of...
1704 * rtl.h (set_block_for_insn): New inline function, imposing the
1705 requirement that the "insn" param is an rtx_insn *.
1706
1707 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1708
1709 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1710 rtx to rtx_insn *.
1711 * final.c (get_call_reg_set_usage): Likewise for first param,
1712 eliminating a checked cast.
1713 * regs.h (get_call_reg_set_usage): Likewise for first param.
1714 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1715 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1716 cast, replacing references to "x" with "call_insn" where
1717 appropriate.
1718 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1719 rtx_insn *, adding a checked cast.
1720
1721 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1722
1723 * output.h (final_scan_insn): Strengthen first param from rtx to
1724 rtx_insn *.
1725
1726 * final.c (final_scan_insn): Likewise, renaming it back from
1727 "uncast_insn" to "insn", eliminating the checked cast.
1728
1729 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1730 "vec" with an rtx_sequence * "seq", taking a copy of
1731 "final_sequence", and using methods of "seq" for clarity, and for
1732 type-safety in the calls to final_scan_insn.
1733 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1734 of "final_sequence" for clarity, and for type-safety in the call to
1735 final_scan_insn.
1736 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1737 rtx_sequence * and rename from "insn" to "seq".
1738
1739 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1740
1741 * jump.c (delete_related_insns): Introduce a new local "table" by
1742 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1743 get_labels method of "table" to simplify access to the labels in
1744 the jump table.
1745
1746 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1747
1748 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1749 f_minmaxs, f_minmaxd types.
1750
1751 2014-09-05 Richard Biener <rguenther@suse.de>
1752
1753 * cfgloop.c (mark_loop_for_removal): Record former header
1754 when ENABLE_CHECKING.
1755 * cfgloop.h (strut loop): Add former_header member when
1756 ENABLE_CHECKING.
1757 * loop-init.c (fix_loop_structure): Sanity check loops
1758 marked for removal if they re-appeared.
1759
1760 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1761
1762 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1763 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1764
1765 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1766 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1767 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1768 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1769 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1770 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1771 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1772 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1773 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1774 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1775 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1776 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1777 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1778 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1779 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1780 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1781 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1782 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1783 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1784 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1785 with int{32,16,8}_t.
1786
1787 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1788
1789 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1790 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1791 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1792 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1793 Remove temporary __asm__ and reimplement.
1794
1795 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1796
1797 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1798 handling cmge, cmgt, cmeq, cmtst.
1799
1800 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1801 cmlt, cmgeu, cmgtu, cmtst): Remove.
1802
1803 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1804 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1805 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1806 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1807
1808 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1809
1810 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1811 TYPES_TST): Define.
1812 (aarch64_fold_builtin): Update pattern for cmtst.
1813
1814 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1815 Declare.
1816
1817 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1818
1819 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1820 Switch operands, separate out more cases, refactor.
1821
1822 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1823
1824 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1825 argument; rename old version to...
1826 (aarch64_const_vec_all_same_in_range_p): ...this.
1827 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1828
1829 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1830
1831 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1832
1833 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1834 Remove qualifier_const_pointer, update comment.
1835
1836 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1837
1838 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1839
1840 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1841
1842 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1843 varargs with pointer parameter.
1844 (aarch64_simd_expand_builtin): pass pointer into previous.
1845
1846 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1847
1848 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1849 alus_ext.
1850
1851 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1852
1853 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1854 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1855 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1856 Replace temporary asm with call to builtin.
1857 (vrbit_p8, vrbitq_p8): New functions.
1858
1859 2014-09-05 Richard Biener <rguenther@suse.de>
1860
1861 * cfgloop.c (mark_loop_for_removal): New function.
1862 * cfgloop.h (mark_loop_for_removal): Declare.
1863 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1864 (merge_blocks): Likewise.
1865 (duplicate_block): Likewise.
1866 * except.c (sjlj_emit_dispatch_table): Likewise.
1867 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1868 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1869 (thread_through_loop_header): Likewise.
1870
1871 2014-09-05 Richard Biener <rguenther@suse.de>
1872
1873 PR middle-end/63148
1874 * fold-const.c (try_move_mult_to_index): Remove.
1875 (fold_binary_loc): Do not call it.
1876 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1877 from the base object again.
1878
1879 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1880
1881 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1882 DImode.
1883
1884 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1885
1886 PR target/55701
1887 * config/arm/arm.md (setmem): New pattern.
1888 * config/arm/arm-protos.h (struct tune_params): New fields.
1889 (arm_gen_setmem): New prototype.
1890 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1891 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1892 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1893 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1894 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1895 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1896 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1897 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1898 (arm_const_inline_cost): New function.
1899 (arm_block_set_max_insns): New function.
1900 (arm_block_set_non_vect_profit_p): New function.
1901 (arm_block_set_vect_profit_p): New function.
1902 (arm_block_set_unaligned_vect): New function.
1903 (arm_block_set_aligned_vect): New function.
1904 (arm_block_set_unaligned_non_vect): New function.
1905 (arm_block_set_aligned_non_vect): New function.
1906 (arm_block_set_vect, arm_gen_setmem): New functions.
1907
1908 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1909
1910 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1911
1912 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1913
1914 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1915
1916 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1917
1918 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1919 an rtx.
1920 * valtrack.h: Adjust.
1921
1922 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1923
1924 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1925 an rtx.
1926 (emit_jump_insn_before_noloc): Likewise.
1927 (emit_call_insn_before_noloc): Likewise.
1928 (emit_label_before): Likewise.
1929 (emit_label_after): Likewise.
1930 (emit_insn_before_setloc): Likewise.
1931 (emit_jump_insn_before_setloc): Likewise.
1932 (emit_call_insn_before_setloc): Likewise.
1933 (emit_call_insn_before): Likewise.
1934 * rtl.h: Adjust.
1935
1936 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1937
1938 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1939 rtx_insn *, eliminating a checked cast.
1940
1941 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1942
1943 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1944 const_rtx to const rtx_insn *.
1945 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1946 cast.
1947
1948 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1949
1950 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1951 fixup_args_size_notes.
1952 * expr.c (fixup_args_size_notes): Strengthen first two params from
1953 rtx to rtx_insn *, eliminating a checked cast.
1954 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1955 rtx to rtx_insn *.
1956
1957 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1958
1959 * haifa-sched.c (get_ready_element): Strengthen return type from
1960 rtx to rtx_insn *.
1961 * sched-int.h (get_ready_element): Likewise.
1962
1963 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1964
1965 PR target/63165
1966 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1967 indexed_or_indirect_operand instead of memory_operand.
1968 (floatsi<mode>2_lfiwzx_mem): Ditto.
1969
1970 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1971
1972 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1973 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1974 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1975
1976 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1977
1978 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1979 rtx.
1980 (get_last_nonnote_insn): Likewise.
1981 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1982 * resource.c (find_basic_block): Likewise.
1983 * rtl.h: Adjust.
1984 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1985 const_rtx.
1986
1987 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1988
1989 * genattr.c (main): Within the prototype of insn_latency written
1990 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1991 * genautomata.c (output_internal_maximal_insn_latency_func):
1992 Within the implementation of insn_latency written out to
1993 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1994 eliminating a pair of checked casts.
1995
1996 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1997
1998 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1999 rtx_insn *.
2000
2001 * rtl.h (eh_returnjump_p): Likewise.
2002
2003 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
2004
2005 * Makefile.in (TAGS): Handle constructs in timevar.def.
2006
2007 2014-09-04 Guozhi Wei <carrot@google.com>
2008
2009 PR target/62040
2010 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
2011 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
2012 it into two patterns.
2013 (move_lo_quad_internal_be_<mode>): Likewise.
2014
2015 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
2016
2017 * doc/options.texi: Document that Var and Init are required if CPP
2018 is given.
2019 * optc-gen.awk: Require Var and Init if CPP is given.
2020 * common.opt (Wpedantic): Use Init.
2021
2022 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2023
2024 * config/rs6000/rs6000.c (special_handling_values): Add
2025 SH_EXTRACT.
2026 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
2027 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
2028 as swappable with special handling SH_EXTRACT. Remove
2029 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
2030 optimization.
2031 (adjust_extract): New function.
2032 (handle_special_swappables): Add default to case statement; add
2033 case for SH_EXTRACT that calls adjust_extract.
2034 (dump_swap_insn_table): Handle SH_EXTRACT.
2035
2036 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2037
2038 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
2039 selection of 0th memory doubleword, regardless of endianness.
2040
2041 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2042
2043 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
2044
2045 2014-09-04 Alan Modra <amodra@gmail.com>
2046
2047 PR debug/60655
2048 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
2049 can't be output.
2050
2051 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
2052
2053 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
2054 * targhooks.c (default_dwarf_frame_reg_mode): New function.
2055 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
2056 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
2057 * doc/tm.texi: Regenerate.
2058 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
2059 selection logic to default_dwarf_frame_reg_mode.
2060
2061 2014-09-03 Marek Polacek <polacek@redhat.com>
2062
2063 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
2064 by -Wall.
2065
2066 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2067
2068 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
2069 the automodified register.
2070
2071 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
2072
2073 * output.h (get_some_local_dynamic_name): Declare.
2074 * final.c (some_local_dynamic_name): New variable.
2075 (get_some_local_dynamic_name): New function.
2076 (final_end_function): Clear some_local_dynamic_name.
2077 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
2078 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2079 (print_operand): Report an error if '%&' is used inappropriately.
2080 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
2081 (get_some_local_dynamic_name_1): Delete.
2082 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
2083 (rs6000_get_some_local_dynamic_name): Delete.
2084 (rs6000_get_some_local_dynamic_name_1): Delete.
2085 (print_operand): Report an error if '%&' is used inappropriately.
2086 * config/s390/s390.c (machine_function): Remove some_ld_name.
2087 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2088 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
2089 * config/sparc/sparc.c: Include rtl-iter.h.
2090 (machine_function): Remove some_ld_name.
2091 (sparc_print_operand): Report an error if '%&' is used inappropriately.
2092 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
2093
2094 2014-09-03 Richard Henderson <rth@redhat.com>
2095
2096 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
2097 (aarch64_popwb_pair_reg): Remove.
2098 (aarch64_set_frame_expr): Remove.
2099 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
2100 the restore ops performed by the insns generated.
2101 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
2102 insn. Perform the calls_eh_return addition later; do not attempt to
2103 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
2104 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2105 special markup at all. Load cfun->machine->frame.hard_fp_offset
2106 into a local variable.
2107 (aarch64_frame_pointer_required): Don't check calls_alloca.
2108
2109 2014-09-03 Richard Biener <rguenther@suse.de>
2110
2111 * opts.c (default_options_optimization): Adjust
2112 max-combine-insns to 2 for -Og.
2113
2114 2014-09-03 Martin Jambor <mjambor@suse.cz>
2115
2116 PR ipa/62015
2117 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2118 pass-trough jump functions correctly.
2119
2120 2014-09-03 Martin Jambor <mjambor@suse.cz>
2121
2122 PR ipa/61986
2123 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2124 created replacements in ascending order of offsets.
2125 (known_aggs_to_agg_replacement_list): Likewise.
2126
2127 2014-09-03 Martin Liska <mliska@suse.cz>
2128
2129 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2130 is set to set uninitialized value for vnresult.
2131
2132 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2133
2134 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2135 for TARGET_MUST_PASS_IN_STACK.
2136
2137 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2138
2139 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2140 for TARGET_ARG_PARTIAL_BYTES.
2141
2142 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2143
2144 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2145 instructions for varargs implementation.
2146 (nds32_expand_epilogue): Emit stack adjustment instructions for
2147 varargs implementation.
2148
2149 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2150
2151 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2152 optimization detection.
2153
2154 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2155
2156 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2157 arguments.
2158 (nds32_function_arg_advance): Deal with nameless arguments.
2159 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2160 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2161 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2162
2163 2014-09-03 Richard Biener <rguenther@suse.de>
2164
2165 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2166 (struct bb_bitmap_sets): Remove deferred member.
2167 (BB_DEFERRED): Remove.
2168 (defer_or_phi_translate_block): Remove.
2169 (compute_antic_aux): Remove deferring of blocks, assert
2170 proper iteration order.
2171 (compute_antic): Do not set BB_DEFERRED.
2172 (eliminate): Allocate el_avail of proper size initially.
2173
2174 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2175
2176 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2177 according to the value of crtl->args.pretend_args_size.
2178
2179 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2180
2181 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2182 varargs information.
2183
2184 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2185
2186 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2187 implementation for TARGET_SETUP_INCOMING_VARARGS.
2188 (nds32_strict_argument_naming): Refine comment.
2189 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2190 Define for future implementation.
2191
2192 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2193
2194 * config/i386/adxintrin.h (_subborrow_u32): New.
2195 (_addcarry_u32): Ditto.
2196 (_subborrow_u64): Ditto.
2197 (_addcarry_u64): Ditto.
2198 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2199 IX86_BUILTIN_SBB64.
2200 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2201 __builtin_ia32_sbb_u64
2202
2203 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2204
2205 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2206 GPR-specific stuff.
2207 (nds32_function_arg_advance): Likewise.
2208 (nds32_init_cumulative_args): Likewise.
2209 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2210 (NDS32_FIRST_GPR_REGNUM): Define.
2211 (NDS32_LAST_GPR_REGNUM): Define.
2212 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2213 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2214 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2215 (machine_function): Use GRP-specific stuff.
2216
2217 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2218
2219 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2220 (nds32_expand_epilogue): Likewise.
2221 (nds32_expand_prologue_v3push): Likewise.
2222 (nds32_expand_epilogue_v3pop): Likewise.
2223
2224 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2225
2226 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2227 v3push/v3pop for variadic function.
2228 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2229
2230 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2231
2232 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2233 Check rtx for varargs implementation.
2234 (nds32_output_stack_pop): Likewise.
2235 * config/nds32/nds32-protos.h: Have a rtx argument for
2236 nds32_output_stack_push and nds32_output_stack_pop.
2237 * config/nds32/nds32.md: Likewise.
2238
2239 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2240
2241 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2242 to check if FUNC is an interrupt service routine.
2243 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2244
2245 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2246
2247 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2248 arguments implementation.
2249
2250 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2251
2252 * config/nds32/nds32-predicates.c
2253 (nds32_valid_stack_push_pop): Rename to ...
2254 (nds32_valid_stack_push_pop_p): ... this.
2255 * config/nds32/nds32-protos.h: Likewise.
2256 * config/nds32/predicates.md: Likewise.
2257
2258 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2259
2260 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2261 (nds32_emit_stack_v3push): ... this.
2262 (nds32_gen_stack_v3pop): Rename to ...
2263 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2264 information.
2265
2266 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2267
2268 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2269 (nds32_emit_stack_push_multiple): ... this.
2270 (nds32_gen_stack_pop_multiple): Rename to ...
2271 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2272 information.
2273
2274 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2275
2276 PR target/61078
2277 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2278 and add a second splitter to handle the remaining cases.
2279
2280 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2281
2282 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2283
2284 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2285
2286 * cfgexpand.c (label_rtx_for_bb): Change type to
2287 hash_map<basic_block, rtx_code_label *> *.
2288 (expand_gimple_basic_block): Adjust.
2289 (pass_expand::execute): Likewise.
2290
2291 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2292
2293 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2294 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2295 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2296 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2297 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2298 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2299 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2300 of rtx.
2301
2302 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2303
2304 * alloc-pool.c: Include coretypes.h.
2305 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2306 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2307 hash_set instead of htab.
2308 * ggc-page.c (in_gc): New variable.
2309 (ggc_free): Do nothing if a collection is taking place.
2310 (ggc_collect): Set in_gc appropriately.
2311 * ggc.h (gt_ggc_mx(const char *)): New function.
2312 (gt_pch_nx(const char *)): Likewise.
2313 (gt_ggc_mx(int)): Likewise.
2314 (gt_pch_nx(int)): Likewise.
2315 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2316 (hash_map::hash_entry::pch_nx): Likewise.
2317 (hash_map::hash_entry::pch_nx_helper): Likewise.
2318 (hash_map::hash_map): Adjust.
2319 (hash_map::create_ggc): New function.
2320 (gt_ggc_mx): Likewise.
2321 (gt_pch_nx): Likewise.
2322 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2323 (default_hashset_traits::pch_nx): Likewise.
2324 (hash_set::hash_entry::ggc_mx): Likewise.
2325 (hash_set::hash_entry::pch_nx): Likewise.
2326 (hash_set::hash_entry::pch_nx_helper): Likewise.
2327 (hash_set::hash_set): Adjust.
2328 (hash_set::create_ggc): New function.
2329 (hash_set::elements): Likewise.
2330 (gt_ggc_mx): Likewise.
2331 (gt_pch_nx): Likewise.
2332 * hash-table.h (hash_table::hash_table): Adjust.
2333 (hash_table::m_ggc): New member.
2334 (hash_table::~hash_table): Adjust.
2335 (hash_table::expand): Likewise.
2336 (hash_table::empty): Likewise.
2337 (gt_ggc_mx): New function.
2338 (hashtab_entry_note_pointers): Likewise.
2339 (gt_pch_nx): Likewise.
2340
2341 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2342
2343 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2344 built-in definition.
2345 (XVCVUXDDP_SCALE): Likewise.
2346 (XVCVDPSXDS_SCALE): Likewise.
2347 (XVCVDPUXDS_SCALE): Likewise.
2348 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2349 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2350 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2351 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2352 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2353 prototype.
2354 * config/rs6000/rs6000.c (real.h): New include.
2355 (rs6000_scale_v2df): New function.
2356 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2357 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2358 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2359 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2360 (vsx_xvcvsxddp_scale): New define_expand.
2361 (vsx_xvcvsxddp): New define_insn.
2362 (vsx_xvcvuxddp_scale): New define_expand.
2363 (vsx_xvcvuxddp): New define_insn.
2364 (vsx_xvcvdpsxds_scale): New define_expand.
2365 (vsx_xvcvdpsxds): New define_insn.
2366 (vsx_xvcvdpuxds_scale): New define_expand.
2367 (vsx_xvcvdpuxds): New define_insn.
2368 * doc/extend.texi (vec_ctf): Add new prototypes.
2369 (vec_cts): Likewise.
2370 (vec_ctu): Likewise.
2371 (vec_splat): Likewise.
2372 (vec_div): Likewise.
2373 (vec_mul): Likewise.
2374
2375 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2376
2377 PR target/62275
2378 * config/arm/neon.md
2379 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2380 <v_cmp_result>): New pattern.
2381 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2382 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2383 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2384 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2385 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2386 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2387
2388 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2389
2390 PR target/62275
2391 * config/arm/iterators.md (FIXUORS): New code iterator.
2392 (VCVT): New int iterator.
2393 (su_optab): New code attribute.
2394 (su): Likewise.
2395 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2396
2397 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2398
2399 * config/aarch64/predicates.md (aarch64_comparison_operation):
2400 New special predicate.
2401 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2402 aarch64_comparison_operation instead of matching an operator.
2403 Update operand numbers.
2404 (csinc3<mode>_insn): Likewise.
2405 (*csinv3<mode>_insn): Likewise.
2406 (*csneg3<mode>_insn): Likewise.
2407 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2408 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2409 Return -1 instead of aborting on invalid condition codes.
2410 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2411 to assert that the returned condition code is valid.
2412 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2413
2414 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2415
2416 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2417 tree.def, and gimple.def
2418
2419 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2420 Balaji V. Iyer <balaji.v.iyer@intel.com>
2421 Igor Zamyatin <igor.zamyatin@intel.com>
2422
2423 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2424 (__cilkrts_cilk_for_64): Likewise.
2425 * cilk-common.c (declare_cilk_for_builtin): New function.
2426 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2427 __cilkrts_cilk_for_64 bultins.
2428 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2429 CILK_TI_F_LOOP_64.
2430 (cilk_for_32_fndecl): New define.
2431 (cilk_for_64_fndecl): Likewise.
2432 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2433 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2434 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2435 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2436 GF_OMP_FOR_COMBINED_INTO.
2437 * gimplify.c (gimplify_scan_omp_clauses): Added
2438 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2439 (gimplify_adjust_omp_clauses): Ditto.
2440 (gimplify_omp_for): Added CILK_FOR case.
2441 (gimplify_expr): Ditto.
2442 * omp-low.c: Include cilk.h.
2443 (extract_omp_for_data): Set appropriate kind for
2444 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2445 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2446 (create_omp_child_function_name): Added second argument to handle
2447 cilk_for case.
2448 (cilk_for_check_loop_diff_type): New function.
2449 (expand_cilk_for_call): Likewise.
2450 (expand_cilk_for): Likewise.
2451 (create_omp_child_function): Set cilk_for_count; handle the cases when
2452 it is true; call create_omp_child_function_name with second argument.
2453 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2454 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2455 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2456 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2457 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2458 (convert_local_omp_clauses): Ditto.
2459 * tree-pretty-print.c (dump_omp_clause): Added
2460 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2461 (dump_generic_node): Added CILK_FOR case.
2462 * tree.c (omp_clause_num_ops): New element
2463 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2464 (omp_clause_code_name): New element _Cilk_for_count_.
2465 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2466 * tree.def: Add tree code for CILK_FOR.
2467
2468 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2469
2470 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2471 (ppc403-compare): Add "exts with dot" case.
2472 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2473 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2474 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2475 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2476 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2477 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2478 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2479 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2480 cell-cmp-microcoded): Similarly.
2481 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2482 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2483 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2484 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2485 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2486 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2487 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2488 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2489 (power6-compare): Add "exts with dot" case.
2490 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2491 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2492 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2493
2494 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2495 if avoiding Cell microcode.
2496 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2497 (is_cracked_insn): Ditto.
2498 (insn_must_be_first_in_group): Ditto.
2499 * config/rs6000/rs6000.md (dot): Adjust comment.
2500 (cell_micro): Handle exts+dot.
2501 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2502 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2503 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2504 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2505 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2506 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2507 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2508
2509 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2510
2511 * config/rs6000/rs6000.md (QHSI): Delete.
2512 (EXTQI, EXTHI, EXTSI): New mode iterators.
2513 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2514 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2515 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2516 9 anonymous instructions, and 8 splitters): Delete.
2517 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2518 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2519 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2520 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2521 *zero_extendsi<mode>2_dot2): New.
2522
2523 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2524
2525 * config/rs6000/rs6000.md (any_extend): New code iterator.
2526 (u, su): New code attributes.
2527 (dmode, DMODE): New mode attributes.
2528 (<su>mul<mode>3_highpart): New.
2529 (*<su>mul<mode>3_highpart): New.
2530 (<su>mulsi3_highpart_le): New.
2531 (<su>muldi3_highpart_le): New.
2532 (<su>mulsi3_highpart_64): New.
2533 (<u>mul<mode><dmode>3): New.
2534 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2535 splitters): Delete.
2536 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2537 splitters): Delete.
2538
2539 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2540
2541 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2542 *mulsi3_internal2, and two splitters): Delete.
2543 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2544 Delete.
2545 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2546
2547 2014-09-02 Richard Biener <rguenther@suse.de>
2548
2549 PR tree-optimization/62695
2550 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2551 vector truncate.
2552
2553 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2554
2555 PR target/62312
2556 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2557
2558 2014-09-01 Andi Kleen <ak@linux.intel.com>
2559
2560 * file-find.c (add_prefix_begin): Add.
2561 (do_add_prefix): Rename from add_prefix with first argument.
2562 (add_prefix): Add new wrapper.
2563 * file-find.h (add_prefix_begin): Add.
2564 * gcc-ar.c (main): Support -B option.
2565
2566 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2567
2568 * genemit.c: Include dumpfile.h.
2569 (gen_split): Print name of splitter function to dump file.
2570
2571 2014-09-01 Richard Biener <rguenther@suse.de>
2572
2573 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2574 Use stack auto_vecs for constraint expressions.
2575 (find_func_aliases_for_call): Likewise.
2576 (find_func_aliases): Likewise.
2577 (find_func_clobbers): Likewise.
2578
2579 2014-09-01 Richard Biener <rguenther@suse.de>
2580
2581 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2582 operands vector in most cases. Remove redundant code.
2583
2584 2014-09-01 Olivier Hainque <hainque@adacore.com>
2585
2586 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2587 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2588 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2589
2590 2014-09-01 Richard Biener <rguenther@suse.de>
2591
2592 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2593 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2594 vn_reference_compute_hash, vn_reference_insert): Remove.
2595 (vn_reference_lookup_call): New function.
2596 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2597 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2598 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2599 (create_reference_ops_from_call): Remove.
2600 (vn_reference_lookup_3): Properly update shared_lookup_references.
2601 (vn_reference_lookup_pieces): Assert that we updated
2602 shared_lookup_references properly.
2603 (vn_reference_lookup): Likewise.
2604 (vn_reference_lookup_call): New function.
2605 (visit_reference_op_call): Use it. Avoid re-building the
2606 reference ops.
2607 (visit_reference_op_load): Remove redundant lookup.
2608 (visit_reference_op_store): Perform special tail-merging work
2609 only when possibly doing tail-merging.
2610 (visit_use): Likewise.
2611 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2612
2613 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2614
2615 PR target/62025
2616 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2617 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2618 (find_inc): Revert 2014-08-13 change.
2619
2620 2014-09-01 Marek Polacek <polacek@redhat.com>
2621
2622 PR middle-end/61903
2623 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2624 Change the type of V to unsigned HOST_WIDE_INT.
2625
2626 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2627
2628 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2629 the size of byte markers.
2630 (do_shift_rotate): Fix confusion between host, target and marker byte
2631 size.
2632 (verify_symbolic_number_p): Likewise.
2633 (find_bswap_or_nop_1): Likewise.
2634 (find_bswap_or_nop): Likewise.
2635
2636 2014-09-01 Olivier Hainque <hainque@adacore.com>
2637
2638 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2639 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2640
2641 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2642
2643 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2644 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2645 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2646
2647 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2648
2649 PR sanitizer/61897
2650 PR sanitizer/62140
2651 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2652 (build_check_stmt): Likewise.
2653 (instrument_strlen_call): Likewise.
2654 (asan_expand_check_ifn): Likewise and fix types.
2655 (maybe_cast_to_ptrmode): New function.
2656
2657 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2658
2659 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2660
2661 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2662
2663 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2664
2665 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2666
2667 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2668 prefix to function labels when generating fast indirect calls.
2669
2670 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2671
2672 PR bootstrap/62304
2673
2674 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2675 param back from rtx_insn * to rtx. Rename param from "label" to
2676 "label_or_return", reintroducing "label" as an rtx_insn * after
2677 we've ensured it's not a RETURN.
2678 (first_active_target_insn): Likewise for return type and param;
2679 add a checked cast to rtx_insn * once we've ensured "insn" is not
2680 a RETURN.
2681 (steal_delay_list_from_target): Convert param "pnew_thread" back
2682 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2683 with JUMP_LABEL.
2684 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2685 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2686 cast once we've established we're not dealing with a RETURN,
2687 renaming subsequent uses of "thread" to "thread_insn".
2688 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2689 to JUMP_LABEL.
2690 (follow_jumps): Convert return type and param "label" from
2691 rtx_insn * back to rtx. Move initialization of "value" to after
2692 the handling for ANY_RETURN_P, adding a checked cast there to
2693 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2694 rename to "this_label_or_return", reintroducing "this_label" as
2695 an rtx_insn * once we've handled the case where it could be an
2696 ANY_RETURN_P.
2697 (fill_slots_from_thread): Rename param "thread" to
2698 "thread_or_return", converting from an rtx_insn * back to an rtx.
2699 Reintroduce name "thread" as an rtx_insn * local with a checked
2700 cast once we've handled the case of it being an ANY_RETURN_P.
2701 Convert local "new_thread" from an rtx_insn * back to an rtx.
2702 Add a checked cast when assigning to "trial" from "new_thread".
2703 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2704 checked cast to rtx_insn * from "new_thread" when invoking
2705 get_label_before.
2706 (fill_eager_delay_slots): Convert locals "target_label",
2707 "insn_at_target" from rtx_insn * back to rtx.
2708 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2709 (relax_delay_slots): Convert locals "trial", "target_label" from
2710 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2711 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2712 invoking update_block.
2713 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2714 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2715
2716 * resource.h (mark_target_live_regs): Undo erroneous conversion
2717 of second param of r214693, converting it back from rtx_insn * to
2718 rtx, since it could be a RETURN.
2719
2720 * resource.c (find_dead_or_set_registers): Similarly, convert
2721 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2722 could be writing back a RETURN. Rename local rtx_insn * "next" to
2723 "next_insn", and introduce "lab_or_return" as a local rtx,
2724 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2725 (mark_target_live_regs): Undo erroneous conversion
2726 of second param of r214693, converting it back from rtx_insn * to
2727 rtx, since it could be a RETURN. Rename it from "target" to
2728 "target_maybe_return", reintroducing the name "target" as a local
2729 rtx_insn * with a checked cast, after we've handled the case of
2730 ANY_RETURN_P.
2731
2732 2014-08-29 DJ Delorie <dj@redhat.com>
2733
2734 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2735 pointer size up to a power of two.
2736 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2737 (POINTER_SIZE_UNITS): New, rounded up value.
2738 * dwarf2asm.c (size_of_encoded_value): Use it.
2739 (dw2_output_indirect_constant_1): Likewise.
2740 * expmed.c (init_expmed_one_conv): We now know the sizes of
2741 partial int modes.
2742 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2743 * optabs.c (expand_float): Use precision, not size.
2744 (expand_fix): Likewise.
2745 * simplify-rtx (simplify_unary_operation_1): Likewise.
2746 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2747 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2748 (default_assemble_integer) Likewise.
2749 (dump_tm_clone_pairs): Likewise.
2750 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2751 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2752 (prepare_call_arguments): Likewise.
2753 * stor-layout.c (finalize_type_size): Preserve precision.
2754 (layout_type): Use precision, not size.
2755
2756 * expr.c (convert_move): If the target has an explicit converter,
2757 use it.
2758
2759 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2760
2761 * gdbinit.in: Skip various inline functions in rtl.h when
2762 stepping.
2763
2764 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2765
2766 PR bootstrap/62301
2767 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2768
2769 2014-08-29 Richard Biener <rguenther@suse.de>
2770
2771 PR tree-optimization/62291
2772 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2773 exactly the vector size needed and use quick_push.
2774 (phi_translate_1): Adjust comment.
2775 (valid_in_sets): Remove block argument and remove pointless
2776 checking of NAMEs.
2777 (dependent_clean): Adjust for removal of block argument.
2778 (clean): Likewise.
2779 (compute_antic_aux): Likewise.
2780 (compute_partial_antic_aux): Likewise.
2781
2782 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2783 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2784 Anna Tikhonova <anna.tikhonova@intel.com>
2785 Ilya Tocar <ilya.tocar@intel.com>
2786 Andrey Turetskiy <andrey.turetskiy@intel.com>
2787 Ilya Verbin <ilya.verbin@intel.com>
2788 Kirill Yukhin <kirill.yukhin@intel.com>
2789 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2790
2791 * config/i386/sse.md
2792 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2793 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2794 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2795 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2796
2797 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2798 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2799 Anna Tikhonova <anna.tikhonova@intel.com>
2800 Ilya Tocar <ilya.tocar@intel.com>
2801 Andrey Turetskiy <andrey.turetskiy@intel.com>
2802 Ilya Verbin <ilya.verbin@intel.com>
2803 Kirill Yukhin <kirill.yukhin@intel.com>
2804 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2805
2806 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2807 * config/i386/sse.md
2808 (define_mode_iterator VI4_128_8_256): New.
2809 (define_mode_iterator VI2_128_4_256): Ditto.
2810 (define_mode_iterator PMOV_DST_MODE): Rename into
2811 (define_mode_iterator PMOV_DST_MODE_1): this.
2812 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2813 Use PMOV_DST_MODE_1 mode iterator.
2814 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2815 Ditto.
2816 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2817 Ditto.
2818 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2819 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2820 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2821 (define_mode_iterator PMOV_DST_MODE_2): New.
2822 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2823 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2824 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2825 Ditto.
2826 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2827 (define_mode_attr pmov_dst_3): Ditto.
2828 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2829 (define_mode_attr pmov_suff_3): Ditto.
2830 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2831 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2832 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2833 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2834 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2835 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2836 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2837 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2838 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2839 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2840 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2841 (define_mode_attr pmov_dst_4): Ditto.
2842 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2843 (define_mode_attr pmov_suff_4): Ditto.
2844 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2845 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2846 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2847 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2848 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2849 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2850 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2851 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2852 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2853 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2854 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2855
2856 2014-08-29 Richard Biener <rguenther@suse.de>
2857
2858 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2859 NON_LVALUE_EXPR in gimple.
2860
2861 2014-08-29 Richard Biener <rguenther@suse.de>
2862
2863 PR middle-end/62292
2864 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2865 from previous refactoring.
2866 (gimple_fold_builtin_strncpy): Likewise.
2867
2868 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2869
2870 PR bootstrap/62300
2871 * function.c (assign_parm_setup_reg): Remove erroneous checked
2872 cast to rtx_insn * on result of gen_extend_insn in favor of
2873 introducing a new local rtx "pat".
2874
2875 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2876
2877 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2878 to silence warning.
2879 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2880
2881 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2882
2883 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2884 (next_insn): Likewise.
2885 * emit-rtl.c (next_insn): Likewise.
2886 (previous_insn): Likewise.
2887 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2888 "insn" and "next" from rtx to rtx_insn *.
2889 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2890 "insn", "insn1", "vliw_start", "prologue_end_note",
2891 "last_insn_in_packet".
2892
2893 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2894
2895 * shrink-wrap.h (active_insn_between): Strengthen both params from
2896 rtx to rtx_insn *.
2897 * function.c (active_insn_between): Likewise.
2898
2899 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2900
2901 * genattr.c (main): When writing out insn-attr.h, strengthen param
2902 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2903 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2904 writing out the definition of dfa_clear_single_insn_cache to the
2905 generated insn-automata.c
2906
2907 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2908
2909 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2910 rtx to rtx_insn *.
2911 (incr_ticks_for_insn): Likewise.
2912 (init_resource_info): Likewise.
2913
2914 * resource.c (init_resource_info): Likewise.
2915 (clear_hashed_info_for_insn): Likewise.
2916 (incr_ticks_for_insn): Likewise.
2917
2918 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2919 rtx to rtx_insn *.
2920 (steal_delay_list_from_target): Use methods of "seq".
2921 (try_merge_delay_insns): Use methods of "merged_insns".
2922 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2923 (reorg_redirect_jump): Likewise for param "jump".
2924
2925 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2926
2927 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2928 rtx to rtx_insn *.
2929 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2930 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2931 "set_insn".
2932 (s390_mainpool_finish): In three places, split out a local rtx
2933 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2934 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2935 and split another local rtx "insn" out into rtx "pat" and
2936 rtx_insn * "insn".
2937 * config/sh/sh.c (output_branchy_insn): Rather than working
2938 directly on operands[9], introduce local rtx_code_label *
2939 variables named "lab" in two places, working on them, and then
2940 assigning them to operands[9], so that the intervening operations
2941 are known by the type system to be on insns.
2942
2943 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2944
2945 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2946 const rtx_insn *.
2947
2948 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2949 in invocation of INSN_HAS_LOCATION.
2950
2951 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2952
2953 * config/rs6000/altivec.h (vec_xl): New #define.
2954 (vec_xst): Likewise.
2955 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2956 (XXSPLTD_V2DI): Likewise.
2957 (DIV_V2DI): Likewise.
2958 (UDIV_V2DI): Likewise.
2959 (MUL_V2DI): Likewise.
2960 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2961 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2962 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2963 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2964 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2965 (UNSPEC_VSX_DIVSD): Likewise.
2966 (UNSPEC_VSX_DIVUD): Likewise.
2967 (UNSPEC_VSX_MULSD): Likewise.
2968 (vsx_mul_v2di): New insn-and-split.
2969 (vsx_div_v2di): Likewise.
2970 (vsx_udiv_v2di): Likewise.
2971 (vsx_xxspltd_<mode>): New insn.
2972
2973 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2974
2975 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2976 NEXT_INSN.
2977 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2978 (NEXT_INSN): Likewise.
2979 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2980 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2981 const rtx_insn *.
2982 (no_labels_between_p): Likewise for both params.
2983
2984 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2985 cast when using NEXT_INSN on operands[2].
2986 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2987 "insn" from rtx to rtx_insn *, adding a checked cast.
2988 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2989 rtx_insn *.
2990 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2991 for third param.
2992 (arc_text_label): Likewise for param "insn".
2993 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2994 "insn".
2995 (arc_ccfsm_record_condition): Likewise for param "jump".
2996 (arc_text_label): Likewise for local "label".
2997 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2998 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2999 a method for typesafety. Add a checked cast.
3000 * config/arc/constraints.md (Clb): Add a checked cast when getting
3001 the CODE_LABEL from a LABEL_REF.
3002 * config/arm/arm.c (require_pic_register): Strengthen locals
3003 "seq", "insn" from rtx to rtx_insn *.
3004 (create_fix_barrier): Likewise for locals "selected", "next".
3005 (thumb1_reorg): Likewise for locals "prev", "insn".
3006 (arm_expand_prologue): Likewise for local "last".
3007 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
3008 operands[0].
3009 (thumb2_output_casesi): Likewise for operands[2].
3010 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
3011 strengthen local "insn" from rtx to rtx_insn *.
3012 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
3013 type and param "insn".
3014 (find_prev_insn_start): Likewise.
3015 (hwloop_optimize): Likewise for locals "insn", "last_insn",
3016 "prev".
3017 (gen_one_bundle): Likewise for loal "t".
3018 (find_load): Likewise for param "insn".
3019 (workaround_speculation): Likewise for locals "insn", "next",
3020 "target", "next_tgt".
3021 * config/c6x/c6x.c (assign_reservations): Likewise for both params
3022 and for locals "insn", "within", "last".
3023 (count_unit_reqs): Likewise for params "head", "tail" and local
3024 "insn".
3025 (try_rename_operands): Likewise for params "head", "tail".
3026 (reshuffle_units): Likewise for locals "head", "tail", "insn".
3027 (struct c6x_sched_context): Likewise for fields
3028 "last_scheduled_insn", "last_scheduled_iter0".
3029 (init_sched_state): Replace NULL_RTX with NULL.
3030 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
3031 to rtx_insn *.
3032 (undo_split_delayed_nonbranch): Likewise for param and for local
3033 "prev".
3034 (conditionalize_after_sched): Likewise for local "insn".
3035 (bb_earliest_end_cycle): Likewise.
3036 (filter_insns_above): Likewise for locals "insn", "next".
3037 (hwloop_optimize): Remove redundant checked cast.
3038 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
3039 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
3040 NULL_RTX with NULL.
3041 (cris_simple_epilogue): Likewise.
3042 (cris_expand_prologue): Likewise.
3043 (cris_expand_epilogue): Likewise.
3044 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
3045 local "insn" from rtx to rtx_insn *.
3046 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
3047 (struct frv_packet_group): Likewise for the elements within array
3048 fields "insns", "sorted", and for field "nop".
3049 (frv_packet): Likewise for the elements within array field
3050 "insns".
3051 (frv_add_insn_to_packet): Likewise for param "insn".
3052 (frv_insert_nop_in_packet): Likewise for param "insn" and local
3053 "last".
3054 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
3055 (frv_sort_insn_group_1): Likewise for local "insn".
3056 (frv_optimize_membar_local): Likewise.
3057 (frv_align_label): Likewise for locals "x", "last", "barrier",
3058 "label".
3059 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
3060 local.
3061 (ia64_sched_init): Likewise for local "insn".
3062 (scheduled_good_insn): Likewise for param "last".
3063 (struct _ia64_sched_context): Likewise for field
3064 "last_scheduled_insn".
3065 (ia64_init_sched_context): Replace NULL_RTX with NULL.
3066 (struct bundle_state): Likewise for field "insn".
3067 (issue_nops_and_insn): Likewise for param "insn".
3068 (get_next_important_insn): Likewise for return type and both
3069 params.
3070 (ia64_add_bundle_selector_before): Likewise for param "insn".
3071 (bundling): Likewise for params "prev_head_insn", "tail" and
3072 locals "insn", "next_insn", "b". Eliminate top-level local rtx
3073 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
3074 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
3075 Strengthen final param from rtx to rtx_insn *.
3076 (iq2000_move_1word): Likewise for second param.
3077 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
3078 param "cur_insn" and local "next_insn".
3079 (iq2000_move_1word): Likewise for param "insn".
3080 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
3081 casts when using NEXT_INSN on operands[1].
3082 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
3083 "insn" from rtx to rtx_insn *.
3084 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
3085 "x", introducing local rtx_insn * "insn" for when working with the
3086 CODE_LABEL of the LABEL_REF.
3087 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
3088 rtx_insn *.
3089 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
3090 param.
3091 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
3092 type.
3093 (conditionalize_block): Likewise for return type and param.
3094 (mcore_is_dead): Likewise for param "first" and local "insn".
3095 (emit_new_cond_insn): Likewise for return type.
3096 (conditionalize_block): Likewise for return type, param, and
3097 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
3098 "newinsn".
3099 (conditionalize_optimization): Likewise for local "insn".
3100 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
3101 using NEXT_INSN.
3102 * config/microblaze/microblaze.md: Add checked casts when using
3103 NEXT_INSN.
3104 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3105 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3106 and rtx_insn * "insn".
3107 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3108 checked cast when using NEXT_INSN on operands[2].
3109 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3110 local "insn" from rtx to rtx_insn *.
3111 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3112 Likewise.
3113 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3114 Add a checked cast when using NEXT_INSN on operands[1].
3115 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3116 rtx to rtx_insn *.
3117 (pa_output_cbranch): Likewise for final param.
3118 (pa_output_lbranch): Likewise for second param.
3119 (pa_output_bb): Likewise for third param.
3120 (pa_output_bvb): Likewise.
3121 (pa_output_dbra): Likewise for second param.
3122 (pa_output_movb): Likewise.
3123 (pa_output_parallel_movb): Likewise.
3124 (pa_output_parallel_addb): Likewise.
3125 (pa_output_millicode_call): Likewise for first param.
3126 (pa_output_mul_insn): Likewise for second param.
3127 (pa_output_div_insn): Likewise for third param.
3128 (pa_output_mod_insn): Likewise for second param.
3129 (pa_jump_in_call_delay): Likewise for param.
3130 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3131 (pa_output_div_insn): Likewise.
3132 (pa_output_mod_insn): Likewise.
3133 (pa_output_cbranch): Likewise.
3134 (pa_output_lbranch): Likewise.
3135 (pa_output_bb): Likewise.
3136 (pa_output_bvb): Likewise.
3137 (pa_output_dbra): Likewise.
3138 (pa_output_movb): Likewise.
3139 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3140 to simplify and for typesafety.
3141 (pa_output_call): Use method of rtx_sequence *.
3142 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3143 (pa_jump_in_call_delay): Likewise.
3144 (pa_output_parallel_movb): Likewise.
3145 (pa_output_parallel_addb): Likewise.
3146 (pa_following_call): Likewise.
3147 (pa_combine_instructions): Likewise for locals "anchor",
3148 "floater".
3149 (pa_can_combine_p): Likewise for params "anchor", "floater" and
3150 locals "start", "end".
3151 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3152 param "insn" and local "local_insn".
3153 (picochip_final_prescan_insn): Likewise for local "local_insn".
3154 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3155 local "insn".
3156 (uses_TOC): Likewise.
3157 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3158 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3159 splitting out to more tightly-scoped locals, 3 as rtx and one as
3160 rtx_insn *.
3161 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3162 to rtx_insn *.
3163 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3164 where needed.
3165 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3166 to rtx_insn *.
3167 (fixup_addr_diff_vecs): Likewise.
3168 (reg_unused_after): Likewise for param 2.
3169 (sh_can_redirect_branch): Likewise for both params.
3170 (check_use_sfunc_addr): Likewise for param 1.
3171 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3172 (find_barrier): Likewise for local "last_got".
3173 (gen_block_redirect): Likewise for return type, param "jump" and
3174 locals "prev", "scan", "next", "insn".
3175 (struct far_branch): Likewise for fields "near_label",
3176 "insert_place", "far_label".
3177 (gen_far_branch): Likewise for local "jump".
3178 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3179 "insn", "prev".
3180 (barrier_align): Likewise for param and for locals "prev", "x".
3181 Introduce local rtx_sequence * "prev_seq" and use insn method for
3182 typesafety and clarity.
3183 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3184 (get_dest_uid): Likewise for local "dest".
3185 (split_branches): Likewise for locals "next", "beyond", "label",
3186 "block", "far_label". Add checked casts when assigning to
3187 bp->far_label and "far_label".
3188 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3189 (sequence_insn_p): Likewise.
3190 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3191 more loop-scoped rtx "insn" when walking LABEL_REFS.
3192 (sh_can_redirect_branch): Strengthen both params from rtx to
3193 rtx_insn *.
3194 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3195 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3196 for clarity and typesafety.
3197 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3198 "insn" from rtx to rtx_insn *.
3199 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3200 when using NEXT_INSN on the CODE_LABEL in operands[2].
3201 (define_insn "casesi_worker_2"): Likewise.
3202 (define_insn "casesi_shift_media"): Likewise.
3203 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3204 operands[3].
3205 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3206 Strengthen field "insn" from rtx to rtx_insn *.
3207 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3208 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3209 param "start_insn" and local "start_insn".
3210 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3211 field "insn".
3212 (find_set_of_reg_bb): Likewise for param "insn".
3213 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3214 (trace_reg_uses): Likewise for param "start_insn".
3215 (sh_treg_combine::cbranch_trace): Likewise for field
3216 "cbranch_insn".
3217 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3218 param "insn".
3219 (sh_treg_combine::record_set_of_reg): Likewise for param
3220 "start_insn" and local "i".
3221 (sh_treg_combine::can_remove_cstore): Likewise for local
3222 "prev_insn".
3223 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3224 "insn".
3225 (sh_treg_combine::execute): Likewise for local "i".
3226 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3227 param.
3228 (sparc_check_64): Likewise for second param.
3229 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3230 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3231 dyn_cast, using its insn method for typesafety and clarity.
3232 (empty_delay_slot): Strengthen param "insn" from rtx to
3233 rtx_insn *.
3234 (set_extends): Likewise.
3235 (sparc_check_64): Likewise.
3236 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3237 for locals "seq", "last_insn".
3238 (combine_bnp): Likewise for param "insn".
3239 (xstormy16_reorg): Likewise for local "insn".
3240 * config/v850/v850.c (substitute_ep_register): Likewise for params
3241 "first_insn", "last_insn" and local "insn".
3242 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3243 elements of "regs" array, and local "insn".
3244 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3245 * final.c (final_sequence): Strengthen this global from rtx to
3246 rtx_sequence *.
3247 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3248 rtx_insn *.
3249 (final_scan_insn): Update assignment to "final_sequence" to be
3250 from "seq", the cast version of "body", for type-safety.
3251 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3252 "insns" from rtx to rtx_insn *.
3253 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3254 * genattr.c (main): When writing out generated insn-attr.h,
3255 strengthen params 1 and 3 of eligible_for_delay,
3256 eligible_for_annul_true, eligible_for_annul_false from rtx to
3257 rtx_insn *.
3258 * genattrtab.c (write_eligible_delay): Likewise when writing out
3259 generated insn-attrtab.c; also local "insn" the generated
3260 functions.
3261 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3262 to rtx_insn *.
3263 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3264 "start_label" from rtx to rtx_insn *.
3265 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3266 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3267 "insns" and local "insn".
3268 (validate_equiv_mem): Likewise for param "start" and local "insn".
3269 (memref_used_between_p): Likewise for params "start", "end" and
3270 local "insn".
3271 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3272 final param.
3273 * loop-doloop.c (doloop_optimize): Within region guarded by
3274 INSN_P (doloop_pat), introduce a new local rtx_insn *
3275 "doloop_insn" via a checked cast, and use it for typesafety,
3276 eventually writing the value back into doloop_pat.
3277 * output.h (final_sequence): Strengthen this global from rtx to
3278 rtx_sequence *.
3279 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3280 reintroducing "insn" as an rtx_insn * via a checked cast.
3281 Strengthen param "attempt" and local "new_insn"from rtx to
3282 rtx_insn *.
3283 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3284 to rtx_insn *.
3285 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3286 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3287 "p" in favor of more tightly-scoped replacements, sometimes rtx
3288 and sometimes rtx_insn *, as appropriate.
3289 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3290 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3291 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3292 local "trial" from rtx to rtx_insn *.
3293 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3294 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3295 rtx_sequence * and use methods for clarity and typesafety.
3296 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3297 rtx to rtx_insn *. Strenghten local "li" from rtx to
3298 rtx_insn_list * and use its methods for clarity and typesafety.
3299 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3300 to rtx_insn *.
3301 (steal_delay_list_from_fallthrough): Likewise.
3302 (try_merge_delay_insns): Likewise for param "thread" and locals
3303 "trial", "next_trial", "delay_insn".
3304 (redundant_insn): Likewise for param "target" and local "trial".
3305 (own_thread_p): Likewise for param "thread" and locals
3306 "active_insn", "insn".
3307 (get_label_before): Likewise for param "insn".
3308 (fill_simple_delay_slots): Likewise for local "new_label"; use
3309 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3310 (label_before_next_insn): Strengthen return type and local "insn"
3311 from rtx to rtx_insn *.
3312 (relax_delay_slots): Likewise for locals "other", "tmp".
3313 (make_return_insns): Likewise for param "first" and locals "insn",
3314 "jump_insn", "prev". Move declaration of "pat" to its assignment
3315 and strengthen from rtx to rtx_sequence *. Use its methods for
3316 clarity and typesafety.
3317 * rtlanal.c (no_labels_between_p): Strengthen params from
3318 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3319 rtx_insn *.
3320 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3321 from const_rtx to const rtx_insn *.
3322 (reg_set_between_p): Rename param "from_insn" to
3323 "uncast_from_insn", and reintroduce "from_insn" as a
3324 const rtx_insn * via a checked cast.
3325 (modified_between_p): Likewise for param "start" as "uncast_start".
3326 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3327 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3328 "tmp", head" from rtx to rtx_insn *.
3329 (recompute_rev_top_order): Likewise for local "insn".
3330 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3331 * store-motion.c (build_store_vectors): Likewise for local "insn".
3332 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3333 for clarity and typesafety.
3334 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3335 rtx to rtx_insn *.
3336 (computation_cost): Likewise for local "seq".
3337 (get_address_cost): Likewise.
3338
3339 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3340
3341 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3342 const rtx_insn *.
3343 (label_is_jump_target_p): Likewise for second param.
3344
3345 * rtlanal.c (tablejump_p): Likewise for param "insn".
3346 (label_is_jump_target_p): Likewise for param "jump_insn".
3347
3348 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3349
3350 * rtl.h (find_first_parameter_load): Strengthen return type and
3351 both params from rtx to rtx_insn *.
3352 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3353 both params and locals "before", "first_set" from rtx to
3354 rtx_insn *. Remove now-redundant cast.
3355 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3356
3357 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3358
3359 * rtl.h (find_last_value): Delete.
3360 * rtlanal.c (find_last_value): Delete.
3361
3362 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3363
3364 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3365 from rtx to rtx_insn *.
3366 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3367 rtx "note" with new local rtx_insn * "new_head" when calculating
3368 head insn of new basic block.
3369 * combine.c (combine_split_insns): Strengthen return type and local
3370 "ret" from rtx to rtx_insn *.
3371 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3372 (try_combine): Eliminate local "m_split", splitting into new
3373 locals "m_split_insn" and "m_split_pat".
3374 (find_split_point): Strengthen local "seq" from rtx into
3375 rtx_insn *.
3376 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3377 locals "label", "branch".
3378 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3379 for local "insn".
3380 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3381 * dse.c (note_add_store_info): Likewise for fields "first",
3382 "current".
3383 (note_add_store): Likewise for local "insn".
3384 (emit_inc_dec_insn_before): Likewise for locals "insn",
3385 "new_insn", "cur".
3386 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3387 (replace_read): Likewise for locals "insns", "this_insn".
3388 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3389 (notice_eh_throw): Likewise for param "insn".
3390 (before_next_cfi_note): Likewise for return type, param, and local
3391 "prev".
3392 (connect_traces): Likewise for local "note".
3393 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3394 (verify_rtl_sharing): Likewise.
3395 (unshare_all_rtl_in_chain): Likewise for param "insn".
3396 (get_first_nonnote_insn): Likewise for local "insn".
3397 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3398 "seq" and use its methods to clarify things.
3399 (next_insn): Strengthen return type from rtx to rtx_insn *.
3400 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3401 local rtx_insn * using a checked cast, dropping a checked cast
3402 made redundant by this change. Use a cast to and method of
3403 rtx_sequence to clarify the code.
3404 (previous_insn): Rename param "insn" to "uncast_insn" and
3405 reintroduce "insn" as a local rtx_insn * using a checked cast,
3406 dropping a checked cast made redundant by this change. Use a cast
3407 to and method of rtx_sequence to clarify the code.
3408 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3409 reintroduce "insn" as a local rtx_insn * using a checked cast,
3410 dropping a checked cast made redundant by this change.
3411 (next_nonnote_insn_bb): Likewise.
3412 (prev_nonnote_insn): Likewise.
3413 (prev_nonnote_insn_bb): Likewise.
3414 (next_nondebug_insn): Likewise.
3415 (prev_nondebug_insn): Likewise.
3416 (next_nonnote_nondebug_insn): Likewise.
3417 (prev_nonnote_nondebug_insn): Likewise.
3418 (next_real_insn): Likewise.
3419 (prev_real_insn): Likewise.
3420 (next_active_insn): Likewise.
3421 (prev_active_insn): Likewise.
3422 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3423 clarity.
3424 (prev_cc0_setter): Likewise.
3425 (try_split): Rename param "trial" to "uncast_trial" and
3426 reintroduce "insn" as a local rtx_insn * using a checked cast,
3427 dropping checked casts made redundant by this change.
3428 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3429 rtx to rtx_insn *.
3430 (remove_insn): Rename param "insn" to "uncast_insn" and
3431 reintroduce "insn" as a local rtx_insn * using a checked cast.
3432 (emit_pattern_after_setloc): Likewise for param "after", as
3433 "uncast_after".
3434 (emit_pattern_after): Likewise. Strengthen local "prev" from
3435 rtx to rtx_insn *.
3436 (emit_pattern_before_setloc): Rename param "before" to
3437 "uncast_before" and reintroduce "before" as a local rtx_insn *
3438 using a checked cast. Strengthen locals "first", "last" from
3439 rtx to rtx_insn *.
3440 (emit_pattern_before): Likewise rename/cast param "before" to
3441 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3442 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3443 "first" and local "insn" from rtx to rtx_insn *.
3444 (copy_reg_eh_region_note_backward): Likewise for param "last"
3445 and local "insn".
3446 * expr.c (fixup_args_size_notes): Rename param "last" to
3447 "uncast_last" and reintroduce "last" as a local rtx_insn *
3448 using a checked cast. Strengthen local "insn" from rtx to
3449 rtx_insn *.
3450 * function.c (set_insn_locations): Strengthen param "insn" from
3451 rtx to rtx_insn *.
3452 (record_insns): Likewise for param "insns" and local "tmp".
3453 (active_insn_between): Rename param "tail" to
3454 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3455 using a checked cast.
3456 (thread_prologue_and_epilogue_insns): Split out top-level local
3457 rtx "seq" into three different rtx_insn * locals. Strengthen
3458 local "prologue_seq" from rtx to rtx_insn *.
3459 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3460 from rtx to rtx_insn *.
3461 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3462 (priority): Likewise for locals "prev_first", "twin".
3463 (setup_insn_max_reg_pressure): Likewise for param "after".
3464 (sched_setup_bb_reg_pressure_info): Likewise.
3465 (no_real_insns_p): Strengthen params from const_rtx to
3466 const rtx_insn *.
3467 (schedule_block): Strengthen local "next_tail" from rtx to
3468 rtx_insn *.
3469 * ifcvt.c (find_active_insn_before): Strengthen return type and
3470 param "insn" from rtx to rtx_insn *.
3471 (find_active_insn_after): Likewise.
3472 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3473 (cond_exec_process_if_block): Likewise for locals "then_start",
3474 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3475 (noce_process_if_block): Likewise for local "jump".
3476 (merge_if_block): Likewise for two locals named "end".
3477 (cond_exec_find_if_block): Likewise for local "last_insn".
3478 * jump.c (delete_related_insns): Rename param "insn" to
3479 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3480 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3481 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3482 NULL.
3483 (split_reg): Likewise.
3484 * lra.c (lra_process_new_insns): Likewise.
3485 * modulo-sched.c (permute_partial_schedule): Strengthen param
3486 "last" from rtx to rtx_insn *.
3487 * optabs.c (add_equal_note): Likewise for param "insns" and local
3488 "last_insn".
3489 (expand_binop_directly): Add checked casts to rtx_insn * within
3490 NEXT_INSN (pat) uses.
3491 (expand_unop_direct): Likewise.
3492 (maybe_emit_unop_insn): Likewise.
3493 * recog.c (peep2_attempt): Strengthen locals "last",
3494 "before_try", "x" from rtx to rtx_insn *.
3495 * reorg.c (optimize_skip): Strengthen return type and local
3496 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3497 and locals "trial", "next_trial" from rtx to rtx_insn *.
3498 * resource.c (next_insn_no_annul): Strengthen return type and
3499 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3500 rtx_sequence to clarify the code.
3501 (mark_referenced_resources): Add a checked cast to rtx_insn *
3502 within PREV_INSN (x).
3503 (find_dead_or_set_registers): Strengthen return type, param
3504 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3505 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3506 to rtx_insn **.
3507 (mark_target_live_regs): Strengthen params "insns" and "target",
3508 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3509 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3510 the code.
3511 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3512 from rtx to rtx_insn *.
3513 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3514 from rtx to rtx_insn *.
3515 (copy_reg_eh_region_note_backward): Likewise.
3516 (unshare_all_rtl_in_chain): Likewise for sole param.
3517 (dump_rtl_slim): Strengthen second and third params from const_rtx
3518 to const rtx_insn *.
3519 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3520 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3521 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3522 "next_tail" from rtx to rtx_insn *.
3523 (begin_move_insn): Likewise for local "next".
3524 * sched-int.h (sched_free_deps): Likewise for first and second
3525 params.
3526 (no_real_insns_p): Strengthen both params from const_rtx to
3527 const rtx_insn *.
3528 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3529 rtx to rtx_insn *.
3530 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3531 "next_tail".
3532 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3533 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3534 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3535 rtx_insn *.
3536 (debug_rtl_slim): Strengthen params "first" and "last" from
3537 const_rtx to const rtx_insn *.
3538 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3539 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3540 (convert_to_simple_return): Likewise for param "returnjump".
3541 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3542 "prologue_seq".
3543 (convert_to_simple_return): Likewise for param "returnjump".
3544 * valtrack.c (propagate_for_debug): Likewise for params
3545 "insn", "last".
3546 * valtrack.h (propagate_for_debug): Likewise for second param.
3547
3548 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3549
3550 * output.h (insn_current_reference_address): Strengthen param
3551 from rtx to rtx_insn *.
3552 * final.c (insn_current_reference_address): Likewise.
3553
3554 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3555
3556 * basic-block.h (inside_basic_block_p): Strengthen param from
3557 const_rtx to const rtx_insn *.
3558 * cfgbuild.c (inside_basic_block_p): Likewise.
3559
3560 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3561
3562 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3563 rtx_insn *.
3564 (get_trace_info): Likewise for param "insn".
3565 (save_point_p): Likewise.
3566 (maybe_record_trace_start): Likewise for both params.
3567 (maybe_record_trace_start_abnormal): Likewise.
3568 (create_trace_edges): Likewise for sole param and for three of the
3569 locals named "lab".
3570 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3571 to rtx_insn *, and update a call to pat->element to pat->insn.
3572
3573 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3574
3575 * function.h (struct expr_status): Convert field "x_forced_labels"
3576 from rtx_expr_list * to rtx_insn_list *.
3577
3578 * cfgbuild.c (make_edges): Convert local "x" from an
3579 rtx_expr_list * to an rtx_insn_list *, replacing use of
3580 "element" method with "insn" method.
3581 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3582 * except.c (sjlj_emit_dispatch_table): Replace use of
3583 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3584 forced_labels.
3585 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3586 rtx_expr_list * to an rtx_insn_list *, replacing use of
3587 "element" method with "insn" method.
3588 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3589 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3590 rtx_insn *, adding a checked cast. Replace use of
3591 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3592 forced_labels.
3593 (expand_label): Likewise for local "label_r".
3594
3595 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3596
3597 * function.h (struct rtl_data): Convert field
3598 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3599 rtx_insn_list *.
3600 * rtl.h (remove_node_from_insn_list): New prototype.
3601
3602 * builtins.c (expand_builtin): When prepending to
3603 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3604 gen_rtx_EXPR_LIST.
3605 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3606 to rtx_insn_list *, and use its "insn" method rather than
3607 "element" method.
3608 * cfgrtl.c (delete_insn): Use new function
3609 remove_node_from_insn_list rather than
3610 remove_node_from_expr_list.
3611 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3612 to rtx_insn_list *, and use its "insn" method rather than
3613 "element" method.
3614 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3615 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3616 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3617 from remove_node_from_expr_list.
3618 * stmt.c (expand_label): When prepending to
3619 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3620 gen_rtx_EXPR_LIST.
3621
3622 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3623
3624 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3625 and "x_naked_return_label" from rtx to rtx_code_label *.
3626
3627 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3628
3629 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3630 (SET_NEXT_INSN): Likewise.
3631 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3632
3633 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3634 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3635 to split out the SEQUENCE from local "bundle", strengthening the
3636 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3637 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3638 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3639 and the type of the elements of the "slot" array from rtx to
3640 rtx_insn *.
3641 (reorg_split_calls): Likewise for locals "insn" and "next", and
3642 the type of the elements of the "slot" array.
3643
3644 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3645 array.
3646 (frv_function_prologue): Likewise for locals "insn", "next",
3647 "last_call".
3648 (frv_register_nop): Introduce a local "nop_insn" to be the
3649 rtx_insn * containing rtx "nop".
3650
3651 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3652 used as an insn and sometimes as a pattern, so rename it to
3653 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3654 using it where dealing with the core insn.
3655
3656 * config/picochip/picochip.c (reorder_var_tracking_notes):
3657 Strengthen locals "insn", "next", "last_insn", "queue",
3658 "next_queue", "prev" from rtx to rtx_insn *.
3659
3660 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3661 the second param is an rtx_insn ** rather than an rtx **.
3662 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3663 from rtx to rtx_sequence *, and introduce local named "sequence",
3664 using methods of rtx_sequence to clarify the code.
3665 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3666 use its methods.
3667 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3668 Rename param "after" to "uncast_after", reintroducing "after" as a
3669 local rtx_insn * with a checked cast.
3670 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3671 reintroducing "after" as a local rtx_insn * with a checked cast.
3672 Strengthen local "last" from rtx to rtx_insn * and remove the
3673 now-redundant checked casts.
3674 (copy_delay_slot_insn): Strengthen return type and param from rtx
3675 to rtx_insn *.
3676
3677 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3678 "last" from rtx to rtx_insn *.
3679
3680 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3681
3682 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3683 param from rtx to rtx_insn *.
3684
3685 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3686
3687 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3688 and local "insn" from rtx to rtx_insn *.
3689 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3690 (unfilled_slots_next): Likewise.
3691 (function_return_label): Strengthen from rtx to rtx_code_label *.
3692 (function_simple_return_label): Likewise.
3693 (first_active_target_insn): Strengthen return type and param from
3694 rtx to rtx_insn *.
3695 (find_end_label): Strengthen return type from rtx to
3696 rtx_code_label *; strengthen locals as appropriate.
3697 (emit_delay_sequence): Strengthen return type, param "insn" and
3698 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3699 and local "li" from rtx to rtx_insn_list *, using methods of
3700 rtx_insn_list for clarity and typesafety.
3701 (add_to_delay_list): Strengthen return type and param "insn" from
3702 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3703 rtx_insn_list * and use methods of rtx_insn_list.
3704 (delete_from_delay_slot): Strengthen return type, param "insn",
3705 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3706 Strengthen local "seq" from rtx to rtx_sequence *, and local
3707 "delay_list" from rtx to rtx_insn_list *, using methods of
3708 rtx_sequence for clarity and type-safety.
3709 (delete_scheduled_jump): Add checked cast when invoking
3710 delete_from_delay_slot. Strengthen local "trial" from rtx to
3711 rtx_insn *.
3712 (optimize_skip): Strengthen return type and local "delay_list"
3713 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3714 rtx_insn *.
3715 (steal_delay_list_from_target): Strengthen return type, param
3716 "delay_list" and local "new_delay_list" from rtx to
3717 rtx_insn_list *. Strengthen param "seq" from rtx to
3718 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3719 rtx_insn **.
3720 Split out local "temp" into multiple more-tightly scoped locals:
3721 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3722 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3723 Strengthen locals named "trial" from rtx to rtx_insn *.
3724 (steal_delay_list_from_fallthrough): Strengthen return type and
3725 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3726 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3727 Strengthen local "trial" from rtx to rtx_insn *.
3728 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3729 to rtx_insn_list * and use its methods. Strengthen local "pat"
3730 from rtx to rtx_sequence * and use its methods. Strengthen locals
3731 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3732 (get_label_before): Strengthen return type and local "label" from
3733 rtx to rtx_insn *.
3734 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3735 "next_trial", "next", prev". Strengthen local "delay_list" from
3736 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3737 rtx_insn **.
3738 (follow_jumps): Strengthen return type, param "label" and locals
3739 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3740 (fill_slots_from_thread): Strengthen return type, param
3741 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3742 "insn", "thread", "opposite_thread" and locals "new_thread",
3743 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3744 "sequence" from a checked cast to rtx_sequence so that we can call
3745 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3746 with an rtx_sequence *.
3747 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3748 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3749 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3750 (relax_delay_slots): Strengthen param "first" and locals "insn",
3751 "next", "trial", "delay_insn", "target_label" from rtx to
3752 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3753 Introduce a local "trial_seq" for PATTERN (trial) of type
3754 rtx_sequence *, in both cases using methods of rtx_sequence.
3755 (dbr_schedule): Strengthen param "first" and locals "insn",
3756 "next", "epilogue_insn" from rtx to rtx_insn *.
3757
3758 2014-08-28 Richard Biener <rguenther@suse.de>
3759
3760 PR tree-optimization/62283
3761 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3762 Do not peel loops for alignment where the vector loop likely
3763 doesn't run at least VF times.
3764
3765 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3766
3767 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3768 important_candidates. Consider all important candidates if
3769 IVS doesn't give any result. Remove check on ivs->upto.
3770 (try_add_cand_for): Call iv_ca_add_use only once.
3771
3772 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3773 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3774 Anna Tikhonova <anna.tikhonova@intel.com>
3775 Ilya Tocar <ilya.tocar@intel.com>
3776 Andrey Turetskiy <andrey.turetskiy@intel.com>
3777 Ilya Verbin <ilya.verbin@intel.com>
3778 Kirill Yukhin <kirill.yukhin@intel.com>
3779 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3780
3781 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3782 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3783 masking.
3784 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3785 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3786 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3787 (define_insn "*mul<mode>3"): Add EVEX version.
3788
3789 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3790 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3791 Anna Tikhonova <anna.tikhonova@intel.com>
3792 Ilya Tocar <ilya.tocar@intel.com>
3793 Andrey Turetskiy <andrey.turetskiy@intel.com>
3794 Ilya Verbin <ilya.verbin@intel.com>
3795 Kirill Yukhin <kirill.yukhin@intel.com>
3796 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3797
3798 * config/i386/sse.md
3799 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3800 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3801 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3802 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3803 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3804 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3805 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3806 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3807 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3808 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3809 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3810 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3811 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3812 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3813 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3814 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3815
3816 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3817 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3818 Anna Tikhonova <anna.tikhonova@intel.com>
3819 Ilya Tocar <ilya.tocar@intel.com>
3820 Andrey Turetskiy <andrey.turetskiy@intel.com>
3821 Ilya Verbin <ilya.verbin@intel.com>
3822 Kirill Yukhin <kirill.yukhin@intel.com>
3823 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3824
3825 * config/i386/sse.md
3826 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3827 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3828 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3829
3830 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3831 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3832 Anna Tikhonova <anna.tikhonova@intel.com>
3833 Ilya Tocar <ilya.tocar@intel.com>
3834 Andrey Turetskiy <andrey.turetskiy@intel.com>
3835 Ilya Verbin <ilya.verbin@intel.com>
3836 Kirill Yukhin <kirill.yukhin@intel.com>
3837 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3838
3839 * config/i386/sse.md
3840 (define_mode_iterator VI128_256): New.
3841 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3842
3843 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3845 Anna Tikhonova <anna.tikhonova@intel.com>
3846 Ilya Tocar <ilya.tocar@intel.com>
3847 Andrey Turetskiy <andrey.turetskiy@intel.com>
3848 Ilya Verbin <ilya.verbin@intel.com>
3849 Kirill Yukhin <kirill.yukhin@intel.com>
3850 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3851
3852 * config/i386/sse.md
3853 (define_mode_iterator VI8_256_512): New.
3854 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3855 Ditto.
3856 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3857 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3858 Ditto.
3859 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3860
3861 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3862
3863 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3864 pointer to the cumulative reloc value and return the value for
3865 this reloc instead.
3866 (compute_reloc_for_rtx): Take a const_rtx. Call
3867 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3868 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3869 for_each_rtx for the CONST case.
3870
3871 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3872
3873 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3874 (mark_constants_in_pattern): ...this new function to iterate over
3875 all the subrtxes.
3876 (mark_constants): Update accordingly.
3877
3878 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3879
3880 * varasm.c: Include rtl-iter.h.
3881 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3882 Remove the pointer to the cumulative hashval_t and just return
3883 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3884 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3885 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3886
3887 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3888
3889 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3890 Give real type of data parameter. Remove return value.
3891 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3892 to iterate over subrtxes.
3893
3894 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3895
3896 * var-tracking.c (use_narrower_mode_test): Turn from being a
3897 for_each_rtx callback to being a function that examines each
3898 subrtx itself.
3899 (adjust_mems): Update accordingly.
3900
3901 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3902
3903 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3904 callback to being a function that examines each subrtx itself.
3905 Remove handling of null rtxes.
3906 (add_uses): Update accordingly.
3907
3908 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3909
3910 * var-tracking.c: Include rtl-iter.h.
3911 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3912 to being a function that examines each subrtx itself.
3913 (use_type): Update accordingly.
3914
3915 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3916
3917 * store-motion.c: Include rtl-iter.h.
3918 (extract_mentioned_regs_1): Delete.
3919 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3920 for_each_rtx to iterate over subrtxes.
3921
3922 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3923
3924 * sel-sched.c: Include rtl-iter.h
3925 (count_occurrences_1): Delete.
3926 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3927 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3928
3929 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3930
3931 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3932 * rtlanal.c (tls_referenced_p_1): Delete.
3933 (tls_referenced_p): Take a const_rtx rather than an rtx.
3934 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3935
3936 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3937
3938 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3939 (for_each_inc_dec): Take an rtx rather than an rtx *.
3940 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3941 (cselib_record_sets): Likewise.
3942 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3943 (check_for_inc_dec): Likewise.
3944 * rtlanal.c (for_each_inc_dec_ops): Delete.
3945 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3946 rather than a pointer to the memory address. Replace
3947 for_each_inc_dec_ops argument with separate function and data
3948 arguments. Abort on non-autoinc addresses.
3949 (for_each_inc_dec_find_mem): Delete.
3950 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3951 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3952
3953 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3954
3955 * rtl.h (find_all_hard_regs): Declare.
3956 * rtlanal.c (find_all_hard_regs): New function.
3957 (record_hard_reg_uses_1): Delete.
3958 (record_hard_reg_uses): Use find_all_hard_regs.
3959
3960 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3961
3962 * rtl.h (replace_label_data): Delete.
3963 (replace_label): Take the old label, new label and update-nuses flag
3964 as direct arguments. Return void.
3965 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3966 * rtlanal.c (replace_label): Update interface as above. Handle
3967 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3968 iterator. Use FOR_EACH_SUBRTX_PTR.
3969
3970 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3971
3972 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3973 with const_rtx parameters.
3974 * varasm.c (get_pool_constant): Likewise.
3975 * rtlanal.c (rtx_referenced_p_1): Delete.
3976 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3977 Assert that the rtx we're looking for is nonnull. Allow searches
3978 for constant pool SYMBOL_REFs.
3979
3980 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3981
3982 * reload1.c: Include rtl-iter.h.
3983 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3984 to being a function that examines each subrtx itself.
3985 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3986
3987 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3988
3989 * regcprop.c (cprop_find_used_regs_1): Delete.
3990 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3991
3992 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3993
3994 * regcprop.c: Include rtl-iter.h.
3995 (kill_value): Take a const_rtx.
3996 (kill_autoinc_value): Turn from being a for_each_rtx callback
3997 to being a function that examines each subrtx itself.
3998 (copyprop_hardreg_forward_1): Update accordingly.
3999
4000 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4001
4002 * reg-stack.c: Include rtl-iter.h.
4003 (subst_stack_regs_in_debug_insn): Delete.
4004 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
4005 instead of for_each_rtx.
4006
4007 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4008
4009 * lower-subreg.c (find_decomposable_subregs): Turn from being
4010 a for_each_rtx callback to being a function that examines each
4011 subrtx itself. Remove handling of null rtxes.
4012 (decompose_multiword_subregs): Update accordingly.
4013
4014 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4015
4016 * lower-subreg.c (adjust_decomposed_uses): Delete.
4017 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
4018 Remove handling of null rtxes.
4019
4020 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4021
4022 * lower-subreg.c: Include rtl-iter.h.
4023 (resolve_subreg_use): Turn from being a for_each_rtx callback
4024 to being a function that examines each subrtx itself. Remove
4025 handling of null rtxes.
4026 (resolve_reg_notes, resolve_simple_move): Update accordingly.
4027 (decompose_multiword_subregs): Likewise.
4028
4029 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4030
4031 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
4032 to being a function that examines each subrtx itself.
4033 (simplify_using_condition, simplify_using_initial_values): Update
4034 accordingly.
4035
4036 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4037
4038 * loop-iv.c: Include rtl-iter.h.
4039 (find_single_def_src): New function.
4040 (replace_single_def_regs): Turn from being a for_each_rtx callback
4041 to being a function that examines each subrtx itself.
4042 (replace_in_expr, simplify_using_initial_values): Update accordingly.
4043
4044 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4045
4046 * jump.c (eh_returnjump_p_1): Delete.
4047 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4048 Remove handling of null rtxes.
4049
4050 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4051
4052 * jump.c: Include rtl-iter.h.
4053 (returnjump_p_1): Delete.
4054 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4055 Remove handling of null rtxes.
4056
4057 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4058
4059 * ira.c: Include rtl-iter.h.
4060 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
4061 to being a function that examines each subrtx itself. Remove
4062 handling of null rtxes.
4063 (update_equiv_regs): Update call accordingly.
4064
4065 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4066
4067 * fwprop.c: Include rtl-iter.h.
4068 (varying_mem_p): Turn from being a for_each_rtx callback to being
4069 a function that examines each subrtx itself.
4070 (propagate_rtx): Update accordingly.
4071
4072 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4073
4074 * function.c: Include rtl-iter.h
4075 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
4076 callback to being a function that examines each subrtx itself.
4077 Return the changed flag.
4078 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
4079 (instantiate_virtual_regs): Update calls accordingly.
4080
4081 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4082
4083 * final.c: Include rtl-iter.h.
4084 (mark_symbol_ref_as_used): Delete.
4085 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
4086 for_each_rtx.
4087
4088 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4089
4090 * emit-rtl.c: Include rtl-iter.h.
4091 (find_auto_inc): Turn from being a for_each_rtx callback to being
4092 a function that examines each subrtx itself. Assume the first operand
4093 to an RTX_AUTOINC is the automodified register.
4094 (try_split): Update call accordingly.
4095
4096 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4097
4098 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
4099 Return a bool, inverting the result so that 0/false means "not ok".
4100 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
4101 subrtxes of a CONST.
4102 (mem_loc_descriptor, add_const_value_attribute)
4103 (resolve_addr_in_expr): Update calls accordingly.
4104
4105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4106
4107 * dwarf2out.c: Include rtl-iter.h.
4108 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4109 Remove unused data parameter. Return a bool, inverting the result
4110 so that 0/false means "not ok".
4111 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
4112 instead of for_each_rtx.
4113
4114 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4115
4116 * dse.c: Include rtl-iter.h.
4117 (check_mem_read_rtx): Change void * parameter to real type.
4118 Remove return value.
4119 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
4120 for_each_rtx. Don't handle null rtxes.
4121
4122 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4123
4124 * df-problems.c: Include rtl-iter.h.
4125 (find_memory): Turn from being a for_each_rtx callback to being
4126 a function that examines each subrtx itself. Continue to look for
4127 volatile references even after a nonvolatile one has been found.
4128 (can_move_insns_across): Update calls accordingly.
4129
4130 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4131
4132 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4133 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4134 to iterate over subrtxes. Return a bool rather than an int.
4135
4136 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4137
4138 * ddg.c: Include rtl-iter.h.
4139 (mark_mem_use_1): Rename to...
4140 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
4141 instead of for_each_rtx.
4142 (mem_read_insn_p): Update accordingly.
4143
4144 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4145
4146 * cse.c (change_cc_mode_args): Delete.
4147 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4148 a function that examines each subrtx itself. Take the fields of
4149 change_cc_mode_args as argument and return void.
4150 (cse_change_cc_mode_insn): Update calls accordingly.
4151
4152 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4153
4154 * cse.c (is_dead_reg): Change argument to const_rtx.
4155 (dead_debug_insn_data): Delete.
4156 (is_dead_debug_insn): Expand commentary. Turn from being a
4157 for_each_rtx callback to being a function that examines
4158 each subrtx itself. Take the fields of dead_debug_insn_data
4159 as argument.
4160 (delete_trivially_dead_insns): Update call accordingly.
4161
4162 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4163
4164 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4165 being a for_each_rtx callback to being a function that examines
4166 each subrtx itself.
4167 (cse_extended_basic_block): Update call accordingly.
4168
4169 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4170
4171 * cse.c (check_dependence_data): Delete.
4172 (check_dependence): Change from being a for_each_rtx callback to being
4173 a function that examines all subrtxes itself. Don't handle null rtxes.
4174 (invalidate): Update call accordingly.
4175
4176 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4177
4178 * cse.c: Include rtl-iter.h.
4179 (approx_reg_cost_1): Delete.
4180 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4181 Don't handle null rtxes.
4182
4183 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4184
4185 * cfgcleanup.c: Include rtl-iter.h.
4186 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4187 to being a function that examines each subrtx itself.
4188 (thread_jump): Update accordingly.
4189
4190 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4191
4192 * combine-stack-adj.c: Include rtl-iter.h.
4193 (record_stack_refs_data): Delete.
4194 (record_stack_refs): Turn from being a for_each_rtx callback
4195 to being a function that examines each subrtx itself.
4196 Take a pointer to the reflist. Invert sense of return value
4197 so that true means success and false means failure. Don't
4198 handle null rtxes.
4199 (combine_stack_adjustments_for_block): Update accordingly.
4200
4201 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4202
4203 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4204 callback to a function that takes an rtx and returns a bool
4205 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4206 for_each_rtx.
4207
4208 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4209
4210 * combine.c: Include rtl-iter.h.
4211 (unmentioned_reg_p_1): Delete.
4212 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4213 Don't handle null rtxes.
4214
4215 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4216
4217 * calls.c: Include rtl-iter.h.
4218 (internal_arg_pointer_based_exp_1): Delete.
4219 (internal_arg_pointer_based_exp): Take a const_rtx.
4220 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4221
4222 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4223
4224 * caller-save.c: Include rtl-iter.h.
4225 (add_used_regs_1): Delete.
4226 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4227 to iterate over subrtxes. Assert that any remaining pseudos
4228 have been spilled.
4229
4230 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4231
4232 * bt-load.c: Include rtl-iter.h.
4233 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4234 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4235 to iterate over subrtxes.
4236 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4237 find_btr_use rather than btr_referenced_p.
4238
4239 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4240
4241 * alias.c: Include rtl-iter.h.
4242 (refs_newer_value_cb): Delete.
4243 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4244
4245 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4246
4247 * rtl-iter.h: New file.
4248 * rtlanal.c: Include it.
4249 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4250 (generic_subrtx_iterator <T>::add_single_to_queue)
4251 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4252 (generic_subrtx_iterator <T>::free_array): New functions.
4253 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4254 (generic_subrtx_iterator <const_rtx_accessor>)
4255 (generic_subrtx_iterator <rtx_var_accessor>
4256 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4257 (setup_reg_subrtx_bounds): New function.
4258 (init_rtlanal): Call it.
4259
4260 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4261
4262 PR target/62261
4263 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4264 TARGET_SHMEDIA.
4265 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4266
4267 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4268
4269 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4270
4271 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4272
4273 * rtl.h (JUMP_LABEL_AS_INSN): New.
4274
4275 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4276
4277 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4278 rtx_expr_list **.
4279 (alloc_EXPR_LIST): Strengthen return type from rtx to
4280 rtx_expr_list *.
4281 (remove_free_EXPR_LIST_node): Likewise for param.
4282 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4283 from rtx to rtx_expr_list *.
4284 * sched-int.h (struct deps_desc): Strengthen fields
4285 "pending_read_mems" and "pending_write_mems" from rtx to
4286 rtx_expr_list *.
4287
4288 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4289 rtx to rtx_expr_list *.
4290 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4291 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4292 rtx_expr_list **.
4293 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4294 from rtx to rtx_expr_list *.
4295 * loop-iv.c (simplify_using_initial_values): Strengthen local
4296 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4297 "pnote_next" from rtx * to rtx_expr_list **.
4298 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4299 param "exprp" from rtx * to rtx_expr_list **.
4300 (add_insn_mem_dependence): Strengthen local "mem_list" from
4301 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4302 to rtx_expr_list *.
4303 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4304 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4305 param "old_mems_p" from rtx * to rtx_expr_list **.
4306 * var-tracking.c (struct adjust_mem_data): Strengthen field
4307 "side_effects" from rtx to rtx_expr_list *.
4308 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4309 rtx_expr_list *.
4310 (prepare_call_arguments): Likewise.
4311
4312 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4313
4314 * function.h (struct rtl_data): Strengthen field
4315 "x_stack_slot_list" from rtx to rtx_expr_list *.
4316
4317 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4318 when assigning to stack_slot_list.
4319
4320 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4321
4322 * function.h (struct rtl_data): Strengthen field
4323 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4324 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4325 rtx * to rtx_expr_list **.
4326
4327 * cfgbuild.c (make_edges): In loop over
4328 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4329 rtx_expr_list *, and use methods of the latter class to clarify
4330 the code.
4331 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4332 rtx_expr_list *, and use methods of the latter class to clarify
4333 the code.
4334 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4335 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4336 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4337 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4338 to rtx_expr_list *. Use methods of the latter class to clarify
4339 the code.
4340
4341 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4342
4343 * function.h (struct expr_status): Strengthen field
4344 "x_forced_labels" from rtx to rtx_expr_list *.
4345
4346 * cfgbuild.c (make_edges): Split local "x" into two locals,
4347 strengthening one from rtx to rtx_expr_list *, and using methods
4348 of said class.
4349 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4350 loop over forced_labels, introduce strengthen it from rtx to
4351 rtx_expr_list *, using methods to clarify the code.
4352 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4353 to rtx_expr_list *, using methods of said class to clarify the
4354 code.
4355 * reload1.c (set_initial_label_offsets): Split local "x" into two
4356 per-loop variables, strengthening the first from rtx to
4357 rtx_expr_list * and using methods.
4358
4359 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4360
4361 * coretypes.h (class rtx_expr_list): Add forward declaration.
4362 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4363 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4364 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4365 invariant: GET_CODE (X) == EXPR_LIST.
4366 (is_a_helper <rtx_expr_list *>::test): New.
4367 (rtx_expr_list::next): New.
4368 (rtx_expr_list::element): New.
4369 (gen_rtx_EXPR_LIST): New.
4370
4371 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4372
4373 * varasm.c (mark_constants): Convert a GET_CODE check into a
4374 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4375 Use methods of rtx_sequence to clarify the code.
4376
4377 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4378
4379 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4380 local "seq" via a checked cast, and use methods of rtx_sequence
4381 to simplify the code.
4382
4383 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4384
4385 * resource.c (mark_referenced_resources): Strengthen local
4386 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4387 using methods of rtx_sequence to clarify the code.
4388 (find_dead_or_set_registers): Within the switch statement, convert
4389 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4390 the JUMP_P handling, introduce another local "seq", adding a
4391 checked cast to rtx_sequence *. In both cases, use methods of
4392 rtx_sequence to clarify the code.
4393 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4394 via a checked cast, and use methods of rtx_sequence to simplify
4395 the code.
4396
4397 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4398
4399 * reorg.c (redundant_insn): In two places in the function, replace
4400 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4401 usings methods of rtx_sequence to clarify the code.
4402
4403 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4404
4405 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4406 local "seq" with a checked cast, and use methods of rtx_sequence
4407 to clarify the code.
4408
4409 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4410
4411 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4412 with a checked cast, in the region for where we know it's a
4413 SEQUENCE. Use methods of rtx_sequence.
4414
4415 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4416
4417 * final.c (get_attr_length_1): Replace GET_CODE check with a
4418 dyn_cast, introducing local "seq" and the use of methods of
4419 rtx_sequence.
4420 (shorten_branches): Likewise, introducing local "body_seq".
4421 Strengthen local "inner_insn" from rtx to rtx_insn *.
4422 (reemit_insn_block_notes): Replace GET_CODE check with a
4423 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4424 Use methods of rtx_sequence.
4425 (final_scan_insn): Likewise, introducing local "seq" for when
4426 "body" is known to be a SEQUENCE, using its methods.
4427
4428 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4429
4430 * except.c (can_throw_external): Strengthen local "seq" from rtx
4431 to rtx_sequence *. Use methods of rtx_sequence.
4432 (insn_nothrow_p): Likewise.
4433
4434 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4435
4436 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4437 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4438 Use methods of rtx_sequence.
4439 (scan_trace): Likewise for local "pat".
4440
4441 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4442
4443 * coretypes.h (class rtx_sequence): Add forward declaration.
4444 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4445 invariant: GET_CODE (X) == SEQUENCE.
4446 (is_a_helper <rtx_sequence *>::test): New.
4447 (is_a_helper <const rtx_sequence *>::test): New.
4448 (rtx_sequence::len): New.
4449 (rtx_sequence::element): New.
4450 (rtx_sequence::insn): New.
4451
4452 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4453
4454 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4455 rtx_insn_list **.
4456 (alloc_INSN_LIST): Strengthen return type from rtx to
4457 rtx_insn_list *.
4458 (copy_INSN_LIST): Likewise for return type and param.
4459 (concat_INSN_LIST): Likewise for both params and return type.
4460 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4461 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4462 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4463 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4464
4465 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4466 "implicit_sets", "control_uses", "clobbers" from rtx to
4467 rtx_insn_list *.
4468 (struct deps_desc): Likewise for fields "pending_read_insns",
4469 "pending_write_insns", "pending_jump_insns",
4470 "last_pending_memory_flush", "last_function_call",
4471 "last_function_call_may_noreturn", "sched_before_next_call",
4472 "sched_before_next_jump".
4473 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4474 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4475
4476 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4477 from rtx to rtx_insn_list *.
4478 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4479 rtx_insn_list *.
4480
4481 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4482 to rtx_insn_list **.
4483 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4484 rtx_insn_list *.
4485 (queue_insn): Likewise for local "link".
4486 (struct haifa_saved_data): Strengthen field "insn_queue" from
4487 rtx * to rtx_insn_list **.
4488 (save_backtrack_point): Update allocation of save->insn_queue to
4489 reflect the strengthening of elements from rtx to rtx_insn_list *.
4490 (queue_to_ready): Strengthen local "link" from rtx to
4491 rtx_insn_list *; use methods "next" and "insn" when traversing the
4492 list.
4493 (early_queue_to_ready): Likewise for locals "link", "next_link",
4494 "prev_link".
4495 (schedule_block): Update allocation of insn_queue to reflect the
4496 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4497 local "link" from rtx to rtx_insn_list *, and use methods when
4498 working it.
4499 (add_to_speculative_block): Strengthen locals "twins" and
4500 "next_node" from rtx to rtx_insn_list *, and use methods when
4501 working with them. Strengthen local "twin" from rtx to
4502 rtx_insn *, eliminating a checked cast.
4503 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4504 from rtx to rtx_insn_list *, and use methods when working with
4505 them.
4506
4507 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4508 from rtx to rtx_insn_list *, adding a checked cast.
4509 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4510 rtx_insn_list **.
4511 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4512 "newlink" from rtx to rtx_insn_list *. Strengthen local
4513 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4514 from rtx to rtx_insn *.
4515 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4516 from rtx to rtx_insn_list *. Use methods of the latter class.
4517 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4518 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4519 (remove_free_INSN_LIST_node): Strengthen return type and local
4520 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4521 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4522 rtx_insn_list *, using "insn" method.
4523
4524 * sched-deps.c (add_dependence_list): Strengthen param "list"
4525 from rtx to rtx_insn_list *, and use methods when working with it.
4526 (add_dependence_list_and_free): Strengthen param "listp" from
4527 rtx * to rtx_insn_list **.
4528 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4529 to rtx_insn_list **, and use methods when working with *listp.
4530 (remove_from_both_dependence_lists): Strengthen param "listp" from
4531 rtx * to rtx_insn_list **
4532 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4533 to rtx_insn_list **. Eliminate local "link", in favor of two new
4534 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4535 respectively.
4536 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4537 by introducing local "cond_deps".
4538 (remove_from_deps): Strengthen param "insn" from rtx to
4539 rtx_insn *.
4540
4541 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4542 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4543 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4544 Use methods of rtx_insn_list.
4545
4546 * store-motion.c (struct st_expr): Strengthen fields
4547 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4548 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4549 rtx_insn_list *.
4550 (find_moveable_store): Split out "tmp" into multiple more-tightly
4551 scoped locals. Use methods of rtx_insn_list *.
4552 (compute_store_table): Strengthen local "tmp" from rtx to
4553 rtx_insn *. Use methods of rtx_insn_list *.
4554
4555 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4556
4557 * coretypes.h (class rtx_insn_list): Add forward declaration.
4558 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4559 (is_a_helper <rtx_insn_list *>::test): New.
4560 (rtx_insn_list::next): New.
4561 (rtx_insn_list::insn): New.
4562 (gen_rtx_INSN_LIST): Add prototype.
4563 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4564 * gengenrtl.c (special_rtx): Add INSN_LIST.
4565
4566 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4567
4568 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4569 "prev" from rtx to rtx_insn *.
4570
4571 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4572
4573 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4574 functions. Require merely an rtx for now, not an rtx_insn *.
4575 (BLOCK_FOR_INSN): Likewise.
4576 (INSN_LOCATION): Likewise.
4577 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4578
4579 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4580
4581 * rtl.h (PATTERN): Convert this macro into a pair of inline
4582 functions, for now, requiring const_rtx and rtx.
4583
4584 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4585
4586 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4587 rtx_insn *.
4588 (final_postscan_insn): Likewise.
4589 (adjust_cost): Likewise.
4590 (adjust_priority): Likewise.
4591 (variable_issue): Likewise.
4592 (macro_fusion_pair_p): Likewise.
4593 (dfa_post_cycle_insn): Likewise.
4594 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4595 (first_cycle_multipass_issue): Likewise.
4596 (dfa_new_cycle): Likewise.
4597 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4598 (speculate_insn): Likewise for param "insn".
4599 (gen_spec_check): Likewise for params "insn" and "label".
4600 (get_insn_spec_ds): Likewise for param "insn".
4601 (get_insn_checked_ds): Likewise.
4602 (dispatch_do): Likewise.
4603 (dispatch): Likewise.
4604 (cannot_copy_insn_p): Likewise.
4605 (invalid_within_doloop): Likewise.
4606 (legitimate_combined_insn): Likewise.
4607 (needed): Likewise.
4608 (after): Likewise.
4609
4610 * doc/tm.texi: Automatically updated to reflect changes to
4611 target.def.
4612
4613 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4614 working with insn.
4615 (schedule_block): Likewise.
4616 (sched_init): Likewise.
4617 (sched_speculate_insn): Strengthen param "insn" from rtx to
4618 rtx_insn *.
4619 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4620 working with insn.
4621 * hooks.c (hook_bool_rtx_true): Rename to...
4622 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4623 rtx to rtx_insn *.
4624 (hook_constcharptr_const_rtx_null): Rename to...
4625 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4626 first param from const_rtx to const rtx_insn *.
4627 (hook_bool_rtx_int_false): Rename to...
4628 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4629 param from rtx to rtx_insn *.
4630 (hook_void_rtx_int): Rename to...
4631 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4632 rtx to rtx_insn *.
4633
4634 * hooks.h (hook_bool_rtx_true): Rename to...
4635 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4636 rtx to rtx_insn *.
4637 (hook_bool_rtx_int_false): Rename to...
4638 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4639 param from rtx to rtx_insn *.
4640 (hook_void_rtx_int): Rename to...
4641 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4642 rtx to rtx_insn *.
4643 (hook_constcharptr_const_rtx_null): Rename to...
4644 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4645 first param from const_rtx to const rtx_insn *.
4646
4647 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4648 and local "prev" from rtx to rtx_insn *.
4649
4650 * sched-int.h (sched_speculate_insn): Strengthen first param from
4651 rtx to rtx_insn *.
4652
4653 * sel-sched.c (create_speculation_check): Likewise for local "label".
4654 * targhooks.c (default_invalid_within_doloop): Strengthen param
4655 "insn" from const_rtx to const rtx_insn *.
4656 * targhooks.h (default_invalid_within_doloop): Strengthen param
4657 from const_rtx to const rtx_insn *.
4658
4659 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4660 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4661
4662 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4663 "insn".
4664 (arc_invalid_within_doloop): Likewise, with const.
4665
4666 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4667 (arm_cannot_copy_insn_p): Likewise for param "insn".
4668 (arm_unwind_emit): Likewise.
4669
4670 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4671 "dep_insn".
4672
4673 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4674 (c6x_variable_issue): Likewise. Removed now-redundant checked
4675 cast.
4676 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4677
4678 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4679 Likewise for param "insn".
4680 (epiphany_mode_after): Likewise.
4681 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4682 params "insn", "dep_insn".
4683 (epiphany_mode_needed): Likewise for param "insn".
4684 (epiphany_mode_after): Likewise.
4685
4686 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4687 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4688 (ix86_avx_u128_mode_needed): Likewise.
4689 (ix86_i387_mode_needed): Likewise.
4690 (ix86_mode_needed): Likewise.
4691 (ix86_avx_u128_mode_after): Likewise.
4692 (ix86_mode_after): Likewise.
4693 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4694 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4695 (ix86_adjust_priority): Likewise for param "insn".
4696 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4697 (do_dispatch): Likewise.
4698 (has_dispatch): Likewise.
4699 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4700
4701 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4702 reflect renaming of default hook implementation from
4703 hook_constcharptr_const_rtx_null to
4704 hook_constcharptr_const_rtx_insn_null.
4705 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4706 rtx to rtx_insn *.
4707 (ia64_variable_issue): Likewise for param "insn".
4708 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4709 (ia64_dfa_new_cycle): Likewise.
4710 (ia64_get_insn_spec_ds): Likewise.
4711 (ia64_get_insn_checked_ds): Likewise.
4712 (ia64_speculate_insn): Likewise.
4713 (ia64_gen_spec_check): Likewise for params "insn", "label".
4714 (ia64_asm_unwind_emit): Likewise for param "insn".
4715
4716 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4717
4718 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4719 "insn", "def_insn".
4720 (m68k_sched_variable_issue): Likewise for param "insn".
4721
4722 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4723 "def_insn".
4724
4725 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4726 Likewise for params "insn", "dep".
4727
4728 * config/mips/mips.c (mips_adjust_cost): Likewise.
4729 (mips_variable_issue): Likewise for param "insn".
4730 (mips_final_postscan_insn): Likewise.
4731
4732 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4733 for params "insn", "dep".
4734
4735 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4736 "dep_insn".
4737 (pa_adjust_priority): Likewise for param "insn".
4738
4739 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4740 Likewise for params "insn", "dep_insn".
4741
4742 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4743 param "insn".
4744 (rs6000_variable_issue): Likewise.
4745 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4746 (rs6000_debug_adjust_cost): Likewise.
4747 (rs6000_adjust_priority): Likewise for param "insn".
4748 (rs6000_use_sched_lookahead_guard): Likewise.
4749 (get_next_active_insn): Likewise for return type and both params.
4750 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4751 and locals "insn", "next_insn".
4752 (pad_groups): Likewise.
4753
4754 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4755 "insn".
4756 (s390_cannot_copy_insn_p): Likewise.
4757 (s390_sched_variable_issue): Likewise for third param, eliminating
4758 checked cast.
4759 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4760 default hook implementation from hook_constcharptr_const_rtx_null
4761 to hook_constcharptr_const_rtx_insn_null.
4762
4763 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4764 from rtx to rtx_insn *.
4765 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4766 (sh_variable_issue): Likewise for param "insn".
4767 (sh_dfa_new_cycle): Likewise.
4768 (sh_mode_needed): Likewise.
4769 (sh_mode_after): Likewise.
4770
4771 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4772 params "insn", "dep_insn".
4773 (hypersparc_adjust_cost): Likewise.
4774 (sparc_adjust_cost): Likewise.
4775
4776 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4777 param, eliminated checked cast.
4778 (spu_sched_adjust_cost): Likewise for first and third params.
4779
4780 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4781 params "insn" and "dep_insn" from rtx to rtx_insn *.
4782
4783 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4784
4785 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4786
4787 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4788 (set_is_load_p): ...this, updating to work on a SET pattern rather
4789 than an insn.
4790 (is_store_insn): Rename to...
4791 (set_is_store_p): ...this, updating to work on a SET pattern
4792 rather than an insn.
4793 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4794 top of function to where it is needed. Rewrite the bogus
4795 condition that checks for "insn" and "dep" being PARALLEL to
4796 instead use single_set, introducing locals "insn_set" and
4797 "dep_set". Given that we only ever returned "cost" for a non-pair
4798 of SETs, bail out early if we don't have a pair of SET.
4799 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4800 use the new locals "insn_set" and "dep_set", and update calls to
4801 is_load_insn and is_store_insn to be calls to set_is_load_p and
4802 set_is_store_p.
4803
4804 2014-08-27 Guozhi Wei <carrot@google.com>
4805
4806 PR target/62262
4807 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4808 amount before using it.
4809
4810 2014-08-27 Richard Biener <rguenther@suse.de>
4811
4812 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4813 get_maxval_strlen inside a more useful API.
4814 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4815 (gimple_fold_builtin): ... caller.
4816 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4817 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4818 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4819 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4820 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4821 gimple_fold_builtin_sprintf): Adjust to compute maxval
4822 themselves.
4823
4824 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4825
4826 PR other/62248
4827 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4828
4829 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4830 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4831 Anna Tikhonova <anna.tikhonova@intel.com>
4832 Ilya Tocar <ilya.tocar@intel.com>
4833 Andrey Turetskiy <andrey.turetskiy@intel.com>
4834 Ilya Verbin <ilya.verbin@intel.com>
4835 Kirill Yukhin <kirill.yukhin@intel.com>
4836 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4837
4838 * config/i386/sse.md
4839 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4840 Use `concat_tg_mode' attribute to determine asm register size.
4841
4842 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4843 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4844 Anna Tikhonova <anna.tikhonova@intel.com>
4845 Ilya Tocar <ilya.tocar@intel.com>
4846 Andrey Turetskiy <andrey.turetskiy@intel.com>
4847 Ilya Verbin <ilya.verbin@intel.com>
4848 Kirill Yukhin <kirill.yukhin@intel.com>
4849 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4850
4851 * config/i386/sse.md
4852 (define_mode_iterator VI48_AVX512VL): New.
4853 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4854 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4855 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4856 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4857 with VI1): Change mode iterator.
4858 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4859 with VI_ULOADSTORE_BW_AVX512VL): New.
4860 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4861 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4862 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4863 with VI1): Change mode iterator.
4864 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4865 with VI_ULOADSTORE_BW_AVX512VL): New.
4866 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4867 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4868 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4869 with VI1): Change mode iterator.
4870 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4871 with VI_ULOADSTORE_BW_AVX512VL): New.
4872 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4873 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4874 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4875 (define_insn "<avx512>_storedqu<mode>_mask" with
4876 VI48_AVX512VL): New.
4877 (define_insn "<avx512>_storedqu<mode>_mask" with
4878 VI12_AVX512VL): Ditto.
4879
4880 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4882 Anna Tikhonova <anna.tikhonova@intel.com>
4883 Ilya Tocar <ilya.tocar@intel.com>
4884 Andrey Turetskiy <andrey.turetskiy@intel.com>
4885 Ilya Verbin <ilya.verbin@intel.com>
4886 Kirill Yukhin <kirill.yukhin@intel.com>
4887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4888
4889 * config/i386/sse.md
4890 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4891 (define_mode_iterator VI48_AVX512BW): New.
4892 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4893 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4894 with VI48_AVX2_48_AVX512F): New.
4895 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4896 with VI2_AVX512VL): Ditto.
4897
4898 2014-08-27 Richard Biener <rguenther@suse.de>
4899
4900 PR middle-end/62239
4901 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4902 (fold_builtin_3): Do not fold strcat_chk here.
4903 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4904 from builtins.c.
4905 (gimple_fold_builtin): Fold strcat_chk here.
4906
4907 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4908
4909 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4910 * dwarf2out.c (dwarf2out_decl): Make static.
4911
4912 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4913
4914 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4915
4916 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4917
4918 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4919 from rtx to rtx_insn *.
4920 (cselib_lookup_from_insn): Likewise for final param.
4921 (cselib_subst_to_values_from_insn): Likewise.
4922 (cselib_add_permanent_equiv): Likewise.
4923
4924 * cselib.c (cselib_current_insn): Likewise for this variable.
4925 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4926 (cselib_lookup_from_insn): Likewise.
4927 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4928 "save_cselib_current_insn".
4929 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4930
4931 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4932 from rtx to rtx_insn *.
4933
4934 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4935
4936 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4937 rtx_insn *.
4938
4939 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4940
4941 * df.h (df_dump_insn_problem_function): Strengthen first param of
4942 this callback from const_rtx to const rtx_insn *.
4943 (struct df_insn_info): Strengthen field "insn" from rtx to
4944 rtx_insn *.
4945 (DF_REF_INSN): Eliminate this function, reinstating the older
4946 macro definition.
4947 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4948 (df_reg_defined): Likewise.
4949 (df_find_use): Likewise.
4950 (df_reg_used): Likewise.
4951 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4952 const rtx_insn *.
4953 (df_dump_insn_bottom): Likewise.
4954 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4955 (df_insn_debug_regno): Likewise.
4956 (debug_df_insn): Likewise.
4957 (df_rd_simulate_one_insn): Likewise for param 2.
4958 (df_word_lr_simulate_defs): Likewise for param 1.
4959 (df_word_lr_simulate_uses): Likewise.
4960 (df_md_simulate_one_insn): Likewise for param 2.
4961 (df_simulate_find_noclobber_defs): Likewise for param 1.
4962 (df_simulate_find_defs): Likewise.
4963 (df_simulate_defs): Likewise.
4964 (df_simulate_uses): Likewise.
4965 (df_simulate_one_insn_backwards): Likewise for param 2.
4966 (df_simulate_one_insn_forwards): Likewise.
4967 (df_uses_create): Likewise for param 2.
4968 (df_insn_create_insn_record): Likewise for param 1.
4969 (df_insn_delete): Likewise.
4970 (df_insn_rescan): Likewise.
4971 (df_insn_rescan_debug_internal): Likewise.
4972 (df_insn_change_bb): Likewise.
4973 (df_notes_rescan): Likewise.
4974 * rtl.h (remove_death): Likewise for param 2.
4975 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4976 const rtx_insn *.
4977 * sched-int.h (reemit_notes): Strengthen param from rtx to
4978 rtx_insn *.
4979 * valtrack.h (propagate_for_debug): Likewise for param 1.
4980
4981 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4982 local "tmp_rtx" from const_rtx to const rtx_insn *.
4983 * combine.c (remove_death): Strengthen param "insn" from rtx to
4984 rtx_insn *.
4985 (move_deaths): Likewise for local "where_dead".
4986 * cse.c (delete_trivially_dead_insns): Introduce local
4987 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4988 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4989 rtx_insn *.
4990 (df_reg_defined): Likewise.
4991 (df_find_use): Likewise.
4992 (df_reg_used): Likewise.
4993 (df_dump_insn_problem_data): Strengthen param "insn" from
4994 const_rtx to const rtx_insn *.
4995 (df_dump_insn_top): Likewise.
4996 (df_dump_insn_bottom): Likewise.
4997 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4998 (df_insn_debug_regno): Likewise.
4999 (debug_df_insn): Likewise.
5000 (DF_REF_INSN): Delete.
5001 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
5002 from rtx to rtx_insn *.
5003 (df_chain_insn_top_dump): Strengthen param "insn" from
5004 const_rtx to const rtx_insn *.
5005 (df_chain_insn_bottom_dump): Likewise.
5006 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
5007 rtx_insn *.
5008 (df_word_lr_simulate_uses): Likewise.
5009 (df_print_note): Likewise.
5010 (df_remove_dead_and_unused_notes): Likewise.
5011 (df_set_unused_notes_for_mw): Likewise.
5012 (df_set_dead_notes_for_mw): Likewise.
5013 (df_create_unused_note): Likewise.
5014 (df_simulate_find_defs): Likewise.
5015 (df_simulate_find_uses): Likewise.
5016 (df_simulate_find_noclobber_defs): Likewise.
5017 (df_simulate_defs): Likewise.
5018 (df_simulate_uses): Likewise.
5019 (df_simulate_one_insn_backwards): Likewise.
5020 (df_simulate_one_insn_forwards): Likewise.
5021 (df_md_simulate_one_insn): Likewise.
5022 * df-scan.c (df_uses_create): Likewise.
5023 (df_insn_create_insn_record): Likewise.
5024 (df_insn_delete): Likewise.
5025 (df_insn_rescan): Likewise.
5026 (df_insn_rescan_debug_internal): Likewise.
5027 (df_insn_change_bb): Likewise.
5028 (df_notes_rescan): Likewise.
5029 (df_refs_add_to_chains): Likewise.
5030 (df_insn_refs_verify): Likewise.
5031 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
5032 when invoking df_insn_delete.
5033 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
5034 (set_unique_reg_note): Add checked cast.
5035 * final.c (cleanup_subreg_operands): Likewise.
5036 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
5037 "insn" from rtx to rtx_insn *.
5038 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
5039 "last" from rtx to rtx_insn *.
5040 * ira-emit.c (change_regs_in_insn): New function.
5041 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
5042 Invoke change_regs_in_insn rather than change_regs.
5043 * ira.c (update_equiv_regs): Strengthen locals "insn",
5044 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
5045 for_each_rtx_in_insn rather than for_each_rtx.
5046 * recog.c (confirm_change_group): Add checked casts.
5047 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
5048 Add checked cast.
5049 (peep2_fill_buffer): Add checked cast.
5050 * rtlanal.c (remove_note): Likewise.
5051 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
5052 locals "next" "end" from rtx to rtx_insn *.
5053
5054 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5055
5056 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
5057 to rtx_insn *.
5058 (struct reg_use_data): Likewise for field "insn".
5059 (insn_cost): Likewise for param.
5060 (real_insn_for_shadow): Likewise for return type and param.
5061 (increase_insn_priority): Likewise for param 1.
5062 (debug_dependencies): Likewise for both params.
5063
5064 * haifa-sched.c (insn_delay): Likewise for param "insn".
5065 (real_insn_for_shadow): Likewise for return type and param "insn".
5066 (update_insn_after_change): Likewise for param "insn".
5067 (recompute_todo_spec): Likewise for param "next" and locals "pro",
5068 "other".
5069 (insn_cost): Likewise for param "insn".
5070 (increase_insn_priority): Likewise.
5071 (calculate_reg_deaths): Likewise.
5072 (setup_insn_reg_pressure_info): Likewise.
5073 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
5074 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
5075 (model_recompute): Likewise.
5076 (must_restore_pattern_p): Likewise for param "next".
5077 (model_excess_cost): Likewise for param "insn".
5078 (queue_remove): Likewise.
5079 (adjust_priority): Likewise for param "prev".
5080 (update_register_pressure): Likewise for param "insn".
5081 (setup_insn_max_reg_pressure): Likewise for local "insn".
5082 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
5083 (model_add_to_schedule): Likewise.
5084 (model_reset_queue_indices): Likewise for local "insn".
5085 (unschedule_insns_until): Strengthen local "recompute_vec" from
5086 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
5087 "con" from rtx to rtx_insn *.
5088 (restore_last_backtrack_point): Likewise for both locals "x". Add
5089 checked casts.
5090 (estimate_insn_tick): Likewise for param "insn".
5091 (commit_schedule): Likewise for params "prev_head", "tail" and
5092 local "x".
5093 (verify_shadows): Likewise for locals "i1", "i2".
5094 (dump_insn_stream): Likewise for params "head", "tail" and locals
5095 "next_tail", "insn".
5096 (schedule_block): Likewise for locals "insn", "x". Add a checked
5097 cast.
5098 (fix_inter_tick): Likewise for params "head", "tail".
5099 (create_check_block_twin): Likewise for local "jump".
5100 (haifa_change_pattern): Likewise for param "insn".
5101 (haifa_speculate_insn): Likewise.
5102 (dump_new_block_header): Likewise for params "head", "tail".
5103 (fix_jump_move): Likewise for param "jump".
5104 (move_block_after_check): Likewise.
5105 (sched_init_insn_luid): Likewise for param "insn".
5106 (sched_init_luids): Likewise for local "insn".
5107 (insn_luid): Likewise for param "insn".
5108 (init_h_i_d): Likewise.
5109 (haifa_init_h_i_d): Likewise for local "insn".
5110 (haifa_init_insn): Likewise for param "insn".
5111 * sched-deps.c (add_dependence): Likewise for local "real_pro",
5112 "other".
5113 (create_insn_reg_use): Likewise for param "insn".
5114 (setup_insn_reg_uses): Likewise. Add a checked cast.
5115 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5116 "tail" from rtx to rtx_insn *.
5117 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5118 "insn", "next_tail".
5119
5120 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5121
5122 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5123 from rtx to rtx_insn *.
5124 (model_add_to_schedule): Likewise for locals "start", "end",
5125 "iter".
5126
5127 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5128
5129 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5130 rtx_insn *.
5131 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
5132 "to" and locals "insn", "next", "copy". Remove now-redundant
5133 checked cast.
5134
5135 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5136
5137 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5138 rtx_insn * and param 4 from rtx * to rtx_insn **.
5139 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5140 param 2 from rtx * to rtx_insn **.
5141
5142 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5143 rtx_insn * and final param from rtx * to rtx_insn **.
5144
5145 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5146 from rtx to rtx_insn *.
5147 (try_head_merge_bb): Likewise for both locals named "move_upto".
5148 * df-problems.c (can_move_insns_across): Likewise for params
5149 "from", "to", "across_from", "across_to" and locals "insn",
5150 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
5151 rtx_insn **.
5152 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5153 from rtx to rtx_insn *.
5154 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5155 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5156 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5157 rtx_insn *.
5158 (noce_try_abs): Likewise.
5159 (noce_get_condition): Likewise for param "jump". Strengthen param
5160 "earliest" from rtx * to rtx_insn **.
5161 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5162 rtx_insn *.
5163 (find_cond_trap): Likewise.
5164 (dead_or_predicable): Likewise for local "earliest".
5165 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5166 checked cast.
5167 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5168 and local "prev". Strengthen param "earliest" from rtx * to
5169 rtx_insn **.
5170 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5171 Strengthen param "earliest" from rtx * to rtx_insn **.
5172
5173 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5174
5175 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5176 "to" and local "insn" from rtx to rtx_insn *.
5177
5178 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5179
5180 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5181 from rtx to rtx_insn *.
5182 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5183 (code_motion_path_driver): Likewise for local "last_insn".
5184 (simplify_changed_insns): Likewise for local "insn".
5185
5186 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5187
5188 * rtl.h (push_to_sequence): Strengthen param from rtx to
5189 rtx_insn *.
5190 (push_to_sequence2): Likewise for both params.
5191 (delete_insns_since): Likewise for param.
5192 (reorder_insns_nobb): Likewise for all three params.
5193 (set_new_first_and_last_insn): Likewise for both params.
5194
5195 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5196 rtx_insn *. Remove now-redundant cast.
5197 (set_last_insn): Likewise.
5198
5199 * builtins.c (expand_builtin_return): Strengthen local
5200 "call_fusage" from rtx to rtx_insn *.
5201 * cfgrtl.c (create_basic_block_structure): Likewise for local
5202 "after".
5203 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5204 "first", "last" and local "insn".
5205 (delete_insns_since): Likewise for param "from".
5206 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5207 and local "x".
5208 (push_to_sequence): Likewise for param "first" and local "last".
5209 (push_to_sequence2): Likewise for params "first" and "last".
5210 * lra.c (emit_add3_insn): Likewise for local "last".
5211 (lra_emit_add): Likewise.
5212 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5213 "last_insn".
5214 (process_address_1): Likewise for locals "insn", last".
5215 * modulo-sched.c (ps_first_note): Likewise for return type.
5216 * optabs.c (expand_binop_directly): Likewise for param "last".
5217
5218 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5219
5220 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5221 to rtx_insn*.
5222 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5223
5224 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5225
5226 * function.h (struct sequence_stack): Strengthen fields "first"
5227 and "last" from rtx to rtx_insn *.
5228 (struct emit_status): Likewise for fields "x_first_insn" and
5229 "x_last_insn".
5230
5231 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5232 (set_first_insn): Add checked cast.
5233 (get_last_insn): Remove now-redundant checked cast.
5234 (set_last_insn): Add checked cast.
5235
5236 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5237 "saved_first" and "saved_last" from rtx to rtx_insn *.
5238
5239 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5240
5241 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5242 (unlink_insn_chain): Strengthen both params from rtx to
5243 rtx_insn *.
5244
5245 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5246 variable.
5247 (unlink_insn_chain): Likewise for params "first" and "last".
5248 Remove now-redundant checked cast.
5249 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5250 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5251 rtx_insn *.
5252 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5253 params.
5254 (add_insn): Likewise for param "insn" and local "prev".
5255 (add_insn_after_nobb): Likewise for both params and local "next".
5256 (add_insn_before_nobb): Likewise for both params and local "prev".
5257 (add_insn_after): Rename param "after" to "uncast_after",
5258 introducing local "after" with another checked cast.
5259 (add_insn_before): Rename params "insn" and "before", giving them
5260 "uncast_" prefixes, adding the old names back using checked casts.
5261 (emit_note_after): Likewise for param "after".
5262 (emit_note_before): Likewise for param "before".
5263 (emit_label): Add a checked cast.
5264
5265 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5266
5267 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5268 "insn" from rtx to rtx_insn *.
5269
5270 * cselib.c (cselib_record_sets_hook): Likewise.
5271
5272 * var-tracking.c (add_with_sets): Likewise, renaming back from
5273 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5274 to rtx_insn *.
5275
5276 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5277
5278 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5279 and "header_" from rtx to rtx_insn *.
5280 (struct basic_block_d): Likewise for field "head_" within "x"
5281 field of union basic_block_il_dependent.
5282 (BB_HEAD): Drop function...
5283 (SET_BB_HEAD): ...and this function in favor of...
5284 (BB_HEAD): ...reinstate macro.
5285 (BB_END): Drop function...
5286 (SET_BB_END): ...and this function in favor of...
5287 (BB_END): ...reinstate macro.
5288 (BB_HEADER): Drop function...
5289 (SET_BB_HEADER): ...and this function in favor of...
5290 (BB_HEADER): ...reinstate macro.
5291
5292 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5293 (fix_crossing_unconditional_branches): Likewise.
5294 * caller-save.c (save_call_clobbered_regs): Likewise.
5295 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5296 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5297 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5298 (merge_blocks_move_successor_nojumps): Likewise.
5299 (outgoing_edges_match): Update use of for_each_rtx to
5300 for_each_rtx_in_insn.
5301 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5302 (expand_gimple_cond): Likewise.
5303 (expand_gimple_tailcall): Likewise.
5304 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5305 SET_BB_END.
5306 (construct_exit_block): Drop use of SET_BB_END.
5307 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5308 rtx_insn *.
5309 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5310 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5311 SET_BB_HEAD and SET_BB_END.
5312 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5313 SET_BB_END.
5314 (rtl_delete_block): Drop use of SET_BB_HEAD.
5315 (rtl_split_block): Drop use of SET_BB_END.
5316 (emit_nop_for_unique_locus_between): Likewise.
5317 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5318 (block_label): Drop use of SET_BB_HEAD.
5319 (fixup_abnormal_edges): Drop use of SET_BB_END.
5320 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5321 (relink_block_chain): Likewise.
5322 (fixup_reorder_chain): Drop use of SET_BB_END.
5323 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5324 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5325 rtx_insn **. Drop use of SET_BB_HEADER.
5326 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5327 SET_BB_HEAD.
5328 (BB_HEAD): Delete this function.
5329 (SET_BB_HEAD): Likewise.
5330 (BB_END): Likewise.
5331 (SET_BB_END): Likewise.
5332 (BB_HEADER): Likewise.
5333 (SET_BB_HEADER): Likewise.
5334 * emit-rtl.c (add_insn_after): Rename param "insn" to
5335 "uncast_insn", adding a new local "insn" and a checked cast to
5336 rtx_insn *. Drop use of SET_BB_END.
5337 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5338 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5339 (reorder_insns): Drop use of SET_BB_END.
5340 (emit_insn_after_1): Strengthen param "first" and locals "last",
5341 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5342 (emit_pattern_after_noloc): Add checked cast.
5343 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5344 (restore_other_notes): Likewise.
5345 (move_insn): Likewise.
5346 (sched_extend_bb): Likewise.
5347 (fix_jump_move): Likewise.
5348 * ifcvt.c (noce_process_if_block): Likewise.
5349 (dead_or_predicable): Likewise.
5350 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5351 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5352 * sel-sched-ir.c (sel_move_insn): Likewise.
5353 * sel-sched.c (move_nop_to_previous_block): Likewise.
5354
5355 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5356 SET_BB_END.
5357 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5358
5359 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5360
5361 * basic-block.h (create_basic_block_structure): Strengthen params
5362 1 "head" and 2 "end" from rtx to rtx_insn *.
5363 * cfgrtl.c (create_basic_block_structure): Likewise.
5364 (rtl_create_basic_block): Update casts from void * to rtx to
5365 rtx_insn *, so that we can pass them as rtx_insn * to
5366 create_basic_block_structure.
5367 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5368
5369 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5370
5371 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5372 rtx_insn **.
5373 (check_for_inc_dec): Strengthen param "insn" from rtx to
5374 rtx_insn *.
5375
5376 * cselib.h (cselib_process_insn): Likewise.
5377
5378 * cselib.c (cselib_record_sets): Likewise.
5379 (cselib_process_insn): Likewise.
5380
5381 * dse.c (struct insn_info): Likewise for field "insn".
5382 (check_for_inc_dec_1): Likewise for local "insn".
5383 (check_for_inc_dec): Likewise for param "insn".
5384 (scan_insn): Likewise.
5385 (dse_step1): Likewise for local "insn".
5386
5387 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5388 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5389
5390 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5391
5392 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5393 from rtx to rtx_insn *.
5394 (DEP_PRO): Delete this function and...
5395 (SET_DEP_PRO): ...this function in favor of...
5396 (DEP_PRO): ...reinstate this macro.
5397 (DEP_CON): Delete this function and...
5398 (SET_DEP_CON): ...this function in favor of...
5399 (DEP_CON): ...reinstate this old macro.
5400 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5401 (init_dep): Likewise.
5402 (set_priorities): Likewise for both params.
5403 (sd_copy_back_deps): Likewise for params 1 and 2.
5404
5405 * haifa-sched.c (priority): Likewise for param "insn" and local
5406 "next".
5407 (set_priorities): Likewise for params "head" and "tail" and local
5408 "insn".
5409 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5410 local "consumer".
5411 (add_to_speculative_block): Add a checked cast.
5412 (create_check_block_twin): Drop use of SET_DEP_CON.
5413 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5414 rtx to rtx_insn *.
5415
5416 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5417 Drop use of SET_DEP_PRO
5418 (init_dep): Strengthen params "pro" and "con" from rtx to
5419 rtx_insn *.
5420 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5421 use of SET_DEP_CON.
5422 (DEP_PRO): Delete.
5423 (DEP_CON): Delete.
5424 (SET_DEP_PRO): Delete.
5425 (SET_DEP_CON): Delete.
5426
5427 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5428
5429 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5430 from rtx to rtx_insn *.
5431 (VINSN_INSN_RTX): Eliminate rvalue function and...
5432 (SET_VINSN_INSN): ...lvalue function in favor of...
5433 (VINSN_INSN_RTX): reinstate this old macro.
5434
5435 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5436 in favor of VINSN_INSN_RTX.
5437 (VINSN_INSN_RTX): Delete this function.
5438 (SET_VINSN_INSN_RTX): Likewise.
5439
5440 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5441
5442 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5443 (BND_TO): Delete this function and...
5444 (SET_BND_TO): ...this functions in favor of...
5445 (BND_TO): ...reinstating this macro.
5446 (struct _fence): Strengthen field "executing_insns" from
5447 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5448 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5449 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5450 and param "insn" from rtx to insn_t.
5451 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5452 rtx_insn *.
5453
5454 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5455 vec<rtx_insn *> .
5456 (rtx_vec_t): Likewise.
5457 (struct sched_deps_info_def): Strengthen param of "start_insn"
5458 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5459 "note_mem_dep" callback and first param of "note_dep" callback.
5460
5461 * haifa-sched.c (add_to_speculative_block): Strengthen param
5462 "insn" from rtx to rtx_insn *.
5463 (clear_priorities): Likewise.
5464 (calc_priorities): Likewise for local "insn".
5465
5466 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5467 Remove redundant checked cast.
5468 (haifa_note_mem_dep): Likewise for param "pending_insn".
5469 (haifa_note_dep): Likewise for param "elem".
5470 (note_mem_dep): Likewise for param "e".
5471 (sched_analyze_1): Add checked casts.
5472 (sched_analyze_2): Likewise.
5473
5474 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5475 from rtx to rtx_insn *.
5476 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5477 from vec<rtx> * to vec<rtx_insn *> *.
5478
5479 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5480 scaffolding.
5481 (flist_add): Strengthen param "executing_insns" from
5482 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5483 (advance_deps_context): Remove now-redundant checked cast.
5484 (init_fences): Replace uses of NULL_RTX with NULL.
5485 (merge_fences): Strengthen params "last_scheduled_insn" and
5486 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5487 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5488 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5489 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5490 an instruction, rather than doing double-duty as a pattern.
5491 (return_nop_to_pool): Update for change of insn_t.
5492 (deps_init_id): Remove now-redundant checked cast.
5493 (struct sched_scan_info_def): Strengthen param of "init_insn"
5494 callback from rtx to insn_t.
5495 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5496 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5497 NULL.
5498 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5499 "end" from rtx to rtx_insn *.
5500 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5501 (rtx insn_rtx, bool force_unique_p)
5502 (BND_TO): Delete function.
5503 (SET_BND_TO): Delete function.
5504
5505 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5506 rtx to rtx_insn *.
5507 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5508 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5509 rtx to rtx_insn *.
5510 (undo_transformations): Likewise for param "insn".
5511 (update_liveness_on_insn): Likewise.
5512 (compute_live_below_insn): Likewise for param "insn" and local
5513 "succ".
5514 (update_data_sets): Likewise for param "insn".
5515 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5516 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5517 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5518 rtx_insn *.
5519 (move_cond_jump): Likewise for param "insn".
5520 (move_cond_jump): Drop use of SET_BND_TO.
5521 (compute_av_set_on_boundaries): Likewise.
5522 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5523 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5524 from rtx to rtx_insn *.
5525 (maybe_emit_renaming_copy): Likewise for param "insn".
5526 (maybe_emit_speculative_check): Likewise.
5527 (handle_emitting_transformations): Likewise.
5528 (remove_insn_from_stream): Likewise.
5529 (code_motion_process_successors): Strengthen local "succ" from rtx
5530 to insn_t.
5531
5532 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5533
5534 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5535 ilist_t, not _xlist_t;
5536 (ILIST_INSN): Define in terms of new union field "insn".
5537 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5538 _XLIST_NEXT.
5539 (struct _list_node): Add new field "insn" to the union, of type
5540 insn_t.
5541 (ilist_add): Replace macro with an inline function, requiring an
5542 insn_t.
5543 (ilist_remove): Define this macro directly in terms of
5544 _list_remove, rather than indirectly via _xlist_remove.
5545 (ilist_clear): Likewise, in terms of _list_clear rather than
5546 _xlist_clear.
5547 (ilist_is_in_p): Replace macro with an inline function, requiring
5548 an insn_t.
5549 (_list_iter_cond_insn): New function.
5550 (ilist_iter_remove): Define this macro directly in terms of
5551 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5552 (ilist_iterator): Define directly in terms of _list_iterator
5553 rather than indirectly through _xlist_iterator.
5554 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5555 than in terms of _FOR_EACH_X.
5556 (FOR_EACH_INSN_1): Likewise.
5557
5558 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5559
5560 PR target/60606
5561 PR target/61330
5562 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5563 DECL_HARD_REGISTER and return for invalid register specifications.
5564 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5565 DECL_HARD_REGISTER, call expand_one_error_var.
5566 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5567 CC_REGNUM with non-MODE_CC modes.
5568 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5569
5570 2014-08-26 Marek Polacek <polacek@redhat.com>
5571
5572 PR c/61271
5573 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5574
5575 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5576
5577 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5578 qi cost; add di cost.
5579 (cortexa57_addrcost_table): Likewise.
5580
5581 2014-08-26 Marek Polacek <polacek@redhat.com>
5582
5583 PR c/61271
5584 * expr.c (is_aligning_offset): Remove logical not.
5585
5586 2014-08-26 Marek Polacek <polacek@redhat.com>
5587
5588 PR c/61271
5589 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5590 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5591
5592 2014-08-26 Richard Biener <rguenther@suse.de>
5593
5594 PR tree-optimization/62175
5595 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5596 expand possibly trapping operations.
5597
5598 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5599
5600 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5601 "insn" from rtx to rtx_insn *.
5602 (permute_load): Likewise for param "insn".
5603 (permute_store): Likewise.
5604 (handle_special_swappables): Likewise for local "insn".
5605 (replace_swap_with_copy): Likewise for locals "insn" and
5606 "new_insn".
5607 (rs6000_analyze_swaps): Likewise for local "insn".
5608
5609 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5610
5611 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5612 to rtx_insn *.
5613
5614 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5615
5616 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5617 "note_list" from rtx to rtx_insn *.
5618 (BB_NOTE_LIST): Replace this function and...
5619 (SET_BB_NOTE_LIST): ...this function with...
5620 (BB_NOTE_LIST): ...the former macro implementation.
5621
5622 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5623 local "from_start" from rtx to rtx_insn *. Strengthen param
5624 "to_endp" from rtx * to rtx_insn **.
5625
5626 * haifa-sched.c (concat_note_lists): Likewise.
5627 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5628 BB_NOTE_LIST.
5629 (sel_restore_notes): Likewise.
5630 (move_bb_info): Likewise.
5631 (BB_NOTE_LIST): Delete this function.
5632 (SET_BB_NOTE_LIST): Delete this function.
5633 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5634 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5635
5636 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5637
5638 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5639 from rtx * to rtx_insn **.
5640 (reorder2): Likewise.
5641 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5642 from rtx to rtx_insn *.
5643
5644 * doc/tm.texi: Update mechanically for above change to target.def.
5645
5646 * sched-int.h (note_list): Strengthen this variable from rtx to
5647 rtx_insn *.
5648 (remove_notes): Likewise for both params.
5649 (restore_other_notes): Likewise for return type and first param.
5650 (struct ready_list): Strengthen field "vec" from rtx * to
5651 rtx_insn **.
5652 (struct dep_replacement): Strenghten field "insn" from rtx to
5653 rtx_insn *.
5654 (struct deps_desc): Likewise for fields "last_debug_insn",
5655 "last_args_size".
5656 (struct haifa_sched_info): Likewise for callback field
5657 "can_schedule_ready_p"'s param, for first param of "new_ready"
5658 callback field, for both params of "rank" callback field, for
5659 first field of "print_insn" callback field (with a const), for
5660 both params of "contributes_to_priority" callback, for param
5661 of "insn_finishes_block_p" callback, for fields "prev_head",
5662 "next_tail", "head", "tail", for first param of "add_remove_insn"
5663 callback, for first param of "begin_schedule_ready" callback, for
5664 both params of "begin_move_insn" callback, and for second param
5665 of "advance_target_bb" callback.
5666 (add_dependence): Likewise for params 1 and 2.
5667 (sched_analyze): Likewise for params 2 and 3.
5668 (deps_analyze_insn): Likewise for param 2.
5669 (ready_element): Likewise for return type.
5670 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5671 (try_ready): Strenghten param from rtx to rtx_insn *.
5672 (sched_emit_insn): Likewise for return type.
5673 (record_delay_slot_pair): Likewise for params 1 and 2.
5674 (add_delay_dependencies): Likewise for param.
5675 (contributes_to_priority): Likewise for both params.
5676 (find_modifiable_mems): Likewise.
5677
5678 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5679 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5680 "first_older_only_insn" from rtx to rtx_insn *.
5681 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5682 rtx_insn **.
5683
5684 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5685 "last_scheduled_iter0" from rtx to rtx_insn *.
5686 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5687 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5688 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5689 "insn" from rtx to rtx_insn *.
5690 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5691 rtx_insn **.
5692 (c6x_sched_reorder2): Strengthen param "ready" and locals
5693 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5694 "insn" from rtx to rtx_insn *.
5695 (c6x_variable_issue): Add a checked cast when assigning from insn
5696 to ss.last_scheduled_iter0.
5697 (split_delayed_branch): Strengthen param "insn" and local "i1"
5698 from rtx to rtx_insn *.
5699 (split_delayed_nonbranch): Likewise.
5700 (undo_split_delayed_nonbranch): Likewise for local "insn".
5701 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5702 "entry_after", "end_packet", "head_insn", "tail_insn",
5703 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5704 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5705 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5706 but add a checked cast on loop->start_label. Consolidate calls to
5707 avoid assigning result of gen_spkernel to "insn", now an
5708 rtx_insn *.
5709
5710 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5711 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5712 rtx to rtx_insn *.
5713 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5714 rtx_insn **. Strengthen locals "top", "next" from rtx to
5715 rtx_insn *.
5716 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5717 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5718 (add_parameter_dependencies): Strengthen params "call", "head" and
5719 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5720 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5721 (add_dependee_for_func_arg): Likewise for param "arg" and local
5722 "insn".
5723 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5724 "tail" and locals "insn", "first_arg".
5725
5726 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5727 for params "head", "tail" and locals "insn", "next", "next_tail".
5728 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5729 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5730 "insn", "lowest", "highest" from rtx to rtx_insn *.
5731 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5732 rtx_insn **.
5733 (ia64_sched_reorder2): Likewise.
5734
5735 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5736 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5737 from rtx * to rtx_insn **.
5738 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5739 rtx_insn **.
5740 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5741 rtx_insn *.
5742 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5743 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5744 to rtx_insn *.
5745
5746 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5747 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5748 to rtx_insn *.
5749 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5750 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5751 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5752 rtx_insn **.
5753 (vr4130_reorder): Likewise.
5754 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5755 rtx to rtx_insn *.
5756 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5757 rtx_insn **.
5758 (mips_sched_reorder): Likewise.
5759 (mips_sched_reorder2): Likewise.
5760
5761 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5762
5763 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5764 Strengthen local "tmp" from rtx to rtx_insn *.
5765 (rs6000_sched_reorder2): Likewise.
5766
5767 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5768 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5769 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5770 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5771
5772 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5773 "tmp2" from rtx to rtx_insn *.
5774 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5775 Strengthen local "insn" from rtx to rtx_insn *.
5776 (ready_reorder): Strengthen param "ready" from rtx * to
5777 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5778 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5779 (sh_reorder2): Likewise.
5780
5781 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5782 local "insn" from rtx to rtx_insn *.
5783
5784 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5785 rtx_insn *.
5786 (scheduled_insns): Strengthen this variable from vec<rtx> to
5787 vec<rtx_insn *>.
5788 (set_modulo_params): Likewise for locals "i1", "i2".
5789 (record_delay_slot_pair): Likewise for params "i1", "i2".
5790 (add_delay_dependencies): Likewise for param "insn".
5791 (cond_clobbered_p): Likewise.
5792 (recompute_todo_spec): Likewise for local "prev".
5793 (last_scheduled_insn): Likewise for this variable.
5794 (nonscheduled_insns_begin): Likewise.
5795 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5796 rtx_insn **.
5797 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5798 rtx_insn *.
5799 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5800 Strengthen local "insn" from rtx to rtx_insn *.
5801 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5802 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5803 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5804 (ready_remove_first): Likewise for return type and local "t".
5805 (ready_element): Likewise for return type.
5806 (ready_remove): Likewise for return type and local "t".
5807 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5808 (check_clobbered_conditions): Strengthen local "x" from rtx to
5809 rtx_insn *, adding a checked cast.
5810 (schedule_insn): Likewise for param "insn".
5811 (remove_notes): Likewise for params "head", "tail" and locals
5812 "next_tail", "insn", "next".
5813 (struct haifa_saved_data): Likewise for fields
5814 "last_scheduled_insn", "nonscheduled_insns_begin".
5815 (save_backtrack_point): Update for change to field "vec" of
5816 struct ready_list.
5817 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5818 rtx_insn **.
5819 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5820 from rtx to rtx_insn *
5821 (resolve_dependencies): Strengthen param "insn" from rtx to
5822 rtx_insn *
5823 (restore_other_notes): Likewise for return type, for param "head"
5824 and local "note_head".
5825 (undo_all_replacements): Likewise for local "insn".
5826 (first_nonscheduled_insn): Likewise for return type and local "insn".
5827 (queue_to_ready): Likewise for local "insn", adding checked casts.
5828 (early_queue_to_ready): Likewise for local "insn".
5829 (debug_ready_list_1): Strengthen local "p" from rtx * to
5830 rtx_insn **.
5831 (move_insn): Strengthen param "insn" and local "note" from rtx to
5832 rtx_insn *
5833 (insn_finishes_cycle_p): Likewise for param "insn".
5834 (max_issue): Likewise for local "insn".
5835 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5836 to rtx_insn **.
5837 (commit_schedule): Strengthen param "prev_head" and local "insn"
5838 from rtx to rtx_insn *
5839 (prune_ready_list): Likewise for local "insn".
5840 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5841 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5842 (set_priorities): Likewise for local "prev_head".
5843 (try_ready): Likewise for param "next".
5844 (fix_tick_ready): Likewise.
5845 (change_queue_index): Likewise.
5846 (sched_extend_ready_list): Update for change to field "vec" of
5847 struct ready_list.
5848 (generate_recovery_code): Strengthen param "insn" from rtx to
5849 rtx_insn *.
5850 (begin_speculative_block): Likewise.
5851 (create_check_block_twin): Likewise for param "insn" and locals
5852 "label", "check", "twin". Introduce local "check_pat" to avoid
5853 "check" being used as a plain rtx before being used as an insn.
5854 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5855 extracting elements from ready_list.
5856 (sched_remove_insn): Strengthen param "insn" from rtx to
5857 rtx_insn *.
5858 (sched_emit_insn): Likewise for return type.
5859 (ready_remove_first_dispatch): Likewise for return type and local
5860 "insn".
5861
5862 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5863
5864 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5865 const rtx_insn *.
5866
5867 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5868 from rtx to rtx_insn *.
5869 (add_dependence_list): Likewise for param "insn". Add a checked
5870 cast.
5871 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5872 to rtx_insn *. Strengthen param "list_p" from rtx * to
5873 rtx_insn **.
5874 (chain_to_prev_insn): Strengthen param "insn" and locals
5875 "prec_nonnote", "i" from rtx to rtx_insn *.
5876 (flush_pending_lists): Likewise for param "insn".
5877 (cur_insn): Likewise for this variable.
5878 (haifa_start_insn): Add a checked cast.
5879 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5880 (sched_analyze_reg): Likewise for param "insn".
5881 (sched_analyze_1): Likewise.
5882 (sched_analyze_2): Likewise. Add checked casts.
5883 (sched_analyze_insn): Likewise. Also for local "prev".
5884 (deps_analyze_insn): Likewise for param "insn".
5885 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5886 (add_dependence_1): Likewise for params "insn", "elem".
5887 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5888 (parse_add_or_inc): Likewise for param "insn".
5889 (find_inc): Likewise for local "inc_cand".
5890 (find_modifiable_mems): Likewise for params "head", "tail" and
5891 locals "insn", "next_tail".
5892
5893 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5894 (begin_schedule_ready): Likewise for param "insn".
5895 (begin_move_insn): Likewise for params "insn" and "last".
5896 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5897 const rtx_insn *.
5898 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5899 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5900 (ebb_add_remove_insn): Likewise for param "insn".
5901 (advance_target_bb): Likewise.
5902
5903 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5904 "insn".
5905 (check_live): Likewise for param "insn".
5906 (init_ready_list): Likewise for local "insn".
5907 (can_schedule_ready_p): Likewise for param "insn".
5908 (begin_schedule_ready): Likewise.
5909 (new_ready): Likewise for param "next".
5910 (rgn_print_insn): Likewise for param "insn".
5911 (rgn_rank): Likewise for params "insn1", "insn2".
5912 (contributes_to_priority): Likewise for params "next", "insn".
5913 (rgn_insn_finishes_block_p): Likewise for param "insn".
5914 (add_branch_dependences): Likewise for params "head", "tail" and
5915 locals "insn", "last".
5916 (rgn_add_remove_insn): Likewise for param "insn".
5917 (advance_target_bb): Likewise.
5918
5919 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5920 const_rtx to const rtx_insn *.
5921
5922 * sel-sched-dump.h (sel_print_insn): Likewise.
5923
5924 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5925 (deps_init_id): Likewise.
5926
5927 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5928 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5929 rtx_insn **.
5930
5931 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5932
5933 * output.h (final_start_function): Strengthen param 1 from rtx to
5934 rtx_insn *.
5935
5936 * final.c (final_start_function): Likewise, renaming back from
5937 "uncast_first" to "first", and dropping the checked cast from rtx
5938 to rtx_insn *.
5939
5940 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5941
5942 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5943 * final.c (final): Likewise. Rename param back from
5944 "uncast_first" to "first" and eliminate the checked cast from rtx
5945 to rtx_insn *.
5946
5947 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5948
5949 * output.h (shorten_branches): Strengthen param from rtx to
5950 rtx_insn *.
5951
5952 * final.c (shorten_branches): Likewise, renaming param back from
5953 "uncast_first" to "first", and dropping the checked cast from rtx
5954 to rtx_insn *.
5955
5956 * genattr.c (gen_attr): Likewise when writing out the prototype of
5957 shorten_branches.
5958
5959 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5960
5961 * sched-int.h (struct haifa_sched_info): Strengthen fields
5962 "prev_head" and "next_tail" from rtx to rtx_insn *.
5963
5964 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5965
5966 * rtl.h (rtx_jump_table_data::get_labels): New method.
5967 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5968 with use of the new rtx_jump_table_data::get_labels method.
5969 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5970 to rtx_jump_table_data *. Simplify by using get_labels method.
5971 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5972 a dyn_cast, introducing local "table", using it to replace
5973 label-lookup logic with a get_labels method call.
5974 (patch_jump_insn): Simplify using get_labels method.
5975 * dwarf2cfi.c (create_trace_edges): Likewise.
5976 * rtlanal.c (label_is_jump_target_p): Likewise.
5977
5978 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5979
5980 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5981 to rtx_insn *.
5982
5983 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5984 (unshare_all_rtl_again): Likewise, also for local "p".
5985
5986 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5987
5988 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5989 to rtx_insn *.
5990 * cfgrtl.c (delete_insn_and_edges): Likewise.
5991
5992 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5993
5994 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5995 from rtx to rtx_insn *.
5996
5997 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5998
5999 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6000
6001 * function.c (thread_prologue_and_epilogue_insns): Likewise for
6002 locals "returnjump", "epilogue_end", "insn", "next".
6003
6004 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
6005 "returnjump" from rtx * to rtx_insn **.
6006 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
6007
6008 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6009
6010 * basic-block.h (struct edge_def). Strengthen "r" within
6011 union edge_def_insns from rtx to rtx_insn *.
6012
6013 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
6014 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
6015 rtx_insn *.
6016 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
6017 from rtx to rtx_insn *.
6018 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
6019 rtx_insn *.
6020 * postreload-gcse.c (reg_killed_on_edge): Likewise.
6021 (reg_used_on_edge): Likewise.
6022 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
6023 (gt_pch_nx): New overload for rtx_insn *&.
6024 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
6025 from rtx to rtx_insn *.
6026
6027 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6028
6029 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
6030 from rtx to rtx_insn *.
6031 (BB_FOOTER): Replace function with access macro.
6032 (SET_BB_FOOTER): Delete.
6033
6034 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
6035 with BB_FOOTER.
6036 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
6037 (emit_barrier_after_bb): Likewise.
6038 (record_effective_endpoints): Likewise.
6039 (relink_block_chain): Likewise.
6040 (fixup_fallthru_exit_predecessor): Likewise.
6041 (cfg_layout_duplicate_bb): Likewise.
6042 (cfg_layout_split_block): Likewise.
6043 (cfg_layout_delete_block): Likewise.
6044 (cfg_layout_merge_blocks): Likewise.
6045 (BB_FOOTER): Delete function.
6046 (SET_BB_FOOTER): Delete function.
6047 * combine.c (update_cfg_for_uncondjump): Replace uses of
6048 SET_BB_FOOTER with BB_FOOTER.
6049
6050 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6051
6052 * except.h (struct eh_landing_pad_d): Strengthen field
6053 "landing_pad" from rtx to rtx_code_label *.
6054
6055 * except.c (sjlj_emit_dispatch_table): Likewise for param
6056 "dispatch_label"
6057 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
6058
6059 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6060
6061 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
6062 first param from rtx to rtx_insn *.
6063 * config/xtensa/xtensa.c (struct machine_function): Likewise for
6064 field "set_frame_ptr_insn".
6065 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
6066 "csend" from rtx to rtx_code_label *.
6067 (xtensa_expand_atomic): Likewise for local "csloop".
6068 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
6069 rtx_insn *.
6070 (xtensa_call_tls_desc): Likewise for return type and locals
6071 "call_insn", "insns".
6072 (xtensa_legitimize_tls_address): Likewise for local "insns".
6073 (xtensa_expand_prologue): Likewise for locals "insn", "first".
6074
6075 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6076
6077 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
6078 first param from rtx to rtx_insn *.
6079 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
6080 "insn".
6081
6082 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6083
6084 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
6085 Strengthen param 1 from rtx to rtx_insn *.
6086 (tilepro_output_cbranch): Likewise.
6087 (tilepro_adjust_insn_length): Likewise.
6088 (tilepro_final_prescan_insn): Likewise for sole param.
6089
6090 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
6091 Likewise for local "last".
6092 (cbranch_predicted_p): Likewise for param "insn".
6093 (tilepro_output_simple_cbranch_with_opcode): Likewise.
6094 (tilepro_output_cbranch_with_opcode): Likewise.
6095 (tilepro_output_cbranch): Likewise.
6096 (frame_emit_load): Likewise for return type and locals "seq",
6097 "insn".
6098 (emit_sp_adjust): Likewise for return type and local "insn".
6099 (tilepro_expand_epilogue): Likewise for locals "last_insn",
6100 "insn".
6101 (tilepro_adjust_insn_length): Likewise for param "insn".
6102 (next_insn_to_bundle): Likewise for return type and params
6103 "r", "end".
6104 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6105 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6106 local "new_insns".
6107 (match_addli_pcrel): Likewise for param "insn".
6108 (replace_addli_pcrel): Likewise.
6109 (match_auli_pcrel): Likewise.
6110 (replace_auli_pcrel): Likewise.
6111 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6112 "next_insn".
6113 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6114 "queue", "next_queue", "prev".
6115 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6116 (tilepro_final_prescan_insn): Likewise for param "insn".
6117
6118 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6119
6120 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6121 Strengthen param 1 from rtx to rtx_insn *.
6122 (tilegx_output_cbranch): Likewise.
6123 (tilegx_adjust_insn_length): Likewise.
6124 (tilegx_final_prescan_insn): Likewise for sole param.
6125
6126 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6127 or local "last".
6128 (cbranch_predicted_p): Likewise for param "insn".
6129 (tilegx_output_simple_cbranch_with_opcode): Likewise.
6130 (tilegx_output_cbranch_with_opcode): Likewise.
6131 (tilegx_output_cbranch): Likewise.
6132 (frame_emit_load): Likewise for return type.
6133 (set_frame_related_p): Likewise for locals "seq", "insn".
6134 (emit_sp_adjust): Likewise for return type, and for local "insn".
6135 Introduce local "pat" for use in place of "insn" where the latter
6136 isn't an instruction.
6137 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6138 from rtx to rtx_insn *.
6139 (tilegx_adjust_insn_length): Likewise for param "insn".
6140 (next_insn_to_bundle): Likewise for return type and params "r" and
6141 "end".
6142 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6143 "end".
6144 (replace_insns): Likewise for params "old_insn", "new_insns".
6145 (replace_mov_pcrel_step1): Likewise for param "insn" and local
6146 "new_insns".
6147 (replace_mov_pcrel_step2): Likewise.
6148 (replace_mov_pcrel_step3): Likewise.
6149 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6150 "next_insn".
6151 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6152 "queue", "next_queue", "prev".
6153 (tilegx_output_mi_thunk): Likewise for local "insn".
6154 (tilegx_final_prescan_insn): Likewise for param "insn".
6155
6156 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6157
6158 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6159 rtx to rtx_insn *.
6160 (frame_emit_load): Likewise.
6161 (frame_emit_add_imm): Likewise, also for local "insn".
6162 (spu_expand_prologue): Likewise for local "insn".
6163 (struct spu_bb_info): Likewise for field "prop_jump".
6164 (emit_nop_for_insn): Likewise for param "insn" and local
6165 "new_insn".
6166 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6167 "hbr_insn".
6168 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6169 locals "hint", "insn".
6170 (get_branch_target): Likewise for param "branch".
6171 (insn_clobbers_hbr): Likewise for param "insn".
6172 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6173 locals "insn", "before_4", "before_16".
6174 (insert_hbrp): Likewise for local "insn".
6175 (spu_machine_dependent_reorg): Likewise for locals "branch",
6176 "insn", "next", "bbend".
6177 (uses_ls_unit): Likewise for param "insn".
6178 (get_pipe): Likewise.
6179 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6180 introducing a checked cast.
6181 (spu_sched_adjust_cost): Likewise for params "insn" and
6182 "dep_insn".
6183 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6184 (spu_sms_res_mii): Likewise.
6185
6186 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6187
6188 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6189 from rtx to rtx_insn *.
6190 (output_cbranch): Likewise for param 6.
6191 (output_return): Likewise for param 1.
6192 (output_sibcall): Likewise.
6193 (output_v8plus_shift): Likewise.
6194 (output_v8plus_mult): Likewise.
6195 (output_v9branch): Likewise for param 7.
6196 (output_cbcond): Likewise for param 3.
6197
6198 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6199 for local "insn".
6200 (sparc_legitimize_pic_address): Likewise.
6201 (sparc_emit_call_insn): Likewise.
6202 (emit_save_or_restore_regs): Likewise.
6203 (emit_window_save): Likewise for return type and local "insn".
6204 (sparc_expand_prologue): Likewise for local "insn".
6205 (sparc_flat_expand_prologue): Likewise.
6206 (output_return): Likewise for param "insn".
6207 (output_sibcall): Likewise for param "insn" and local "delay".
6208 (output_ubranch): Likewise for param "insn".
6209 (output_cbranch): Likewise.
6210 (output_cbcond): Likewise.
6211 (output_v9branch): Likewise.
6212 (output_v8plus_shift): Likewise.
6213 (sparc_output_mi_thunk): Likewise for local "insn".
6214 (get_some_local_dynamic_name): Likewise.
6215 (output_v8plus_mult): Likewise for param "insn".
6216
6217 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6218
6219 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6220 from rtx to rtx_insn *.
6221 (output_branchy_insn): Likewise for param 3.
6222 (output_far_jump): Likewise for param 1.
6223 (final_prescan_insn): Likewise.
6224 (sh_insn_length_adjustment): Likewise for sole param.
6225
6226 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6227 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6228 rtx_code_label *.
6229 (sh_emit_compare_and_set): Likewise for local "lab".
6230 (output_far_jump): Strengthen param "insn" and local "prev" from
6231 rtx to rtx_insn *.
6232 (output_branchy_insn): Likewise for param "insn" and local
6233 "next_insn".
6234 (output_ieee_ccmpeq): Likewise for param "insn".
6235 (struct label_ref_list_d): Strengthen field "label" from rtx to
6236 rtx_code_label *.
6237 (pool_node): Likewise.
6238 (pool_window_label): Likewise for this global.
6239 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6240 (dump_table): Strengthen params "start", "barrier" and local
6241 "scan" from rtx to rtx_insn *.
6242 (broken_move): Likewise for param "insn".
6243 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6244 Strengthen param "first_mova" from rtx * to rtx_insn **.
6245 (mova_p): Likewise for param "insn".
6246 (fixup_mova): Likewise for param "mova".
6247 (find_barrier): Likewise for return type, params "mova" and
6248 "from", and locals "barrier_before_mova", "found_barrier",
6249 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6250 "label" from rtx to rtx_code_label *.
6251 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6252 rtx to rtx_insn *.
6253 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6254 (split_branches): Likewise for param "first" and local "insn".
6255 (final_prescan_insn): Likewise for param "insn".
6256 (sequence_insn_p): Likewise for locals "prev", "next".
6257 (sh_insn_length_adjustment): Likewise for param "insn".
6258 (sh_can_redirect_branch): Likewise for local "insn".
6259 (find_r0_life_regions): Likewise for locals "end", "insn".
6260 (sh_output_mi_thunk): Likewise for local "insns".
6261
6262 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6263
6264 * config/score/score.c (score_output_mi_thunk): Strengthen local
6265 "insn" from rtx to rtx_insn *.
6266 (score_prologue): Likewise.
6267
6268 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6269
6270 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6271 1 from rtx to rtx_insn *.
6272 (s390_emit_jump): Likewise for return type.
6273 (s390_emit_call): Likewise.
6274 (s390_load_got): Likewise.
6275
6276 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6277 variable.
6278 (s390_match_ccmode): Likewise for param "insn".
6279 (s390_emit_jump): Likewise for return type.
6280 (s390_split_branches): Likewise for local "label".
6281 (struct constant): Strengthen field "label" from rtx to
6282 rtx_code_label *.
6283 (struct constant_pool): Likewise for field "label". Strengthen
6284 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6285 rtx_insn *.
6286 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6287 insns.
6288 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6289 (s390_end_pool): Likewise.
6290 (s390_dump_pool): Likewise for local "insn".
6291 (s390_mainpool_start): Likewise.
6292 (s390_chunkify_start): Likewise.
6293 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6294 with insns. Strengthen locals "label", "jump", "barrier", "next",
6295 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6296 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6297 rtx_insn *.
6298 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6299 "jump", "label", "next_insn".
6300 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6301 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6302 "tbegin_insn".
6303 (s390_load_got): Likewise for return type and local "insns".
6304 (s390_save_gprs_to_fprs): Likewise for local "insn".
6305 (s390_restore_gprs_from_fprs): Likewise.
6306 (pass_s390_early_mach::execute): Likewise.
6307 (s390_emit_prologue): Likewise for local "insns".
6308 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6309 rtx_code_label *.
6310 (s390_emit_call): Strengthen return type and local "insn" from
6311 rtx to rtx_insn *.
6312 (s390_emit_tpf_eh_return): Likewise for local "insn".
6313 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6314 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6315 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6316 local "cur_insn".
6317 (s390_non_addr_reg_read_p): Likewise for param "insn".
6318 (find_cond_jump): Likewise for return type and param "insn".
6319 (s390_swap_cmp): Likewise for param "insn".
6320 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6321 "prev_insn", "next_insn".
6322 (s390_reorg): Likewise for locals "insn", "target".
6323 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6324 (s390_sched_variable_issue): For now, rename param "insn" to
6325 "uncast_insn", introducing a checked cast.
6326 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6327 insn.
6328 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6329 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6330
6331 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6332
6333 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6334 param from rtx to rtx_insn *.
6335 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6336
6337 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6338
6339 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6340 4 from rtx to rtx_insn *.
6341 (rs6000_final_prescan_insn): Likewise for first param.
6342 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6343 local "insn".
6344 (rs6000_get_some_local_dynamic_name): Likewise.
6345 (output_cbranch): Likewise for param "insn".
6346 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6347 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6348 (rs6000_emit_allocate_stack): Likewise for local "insn".
6349 (load_cr_save): Likewise.
6350 (restore_saved_cr): Likewise.
6351 (restore_saved_lr): Likewise.
6352 (emit_cfa_restores): Likewise.
6353 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6354 "deleted_debug_label".
6355 (rs6000_output_mi_thunk): Likewise for local "insn".
6356 (rs6000_final_prescan_insn): Likewise for param "insn".
6357
6358 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6359
6360 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6361 Strengthen param "insn" from rtx to rtx_insn *.
6362 * config/picochip/picochip.c (picochip_current_prescan_insn):
6363 Likewise for this variable.
6364 (picochip_final_prescan_insn): Likewise for param "insn".
6365
6366 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6367
6368 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6369 from rtx to rtx_insn *.
6370 (pa_output_indirect_call): Likewise.
6371 (pa_adjust_insn_length): Likewise.
6372 (pa_attr_length_millicode_call): Likewise.
6373 (pa_attr_length_call): Likewise.
6374 (pa_attr_length_indirect_call): Likewise.
6375
6376 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6377 "insn".
6378 (pa_attr_length_millicode_call): Likewise.
6379 (pa_attr_length_call): Likewise.
6380 (pa_output_call): Likewise.
6381 (pa_attr_length_indirect_call): Likewise.
6382 (pa_output_indirect_call): Likewise.
6383
6384 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6385
6386 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6387 Strengthen first param from rtx to rtx_insn *.
6388 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6389 param "insn".
6390
6391 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6392
6393 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6394 type from rtx to rtx_insn *.
6395 (mips_expand_call): Likewise.
6396 (mips_adjust_insn_length): Likewise for first param.
6397 (mips_output_conditional_branch): Likewise.
6398 (mips_output_order_conditional_branch): Likewise.
6399 (mips_final_prescan_insn): Likewise.
6400
6401 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6402 rtx_insn * for the SEQUENCE case.
6403 (SEQ_END): Likewise.
6404 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6405 (mips_emit_call_insn): Likewise, also for local "insn".
6406 (mips16_gp_pseudo_reg): Likewise for local "scan".
6407 (mips16_build_call_stub): Likewise for return type and for local
6408 "insn". Introduce a new local "pattern" so that "insn" can indeed
6409 be an insn.
6410 (mips_expand_call): Strengthen return type and local "insn" from
6411 rtx to rtx_insn *.
6412 (mips_block_move_loop): Strengthen local "label" from rtx to
6413 rtx_code_label *.
6414 (mips_expand_synci_loop): Likewise for locals "label",
6415 "end_label".
6416 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6417 rtx_insn *.
6418 (mips16e_collect_argument_saves): Likewise for locals "insn",
6419 "next".
6420 (mips_find_gp_ref): Likewise for param of callback for "pred"
6421 param, and for local "insn".
6422 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6423 (mips_insn_has_flexible_gp_ref_p): Likewise.
6424 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6425 local "insn".
6426 (mips_epilogue_set_cfa): Likewise for local "insn".
6427 (mips_expand_epilogue): Likewise.
6428 (mips_adjust_insn_length): Likewise for param "insn".
6429 (mips_output_conditional_branch): Likewise.
6430 (mips_output_order_conditional_branch): Likewise.
6431 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6432 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6433 "falu2_turn_enabled_insn".
6434 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6435 "done_label" from rtx to rtx_code_label *.
6436 (struct mips16_constant): Likewise for field "label".
6437 (mips16_add_constant): Likewise for return type.
6438 (mips16_emit_constants_1): Strengthen return type and param "insn"
6439 from rtx to rtx_insn *.
6440 (mips16_emit_constants): Likewise for param "insn".
6441 (mips16_insn_length): Likewise.
6442 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6443 to rtx_code_label *.
6444 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6445 from rtx to rtx_insn *.
6446 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6447 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6448 (r10k_simplify_address): Strengthen param "insn" and local
6449 "def_insn" from rtx to rtx_insn *.
6450 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6451 rtx_insn *.
6452 (r10k_needs_protection_p_1): Update target type of cast of data
6453 from to rtx to rtx_insn *.
6454 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6455 rtx * to rtx_insn **.
6456 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6457 rtx_insn *.
6458 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6459 (mips_call_expr_from_insn): Likewise for param "insn".
6460 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6461 (mips_find_pic_call_symbol): Likewise for param "insn".
6462 (mips_annotate_pic_calls): Likewise for local "insn".
6463 (mips_sim_insn): Likewise for this variable.
6464 (struct mips_sim): Likewise for field "insn" within elements of
6465 last_set array.
6466 (mips_sim_wait_reg): Likewise for param "insn".
6467 (mips_sim_wait_regs): Likewise.
6468 (mips_sim_wait_units): Likewise.
6469 (mips_sim_wait_insn): Likewise.
6470 (mips_sim_issue_insn): Likewise.
6471 (mips_sim_finish_insn): Likewise.
6472 (mips_seq_time): Likewise for param "seq" and local "insn".
6473 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6474 locals "first", "second".
6475 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6476 "last", "last2", "next".
6477 (mips_avoid_hazard): Likewise for params "after", "insn".
6478 (mips_reorg_process_insns): Likewise for locals "insn",
6479 "last_insn", "subinsn", "next_insn".
6480 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6481 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6482 "jump_sequence".
6483 (mips_output_mi_thunk): Likewise for local "insn".
6484 (mips_final_prescan_insn): Likewise for param "insn".
6485
6486 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6487
6488 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6489 Strengthen return type and local "insns" from rtx to rtx_insn *.
6490 (microblaze_legitimize_tls_address): Likewise for local "insns".
6491 (microblaze_block_move_loop): Strengthen local "label" from rtx
6492 to rtx_code_label *.
6493 (microblaze_expand_prologue): Strengthen two locals named "insn"
6494 from rtx to rtx_insn *.
6495 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6496 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6497 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6498 to rtx_code_label *.
6499
6500 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6501
6502 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6503 param from rtx to rtx_insn *.
6504 (mep_reuse_lo): Likewise for third param.
6505 (mep_use_post_modify_p): Likewise for first param.
6506 (mep_core_address_length): Likewise.
6507 (mep_cop_address_length): Likewise.
6508 (mep_final_prescan_insn): Likewise.
6509 (mep_store_data_bypass_p): Likewise for both params.
6510 (mep_mul_hilo_bypass_p): Likewise.
6511 (mep_ipipe_ldc_p): Likewise for param.
6512
6513 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6514 (mep_rewrite_mult): Likewise.
6515 (mep_rewrite_mulsi3): Likewise.
6516 (mep_rewrite_maddsi3): Likewise.
6517 (mep_reuse_lo_p_1): Likewise.
6518 (mep_reuse_lo_p): Likewise.
6519 (mep_frame_expr): Likewise.
6520 (mep_make_parallel): Likewise for both params.
6521 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6522 local "insn".
6523 (mep_use_post_modify_p): Likewise for param "insn".
6524 (mep_core_address_length): Likewise.
6525 (mep_cop_address_length): Likewise.
6526 (mep_reg_set_in_function): Likewise for local "insn".
6527 (mep_asm_without_operands_p): Likewise.
6528 (F): Likewise for return type and param "x".
6529 (add_constant): Likewise for local "insn".
6530 (maybe_dead_move): Likewise for return type and local "insn".
6531 (mep_expand_prologue): Likewise for local "insn".
6532 (mep_final_prescan_insn): Likewise for param "insn".
6533 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6534 "next", "follow", "x".
6535 (mep_insert_repeat_label_last): Likewise for return type, param
6536 "last_insn", and locals "next", "prev". Strengthen param "label"
6537 from rtx to rtx_code_label *.
6538 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6539 rtx_insn *.
6540 (struct mep_doloop_end): Likewise for fields "insn" and
6541 "fallthrough".
6542 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6543 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6544 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6545 rtx_insn *.
6546 (mep_invert_branch): Likewise for params "insn" and "after".
6547 (mep_reorg_erepeat): Likewise for param "insns" and locals
6548 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6549 "l" from rtx to rtx_code_label *.
6550 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6551 from rtx to rtx_insn *.
6552 (mep_reorg_addcombine): Likewise for param "insns" and locals
6553 "i", "n".
6554 (add_sp_insn_p): Likewise for param "insn".
6555 (mep_reorg_noframe): Likewise for param "insns" and locals
6556 "start_frame_insn", "end_frame_insn", "next".
6557 (mep_reorg): Likewise for local "insns".
6558 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6559 cast.
6560 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6561 (mep_mul_hilo_bypass_p): Likewise.
6562 (mep_ipipe_ldc_p): Likewise for param "insn".
6563 (mep_make_bundle): Likewise for return type, param "cop" and local
6564 "insn", splitting out the latter into a new local "seq" for when it
6565 is a SEQUENCE rather than an insn.
6566 (core_insn_p): Likewise for param "insn".
6567 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6568 "last", "first", "note", "prev", "core_insn".
6569
6570 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6571
6572 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6573 rtx to rtx_insn *.
6574 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6575 (m68k_final_prescan_insn): Likewise for first param.
6576
6577 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6578 (m68k_set_frame_related): Likewise for param "insn".
6579 (output_btst): Likewise for param "insn".
6580 (m68k_final_prescan_insn): Likewise.
6581 (m68k_move_to_reg): Likewise for local "insn".
6582 (m68k_call_tls_get_addr): Likewise for local "insns".
6583 (m68k_call_m68k_read_tp): Likewise.
6584 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6585 (m68k_output_mi_thunk): Likewise for local "insn".
6586
6587 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6588
6589 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6590 first param from rtx to rtx_insn *.
6591 (iq2000_adjust_insn_length): Likewise.
6592 (iq2000_output_conditional_branch): Likewise.
6593 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6594 "insn" and local "nop_insn".
6595 (iq2000_annotate_frame_insn): Likewise for param "insn".
6596 (iq2000_expand_prologue): Likewise for both locals "insn".
6597 (iq2000_adjust_insn_length): Likewise for param "insn".
6598 (iq2000_output_conditional_branch): Likewise.
6599
6600 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6601
6602 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6603 "insns" from rtx to rtx_insn *.
6604 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6605 (struct spill_fill_data): Likewise for field "init_after" and for
6606 elements of array field "prev_insn".
6607 (spill_restore_mem): Likewise for locals "insn", "first".
6608 (do_spill): Likewise for local "insn".
6609 (do_restore): Likewise.
6610 (ia64_expand_prologue): Likewise.
6611 (ia64_expand_epilogue): Likewise.
6612 (emit_insn_group_barriers): Likewise for locals "insn",
6613 "last_label".
6614 (emit_all_insn_group_barriers): Likewise for locals "insn",
6615 "last".
6616 (dfa_stop_insn): Likewise for this global.
6617 (dfa_pre_cycle_insn): Likewise.
6618 (ia64_nop): Likewise.
6619 (final_emit_insn_group_barriers): Likewise for locals "insn",
6620 "last".
6621 (emit_predicate_relation_info): Likewise for locals "head", "n",
6622 "insn", "b", "a".
6623 (ia64_reorg): Likewise for local "insn".
6624 (ia64_output_mi_thunk): Likewise.
6625 (expand_vec_perm_interleave_2): Likewise for local "seq".
6626
6627 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6628
6629 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6630 param 1 "insn" from rtx to rtx_insn *.
6631 (ix86_use_lea_for_mov): Likewise.
6632 (ix86_avoid_lea_for_addr): Likewise.
6633 (ix86_split_lea_for_addr): Likewise.
6634 (ix86_lea_for_add_ok): Likewise.
6635 (ix86_output_call_insn): Likewise.
6636
6637 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6638 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6639 (ix86_output_function_epilogue): Likewise for locals "insn",
6640 "deleted_debug_label".
6641 (legitimize_tls_address): Likewise for local "insn".
6642 (get_some_local_dynamic_name): Likewise.
6643 (increase_distance): Likewise for params "prev", "next".
6644 (distance_non_agu_define_in_bb): Likewise for params "insn",
6645 "start" and locals "prev", "next".
6646 (distance_non_agu_define): Likewise for param "insn".
6647 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6648 locals "next", "prev".
6649 (distance_agu_use): Likewise for param "insn".
6650 (ix86_lea_outperforms): Likewise.
6651 (ix86_ok_to_clobber_flags): Likewise.
6652 (ix86_avoid_lea_for_add): Likewise.
6653 (ix86_use_lea_for_mov): Likewise.
6654 (ix86_avoid_lea_for_addr): Likewise.
6655 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6656 (ix86_split_lea_for_addr): Likewise for param "insn".
6657 (ix86_lea_for_add_ok): Likewise for param "insn".
6658 (ix86_expand_carry_flag_compare): Likewise for local
6659 "compare_seq".
6660 (ix86_expand_int_movcc): Likewise.
6661 (ix86_output_call_insn): Likewise for param "insn".
6662 (ix86_output_call_insn): Likewise for local "i".
6663 (x86_output_mi_thunk): Introduce local "insn", using it in place
6664 of "tmp" when dealing with insns.
6665 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6666 "start".
6667 (ix86_pad_returns): Likewise for locals "ret", "prev".
6668 (ix86_count_insn_bb): Likewise for local "insn".
6669 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6670 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6671 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6672 (expand_vec_perm_interleave2): Likewise for local "seq".
6673 (expand_vec_perm_vperm2f128_vblend): Likewise.
6674 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6675 call to for_each_rtx with for_each_rtx_in_insn.
6676
6677 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6678
6679 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6680 "label" from rtx to rtx_code_label *.
6681 (ix86_expand_prologue): Likewise.
6682 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6683 "varargs_label".
6684 (ix86_split_idivmod): Likewise for locals "end_label" and
6685 "qimode_label".
6686 (ix86_expand_branch): Likewise for local "label2".
6687 (ix86_expand_aligntest): Likewise for return type and local "label".
6688 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6689 "top_label".
6690 (expand_movmem_epilogue): Likewise for the various locals named
6691 "label".
6692 (expand_setmem_epilogue): Likewise.
6693 (expand_small_movmem_or_setmem): Likewise for local "label".
6694 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6695 Strengthen param "done_label" from rtx * to rtx_code_label **.
6696 Strengthen locals "loop_label" and "label" from rtx to
6697 rtx_code_label *.
6698 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6699 Likewise for locals "loop_label", "label".
6700 (ix86_expand_set_or_movmem): Likewise for locals "label",
6701 "jump_around_label", "hot_label".
6702 (ix86_expand_strlensi_unroll_1): Likewise for locals
6703 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6704 "end_2_label".
6705 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6706 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6707 "label2", "jump_label".
6708 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6709 local "label".
6710 (ix86_expand_lfloorceil): Likewise for local "label".
6711 (ix86_expand_rint): Likewise.
6712 (ix86_expand_floorceildf_32): Likewise.
6713 (ix86_expand_floorceil): Likewise.
6714 (ix86_expand_rounddf_32): Likewise.
6715 (ix86_expand_trunc): Likewise.
6716 (ix86_expand_truncdf_32): Likewise.
6717 (ix86_expand_round): Likewise.
6718
6719 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6720
6721 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6722 first param from rtx to rtx_insn *.
6723 (h8300_insn_length_from_table): Likewise.
6724 * config/h8300/h8300.c (F): Likewise for return type and param
6725 "x".
6726 (Fpa): Add a checked cast to rtx_insn *.
6727 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6728 rtx_insn *.
6729 (final_prescan_insn): Likewise for param "insn".
6730 (h8300_binary_length): Likewise.
6731 (h8300_insn_length_from_table): Likewise.
6732
6733 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6734
6735 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6736 Strengthen first param "insn" from rtx to rtx_insn *.
6737
6738 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6739 Likewise.
6740 (frame_insn): Likewise for return type. Introduce local "insn"
6741 for use in place of local "x" for use as an rtx_insn *.
6742 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6743 (epiphany_expand_prologue): Likewise for local "insn".
6744 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6745 * config/epiphany/resolve-sw-modes.c
6746 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6747 "seq".
6748
6749 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6750
6751 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6752 param from rtx to rtx_insn *.
6753 (c6x_final_prescan_insn): Likewise for first param.
6754
6755 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6756 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6757 (c6x_expand_compare): Strengthen local "insns" from rtx to
6758 rtx_insn *.
6759 (c6x_get_unit_specifier): Likewise for param "insn".
6760 (c6x_print_unit_specifier_field): Likewise.
6761 (c6x_final_prescan_insn): Likewise.
6762 (emit_add_sp_const): Likewise for local "insn".
6763 (c6x_expand_prologue): Likewise.
6764
6765 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6766
6767 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6768 param 1 from rtx to rtx_insn *.
6769 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6770 the various locals named "insn".
6771 (expand_epilogue_reg_restore): Likewise.
6772 (frame_related_constant_load): Likewise.
6773 (add_to_reg): Likewise.
6774 (emit_link_insn): Likewise.
6775 (do_link): Likewise.
6776 (expand_interrupt_handler_prologue): Likewise.
6777 (branch_dest): Likewise for param "branch".
6778 (asm_conditional_branch): Likewise for param "insn".
6779 (gen_one_bundle): Likewise for elements of param "slot" and local
6780 "t".
6781 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6782 elements of local "slot".
6783 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6784 "queue", "next_queue", "prev".
6785 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6786 (add_sched_insns_for_speculation): Likewise for local "insn".
6787
6788 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6789
6790 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6791 from rtx to rtx_insn *.
6792 (output_movhi): Likewise.
6793 (output_movsisf): Likewise.
6794 (avr_out_tstsi): Likewise.
6795 (avr_out_tsthi): Likewise.
6796 (avr_out_tstpsi): Likewise.
6797 (avr_out_compare): Likewise.
6798 (avr_out_compare64): Likewise.
6799 (avr_out_movpsi): Likewise.
6800 (ashlqi3_out): Likewise.
6801 (ashlhi3_out): Likewise.
6802 (ashlsi3_out): Likewise.
6803 (ashrqi3_out): Likewise.
6804 (ashrhi3_out): Likewise.
6805 (ashrsi3_out): Likewise.
6806 (lshrqi3_out): Likewise.
6807 (lshrhi3_out): Likewise.
6808 (lshrsi3_out): Likewise.
6809 (avr_out_ashlpsi3): Likewise.
6810 (avr_out_ashrpsi3): Likewise.
6811 (avr_out_lshrpsi3): Likewise.
6812 (avr_out_fract): Likewise.
6813 (avr_out_sbxx_branch): Likewise.
6814 (avr_out_round): Likewise.
6815 (avr_out_xload): Likewise.
6816 (avr_out_movmem): Likewise.
6817 (adjust_insn_length): Likewise.
6818 (avr_out_lpm): Likewise.
6819 (reg_unused_after): Likewise.
6820 (_reg_unused_after): Likewise.
6821 (avr_jump_mode): Likewise for second param.
6822 (jump_over_one_insn): Likewise for first param.
6823 (avr_final_prescan_insn): Likewise.
6824 (out_shift_with_cnt): Likewise for second param.
6825
6826 * config/avr/avr.c (get_sequence_length): Likewise for param
6827 "insns" and local "insn".
6828 (emit_push_byte): Likewise for local "insn".
6829 (emit_push_sfr): Likewise.
6830 (avr_prologue_setup_frame): Likewise for locals "insn",
6831 "fp_plus_insns", "sp_plus_insns".
6832 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6833 "sp_plus_insns".
6834 (avr_jump_mode): Likewise for param "insn".
6835 (avr_final_prescan_insn): Likewise.
6836 (avr_find_unused_d_reg): Likewise.
6837 (avr_out_lpm_no_lpmx): Likewise.
6838 (avr_out_lpm): Likewise.
6839 (avr_out_xload): Likewise.
6840 (output_movqi): Likewise.
6841 (output_movhi): Likewise.
6842 (out_movqi_r_mr): Likewise.
6843 (out_movhi_r_mr): Likewise.
6844 (out_movsi_r_mr): Likewise.
6845 (out_movsi_mr_r): Likewise.
6846 (output_movsisf): Likewise.
6847 (avr_out_load_psi): Likewise.
6848 (avr_out_store_psi): Likewise.
6849 (avr_out_movpsi): Likewise.
6850 (out_movqi_mr_r): Likewise.
6851 (avr_out_movhi_mr_r_xmega): Likewise.
6852 (out_movhi_mr_r): Likewise.
6853 (compare_condition): Likewise for param "insn" and local "next".
6854 (compare_sign_p): Likewise for param "insn".
6855 (compare_diff_p): Likewise.
6856 (compare_eq_p): Likewise.
6857 (avr_out_compare): Likewise.
6858 (avr_out_compare64): Likewise.
6859 (avr_out_tsthi): Likewise.
6860 (avr_out_tstpsi): Likewise.
6861 (avr_out_tstsi): Likewise.
6862 (out_shift_with_cnt): Likewise.
6863 (ashlqi3_out): Likewise.
6864 (ashlhi3_out): Likewise.
6865 (avr_out_ashlpsi3): Likewise.
6866 (ashlsi3_out): Likewise.
6867 (ashrqi3_out): Likewise.
6868 (ashrhi3_out): Likewise.
6869 (avr_out_ashrpsi3): Likewise.
6870 (ashrsi3_out): Likewise.
6871 (lshrqi3_out): Likewise.
6872 (lshrhi3_out): Likewise.
6873 (avr_out_lshrpsi3): Likewise.
6874 (lshrsi3_out): Likewise.
6875 (avr_out_fract): Likewise.
6876 (avr_out_round): Likewise.
6877 (avr_adjust_insn_length): Likewise.
6878 (reg_unused_after): Likewise.
6879 (_reg_unused_after): Likewise.
6880 (avr_compare_pattern): Likewise.
6881 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6882 and locals "branch1", "branch2", "insn2", "jump".
6883 (avr_reorg): Likewise for local "insn".
6884 (avr_2word_insn_p): Likewise for param "insn".
6885 (jump_over_one_insn_p): Likewise.
6886 (avr_out_sbxx_branch): Likewise.
6887 (avr_out_movmem): Likewise.
6888
6889 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6890
6891 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6892 param from rtx to rtx_insn *.
6893 (thumb1_final_prescan_insn): Likewise.
6894 (thumb2_final_prescan_insn): Likewise.
6895
6896 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6897 rtx to rtx_insn *.
6898 (struct minipool_node): Likewise for field "insn".
6899 (dump_minipool): Likewise for param "scan".
6900 (create_fix_barrier): Likewise for local "from". Strengthen local
6901 "label" from rtx to rtx_code_label *.
6902 (push_minipool_barrier): Strengthen param "insn" from rtx to
6903 rtx_insn *.
6904 (push_minipool_fix): Likewise.
6905 (note_invalid_constants): Likewise.
6906 (thumb2_reorg): Likewise for local "insn".
6907 (arm_reorg): Likewise.
6908 (thumb2_final_prescan_insn): Likewise for param
6909 "insn" and local "first_insn".
6910 (arm_final_prescan_insn): Likewise for param "insn" and locals
6911 "start_insn", "this_insn".
6912 (arm_debugger_arg_offset): Likewise for param "insn".
6913 (thumb1_emit_multi_reg_push): Likewise for return type and local
6914 "insn".
6915 (thumb1_final_prescan_insn): Likewise for param "insn".
6916 (thumb_far_jump_used_p): Likewise for local "insn".
6917 (thumb1_expand_prologue): Likewise.
6918 (arm_expand_epilogue_apcs_frame): Likewise.
6919 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6920 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6921 from rtx to rtx_code_label *.
6922 (arm_split_atomic_op): Likewise for local "label".
6923 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6924
6925 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6926
6927 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6928 first param from rtx to rtx_insn *.
6929 (arc_verify_short): Likewise.
6930 (arc_short_long): Likewise.
6931 (arc_need_delay): Likewise.
6932
6933 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6934 "target_insn".
6935 (arc_ccfsm_advance): Likewise for param "insn" and locals
6936 "start_insn", "this_insn".
6937 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6938 (arc_ccfsm_post_advance): Likewise for param "insn".
6939 (arc_next_active_insn): Likewise for return type and param "insn".
6940 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6941 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6942 (output_short_suffix): Likewise for local "insn".
6943 (arc_final_prescan_insn): Likewise for param "insn". Remove
6944 now-redundant checked cast.
6945 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6946 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6947 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6948 for use where lc_set became an insn.
6949 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6950 rtx to rtx_insn *.
6951 (arc_get_insn_variants): Likewise for local "prev".
6952 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6953 "next".
6954 (arc_predicate_delay_insns): Likewise for local "insn".
6955 (arc_pad_return): Likewise for local "prev". For now, add a
6956 checked cast when extracting the insn from "final_sequence".
6957 (arc_short_long): Likewise for param "insn".
6958 (arc_need_delay): Likewise for param "insn" and local "next".
6959 (arc_label_align): Likewise for locals "prev", "next".
6960
6961 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6962
6963 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6964 "insn" from rtx to rtx_insn *.
6965 (alpha_gp_save_rtx): Likewise for local "seq".
6966 (alpha_instantiate_decls): Likewise for local "top".
6967 (get_some_local_dynamic_name): Likewise for local "insn".
6968 (alpha_does_function_need_gp): Likewise.
6969 (set_frame_related_p): Likewise for return type and for locals
6970 "seq" and "insn".
6971 (emit_frame_store_1): Likewise for local "insn".
6972 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6973 (alpha_end_function): Likewise for local "insn".
6974 (alpha_output_mi_thunk_osf): Likewise.
6975 (alphaev4_insn_pipe): Likewise for param "insn".
6976 (alphaev5_insn_pipe): Likewise.
6977 (alphaev4_next_group): Likewise for return type and param 1
6978 "insn".
6979 (alphaev5_next_group): Likewise.
6980 (alpha_align_insns_1): Likewise for return type and param 1 of
6981 callback param "next_group", and for locals "i", "next", "prev",
6982 "where", "where2", "insn".
6983
6984 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6985
6986 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6987 rather than modifying the stmt.
6988
6989 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6990
6991 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6992 cgraph_state conversion.
6993
6994 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6995
6996 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6997 Strengthen local "insns" from rtx to rtx_insn *.
6998 (aarch64_set_frame_expr): Likewise for local "insn".
6999 (aarch64_save_or_restore_fprs): Likewise.
7000 (aarch64_save_or_restore_callee_save_registers): Likewise.
7001 (aarch64_expand_prologue): Likewise.
7002 (aarch64_expand_epilogue): Likewise.
7003 (aarch64_output_mi_thunk): Likewise.
7004 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
7005 "label2" from rtx to rtx_code_label *.
7006 (aarch64_split_atomic_op): Likewise for local "label".
7007
7008 2014-08-25 Martin Liska <mliska@suse.cz>
7009
7010 * cgraph.h (symtab_node):
7011 (bool needed_p (void)): created from decide_is_symbol_needed
7012 (bool referred_to_p (void)): created from referred_to_p
7013 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
7014 * cgraph.h (cgraph_node):
7015 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
7016 (void expand (void)): created from expand_function
7017 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
7018 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
7019 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
7020 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
7021 * cgraph.h (varpool_node):
7022 (static void add (tree decl): created from varpool_add_new_variable
7023 * cgraph.h (cgraph_edge):
7024 void remove (void);
7025 (void remove_caller (void)): created from cgraph_edge_remove_caller
7026 (void remove_callee (void)): created from cgraph_edge_remove_callee
7027 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
7028 created from cgraph_set_call_stmt
7029 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
7030 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
7031 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
7032 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
7033 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
7034 created from cgraph_speculative_call_info
7035 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
7036 int freq_scale, bool update_original)): created from cgraph_clone_edge
7037 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
7038 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
7039 (bool recursive_p (void)): created from cgraph_edge_recursive_p
7040 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
7041 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
7042 (static void rebuild_references (void)): created from cgraph_rebuild_references
7043 * cgraph.h (symbol_table):
7044 (create_reference): renamed from add_reference
7045 (maybe_create_reference): renamed from maybe_add_reference
7046 (void register_symbol (symtab_node *node)): new function
7047 (void clear_asm_symbols (void)): new function
7048 (void unregister (symtab_node *node)): new function
7049 (void release_symbol (cgraph_node *node, int uid)): new function
7050 (cgraph_node * allocate_cgraph_symbol (void)): new function
7051 (void initialize (void)): created from cgraph_init
7052 (symtab_node *first_symbol (void)):new function
7053 (asm_node *first_asm_symbol (void)):new function
7054 (symtab_node *first_defined_symbol (void)):new function
7055 (varpool_node *first_variable (void)):new function
7056 (varpool_node *next_variable (varpool_node *node)):new function
7057 (varpool_node *first_static_initializer (void)):new function
7058 (varpool_node *next_static_initializer (varpool_node *node)):new function
7059 (varpool_node *first_defined_variable (void)):new function
7060 (varpool_node *next_defined_variable (varpool_node *node)):new function
7061 (cgraph_node *first_defined_function (void)):new function
7062 (cgraph_node *next_defined_function (cgraph_node *node)):new function
7063 (cgraph_node *first_function (void)):new function
7064 (cgraph_node *next_function (cgraph_node *node)):new function
7065 (cgraph_node *first_function_with_gimple_body (void)):new function
7066 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
7067 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
7068 created from symtab_remove_unreachable_nodes
7069 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
7070 (void process_new_functions (void)): created from cgraph_process_new_functions
7071 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
7072 (bool output_variables (void)): created from varpool_node::output_variables
7073 (void output_asm_statements (void)): created from output_asm_statements
7074 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
7075 (void compile (void)): created from compile
7076 (void output_weakrefs (void)): created from output_weakrefs
7077 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
7078 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
7079 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
7080 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
7081 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
7082 created from cgraph_next_function_with_gimple_body
7083 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
7084 created from cgraph_remove_edge_removal_hook
7085 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
7086 created from cgraph_add_node_removal_hook
7087 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
7088 created from cgraph_remove_node_removal_hook
7089 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
7090 created from varpool_add_node_removal_hook
7091 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
7092 created from varpool_remove_node_removal_hook
7093 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
7094 created from cgraph_add_function_insertion_hook
7095 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
7096 created from cgraph_remove_function_insertion_hook
7097 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
7098 created from varpool_add_variable_insertion_hook
7099 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
7100 created from varpool_remove_variable_insertion_hook
7101 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
7102 created from cgraph_add_edge_duplication_hook
7103 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7104 created from cgraph_remove_edge_duplication_hook
7105 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7106 created from cgraph_add_node_duplication_hook
7107 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7108 created from cgraph_remove_node_duplication_hook
7109 (void call_edge_removal_hooks (cgraph_edge *e)):
7110 created from cgraph_call_edge_removal_hooks
7111 (void call_cgraph_insertion_hooks (cgraph_node *node)):
7112 created from call_function_insertion_hooks
7113 (void call_cgraph_removal_hooks (cgraph_node *node)):
7114 created from cgraph_call_node_removal_hooks
7115 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7116 created from cgraph_node::call_duplication_hooks
7117 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7118 created from cgraph_call_edge_duplication_hooks
7119 (void call_varpool_removal_hooks (varpool_node *node)):
7120 created from varpool_call_node_removal_hooks
7121 (void call_varpool_insertion_hooks (varpool_node *node)):
7122 created from varpool_call_variable_insertion_hooks
7123 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7124 created from insert_to_assembler_name_hash
7125 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7126 created from unlink_from_assembler_name_hash
7127 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7128 created from symtab_prevail_in_asm_name_hash
7129 (void symtab_initialize_asm_name_hash (void)):
7130 created from symtab_initialize_asm_name_hash
7131 (void change_decl_assembler_name (tree decl, tree name)):
7132 created from change_decl_assembler_name
7133 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7134 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7135 created from decl_assembler_name_hash
7136 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7137 created from decl_assembler_name_equal
7138 (static hashval_t hash_node_by_assembler_name (const void *p)):
7139 created from hash_node_by_assembler_name
7140 (static int eq_assembler_name (const void *p1, const void *p2)):
7141 created from eq_assembler_name
7142
7143 2014-08-25 Marek Polacek <polacek@redhat.com>
7144
7145 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7146
7147 2014-08-25 Petr Murzin <petr.murzin@intel.com>
7148
7149 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7150 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7151 SWI1248_AVX512BW mode iterator.
7152
7153 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
7154
7155 PR target/62111
7156 * config/sh/predicates.md (general_extend_operand): Disable
7157 TRUNCATE before reload completes.
7158
7159 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7160
7161 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7162
7163 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7164
7165 PR target/61996
7166 * config/sh/sh.opt (musermode): Allow negative form.
7167 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7168 targets that don't support it.
7169 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7170 Document -mno-usermode option.
7171
7172 2014-08-24 Kito Cheng <kito@0xlab.org>
7173
7174 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7175 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7176 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7177 * doc/tm.texi: Regenerate.
7178
7179 2014-08-24 Kito Cheng <kito@0xlab.org>
7180
7181 * ira.c: Fix typo in comment.
7182
7183 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7184
7185 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7186 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7187
7188 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7189
7190 PR target/62038
7191 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7192 last_address when the current function is a thunk.
7193 (pa_asm_output_mi_thunk): When we don't have named sections or they
7194 are not being used, check that thunk can reach the stub table with a
7195 short branch.
7196
7197 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7198
7199 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7200 rtx_insn *.
7201 (pass_web::execute): Likewise for local "insn".
7202
7203 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7204
7205 * var-tracking.c (struct micro_operation_def): Strengthen field
7206 "insn" from rtx to rtx_insn *.
7207 (struct emit_note_data_def): Likewise.
7208 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7209 (vt_stack_adjustments): Likewise for local "insn".
7210 (adjust_insn): Likewise for param "insn".
7211 (val_store): Likewise.
7212 (val_resolve): Likewise.
7213 (struct count_use_info): Likewise for field "insn".
7214 (log_op_type): Likewise for param "insn".
7215 (reverse_op): Likewise.
7216 (prepare_call_arguments): Likewise.
7217 (add_with_sets): The initial param takes an insn, but we can't
7218 yet strengthen it from rtx to rtx_insn * since it's used as a
7219 cselib_record_sets_hook callback. For now rename initial param
7220 from "insn" to "uncast_insn", and introduce a local "insn" of
7221 the stronger rtx_insn * type, with a checked cast.
7222 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7223 rtx_insn *.
7224 (emit_note_insn_var_location): Likewise.
7225 (emit_notes_for_changes): Likewise.
7226 (emit_notes_for_differences): Likewise.
7227 (next_non_note_insn_var_location): Likewise for return type and
7228 for param "insn".
7229 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7230 (vt_initialize): Likewise for local "insn".
7231 (delete_debug_insns): Likewise for locals "insn" and "next".
7232
7233 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7234
7235 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7236 rtx_insn *.
7237 (mark_constant_pool): Likewise for local "insn".
7238
7239 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7240
7241 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7242 rtx to rtx_insn *.
7243 (dead_debug_promote_uses): Likewise.
7244 (dead_debug_insert_temp): Likewise.
7245
7246 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7247
7248 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7249 from const_rtx to const rtx_insn *.
7250 (store_killed_after): Likewise. Strengthen locals "last", "act"
7251 from rtx to rtx_insn *.
7252 (store_killed_before): Strengthen param "insn" from const_rtx to
7253 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7254 (find_moveable_store): Strengthen param "insn" from rtx to
7255 rtx_insn *.
7256 (compute_store_table): Likewise for local "insn".
7257 (insert_insn_start_basic_block): Likewise for param "insn" and
7258 locals "prev", "before", "insn".
7259 (insert_store): For now, add a checked cast to rtx_insn * on the
7260 result of gen_move_insn.
7261 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7262 to rtx_insn *.
7263 (replace_store_insn): Likewise. For now, add a checked cast to
7264 rtx_insn * on the result of gen_move_insn.
7265
7266 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7267
7268 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7269 rtx_insn *.
7270 (expand_sjlj_dispatch_table): Likewise.
7271
7272 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7273
7274 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7275 "insn" from rtx to rtx_insn *.
7276
7277 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7278
7279 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7280 "insn" from rtx to rtx_insn *.
7281 (dup_block_and_redirect): Likewise for param 3 "before".
7282
7283 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7284 from rtx to rtx_insn *.
7285 (move_insn_for_shrink_wrap): Likewise.
7286 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7287 (dup_block_and_redirect): Likewise for param "before" and local
7288 "insn".
7289 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7290 "end".
7291 (convert_to_simple_return): Likewise for local "start".
7292
7293 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7294 Strengthen local "insn" from rtx to rtx_insn *, for use when
7295 invoking requires_stack_frame_p.
7296
7297 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7298
7299 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7300 rtx_insn *.
7301 (speculate_expr): Likewise for locals "orig_insn_rtx",
7302 "spec_insn_rtx".
7303 (eq_transformed_insns): Likewise for locals "i1", "i2".
7304 (check_for_new_jump): Likewise for return type and local "end".
7305 (find_new_jump): Likewise for return type and local "jump".
7306 (sel_split_edge): Likewise for local "jump".
7307 (sel_create_recovery_block): Likewise.
7308 (sel_redirect_edge_and_branch_force): Likewise.
7309 (sel_redirect_edge_and_branch): Likewise.
7310
7311 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7312
7313 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7314 "new_insn" from rtx to rtx_insn *.
7315 (create_insn_rtx_with_rhs): Likewise for return type and for local
7316 "insn_rtx".
7317 (create_insn_rtx_with_lhs): Likewise.
7318 (create_speculation_check): Likewise for local "insn_rtx".
7319 (implicit_clobber_conflict_p): Likewise for local "insn".
7320 (get_expr_cost): Likewise.
7321 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7322 (move_cond_jump): Likewise for locals "next", "prev", "link",
7323 "head", "from", "to".
7324
7325 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7326
7327 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7328 "next" from rtx to rtx_insn *.
7329 (find_conditional_protection): Likewise for local "next".
7330 (is_conditionally_protected): Likewise for local "insn1".
7331 (is_pfree): Likewise for locals "insn1", "insn2".
7332
7333 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7334
7335 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7336 from rtx to rtx_insn *.
7337
7338 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7339 locals "insn1", "insn2" from rtx to rtx_insn *.
7340 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7341 locals "insn", "prev", "last_jump", "next_tail".
7342 (schedule_ebb): Likewise for params "head", "tail".
7343 (schedule_ebbs): Likewise for locals "tail", "head".
7344
7345 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7346 to rtx_insn on "last_insn" in one of the invocations of
7347 schedule_ebb.
7348
7349 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7350
7351 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7352 "elem", "insn" from rtx to rtx_insn *.
7353 (change_spec_dep_to_hard): Likewise.
7354 (get_back_and_forw_lists): Likewise for local "con".
7355 (sd_add_dep): Likewise for locals "elem", "insn".
7356 (sd_resolve_dep): Likewise for locals "pro", "con".
7357 (sd_unresolve_dep): Likewise.
7358 (sd_delete_dep): Likewise.
7359 (chain_to_prev_insn): Likewise for local "pro".
7360 (find_inc): Likewise for locals "pro", "con".
7361
7362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7363
7364 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7365 to rtx_insn *.
7366 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7367 const rtx_insn *.
7368 (modified_between_p): Strengthen local "insn" from rtx to
7369 rtx_insn *.
7370 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7371 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7372 const rtx_insn *.
7373
7374 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7375
7376 * resource.c (next_insn_no_annul): Strengthen local "next" from
7377 rtx to rtx_insn *.
7378 (mark_referenced_resources): Likewise for local "insn".
7379
7380 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7381
7382 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7383 to rtx_insn *.
7384 (find_reloads): Likewise for param 1.
7385 (subst_reloads): Likewise for sole param.
7386 (find_equiv_reg): Likwise for param 2.
7387 (regno_clobbered_p): Likwise for param 2.
7388 (reload): Likewise for param 1.
7389
7390 * caller-save.c (save_call_clobbered_regs): Strengthen local
7391 "insn" from rtx to rtx_insn *.
7392 (insert_one_insn): Likewise for local "insn".
7393
7394 * reload.c (this_insn): Likewise for this global.
7395 (find_reloads): Likewise for param "insn".
7396 (find_reloads_toplev): Likewise.
7397 (find_reloads_address): Likewise.
7398 (subst_reg_equivs): Likewise.
7399 (update_auto_inc_notes): Likewise.
7400 (find_reloads_address_1): Likewise.
7401 (find_reloads_subreg_address): Likewise.
7402 (subst_reloads): Likewise.
7403 (find_equiv_reg): Likewise, also for local "p".
7404 (regno_clobbered_p): Likewise for param "insn".
7405
7406 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7407 array.
7408 (spill_reg_store): Likewise for the elements of this array.
7409 (remove_init_insns): Likewise for local "equiv_insn".
7410 (will_delete_init_insn_p): Likewise for param "insn".
7411 (reload): Likewise for param ""first" and local "insn".
7412 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7413 rtx_insn *.
7414 (calculate_elim_costs_all_insns): Likewise.
7415 (delete_caller_save_insns): Likewise.
7416 (spill_failure): Likewise for param "insn".
7417 (delete_dead_insn): Likewise.
7418 (set_label_offsets): Likewise.
7419 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7420 "prev_insn".
7421 (elimination_costs_in_insn): Likewise for param "insn".
7422 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7423 when referring to an insn.
7424 (set_initial_label_offsets): Likewise.
7425 (set_offsets_for_label): Strengthen param "insn" from rtx to
7426 rtx_insn *.
7427 (init_eliminable_invariants): Likewise for param "first" and local
7428 "insn".
7429 (fixup_eh_region_note): Likewise for param "insn".
7430 (reload_as_needed): Likewise for locals "prev", "insn",
7431 "old_next", "old_prev", "next".
7432 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7433 "last".
7434 (reload_inheritance_insn): Strengthen elements of this array from
7435 rtx to rtx_insn *.
7436 (failed_reload): Likewise for param "insn".
7437 (choose_reload_regs): Likewise for local "insn". Replace use of
7438 NULL_RTX with NULL when referring to an insn.
7439 (input_reload_insns): Strengthen elements of this array from rtx
7440 to rtx_insn *.
7441 (other_input_address_reload_insns): Likewise for this global.
7442 (other_input_reload_insns): Likewise for this global.
7443 (input_address_reload_insns): Likwise for the elements of this
7444 array.
7445 (inpaddr_address_reload_insns): Likwise for the elements of this
7446 array.
7447 (output_reload_insns): Likewise for the elements of this array.
7448 (output_address_reload_insns): Likewise for the elements of this
7449 array.
7450 (outaddr_address_reload_insns): Likewise for the elements of this
7451 array.
7452 (operand_reload_insns): Likewise for this global.
7453 (other_operand_reload_insns): Likewise for this global.
7454 (other_output_reload_insns): Likewise for the elements of this
7455 array.
7456 (new_spill_reg_store): Likewise for the elements of this
7457 array.
7458 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7459 Strengthen local "where" from rtx * to rtx_insn **.
7460 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7461 from rtx to rtx_insn *.
7462 (do_input_reload): Likewise for local "insn".
7463 (do_output_reload): Likewise for local "insn".
7464 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7465 (emit_insn_if_valid_for_reload): Likewise for return type and local
7466 "last". Add checked cast to rtx_insn when returning "insn" since
7467 this has been through emit_insn.
7468 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7469 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7470 returning "insn" since it's been through
7471 emit_insn_if_valid_for_reload at this point.
7472 (delete_output_reload): Strengthen param "insn" and locals
7473 "output_reload_insn", "i2" from rtx to rtx_insn *.
7474 (delete_address_reloads): Likewise for params "dead_insn",
7475 "current_insn" and locals "prev", "next".
7476 (delete_address_reloads_1): Likewise for params "dead_insn",
7477 "current_insn" and locals "prev", "i2".
7478 (inc_for_reload): Likewise for locals "last", "add_insn".
7479 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7480 rtx_insn *.
7481
7482 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7483 param of this duplicate of the prototype from reload.h
7484
7485 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7486
7487 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7488 rtx to rtx_insn *.
7489 (regstat_bb_compute_calls_crossed): Likewise.
7490
7491 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7492
7493 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7494 to rtx_insn *.
7495 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7496 with an insn.
7497 (regrename_analyze): Strengthen local "insn" from rtx to
7498 rtx_insn *.
7499 (scan_rtx_reg): Likewise for param "insn".
7500 (scan_rtx_address): Likewise.
7501 (scan_rtx): Likewise.
7502 (restore_operands): Likewise.
7503 (record_out_operands): Likewise.
7504 (build_def_use): Likewise for local "insn". Replace use of
7505 NULL_RTX with NULL when dealing with an insn.
7506
7507 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7508
7509 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7510 * reginfo.c (reg_scan): Likewise, also for local "insn".
7511 (reg_scan_mark_refs): Likewise for param "insn".
7512 (init_subregs_of_mode): Likewise for local "insn".
7513
7514 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7515
7516 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7517 "insn" from rtx to rtx_insn *.
7518 (replace_oldest_value_reg): Likewise for param "insn".
7519 (replace_oldest_value_addr): Likewise.
7520 (replace_oldest_value_mem): Likewise.
7521 (apply_debug_insn_changes): Likewise for local "last_insn".
7522 (copyprop_hardreg_forward_1): Likewise for local "insn".
7523
7524 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7525
7526 * reg-stack.c (next_flags_user): Strengthen return type and param
7527 "insn" from rtx to rtx_insn *.
7528 (straighten_stack): Likewise for param "insn".
7529 (check_asm_stack_operands): Likewise.
7530 (remove_regno_note): Likewise.
7531 (emit_pop_insn): Likewise for return type, param "insn", local
7532 "pop_insn".
7533 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7534 "limit" from rtx to rtx_insn *.
7535 (swap_to_top): Likewise for param "insn".
7536 (move_for_stack_reg): Likewise.
7537 (move_nan_for_stack_reg): Likewise.
7538 (swap_rtx_condition): Likewise.
7539 (compare_for_stack_reg): Likewise.
7540 (subst_all_stack_regs_in_debug_insn): Likewise.
7541 (subst_stack_regs_pat): Likewise, and local "insn2".
7542 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7543 rtx_insn *.
7544 (subst_stack_regs): Likewise.
7545 (change_stack): Likewise.
7546 (convert_regs_1): Likewise for locals "insn", "next".
7547
7548 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7549
7550 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7551 rtx_insn *.
7552 (combine_set_extension): Likewise for param "curr_insn".
7553 (transform_ifelse): Likewise for param "def_insn".
7554 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7555 from vec<rtx> * to vec<rtx_insn *> *.
7556 (is_cond_copy_insn): Likewise for param "insn".
7557 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7558 to vec<rtx_insn *>.
7559 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7560 local "def_insn" from rtx to rtx_insn *.
7561 (get_sub_rtx): Likewise for param "def_insn".
7562 (merge_def_and_ext): Likewise.
7563 (combine_reaching_defs): Likewise.
7564 (add_removable_extension): Likewise for param "insn".
7565 (find_removable_extensions): Likewise for local "insn".
7566 (find_and_remove_re): Likewise for locals "curr_insn" and
7567 "def_insn". Strengthen locals "reinsn_del_list" and
7568 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7569
7570 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7571
7572 * recog.c (split_insn): Strengthen param "insn" and locals
7573 "first", "last" from rtx to rtx_insn *.
7574 (split_all_insns): Likewise for locals "insn", "next".
7575 (split_all_insns_noflow): Likewise.
7576
7577 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7578
7579 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7580 const rtx_insn *.
7581 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7582 (debug_rtx_find): Likewise for param 1 "x".
7583
7584 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7585 const_rtx to const rtx_insn *. Likewise for local "insn".
7586 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7587 (debug_rtx_find): Likewise for param 1 "x".
7588 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7589 from const_rtx to const rtx_insn * within the appropriate cases of
7590 the switch statement.
7591
7592 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7593 Strengthen local "insns" from rtx to rtx_insn * since this is
7594 passed to a call to debug_rtx_list.
7595
7596 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7597
7598 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7599 to rtx_insn *.
7600
7601 * function.c (stack_protect_epilogue): Add checked cast to
7602 rtx_insn for now when invoking predict_insn_def.
7603
7604 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7605 rtx_insn *.
7606 (predict_insn_def): Likewise.
7607 (rtl_predict_edge): Likewise for local "last_insn".
7608 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7609 const rtx_insn *.
7610 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7611 to rtx_insn *.
7612 (bb_estimate_probability_locally): Likewise for local "last_insn".
7613 (expensive_function_p): Likewise for local "insn".
7614
7615 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7616 local "jmp", since this is used when invoking predict_insn_def.
7617
7618 2014-08-22 Marek Polacek <polacek@redhat.com>
7619
7620 PR c++/62199
7621 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7622
7623 2014-08-22 Marek Polacek <polacek@redhat.com>
7624
7625 PR c/61271
7626 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7627 a comparison in parens.
7628 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7629 in parens.
7630
7631 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7632
7633 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7634 rtx_insn *.
7635
7636 * cprop.c (fis_get_condition): Likewise.
7637
7638 * postreload.c (reload_cse_regs): Likewise for param "first".
7639 (reload_cse_simplify): Likewise for param "insn".
7640 (reload_cse_regs_1): Likewise for local "insn".
7641 (reload_cse_simplify_set): Likewise for param "insn".
7642 (reload_cse_simplify_operands): Likewise.
7643 (struct reg_use): Likewise for field "insn".
7644 (reload_combine_purge_insn_uses): Likewise for param "insn".
7645 (fixup_debug_insns): Likewise for params "from", "to" and local
7646 "insn".
7647 (try_replace_in_use): Likewise for local "use_insn".
7648 (reload_combine_recognize_const_pattern): Likewise for param
7649 "insn" and locals "add_moved_after_insn", "use_insn".
7650 (reload_combine_recognize_pattern): Likewise for param "insn" and
7651 local "prev".
7652 (reload_combine): Likewise for locals "insn", "prev".
7653 (reload_combine_note_use): Likewise for param "insn".
7654 (move2add_use_add2_insn): Likewise.
7655 (move2add_use_add3_insn): Likewise.
7656 (reload_cse_move2add): Likewise, also for local "next".
7657 (move2add_note_store): Likewise for local "insn".
7658
7659 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7660
7661 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7662 rtx to rtx_insn *.
7663 (struct unoccr): Likewise.
7664 (struct modifies_mem): Likewise.
7665 (alloc_mem): Likewise for local "insn".
7666 (insert_expr_in_table): Likewise for param "insn".
7667 (dump_expr_hash_table_entry): Likewise for local "insn".
7668 (oprs_unchanged_p): Likewise for param "insn".
7669 (load_killed_in_block_p): Likewise for local "setter".
7670 (record_last_reg_set_info): Likewise for param "insn".
7671 (record_last_reg_set_info_regno): Likewise.
7672 (record_last_mem_set_info): Likewise.
7673 (record_last_set_info): Likewise for local "last_set_insn".
7674 (record_opr_changes): Likewise for param "insn".
7675 (hash_scan_set): Likewise.
7676 (compute_hash_table): Likewise for local "insn".
7677 (get_avail_load_store_reg): Likewise for param "insn".
7678 (eliminate_partially_redundant_load): Likewise, also for locals
7679 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7680 RTX for insns.
7681 (eliminate_partially_redundant_loads): Likewise for local "insn".
7682
7683 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7684
7685 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7686 rtx to rtx_insn *.
7687 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7688 (expand_twoval_unop): Likewise for locals entry_last", "last".
7689 (expand_twoval_binop): Likewise.
7690 (expand_twoval_binop_libfunc): Likewise for local "insns".
7691 (widen_leading): Likewise for local "last".
7692 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7693 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7694 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7695 (expand_parity): Likewise for locals "last" and "seq".
7696 (expand_ffs): Likewise for local "seq". Strengthen local
7697 "nonzero_label" from rtx to rtx_code_label *.
7698 (expand_absneg_bit): Strengthen local "insns" from rtx to
7699 rtx_insn *.
7700 (expand_unop_direct): Likewise for local "last".
7701 (expand_unop): Likewise for locals "last", "insns".
7702 (expand_abs_nojump): Likewise for local "last".
7703 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7704 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7705 rtx_insn *.
7706 (expand_copysign_absneg): Strengthen local "label" from rtx to
7707 rtx_code_label *.
7708 (expand_copysign_bit): Strengthen local "insns" from rtx to
7709 rtx_insn *.
7710 (struct no_conflict_data): Likewise for fields "first", "insn".
7711 (emit_libcall_block_1): Likewise for param "insns" and locals
7712 "next", "last", "insn".
7713 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7714 on "insns" when invoking emit_libcall_block_1. Ultimately we
7715 want to strengthen insns itself.
7716 (prepare_cmp_insn): Strengthen local "last" from rtx to
7717 rtx_insn *.
7718 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7719 (prepare_float_lib_cmp): Likewise for local "insns".
7720 (emit_conditional_move): Likewise for local "last".
7721 (emit_conditional_add): Likewise.
7722 (have_sub2_insn): Likewise for local "seq".
7723 (expand_float): Likewise for local "insns". Strengthen locals
7724 "label", "neglabel" from rtx to rtx_code_label *.
7725 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7726 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7727 (expand_fixed_convert): Likewise for local "insns" (to
7728 rtx_insn *).
7729 (expand_sfix_optab): Likewise for local "last".
7730 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7731 to rtx_code_label *.
7732 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7733 from rtx to rtx_insn *.
7734 (expand_atomic_fetch_op): Likewise for local "insn".
7735 (maybe_legitimize_operand_same_code): Likewise for local "last".
7736 (maybe_legitimize_operands): Likewise.
7737
7738 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7739
7740 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7741 "insn" from rtx to rtx_insn *.
7742 (ps_rtl_insn): Likewise for return type.
7743 (doloop_register_get): Likewise for params "head", "tail" and
7744 locals "insn", "first_insn_not_to_check".
7745 (schedule_reg_move): Likewise for local "this_insn".
7746 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7747 of gen_move_insn for now.
7748 (reset_sched_times): Strengthen local "insn" from rtx to
7749 rtx_insn *.
7750 (permute_partial_schedule): Likewise.
7751 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7752 (dump_insn_location): Likewise for param "insn".
7753 (loop_canon_p): Likewise for local "insn".
7754 (sms_schedule): Likewise.
7755 (print_partial_schedule): Likewise.
7756 (ps_has_conflicts): Likewise.
7757
7758 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7759
7760 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7761 "tailp" from rtx * to rtx_insn **.
7762
7763 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7764 from rtx to rtx_insn *.
7765 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7766 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7767 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7768 rtx to rtx_insn *.
7769 * modulo-sched.c (const_iteration_count): Strengthen return type
7770 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7771 use of NULL_RTX with NULL when working with insns.
7772 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7773 to rtx_insn *.
7774 (sms_schedule): Likewise.
7775 * sched-rgn.c (init_ready_list): Likewise, also for locals
7776 "src_head" and "src_next_tail".
7777 (compute_block_dependences): Likewise.
7778 (free_block_dependencies): Likewise.
7779 (debug_rgn_dependencies): Likewise.
7780 (free_rgn_deps): Likewise.
7781 (compute_priorities): Likewise.
7782 (schedule_region): Likewise.
7783 * sel-sched.c (find_ebb_boundaries): Likewise.
7784
7785 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7786 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7787
7788 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7789
7790 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7791 from rtx to rtx_insn *.
7792 (new_seginfo): Likewise for param "insn".
7793 (create_pre_exit): Likewise for locals "last_insn",
7794 "before_return_copy", "return_copy".
7795 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7796 "mode_set".
7797
7798 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7799
7800 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7801 from rtx to rtx_insn *.
7802 (lra_push_insn): Likewise for 1st param.
7803 (lra_push_insn_and_update_insn_regno_info): Likewise.
7804 (lra_pop_insn): Likewise for return type.
7805 (lra_invalidate_insn_data): Likewise for 1st param.
7806 (lra_set_insn_deleted): Likewise.
7807 (lra_delete_dead_insn): Likewise.
7808 (lra_process_new_insns): Likewise for first 3 params.
7809 (lra_set_insn_recog_data): Likewise for 1st param.
7810 (lra_update_insn_recog_data): Likewise.
7811 (lra_set_used_insn_alternative): Likewise.
7812 (lra_invalidate_insn_regno_info): Likewise.
7813 (lra_update_insn_regno_info): Likewise.
7814 (lra_former_scratch_operand_p): Likewise.
7815 (lra_eliminate_regs_1): Likewise.
7816 (lra_get_insn_recog_data): Likewise.
7817
7818 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7819 rtx to rtx_insn *.
7820
7821 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7822 "mv1" and "mv2".
7823 (substitute_within_insn): New.
7824 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7825 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7826 Replace call to "substitute" with call to substitute_within_insn.
7827
7828 * lra-constraints.c (curr_insn): Strengthen from rtx to
7829 rtx_insn *.
7830 (get_equiv_with_elimination): Likewise for param "insn".
7831 (match_reload): Strengthen params "before" and "after" from rtx *
7832 to rtx_insn **.
7833 (emit_spill_move): Likewise for return type. Add a checked cast
7834 to rtx_insn * on result of gen_move_insn for now.
7835 (check_and_process_move): Likewise for local "before". Replace
7836 NULL_RTX with NULL when referring to insns.
7837 (process_addr_reg): Strengthen params "before" and "after" from
7838 rtx * to rtx_insn **.
7839 (insert_move_for_subreg): Likewise.
7840 (simplify_operand_subreg): Strengthen locals "before" and "after"
7841 from rtx to rtx_insn *.
7842 (process_address_1): Strengthen params "before" and "after" from
7843 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7844 rtx to rtx_insn *.
7845 (process_address): Strengthen params "before" and "after" from
7846 rtx * to rtx_insn **.
7847 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7848 (curr_insn_transform): Strengthen locals "before" and "after"
7849 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7850 to insns.
7851 (loc_equivalence_callback): Update cast of "data", changing
7852 resulting type from rtx to rtx_insn *.
7853 (substitute_pseudo_within_insn): New.
7854 (inherit_reload_reg): Strengthen param "insn" from rtx to
7855 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7856 NULL when referring to insns. Add a checked cast to rtx_insn *
7857 when using usage_insn to invoke lra_update_insn_regno_info.
7858 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7859 likewise for locals "restore", "save". Add checked casts to
7860 rtx_insn * when using usage_insn to invoke
7861 lra_update_insn_regno_info and lra_process_new_insns. Replace
7862 NULL_RTX with NULL when referring to insns.
7863 (split_if_necessary): Strengthen param "insn" from rtx to
7864 rtx_insn *.
7865 (update_ebb_live_info): Likewise for params "head", "tail" and local
7866 "prev_insn".
7867 (get_last_insertion_point): Likewise for return type and local "insn".
7868 (get_live_on_other_edges): Likewise for local "last".
7869 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7870 "prev_insn", "next_insn", "restore".
7871 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7872 (undo_optional_reloads): Likewise for local "insn".
7873
7874 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7875 "insn".
7876 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7877 insns.
7878 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7879 rtx_insn *.
7880 (spill_pseudos): Likewise for local "insn".
7881 (init_elimination): Likewise.
7882 (process_insn_for_elimination): Likewise for param "insn".
7883
7884 * lra-lives.c (curr_insn): Likewise.;
7885
7886 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7887 (remove_pseudos): Likewise for param "insn".
7888 (spill_pseudos): Likewise for local "insn".
7889 (lra_final_code_change): Likewise for locals "insn", "curr".
7890
7891 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7892 (lra_set_insn_deleted): Likewise.
7893 (lra_delete_dead_insn): Likewise, and for local "prev".
7894 (new_insn_reg): Likewise for param "insn".
7895 (lra_set_insn_recog_data): Likewise.
7896 (lra_update_insn_recog_data): Likewise.
7897 (lra_set_used_insn_alternative): Likewise.
7898 (get_insn_freq): Likewise.
7899 (invalidate_insn_data_regno_info): Likewise.
7900 (lra_invalidate_insn_regno_info): Likewise.
7901 (lra_update_insn_regno_info): Likewise.
7902 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7903 vec<rtx_insn *>.
7904 (lra_push_insn_1): Strengthen param "insn" from rtx to
7905 rtx_insn *.
7906 (lra_push_insn): Likewise.
7907 (lra_push_insn_and_update_insn_regno_info): Likewise.
7908 (lra_pop_insn): Likewise for return type and local "insn".
7909 (push_insns): Likewise for params "from", "to", and local "insn".
7910 (setup_sp_offset): Likewise for params "from", "last" and locals
7911 "before", "insn".
7912 (lra_process_new_insns): Likewise for params "insn", "before",
7913 "after" and local "last".
7914 (struct sloc): Likewise for field "insn".
7915 (lra_former_scratch_operand_p): Likewise for param "insn".
7916 (remove_scratches): Likewise for locals "insn", "last".
7917 (check_rtl): Likewise for local "insn".
7918 (add_auto_inc_notes): Likewise for param "insn".
7919 (update_inc_notes): Likewise for local "insn".
7920 (lra): Replace NULL_RTX with NULL when referring to insn.
7921
7922 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7923
7924 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7925 to rtx_insn *.
7926 (resolve_reg_notes): Likewise.
7927 (resolve_simple_move): Likewise for return type, param "insn", and
7928 locals "insns", "minsn".
7929 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7930 (resolve_use): Likewise.
7931 (resolve_debug): Likewise.
7932 (find_decomposable_shift_zext): Likewise.
7933 (resolve_shift_zext): Likewise for return type, param "insn", and
7934 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7935 (decompose_multiword_subregs): Likewise for local "insn",
7936 "orig_insn", "decomposed_shift", "end".
7937
7938 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7939
7940 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7941 param "insns" from rtx to rtx_insn *.
7942
7943 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7944 rtx to rtx_insn *.
7945 (struct iv_to_split): Likewise.
7946 (loop_exit_at_end_p): Likewise for local "insn".
7947 (split_edge_and_insert): Likewise for param "insns".
7948 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7949 and locals "seq", "jump".
7950 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7951 "branch_code"; update invocations of compare_and_jump_seq to
7952 eliminate NULL_RTX in favor of NULL.
7953 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7954 rtx to rtx_insn *.
7955 (reset_debug_uses_in_loop): Likewise.
7956 (analyze_insn_to_expand_var): Likewise for param "insn".
7957 (analyze_iv_to_split_insn): Likewise.
7958 (analyze_insns_in_loop): Likewise for local "insn".
7959 (insert_base_initialization): Likewise for param
7960 "insn" and local "seq".
7961 (split_iv): Likewise for param "insn" and local "seq".
7962 (expand_var_during_unrolling): Likewise for param "insn".
7963 (insert_var_expansion_initialization): Likewise for local "seq".
7964 (combine_var_copies_in_loop_exit): Likewise.
7965 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7966 "insn".
7967 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7968 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7969 "next".
7970
7971 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7972
7973 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7974 rtx_insn *.
7975 (iv_analyze_result): Likewise.
7976 (iv_analyze_expr): Likewise.
7977 (biv_p): Likewise.
7978
7979 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7980 local "def_insn" from rtx to rtx_insn *.
7981 (get_biv_step_1): Likewise for local "insn".
7982 (iv_analyze_expr): Likewise for param "insn".
7983 (iv_analyze_def): Likewise for local "insn".
7984 (iv_analyze_op): Likewise for param "insn".
7985 (iv_analyze): Likewise.
7986 (iv_analyze_result): Likewise.
7987 (biv_p): Likewise.
7988 (suitable_set_for_replacement): Likewise.
7989 (simplify_using_initial_values): Likewise for local "insn".
7990 (iv_number_of_iterations): Likewise for param "insn".
7991 (check_simple_exit): Add checked cast to rtx_insn when invoking
7992 iv_number_of_iterations for now (until get_condition is
7993 strengthened).
7994
7995 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7996 "insn" from rtx to rtx_insn *.
7997 (analyze_insns_in_loop): Likewise for local "insn".
7998
7999 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8000
8001 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
8002 to rtx_insn *.
8003 (struct invariant): Likewise.
8004 (hash_invariant_expr_1): Likewise for param "insn".
8005 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
8006 (find_exits): Likewise for local "insn".
8007 (create_new_invariant): Likewise for param "insn".
8008 (check_dependencies): Likewise.
8009 (find_invariant_insn): Likewise.
8010 (record_uses): Likewise.
8011 (find_invariants_insn): Likewise.
8012 (find_invariants_bb): Likewise for local "insn".
8013 (get_pressure_class_and_nregs): Likewise for param "insn".
8014 (calculate_loop_reg_pressure): Likewise for local "insn".
8015
8016 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8017
8018 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
8019 to rtx_insn *.
8020 (add_test): Likewise for locals "seq", "jump".
8021 (doloop_modify): Likewise for locals "sequence", "jump_insn".
8022
8023 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8024
8025 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
8026 rtx_insn *.
8027 (rebuild_jump_labels_chain): Likewise for param "chain".
8028
8029 * cfgexpand.c (pass_expand::execute): Add checked cast to
8030 rtx_insn * when calling rebuild_jump_labels_chain in region where
8031 we know e->insns.r is non-NULL.
8032
8033 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
8034 rtx_insn *.
8035 (rebuild_jump_labels): Likewise.
8036 (rebuild_jump_labels_chain): Likewise for param "chain".
8037 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
8038 (init_label_info): Likewise for param "f".
8039 (maybe_propagate_label_ref): Likewise for params "jump_insn",
8040 "prev_nonjump_insn".
8041 (mark_all_labels): Likewise for param "f" and locals "insn",
8042 "prev_nonjump_insn".
8043
8044 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8045
8046 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
8047 from rtx to rtx_insn *insn.
8048 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
8049 (ira_add_allocno_copy): Likewise.
8050 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
8051 rtx to rtx_insn *.
8052 (ira_create_copy): Likewise.
8053 (ira_add_allocno_copy): Likewise.
8054 (create_bb_allocnos): Likewise for local "insn".
8055 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
8056 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
8057 process_regs_for_copy for rtx_insn * param.
8058 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
8059 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
8060 process_regs_for_copy for rtx_insn * param.
8061 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
8062 * ira-costs.c (record_reg_classes): Likewise for param "insn".
8063 (record_operand_costs): Likewise.
8064 (scan_one_insn): Likewise for return type, and for param "insn".
8065 (process_bb_for_costs): Likewise for local "insn".
8066 (process_bb_node_for_hard_reg_moves): Likewise.
8067 * ira-emit.c (struct move): Likewise for field "insn".
8068 (create_move): Eliminate use of NULL_RTX when dealing with an
8069 rtx_insn *.
8070 (emit_move_list): Strengthen return type and locals "result",
8071 "insn" from rtx to rtx_insn *insn.
8072 (emit_moves): Likewise for locals "insns", "tmp".
8073 (ira_emit): Likewise for local "insn".
8074 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
8075 "insn".
8076 (find_call_crossed_cheap_reg): Likewise.
8077 (process_bb_node_lives): Likewise for local "insn".
8078 * ira.c (decrease_live_ranges_number): Likewise.
8079 (compute_regs_asm_clobbered): Likewise.
8080 (build_insn_chain): Likewise.
8081 (find_moveable_pseudos): Likewise, also locals "def_insn",
8082 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
8083 to rtx_insn **. Add a checked cast when assigning from
8084 "closest_use" into closest_uses array in a region where we know
8085 it's a non-NULL insn.
8086 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
8087 to rtx_insn *.
8088 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
8089 "last_interesting_insn", "uin".
8090 (move_unallocated_pseudos): Likewise for locals "def_insn",
8091 "move_insn", "newinsn".
8092
8093 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8094
8095 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
8096 Strengthen locals "done_label", "do_error" from rtx to
8097 rtx_code_label *.
8098 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
8099 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
8100 rtx_code_label *.
8101 (ubsan_expand_si_overflow_neg_check): Likewise for locals
8102 "done_label", "do_error" to rtx_code_label * and local "last" to
8103 rtx_insn *.
8104 (ubsan_expand_si_overflow_mul_check): Likewise for locals
8105 "done_label", "do_error", "large_op0", "small_op0_large_op1",
8106 "one_small_one_large", "both_ops_large", "after_hipart_neg",
8107 "after_lopart_neg", "do_overflow", "hipart_different" to
8108 rtx_code_label * and local "last" to rtx_insn *.
8109
8110 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8111
8112 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8113 "insn" and "move_insn" from rtx to rtx_insn *.
8114
8115 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8116
8117 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8118 rtx_insn *.
8119 (cheap_bb_rtx_cost_p): Likewise.
8120 (first_active_insn): Likewise for return type and local "insn".
8121 (last_active_insn): Likewise for return type and locals "insn",
8122 "head".
8123 (struct noce_if_info): Likewise for fields "jump", "insn_a",
8124 "insn_b".
8125 (end_ifcvt_sequence): Likewise for return type and locals "insn",
8126 "seq".
8127 (noce_try_move): Likewise for local "seq".
8128 (noce_try_store_flag): Likewise.
8129 (noce_try_store_flag_constants): Likewise.
8130 (noce_try_addcc): Likewise.
8131 (noce_try_store_flag_mask): Likewise.
8132 (noce_try_cmove): Likewise.
8133 (noce_try_minmax): Likewise.
8134 (noce_try_abs): Likewise.
8135 (noce_try_sign_mask): Likewise.
8136 (noce_try_bitop): Likewise.
8137 (noce_can_store_speculate_p): Likewise for local "insn".
8138 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8139 seq".
8140 (check_cond_move_block): Likewise for local "insn".
8141 (cond_move_convert_if_block): Likewise.
8142 (cond_move_process_if_block): Likewise for locals "seq",
8143 "loc_insn".
8144 (noce_find_if_block): Likewise for local "jump".
8145 (merge_if_block): Likewise for local "last".
8146 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8147 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8148 (block_has_only_trap): Likewise for return type and local "trap".
8149 (find_if_case_1): Likewise for local "jump".
8150 (dead_or_predicable): Likewise for locals "head", "end", "jump",
8151 "insn".
8152
8153 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8154
8155 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8156 "last_insn", "loop_end" from rtx to rtx_insn *.
8157
8158 * hw-doloop.c (scan_loop): Likewise for local "insn".
8159 (discover_loop): Likewise for param "tail_insn".
8160 (discover_loops): Likewise for local "tail".
8161
8162 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8163 cast to rtx_insn * when assigning from an rtx local to a
8164 hwloop_info's "last_insn" field.
8165
8166 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8167
8168 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8169 (add_delay_dependencies): Strengthen local "pro" from rtx to
8170 rtx_insn *.
8171 (recompute_todo_spec): Likewise.
8172 (dep_cost_1): Likewise for locals "insn", "used".
8173 (schedule_insn): Likewise for local "dbg".
8174 (schedule_insn): Likewise for locals "pro", "next".
8175 (unschedule_insns_until): Likewise for local "con".
8176 (restore_pattern): Likewise for local "next".
8177 (estimate_insn_tick): Likewise for local "pro".
8178 (resolve_dependencies): Likewise for local "next".
8179 (fix_inter_tick): Likewise.
8180 (fix_tick_ready): Likewise for local "pro".
8181 (add_to_speculative_block): Likewise for locals "check", "twin",
8182 "pro".
8183 (sched_extend_bb): Likewise for locals "end", "insn".
8184 (init_before_recovery): Likewise for local "x".
8185 (sched_create_recovery_block): Likewise for local "barrier".
8186 (create_check_block_twin): Likewise for local "pro".
8187 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8188 "consumer".
8189 (unlink_bb_notes): Update for change to type of bb_header.
8190 Strengthen locals "prev", "label", "note", "next" from rtx to
8191 rtx_insn *.
8192 (clear_priorities): Likewise for local "pro".
8193
8194 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8195
8196 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8197 rtx_insn *.
8198 (test_insn): Likewise for this global.
8199 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8200 const rtx_insn *.
8201 (oprs_anticipatable_p): Likewise.
8202 (oprs_available_p): Likewise.
8203 (insert_expr_in_table): Strengthen param "insn" from rtx to
8204 rtx_insn *.
8205 (hash_scan_set): Likewise.
8206 (hash_scan_clobber): Likewise.
8207 (hash_scan_call): Likewise.
8208 (hash_scan_insn): Likewise.
8209 (compute_hash_table_work): Likewise for local "insn".
8210 (process_insert_insn): Likewise for return type and local "pat".
8211 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8212 "pat", "pat_end", "maybe_cc0_setter".
8213 (pre_edge_insert): Likewise for local "insn".
8214 (pre_insert_copy_insn): Likewise for param "insn".
8215 (pre_insert_copies): Likewise for local "insn".
8216 (struct set_data): Likewise for field "insn".
8217 (single_set_gcse): Likewise for param "insn".
8218 (gcse_emit_move_after): Likewise.
8219 (pre_delete): Likewise for local "insn".
8220 (update_bb_reg_pressure): Likewise for param "from" and local
8221 "insn".
8222 (should_hoist_expr_to_dom): Likewise for param "from".
8223 (hoist_code): Likewise for local "insn".
8224 (get_pressure_class_and_nregs): Likewise for param "insn".
8225 (calculate_bb_reg_pressure): Likewise for local "insn".
8226 (compute_ld_motion_mems): Likewise.
8227
8228 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8229
8230 * genpeep.c (main): Rename param back from "uncast_ins1" to
8231 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8232 checked cast.
8233
8234 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8235
8236 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8237
8238 PR target/62195
8239 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8240 documentation to state it is only for VSX operations.
8241
8242 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8243 constraint only active if VSX.
8244
8245 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8246 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8247 (lfiwzx): Likewise.
8248
8249 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8250
8251 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8252 Strengthen local "insn" from rtx to rtx_insn *.
8253 (use_killed_between): Likewise for param "target_insn".
8254 (all_uses_available_at): Likewise for param "target_insn" and
8255 local "next".
8256 (update_df_init): Likewise for params "def_insn", "insn".
8257 (update_df): Likewise for param "insn".
8258 (try_fwprop_subst): Likewise for param "def_insn" and local
8259 "insn".
8260 (free_load_extend): Likewise for param "insn".
8261 (forward_propagate_subreg): Likewise for param "def_insn" and
8262 local "use_insn".
8263 (forward_propagate_asm): Likewise for param "def_insn" and local
8264 "use_insn".
8265 (forward_propagate_and_simplify): Likewise for param "def_insn"
8266 and local "use_insn".
8267 (forward_propagate_into): Likewise for locals "def_insn" and
8268 "use_insn".
8269
8270 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8271
8272 * function.c (emit_initial_value_sets): Strengthen local "seq"
8273 from rtx to rtx_insn *.
8274 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8275 local "seq".
8276 (instantiate_virtual_regs): Likewise for local "insn".
8277 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8278 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8279 (expand_function_end): Likewise for locals "insn" and "seq".
8280 (epilogue_done): Likewise for local "insn".
8281 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8282 "last", "trial".
8283 (reposition_prologue_and_epilogue_notes): Likewise for locals
8284 "insn", "last", "note", "first".
8285 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8286 (pass_match_asm_constraints::execute): Likewise for local "insn".
8287
8288 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8289
8290 * output.h (final_scan_insn): Strengthen return type from rtx to
8291 rtx_insn *.
8292 (final_forward_branch_p): Likewise for param.
8293 (current_output_insn): Likewise for this global.
8294
8295 * final.c (rtx debug_insn): Likewise for this variable.
8296 (current_output_insn): Likewise.
8297 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8298 adding "insn" back in as an rtx_insn * with a checked cast, so
8299 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8300 first param.
8301 (compute_alignments): Strengthen local "label" from rtx to
8302 rtx_insn *.
8303 (shorten_branches): Rename param from "first" to "uncast_first",
8304 introducing a new local rtx_insn * "first" using a checked cast to
8305 effectively strengthen "first" from rtx to rtx_insn * without
8306 affecting the type signature. Strengthen locals "insn", "seq",
8307 "next", "label" from rtx to rtx_insn *.
8308 (change_scope): Strengthen param "orig_insn" and local "insn" from
8309 rtx to rtx_insn *.
8310 (final_start_function): Rename param from "first" to "uncast_first",
8311 introducing a new local rtx_insn * "first" using a checked cast to
8312 effectively strengthen "first" from rtx to rtx_insn * without
8313 affecting the type signature. Strengthen local "insn" from rtx to
8314 rtx_insn *.
8315 (dump_basic_block_info): Strengthen param "insn" from rtx to
8316 rtx_insn *.
8317 (final): Rename param from "first" to "uncast_first",
8318 introducing a new local rtx_insn * "first" using a checked cast to
8319 effectively strengthen "first" from rtx to rtx_insn * without
8320 affecting the type signature. Strengthen locals "insn", "next"
8321 from rtx to rtx_insn *.
8322 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8323 rtx_insn *.
8324 (call_from_call_insn): Strengthen param "insn" from rtx to
8325 rtx_call_insn *.
8326 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8327 introducing a new local rtx_insn * "insn" using a checked cast to
8328 effectively strengthen "insn" from rtx to rtx_insn * without
8329 affecting the type signature. Strengthen return type and locals
8330 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8331 now-redundant checked cast to rtx_insn * from both invocations of
8332 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8333 introducing a local "call_insn" for use when invoking
8334 call_from_call_insn.
8335 (notice_source_line): Strengthen param "insn" from rtx to
8336 rtx_insn *.
8337 (leaf_function_p): Likewise for local "insn".
8338 (final_forward_branch_p): Likewise.
8339 (leaf_renumber_regs): Likewise for param "first".
8340 (rest_of_clean_state): Likewise for locals "insn" and "next".
8341 (self_recursive_call_p): Likewise for param "insn".
8342 (collect_fn_hard_reg_usage): Likewise for local "insn".
8343 (get_call_fndecl): Likewise for param "insn".
8344 (get_call_cgraph_rtl_info): Likewise.
8345 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8346 introducing a new local rtx_insn * "insn" using a checked cast to
8347 effectively strengthen "insn" from rtx to rtx_insn * without
8348 affecting the type signature.
8349
8350 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8351 cast when assigning from param "insn" to current_output_insn.
8352 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8353 so that we can assign it back to current_output_insn.
8354
8355 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8356
8357 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8358 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8359 atmxt540s and atmxt540sreva devices.
8360 * config/avr/avr-tables.opt: Regenerate.
8361 * config/avr/t-multilib: Regenerate.
8362 * doc/avr-mmcu.texi: Regenerate.
8363
8364 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8365
8366 * expr.c (convert_move): Strengthen local "insns" from rtx to
8367 rtx_insn *.
8368 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8369 "top_label" from rtx to rtx_code_label *.
8370 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8371 rtx_insn *.
8372 (emit_single_push_insn): Likewise for locals "prev", "last".
8373 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8374 to rtx_code_label *.
8375 (store_constructor): Likewise for locals "loop_start", "loop_end".
8376 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8377 rtx_insn *.
8378 (expand_expr_real_2): Likewise.
8379 (expand_expr_real_1): Strengthen local "label" from rtx to
8380 rtx_code_label *.
8381
8382 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8383
8384 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8385 from rtx to rtx_insn *.
8386 (store_bit_field_1): Likewise.
8387 (extract_bit_field_1): Likewise.
8388 (expand_mult_const): Likewise for local "insns".
8389 (expmed_mult_highpart): Strengthen local "label" from rtx to
8390 rtx_code_label *.
8391 (expand_smod_pow2): Likewise.
8392 (expand_sdiv_pow2): Likewise.
8393 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8394 rtx_insn *. Strengthen locals "label", "label1", "label2",
8395 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8396 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8397 (emit_store_flag): Likewise.
8398 (emit_store_flag_force): Strengthen local "label" from rtx to
8399 rtx_code_label *.
8400 (do_cmp_and_jump): Likewise for param "label".
8401
8402 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8403
8404 * explow.c (force_reg): Strengthen local "insn" from rtx to
8405 rtx_insn *.
8406 (adjust_stack_1): Likewise.
8407 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8408 "final_label", "available_label", "space_available" from rtx to
8409 rtx_code_label *.
8410 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8411 (anti_adjust_stack_and_probe): Likewise.
8412
8413 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8414
8415 * except.h (sjlj_emit_function_exit_after): Strengthen param
8416 "after" from rtx to rtx_insn *. This is only called with
8417 result of get_last_insn (in function.c) so type-change should be
8418 self-contained.
8419
8420 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8421 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8422 to rtx_insn *. These fields are only used from except.c so this
8423 type-change should be self-contained to this patch.
8424
8425 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8426 local "last" from rtx to rtx_insn *.
8427 (dw2_build_landing_pads): Likewise for local "seq".
8428 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8429 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8430 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8431 rtx to rtx_insn *.
8432 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8433 to rtx_insn *.
8434 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8435 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8436 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8437 referring to an insn. Strengthen local "dispatch_label" from
8438 rtx to rtx_code_label *.
8439 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8440 rtx_insn *.
8441 (expand_eh_return): Strengthen local "around_label" from
8442 rtx to rtx_code_label *.
8443 (convert_to_eh_region_ranges): Strengthen locals "iter",
8444 "last_action_insn", "first_no_action_insn",
8445 "first_no_action_insn_before_switch",
8446 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8447
8448 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8449
8450 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8451 from rtx to rtx_insn *.
8452 (cached_next_real_insn): Likewise.
8453 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8454 working with insns.
8455 (dwarf2out_var_location): Strengthen locals "next_real",
8456 "next_note", "expected_next_loc_note", "last_start", "insn" from
8457 rtx to rtx_insn *.
8458
8459 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8460
8461 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8462 from rtx to rtx_insn *.
8463 (create_pseudo_cfg): Likewise for local "insn".
8464
8465 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8466
8467 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8468 from rtx to rtx_insn *.
8469 (df_bb_regno_last_def_find): Likewise.
8470
8471 * df-problems.c (df_rd_bb_local_compute): Likewise.
8472 (df_lr_bb_local_compute): Likewise.
8473 (df_live_bb_local_compute): Likewise.
8474 (df_chain_remove_problem): Likewise.
8475 (df_chain_create_bb): Likewise.
8476 (df_word_lr_bb_local_compute): Likewise.
8477 (df_remove_dead_eq_notes): Likewise for param "insn".
8478 (df_note_bb_compute): Likewise for local "insn".
8479 (simulate_backwards_to_point): Likewise.
8480 (df_md_bb_local_compute): Likewise.
8481
8482 * df-scan.c (df_scan_free_bb_info): Likewise.
8483 (df_scan_start_dump): Likewise.
8484 (df_scan_start_block): Likewise.
8485 (df_install_ref_incremental): Likewise for local "insn".
8486 (df_insn_rescan_all): Likewise.
8487 (df_reorganize_refs_by_reg_by_insn): Likewise.
8488 (df_reorganize_refs_by_insn_bb): Likewise.
8489 (df_recompute_luids): Likewise.
8490 (df_bb_refs_record): Likewise.
8491 (df_update_entry_exit_and_calls): Likewise.
8492 (df_bb_verify): Likewise.
8493
8494 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8495
8496 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8497 "first_note" from rtx to rtx_insn *.
8498 (get_node_of_insn): Likewise for param 2 "insn".
8499 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8500
8501 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8502 rtx_insn *.
8503 (mem_write_insn_p): Likewise.
8504 (mem_access_insn_p): Likewise.
8505 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8506 (def_has_ccmode_p): Likewise for param "insn".
8507 (add_cross_iteration_register_deps): Likewise for locals
8508 "def_insn" and "use_insn".
8509 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8510 (build_intra_loop_deps): Likewise for local "src_insn".
8511 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8512 to rtx_insn *.
8513 (get_node_of_insn): Likewise for param "insn".
8514
8515 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8516
8517 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8518 (deletable_insn_p): Strengthen param "insn" from rtx to
8519 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8520 find_call_stack_args, since this is guarded by CALL_P (insn).
8521 (marked_insn_p): Strengthen param "insn" from rtx to
8522 rtx_insn *.
8523 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8524 invoking find_call_stack_args, since this is guarded by
8525 CALL_P (insn).
8526 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8527 rtx_insn *; we know this is an insn since this was called by
8528 mark_nonreg_stores.
8529 (mark_nonreg_stores_2): Likewise.
8530 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8531 rtx_insn *.
8532 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8533 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8534 to rtx_insn *.
8535 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8536 from rtx to rtx_insn *.
8537 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8538 "next", "ref_insn".
8539 (delete_unmarked_insns): Likewise for locals "insn", "next".
8540 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8541 (mark_reg_dependencies): Likewise for param "insn".
8542 (rest_of_handle_ud_dce): Likewise for local "insn".
8543 (word_dce_process_block): Likewise.
8544 (dce_process_block): Likewise.
8545
8546 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8547
8548 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8549 from rtx to rtx_insn *.
8550 (struct change_cc_mode_args): Likewise for field "insn".
8551 (this_insn): Strengthen from rtx to rtx_insn *.
8552 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8553 with insn.
8554 (validate_canon_reg): Strengthen param "insn" from rtx to
8555 rtx_insn *.
8556 (canon_reg): Likewise.
8557 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8558 dealing with insn.
8559 (record_jump_equiv): Strengthen param "insn" from rtx to
8560 rtx_insn *.
8561 (try_back_substitute_reg): Likewise, also for locals "prev",
8562 "bb_head".
8563 (find_sets_in_insn): Likewise for param "insn".
8564 (canonicalize_insn): Likewise.
8565 (cse_insn): Likewise. Add a checked cast.
8566 (invalidate_from_clobbers): Likewise for param "insn".
8567 (invalidate_from_sets_and_clobbers): Likewise.
8568 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8569 dealing with insn.
8570 (cse_prescan_path): Strengthen local "insn" from rtx to
8571 rtx_insn *.
8572 (cse_extended_basic_block): Likewise for locals "insn" and
8573 "prev_insn".
8574 (cse_main): Likewise for param "f".
8575 (check_for_label_ref): Likewise for local "insn".
8576 (set_live_p): Likewise for second param ("insn").
8577 (insn_live_p): Likewise for first param ("insn") and for local
8578 "next".
8579 (cse_change_cc_mode_insn): Likewise for first param "insn".
8580 (cse_change_cc_mode_insns): Likewise for first and second params
8581 "start" and "end".
8582 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8583 and "end".
8584 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8585 "cc_src_insn".
8586
8587 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8588 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8589 Anna Tikhonova <anna.tikhonova@intel.com>
8590 Ilya Tocar <ilya.tocar@intel.com>
8591 Andrey Turetskiy <andrey.turetskiy@intel.com>
8592 Ilya Verbin <ilya.verbin@intel.com>
8593 Kirill Yukhin <kirill.yukhin@intel.com>
8594 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8595
8596 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8597 New.
8598 * config/i386/sse.md
8599 (define_mode_iterator VI248_AVX2): Delete.
8600 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8601 (define_mode_iterator VI48_AVX2): Ditto.
8602 (define_insn <shift_insn><mode>3): Delete.
8603 (define_insn "<shift_insn><mode>3<mask_name>" with
8604 VI2_AVX2_AVX512BW): New.
8605 (define_insn "<shift_insn><mode>3<mask_name>" with
8606 VI48_AVX2): Ditto.
8607
8608 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8609 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8610 Anna Tikhonova <anna.tikhonova@intel.com>
8611 Ilya Tocar <ilya.tocar@intel.com>
8612 Andrey Turetskiy <andrey.turetskiy@intel.com>
8613 Ilya Verbin <ilya.verbin@intel.com>
8614 Kirill Yukhin <kirill.yukhin@intel.com>
8615 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8616
8617 * config/i386/sse.md
8618 (define_mode_iterator VI4F_BRCST32x2): New.
8619 (define_mode_attr 64x2_mode): Ditto.
8620 (define_mode_attr 32x2mode): Ditto.
8621 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8622 with VI4F_BRCST32x2): Ditto.
8623 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8624 with V16FI mode iterator): Ditto.
8625 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8626 with V16FI): Ditto.
8627 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8628 with VI8F_BRCST64x2): Ditto.
8629
8630 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8631 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8632 Anna Tikhonova <anna.tikhonova@intel.com>
8633 Ilya Tocar <ilya.tocar@intel.com>
8634 Andrey Turetskiy <andrey.turetskiy@intel.com>
8635 Ilya Verbin <ilya.verbin@intel.com>
8636 Kirill Yukhin <kirill.yukhin@intel.com>
8637 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8638
8639 * config/i386/sse.md
8640 (define_mode_iterator VI8_AVX512VL): New.
8641 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8642
8643 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8644
8645 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8646 (define_mode_iterator V48_AVX512VL): New.
8647 (define_mode_iterator V12_AVX512VL): Ditto.
8648 (define_insn <avx512>_load<mode>_mask): Split into two similar
8649 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8650 Refactor output template.
8651 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8652
8653 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8654
8655 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8656 rtx_insn *.
8657 (reg_available_p): Likewise for param "insn".
8658 (insert_set_in_table): Likewise.
8659 (hash_scan_set): Likewise.
8660 (hash_scan_insn): Likewise.
8661 (make_set_regs_unavailable): Likewise.
8662 (compute_hash_table_work): Likewise for local "insn".
8663 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8664 const rtx_insn *.
8665 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8666 (try_replace_reg): Likewise.
8667 (find_avail_set): Likewise.
8668 (cprop_jump): Likewise for params "setcc", "jump".
8669 (constprop_register): Likewise for param "insn".
8670 (cprop_insn): Likewise.
8671 (do_local_cprop): Likewise.
8672 (local_cprop_pass): Likewise for local "insn".
8673 (bypass_block): Likewise for params "setcc" and "jump".
8674 (bypass_conditional_jumps): Likewise for locals "setcc" and
8675 "insn".
8676 (one_cprop_pass): Likewise for local "insn".
8677
8678 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8679
8680 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8681 from rtx to rtx_insn *.
8682 (struct comparison): Likewise, also for field "prev_clobber".
8683 (conforming_compare): Likewise for param "insn".
8684 (arithmetic_flags_clobber_p): Likewise.
8685 (find_flags_uses_in_insn): Likewise.
8686 (find_comparison_dom_walker::before_dom_children): Likewise for
8687 locals "insn", "next", "last_clobber".
8688 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8689
8690 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8691
8692 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8693 "insn" from rtx to rtx_insn *.
8694 (single_set_for_csa): Likewise for param "insn".
8695 (record_one_stack_ref): Likewise.
8696 (try_apply_stack_adjustment): Likewise.
8697 (struct record_stack_refs_data): Likewise for field "insn".
8698 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8699 (prev_active_insn_bb): Likewise for return type and param "insn".
8700 (next_active_insn_bb): Likewise.
8701 (force_move_args_size_note): Likewise for params "prev" and "last"
8702 and locals "test", "next_candidate", "prev_candidate".
8703 (combine_stack_adjustments_for_block): Strengthen locals
8704 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8705 rtx_insn *.
8706
8707 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8708
8709 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8710 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8711 (subst_insn): Likewise for this variable.
8712 (added_links_insn): Likewise.
8713 (struct insn_link): Likewise for field "insn".
8714 (alloc_insn_link): Likewise for param "insn".
8715 (struct undobuf): Likewise for field "other_insn".
8716 (find_single_use): Likewise for param "insn" and local "next".
8717 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8718 (delete_noop_moves): Likewise for locals "insn", "next".
8719 (create_log_links): Likewise for locals "insn", "use_insn".
8720 Strengthen local "next_use" from rtx * to rtx_insn **.
8721 (insn_a_feeds_b): Likewise for params "a", "b".
8722 (combine_instructions): Likewise for param "f" and locals "insn",
8723 "next", "prev", "first", "last_combined_insn", "link", "link1",
8724 "temp". Replace use of NULL_RTX with NULL when referring to
8725 insns.
8726 (setup_incoming_promotions): Likewise for param "first"
8727 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8728 (can_combine_p): Likewise for params "insn", "i3", "pred",
8729 "pred2", "succ", "succ2" and for local "p".
8730 (combinable_i3pat): Likewise for param "i3".
8731 (cant_combine_insn_p): Likewise for param "insn".
8732 (likely_spilled_retval_p): Likewise.
8733 (adjust_for_new_dest): Likewise.
8734 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8735 (try_combine): Likewise for return type and for params "i3", "i2",
8736 "i1", "i0", "last_combined_insn", and for locals "insn",
8737 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8738 "i0_insn". Eliminate local "tem" in favor of new locals
8739 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8740 checked cast for now to rtx_insn * on the return type of
8741 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8742 insns.
8743 (find_split_point): Strengthen param "insn" from rtx to
8744 rtx_insn *.
8745 (simplify_set): Likewise for local "other_insn".
8746 (recog_for_combine): Likewise for param "insn".
8747 (record_value_for_reg): Likewise.
8748 (record_dead_and_set_regs_1): Likewise for local
8749 "record_dead_insn".
8750 (record_dead_and_set_regs): Likewise for param "insn".
8751 (record_promoted_value): Likewise.
8752 (check_promoted_subreg): Likewise.
8753 (get_last_value_validate): Likewise.
8754 (reg_dead_at_p): Likewise.
8755 (move_deaths): Likewise for param "to_insn".
8756 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8757 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8758 in favor of new locals "tem_note" and "tem_insn", the latter being
8759 an rtx_insn *.
8760 (distribute_links): Strengthen locals "place", "insn" from rtx to
8761 rtx_insn *.
8762
8763 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8764
8765 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8766 than a const_rtx.
8767 (can_delete_label_p): Require a const rtx_code_label * rather than
8768 a const_rtx.
8769 (delete_insn): Add checked cast to rtx_code_label * when we know
8770 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8771 rtx to rtx_insn *.
8772 (delete_insn_chain): Strengthen locals "prev" and "current" from
8773 rtx to rtx_insn *. Add a checked cast when assigning from
8774 "finish" (strengthening the params will come later). Add a
8775 checked cast to rtx_note * in region where we know
8776 NOTE_P (current).
8777 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8778 rtx_insn *.
8779 (compute_bb_for_insn): Likewise.
8780 (free_bb_for_insn): Likewise for local "insn".
8781 (compute_bb_for_insn): Likewise.
8782 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8783 local "insn" from rtx to rtx_insn *
8784 (flow_active_insn_p): Require a const rtx_insn * rather than a
8785 const_rtx.
8786 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8787 rtx_insn *.
8788 (can_fallthru): Likewise for locals "insn" and "insn2".
8789 (bb_note): Likewise for local "note".
8790 (first_insn_after_basic_block_note): Likewise for local "note" and
8791 for return type.
8792 (rtl_split_block): Likewise for locals "insn" and "next".
8793 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8794 "end".
8795 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8796 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8797 "prev", "tmp".
8798 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8799 them), "kill_from", "barrier", "new_insn".
8800 (patch_jump_insn): Likewise for params "insn", "old_label".
8801 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8802 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8803 "old_label", "new_label".
8804 (rtl_tidy_fallthru_edge): Likewise for local "q".
8805 (rtl_split_edge): Likewise for locals "before", "last".
8806 (commit_one_edge_insertion): Likewise for locals "before",
8807 "after", "insns", "tmp", "last", adding a checked cast where
8808 currently necessary.
8809 (commit_edge_insertions): Likewise.
8810 (rtl_dump_bb): Likewise for locals "insn", "last".
8811 (print_rtl_with_bb): Likewise for local "x".
8812 (rtl_verify_bb_insns): Likewise for local "x".
8813 (rtl_verify_bb_pointers): Likewise for local "insn".
8814 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8815 "head", "end".
8816 (rtl_verify_fallthru): Likewise for local "insn".
8817 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8818 (purge_dead_edges): Likewise for local "insn".
8819 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8820 (skip_insns_after_block): Likewise for return type and for locals
8821 "insn", "last_insn", "next_head", "prev".
8822 (record_effective_endpoints): Likewise for locals "next_insn",
8823 "insn", "end".
8824 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8825 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8826 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8827 (duplicate_insn_chain): For now, add checked cast from rtx to
8828 rtx_insn * when returning insn.
8829 (cfg_layout_duplicate_bb): Likewise for local "insn".
8830 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8831 "prev", "remaints".
8832 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8833 (rtl_block_empty_p): Likewise.
8834 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8835 "split_point", "last".
8836 (rtl_block_ends_with_call_p): Likewise for local "insn".
8837 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8838 const rtx_insn *.
8839 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8840 "split_at_insn" from rtx to rtx_insn *.
8841 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8842 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8843 to const rtx_insn *.
8844 (rtl_account_profile_record): Likewise.
8845
8846 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8847
8848 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8849 rtx to rtx_insn *.
8850 (average_num_loop_insns): Likewise.
8851 (init_set_costs): Likewise for local "seq".
8852 (seq_cost): Likewise for param "seq", from const_rtx to const
8853 rtx_insn *.
8854
8855 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8856
8857 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8858 rtx to rtx_insn *.
8859
8860 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8861
8862 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8863 "f1" and "f2" from rtx * to rtx_insn **.
8864 (flow_find_head_matching_sequence): Likewise.
8865
8866 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8867 "cbranch_insn" from rtx to rtx_insn *.
8868 (thread_jump): Likewise for local "insn".
8869 (try_forward_edges): Likewise for local "last".
8870 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8871 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8872 "real_b_end".
8873 (can_replace_by): Likewise for params "i1", "i2".
8874 (old_insns_match_p): Likewise.
8875 (merge_notes): Likewise.
8876 (walk_to_nondebug_insn): Likewise for param "i1".
8877 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8878 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8879 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8880 (flow_find_head_matching_sequence): Strengthen params "f1" and
8881 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8882 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8883 rtx_insn *.
8884 (outgoing_edges_match): Likewise for locals "last1", "last2".
8885 (try_crossjump_to_edge): Likewise for local "insn".
8886 Replace call to for_each_rtx with for_each_rtx_in_insn.
8887
8888 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8889 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8890 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8891 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8892 (try_optimize_cfg): Strengthen local "last" from rtx to
8893 rtx_insn *.
8894 (delete_dead_jumptables): Likewise for locals "insn", "next",
8895 "label".
8896
8897 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8898 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8899 "rtx else_first_tail", to reflect the basic-block.h changes above.
8900
8901 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8902
8903 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8904 rtx_insn *.
8905 (purge_dead_tablejump_edges): Likewise.
8906 (find_bb_boundaries): Likewise for locals "insn", "end",
8907 "flow_transfer_insn".
8908
8909 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8910
8911 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8912 "ins" and "prev" from rtx to rtx_insn *.
8913
8914 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8915
8916 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8917 rtx_insn *.
8918 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8919 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8920 "scan_start".
8921 (load_register_parameters): Likewise for local "before_arg".
8922 (check_sibcall_argument_overlap): Likewise for param "insn".
8923 (expand_call): Likewise for locals "normal_call_insns",
8924 "tail_call_insns", "insns", "before_call", "after_args",
8925 "before_arg", "last", "prev". Strengthen one of the "last" from
8926 rtx to rtx_call_insn *.
8927 (fixup_tail_calls): Strengthen local "insn" from rtx to
8928 rtx_insn *.
8929 (emit_library_call_value_1): Likewise for locals "before_call" and
8930 "last".
8931
8932 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8933
8934 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8935 and "last" from rtx to rtx_insn *.
8936 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8937 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8938 rtx_call_insn *.
8939 (expand_errno_check): Strengthen local "lab" from rtx to
8940 rtx_code_label *.
8941 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8942 rtx_insn *.
8943 (expand_builtin_mathfn_2): Likewise.
8944 (expand_builtin_mathfn_ternary): Likewise.
8945 (expand_builtin_mathfn_3): Likewise.
8946 (expand_builtin_interclass_mathfn): Likewise for local "last".
8947 (expand_builtin_int_roundingfn): Likewise for local "insns".
8948 (expand_builtin_int_roundingfn_2): Likewise.
8949 (expand_builtin_strlen): Likewise for local "before_strlen".
8950 (expand_builtin_strncmp): Likewise for local "seq".
8951 (expand_builtin_signbit): Likewise for local "last".
8952 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8953 from rtx to rtx_code_label *.
8954 (expand_stack_restore): Strengthen local "prev" from rtx to
8955 rtx_insn *.
8956
8957 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8958
8959 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8960 to rtx_insn *.
8961 (struct btr_def_s): Likewise.
8962 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8963 const rtx_insn *.
8964 (add_btr_def): Likewise.
8965 (new_btr_user): Likewise.
8966 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8967 rtx to rtx_insn *.
8968 (link_btr_uses): Likewise.
8969 (move_btr_def): Likewise for locals "insp", "old_insn",
8970 "new_insn". Add checked cast to rtx_insn * for now on result of
8971 gen_move_insn.
8972 (can_move_up): Strengthen param "insn" from const_rtx to
8973 const rtx_insn *.
8974
8975 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8976
8977 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8978 rtx_insn *.
8979 (get_uncond_jump_length): Likewise for locals "label", "jump".
8980 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8981 "jump", "insn".
8982 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8983 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8984 (find_jump_block): Likewise for local "insn".
8985 (fix_crossing_conditional_branches): Likewise for locals
8986 "old_jump", "new_jump".
8987 (fix_crossing_unconditional_branches): Likewise for locals
8988 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8989 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8990
8991 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8992
8993 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8994 rtx to rtx_insn *.
8995 (struct mem_insn): Likewise for field "insn".
8996 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8997 (reg_next_inc_use): Likewise.
8998 (reg_next_def): Likewise.
8999 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
9000 from rtx to rtx_insn *.
9001 (move_insn_before): Likewise for param "next_insn" and local "insns".
9002 (attempt_change): Likewise for local "mov_insn".
9003 (try_merge): Likewise for param "last_insn".
9004 (get_next_ref): Likewise for return type and local "insn".
9005 Strengthen param "next_array" from rtx * to rtx_insn **.
9006 (parse_add_or_inc): Strengthen param "insn" from rtx to
9007 rtx_insn *.
9008 (find_inc): Likewise for locals "insn" and "other_insn" (three of
9009 the latter).
9010 (merge_in_block): Likewise for locals "insn", "curr",
9011 "other_insn".
9012 (pass_inc_dec::execute): Update allocations of the arrays to
9013 reflect the stronger types.
9014
9015 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9016
9017 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
9018 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
9019 from rtx to rtx_code_label *.
9020
9021 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9022
9023 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
9024 to rtx_insn *.
9025
9026 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
9027
9028 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
9029 generated a warning and prevented bootstrapping the compiler.
9030
9031 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9032
9033 * rtl.h (delete_related_insns): Strengthen return type from rtx to
9034 rtx_insn *.
9035
9036 * jump.c (delete_related_insns): Likewise, also for locals "next"
9037 and "prev".
9038
9039 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9040
9041 * genautomata.c (output_internal_insn_latency_func): When writing
9042 the function "internal_insn_latency" to insn-automata.c,
9043 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
9044 allowing the optional guard function of (define_bypass) clauses to
9045 expect a pair of rtx_insn *, rather than a pair of rtx.
9046 (output_insn_latency_func): When writing the function
9047 "insn_latency", add an "uncast_" prefix to params "insn" and
9048 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
9049 using checked casts from the params, thus enabling the above
9050 change to the generated "internal_insn_latency" function.
9051
9052 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
9053
9054 PR tree-optimization/62091
9055 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
9056 handle correctly arrays.
9057 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
9058 inheritance binfos.
9059 (record_known_type): Walk into inner type.
9060 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
9061 condition on no type changes.
9062
9063 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9064
9065 * genattrtab.c (write_attr_get): Within the generated get_attr_
9066 functions, rename param "insn" to "uncast_insn" and reintroduce
9067 "insn" as an local rtx_insn * using a checked cast, so that "insn"
9068 is an rtx_insn * within insn-attrtab.c
9069
9070 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9071
9072 * output.h (peephole): Strengthen return type from rtx to
9073 rtx_insn *.
9074 * rtl.h (delete_for_peephole): Likewise for both params.
9075 * genpeep.c (main): In generated "peephole" function, strengthen
9076 return type and local "insn" from rtx to rtx_insn *. For now,
9077 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
9078 rtx_insn *, with a checked cast.
9079 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
9080 locals "insn", "next", "prev" from rtx to rtx_insn *.
9081
9082 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
9083
9084 PR tree-optimization/62112
9085 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
9086 * gimple-iterator.h (gsi_replace): Return bool.
9087 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
9088 moved from ref_may_alias_global_p.
9089 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
9090 New overloads.
9091 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
9092 (stmt_kills_ref_p_1): Rename...
9093 (stmt_kills_ref_p): ... to this.
9094 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
9095 stmt_kills_ref_p): Declare.
9096 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
9097 Move the self-assignment case...
9098 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
9099
9100 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9101
9102 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9103
9104 * emit-rtl.c (try_split): Likewise, also for locals "before" and
9105 "after". For now, don't strengthen param "trial", which requires
9106 adding checked casts when returning it.
9107
9108 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9109
9110 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9111 "label" from rtx to rtx_code_label *. Strengthen param 1 of
9112 "var_location" hook from rtx to rtx_insn *.
9113 (debug_nothing_rtx): Delete in favor of...
9114 (debug_nothing_rtx_code_label): New prototype.
9115 (debug_nothing_rtx_rtx): Delete unused prototype.
9116 (debug_nothing_rtx_insn): New prototype.
9117
9118 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9119 invoking debug_hooks->var_location (in two places, one in a NOTE
9120 case of a switch statement, the other guarded by a CALL_P
9121 conditional. Add checked cast to rtx_code_label * when invoking
9122 debug_hooks->label (within CODE_LABEL case of switch statement).
9123
9124 * dbxout.c (dbx_debug_hooks): Update "label" hook from
9125 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9126 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9127 (xcoff_debug_hooks): Likewise.
9128 * debug.c (do_nothing_debug_hooks): Likewise.
9129 (debug_nothing_rtx): Delete in favor of...
9130 (debug_nothing_rtx_insn): New function.
9131 (debug_nothing_rtx_rtx): Delete unused function.
9132 (debug_nothing_rtx_code_label): New function.
9133 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9134 debug_nothing_rtx to debug_nothing_rtx_code_label.
9135 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9136 to rtx_insn *.
9137 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9138 debug_nothing_rtx to debug_nothing_rtx_insn.
9139 (sdbout_label): Strengthen param "insn" from rtx to
9140 rtx_code_label *.
9141 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9142 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9143 "var_location" hook from debug_nothing_rtx to
9144 debug_nothing_rtx_insn.
9145
9146 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9147
9148 * recog.h (insn_output_fn): Update this function typedef to match
9149 the changes below to the generated output functions, strengthening
9150 the 2nd param from rtx to rtx_insn *.
9151
9152 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9153 insn when invoking an output function, to match the new signature
9154 of insn_output_fn with a stronger second param.
9155
9156 * genconditions.c (write_header): In the generated code for
9157 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9158 to match the other changes in this patch.
9159
9160 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9161 the generated "gen_" functions from rtx to rtx_insn * within their
9162 implementations.
9163
9164 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9165 the subfunctions within the generated "recog_", "split", "peephole2"
9166 function trees from rtx to rtx_insn *. For now, the top-level
9167 generated functions ("recog", "split", "peephole2") continue to
9168 take a plain rtx for "insn", to avoid introducing dependencies on
9169 other patches. Rename this 2nd param from "insn" to
9170 "uncast_insn", and reintroduce "insn" as a local variable of type
9171 rtx_insn *, initialized at the top of the generated function with
9172 a checked cast on "uncast_insn".
9173 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9174 the generated "gen_" functions from rtx to rtx_insn * within their
9175 prototypes.
9176
9177 * genoutput.c (process_template): Strengthen the 2nd param within
9178 the generated "output_" functions "insn" from rtx to rtx_insn *.
9179
9180 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9181
9182 * tree-profile.c (tree_profiling): Skip external functions
9183 when doing coverage instrumentation.
9184 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9185
9186 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9187
9188 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9189 (vec_mergee): Likewise.
9190 (vec_mergeo): Likewise.
9191 (vec_cntlz): Likewise.
9192 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9193 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9194 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9195 VMRGEW, and VMRGOW.
9196 * doc/extend.texi: Document various forms of vec_cpsgn,
9197 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9198 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9199 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9200 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9201 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9202
9203 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9204
9205 * config/rs6000/rs6000.c (context.h): New include.
9206 (tree-pass.h): Likewise.
9207 (make_pass_analyze_swaps): New decl.
9208 (rs6000_option_override): Register pass_analyze_swaps.
9209 (swap_web_entry): New subsclass of web_entry_base (df.h).
9210 (special_handling_values): New enum.
9211 (union_defs): New function.
9212 (union_uses): Likewise.
9213 (insn_is_load_p): Likewise.
9214 (insn_is_store_p): Likewise.
9215 (insn_is_swap_p): Likewise.
9216 (rtx_is_swappable_p): Likewise.
9217 (insn_is_swappable_p): Likewise.
9218 (chain_purpose): New enum.
9219 (chain_contains_only_swaps): New function.
9220 (mark_swaps_for_removal): Likewise.
9221 (swap_const_vector_halves): Likewise.
9222 (adjust_subreg_index): Likewise.
9223 (permute_load): Likewise.
9224 (permute_store): Likewise.
9225 (handle_special_swappables): Likewise.
9226 (replace_swap_with_copy): Likewise.
9227 (dump_swap_insn_table): Likewise.
9228 (rs6000_analyze_swaps): Likewise.
9229 (pass_data_analyze_swaps): New pass_data.
9230 (pass_analyze_swaps): New rtl_opt_pass.
9231 (make_pass_analyze_swaps): New function.
9232 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9233
9234 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9235
9236 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9237 type from rtx to rtx_insn *.
9238 (create_copy_of_insn_rtx): Likewise.
9239 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9240 (create_copy_of_insn_rtx): Likewise, also for local "res".
9241
9242 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9243
9244 * rtl.h (find_first_parameter_load): Strengthen return type from
9245 rtx to rtx_insn *.
9246 * rtlanal.c (find_first_parameter_load): Strengthen return type
9247 from rtx to rtx_insn *. Add checked cast for now, to postpone
9248 strengthening the params.
9249
9250 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9251
9252 PR fortran/44054
9253 * diagnostic.c: Set default caret.
9254 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9255 line is needed.
9256 * diagnostic.h (struct diagnostic_context):
9257
9258 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9259
9260 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9261 (sel_bb_head): Strengthen return type insn_t (currently just an
9262 rtx) to rtx_insn *.
9263 (sel_bb_end): Likewise.
9264
9265 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9266 (sel_bb_head): Strengthen return type and local "head" from
9267 insn_t (currently just an rtx) to rtx_insn *.
9268 (sel_bb_end): Likewise for return type.
9269 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9270 working with insn.
9271
9272 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9273
9274 * basic-block.h (get_last_bb_insn): Strengthen return type from
9275 rtx to rtx_insn *.
9276 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9277 end".
9278
9279 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9280
9281 PR fortran/44054
9282 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9283 to here ...
9284 (diagnostic_report_diagnostic): ... from here.
9285 * toplev.c (general_init): Move code to c-family.
9286
9287 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9288
9289 * df.h (web_entry_base): Replace existing struct web_entry with a
9290 new class web_entry_base with only the predecessor member.
9291 (unionfind_root): Remove declaration and move to class member.
9292 (unionfind_union): Remove declaration and move to friend
9293 function.
9294 (union_defs): Remove declaration.
9295 * web.c (web_entry_base::unionfind_root): Modify to be member
9296 function and adjust accessors.
9297 (unionfind_union): Modify to be friend function and adjust
9298 accessors.
9299 (web_entry): New subclass of web_entry_base containing the reg
9300 member.
9301 (union_match_dups): Modify for struct -> class changes.
9302 (union_defs): Likewise.
9303 (entry_register): Likewise.
9304 (pass_web::execute): Likewise.
9305
9306 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9307
9308 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9309 builtin define __VEC_ELEMENT_REG_ORDER__.
9310
9311 2014-08-20 Martin Jambor <mjambor@suse.cz>
9312 Wei Mi <wmi@google.com>
9313
9314 PR ipa/60449
9315 PR middle-end/61776
9316 * tree-ssa-operands.c (update_stmt_operands): Remove
9317 MODIFIED_NORETURN_CALLS.
9318 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9319 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9320 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9321 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9322 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9323 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9324 (gimple_call_set_ctrl_altering): New func.
9325 (gimple_call_ctrl_altering_p): Ditto.
9326 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9327 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9328 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9329 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9330 remove MODIFIED_NORETURN_CALLS.
9331
9332 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9333
9334 * coverage.c (coverage_compute_profile_id): Return non-0;
9335 also handle symbols with unique name.
9336 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9337
9338 2014-08-20 Steve Ellcey <sellcey@mips.com>
9339
9340 PR middle-end/49191
9341 * doc/sourcebuild.texi (non_strict_align): New.
9342
9343 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9344
9345 * cgraphunit.c (ipa_passes, compile): Reshedule
9346 symtab_remove_unreachable_nodes passes; update comments.
9347 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9348 TODO_remove_functions before the pass; the functions ought to be
9349 already removed.
9350 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9351 TODO_remove_functions.
9352 * passes.c (pass_data_early_local_passes): Do not schedule function
9353 removal.
9354 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9355
9356 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9357
9358 PR c/59304
9359 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9360 before setting the option.
9361 * diagnostic.c (diagnostic_classify_diagnostic): Record
9362 command-line status.
9363
9364 2014-08-20 Richard Biener <rguenther@suse.de>
9365
9366 PR lto/62190
9367 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9368 to build uint{16,32,64}_type_node.
9369
9370 2014-08-20 Terry Guo <terry.guo@arm.com>
9371
9372 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9373 with immediate_operand.
9374
9375 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9376
9377 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9378 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9379 NULL.
9380
9381 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9382
9383 PR preprocessor/51303
9384 * incpath.c (remove_duplicates): Use cpp_warning.
9385
9386 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9387
9388 PR c/60975
9389 PR c/53063
9390 * doc/options.texi (CPP): Document it.
9391 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9392 * optc-gen.awk: Handle CPP.
9393 * opth-gen.awk: Likewise.
9394
9395 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9396
9397 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9398 rtx_insn *.
9399 (duplicate_insn_chain): Likewise.
9400 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9401 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9402 checked cast for now (until we can strengthen the params in the
9403 same way).
9404 (duplicate_insn_chain): Likewise.
9405
9406 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9407
9408 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9409 rtx_insn *.
9410 (prev_cc0_setter): Likewise.
9411
9412 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9413 rtx_insn *, adding checked casts for now as necessary.
9414 (prev_cc0_setter): Likewise.
9415
9416 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9417
9418 * expr.h (emit_move_insn): Strengthen return type from rtx to
9419 rtx_insn *.
9420 (emit_move_insn_1): Likewise.
9421 (emit_move_complex_push): Likewise.
9422 (emit_move_complex_parts): Likewise.
9423
9424 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9425 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9426 with insns.
9427 (emit_move_complex_push): Strengthen return type from rtx to
9428 rtx_insn *.
9429 (emit_move_complex): Likewise, also for local "ret".
9430 (emit_move_ccmode): Likewise.
9431 (emit_move_multi_word): Likewise for return type and locals
9432 "last_insn", "seq".
9433 (emit_move_insn_1): Likewise for return type and locals "result",
9434 "ret".
9435 (emit_move_insn): Likewise for return type and local "last_insn".
9436 (compress_float_constant): Likewise.
9437
9438 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9439
9440 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9441 from rtx to rtx_insn *.
9442
9443 * rtl.h (emit_insn_before): Likewise.
9444 (emit_insn_before_noloc): Likewise.
9445 (emit_insn_before_setloc): Likewise.
9446 (emit_jump_insn_before): Likewise.
9447 (emit_jump_insn_before_noloc): Likewise.
9448 (emit_jump_insn_before_setloc): Likewise.
9449 (emit_call_insn_before): Likewise.
9450 (emit_call_insn_before_noloc): Likewise.
9451 (emit_call_insn_before_setloc): Likewise.
9452 (emit_debug_insn_before): Likewise.
9453 (emit_debug_insn_before_noloc): Likewise.
9454 (emit_debug_insn_before_setloc): Likewise.
9455 (emit_label_before): Likewise.
9456 (emit_insn_after): Likewise.
9457 (emit_insn_after_noloc): Likewise.
9458 (emit_insn_after_setloc): Likewise.
9459 (emit_jump_insn_after): Likewise.
9460 (emit_jump_insn_after_noloc): Likewise.
9461 (emit_jump_insn_after_setloc): Likewise.
9462 (emit_call_insn_after): Likewise.
9463 (emit_call_insn_after_noloc): Likewise.
9464 (emit_call_insn_after_setloc): Likewise.
9465 (emit_debug_insn_after): Likewise.
9466 (emit_debug_insn_after_noloc): Likewise.
9467 (emit_debug_insn_after_setloc): Likewise.
9468 (emit_label_after): Likewise.
9469 (emit_insn): Likewise.
9470 (emit_debug_insn): Likewise.
9471 (emit_jump_insn): Likewise.
9472 (emit_call_insn): Likewise.
9473 (emit_label): Likewise.
9474 (gen_clobber): Likewise.
9475 (emit_clobber): Likewise.
9476 (gen_use): Likewise.
9477 (emit_use): Likewise.
9478 (emit): Likewise.
9479
9480 (emit_barrier_before): Strengthen return type from rtx to
9481 rtx_barrier *.
9482 (emit_barrier_after): Likewise.
9483 (emit_barrier): Likewise.
9484
9485 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9486 from rtx to rtx_insn *. Add checked casts for now when converting
9487 "last" from rtx to rtx_insn *.
9488 (emit_insn_before_noloc): Likewise for return type.
9489 (emit_jump_insn_before_noloc): Likewise.
9490 (emit_call_insn_before_noloc): Likewise.
9491 (emit_debug_insn_before_noloc): Likewise.
9492 (emit_barrier_before): Strengthen return type and local "insn"
9493 from rtx to rtx_barrier *.
9494 (emit_label_before): Strengthen return type from rtx to
9495 rtx_insn *. Add checked cast for now when returning param
9496 (emit_pattern_after_noloc): Strengthen return type from rtx to
9497 rtx_insn *. Add checked casts for now when converting "last" from
9498 rtx to rtx_insn *.
9499 (emit_insn_after_noloc): Strengthen return type from rtx to
9500 rtx_insn *.
9501 (emit_jump_insn_after_noloc): Likewise.
9502 (emit_call_insn_after_noloc): Likewise.
9503 (emit_debug_insn_after_noloc): Likewise.
9504 (emit_barrier_after): Strengthen return type from rtx to
9505 rtx_barrier *.
9506 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9507 Add checked cast for now when converting "label" from rtx to
9508 rtx_insn *.
9509 (emit_pattern_after_setloc): Strengthen return type from rtx to
9510 rtx_insn *. Add checked casts for now when converting "last" from
9511 rtx to rtx_insn *.
9512 (emit_pattern_after): Strengthen return type from rtx to
9513 rtx_insn *.
9514 (emit_insn_after_setloc): Likewise.
9515 (emit_insn_after): Likewise.
9516 (emit_jump_insn_after_setloc): Likewise.
9517 (emit_jump_insn_after): Likewise.
9518 (emit_call_insn_after_setloc): Likewise.
9519 (emit_call_insn_after): Likewise.
9520 (emit_debug_insn_after_setloc): Likewise.
9521 (emit_debug_insn_after): Likewise.
9522 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9523 when converting "last" from rtx to rtx_insn *.
9524 (emit_pattern_before): Strengthen return type from rtx to
9525 rtx_insn *.
9526 (emit_insn_before_setloc): Likewise.
9527 (emit_insn_before): Likewise.
9528 (emit_jump_insn_before_setloc): Likewise.
9529 (emit_jump_insn_before): Likewise.
9530 (emit_call_insn_before_setloc): Likewise.
9531 (emit_call_insn_before): Likewise.
9532 (emit_debug_insn_before_setloc): Likewise.
9533 (emit_debug_insn_before): Likewise.
9534 (emit_insn): Strengthen return type and locals "last", "insn",
9535 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9536 within cases where we know we have an insn.
9537 (emit_debug_insn): Likewise.
9538 (emit_jump_insn): Likewise.
9539 (emit_call_insn): Strengthen return type and local "insn" from rtx
9540 to rtx_insn *.
9541 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9542 a checked cast to rtx_insn * for now on "label".
9543 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9544 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9545 (emit_use): Likewise.
9546 (gen_use): Likewise, also for local "seq".
9547 (emit): Likewise for return type and local "insn".
9548 (rtx_insn): Likewise for return type and local "new_rtx".
9549
9550 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9551 from rtx to rtx_barrier *.
9552
9553 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9554 changed return type from rtx to rtx_insn *, we must update
9555 "emit_fn" type, and this in turn means updating...
9556 (frame_insn): ...this. Strengthen return type from rtx to
9557 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9558
9559 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9560
9561 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9562 rtx to rtx_jump_table_data *. Also for local.
9563 * rtl.h (emit_jump_table_data): Likewise.
9564
9565 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9566
9567 * basic-block.h (create_basic_block_structure): Strengthen third
9568 param "bb_note" from rtx to rtx_note *.
9569 * rtl.h (emit_note_before): Strengthen return type from rtx to
9570 rtx_note *.
9571 (emit_note_after): Likewise.
9572 (emit_note): Likewise.
9573 (emit_note_copy): Likewise. Also, strengthen param similarly.
9574 * function.h (struct rtl_data): Strengthen field
9575 "x_stack_check_probe_note" from rtx to rtx_note *.
9576
9577 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9578 from rtx to rtx_note *.
9579 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9580 "bb_note" from rtx to rtx_note *.
9581 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9582 when calling emit_note_copy.
9583 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9584 rtx_note *.
9585 (emit_note_after): Likewise.
9586 (emit_note_before): Likewise.
9587 (emit_note_copy): Likewise. Also, strengthen param similarly.
9588 (emit_note): Likewise.
9589 * except.c (emit_note_eh_region_end): Likewise for return type.
9590 Strengthen local "next" from rtx to rtx_insn *.
9591 (convert_to_eh_region_ranges): Strengthen local "note"
9592 from rtx to rtx_note *.
9593 * final.c (change_scope): Likewise.
9594 (reemit_insn_block_notes): Likewise, for both locals named "note".
9595 Also, strengthen local "insn" from rtx to rtx_insn *.
9596 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9597 rtx to rtx_note *.
9598 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9599 strengthen local "seq" from rtx to rtx_insn *.
9600 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9601 to rtx_note *.
9602 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9603 vec<rtx_note *>.
9604 (get_bb_note_from_pool): Strengthen return type from rtx to
9605 rtx_note *.
9606 (sel_create_basic_block): Strengthen local "new_bb_note" from
9607 insn_t to rtx_note *.
9608 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9609 "note" from rtx to rtx_note *.
9610 (emit_notes_in_bb): Likewise.
9611
9612 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9613
9614 * function.h (struct rtl_data): Strengthen field
9615 "x_parm_birth_insn" from rtx to rtx_insn *.
9616 * function.c (struct assign_parm_data_all): Strengthen fields
9617 "first_conversion_insn" and "last_conversion_insn" from rtx to
9618 rtx_insn *.
9619
9620 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9621
9622 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9623 to rtx_insn *; also for local "var_end_seq".
9624 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9625 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9626 "insn".
9627 (expand_gimple_cond): Likewise for locals "last2" and "last".
9628 (mark_transaction_restart_calls): Likewise for local "insn".
9629 (expand_gimple_stmt): Likewise for return type and locals "last"
9630 and "insn".
9631 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9632 (avoid_complex_debug_insns): Likewise for param "insn".
9633 (expand_debug_locations): Likewise for locals "insn", "last",
9634 "prev_insn" and "insn2".
9635 (expand_gimple_basic_block): Likewise for local "last".
9636 (construct_exit_block): Likewise for locals "head", "end",
9637 "orig_end".
9638 (pass_expand::execute): Likewise for locals "var_seq",
9639 "var_ret_seq", "next".
9640
9641 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9642
9643 * asan.h (asan_emit_stack_protection): Strengthen return type from
9644 rtx to rtx_insn *.
9645 * asan.c (asan_emit_stack_protection): Likewise. Add local
9646 "insns" to hold the return value.
9647
9648 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9649
9650 * basic-block.h (bb_note): Strengthen return type from rtx to
9651 rtx_note *.
9652 * sched-int.h (bb_note): Likewise.
9653 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9654
9655 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9656
9657 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9658 rtx_insn *.
9659
9660 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9661 "insn" from rtx to rtx_insn *.
9662 (make_debug_insn_raw): Strengthen return type from rtx to
9663 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9664 (make_jump_insn_raw): Strengthen return type from rtx to
9665 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9666 (make_call_insn_raw): Strengthen return type from rtx to
9667 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9668 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9669 callback from rtx to rtx_insn *; likewise for local "insn" and
9670 "next", adding a checked cast to rtx_insn in the relevant cases of
9671 the switch statement.
9672 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9673 callback from rtx to rtx_insn *.
9674 (emit_pattern_after_setloc): Likewise.
9675 (emit_pattern_after): Likewise.
9676 (emit_pattern_before_setloc): Likewise.
9677 (emit_pattern_before): Likewise.
9678
9679 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9680
9681 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9682 rtx_call_insn *.
9683 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9684 accepting an rtx_insn *.
9685 (last_call_insn): Strengthen return type from rtx to
9686 rtx_call_insn *.
9687
9688 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9689
9690 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9691 "insns" from rtx to rtx_insn *.
9692 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9693 locals "insn" and "prev".
9694
9695 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9696
9697 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9698 rtx_jump_table_data **.
9699
9700 * cfgbuild.c (make_edges): Introduce local "table", using it in
9701 place of "tmp" for jump table data.
9702 (find_bb_boundaries): Strengthen local "table" from rtx to
9703 rtx_jump_table_data *.
9704 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9705 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9706 (try_crossjump_to_edge): Likewise.
9707 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9708 "table".
9709 (patch_jump_insn): Introduce local "table", using it in place of
9710 "tmp" for jump table data.
9711 (force_nonfallthru_and_redirect): Introduce local "table", so that
9712 call to tablejump_p can receive an rtx_jump_table_data **. Update
9713 logic around the call to overwrite "note" appropriately if
9714 tablejump_p returns non-zero.
9715 (get_last_bb_insn): Introduce local "table", using it in place of
9716 "tmp" for jump table data.
9717 * dwarf2cfi.c (create_trace_edges): Likewise.
9718
9719 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9720 from rtx to rtx_jump_table_data *.
9721 (create_fix_barrier): Strengthen local "tmp" from rtx to
9722 rtx_jump_table_data *.
9723 (arm_reorg): Likewise for local "table".
9724
9725 * config/s390/s390.c (s390_chunkify_start): Likewise.
9726
9727 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9728
9729 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9730 rtx to rtx_jump_table_data *.
9731
9732 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9733 rtx_jump_table_data **. Add a checked cast when writing through
9734 the pointer: we know there that local "table" is non-NULL and that
9735 JUMP_TABLE_DATA_P (table) holds.
9736 (label_is_jump_target_p): Introduce local "table", using it in
9737 place of "tmp" for jump table data.
9738
9739 2014-08-19 Marek Polacek <polacek@redhat.com>
9740
9741 PR c++/62153
9742 * doc/invoke.texi: Document -Wbool-compare.
9743
9744 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9745
9746 * rtl.h (entry_of_function): Strengthen return type from rtx to
9747 rtx_insn *.
9748 * cfgrtl.c (entry_of_function): Likewise.
9749
9750 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9751
9752 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9753 rtx_insn *, adding a checked cast for now.
9754 (get_last_insn): Likewise.
9755
9756 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9757
9758 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9759 rtx_code_label *.
9760
9761 * emit-rtl.c (gen_label_rtx): Likewise.
9762
9763 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9764
9765 * rtl.h (previous_insn): Strengthen return type from rtx to
9766 rtx_insn *.
9767 (next_insn): Likewise.
9768 (prev_nonnote_insn): Likewise.
9769 (prev_nonnote_insn_bb): Likewise.
9770 (next_nonnote_insn): Likewise.
9771 (next_nonnote_insn_bb): Likewise.
9772 (prev_nondebug_insn): Likewise.
9773 (next_nondebug_insn): Likewise.
9774 (prev_nonnote_nondebug_insn): Likewise.
9775 (next_nonnote_nondebug_insn): Likewise.
9776 (prev_real_insn): Likewise.
9777 (next_real_insn): Likewise.
9778 (prev_active_insn): Likewise.
9779 (next_active_insn): Likewise.
9780
9781 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9782 rtx_insn *, adding a checked cast.
9783 (previous_insn): Likewise.
9784 (next_nonnote_insn): Likewise.
9785 (next_nonnote_insn_bb): Likewise.
9786 (prev_nonnote_insn): Likewise.
9787 (prev_nonnote_insn_bb): Likewise.
9788 (next_nondebug_insn): Likewise.
9789 (prev_nondebug_insn): Likewise.
9790 (next_nonnote_nondebug_insn): Likewise.
9791 (prev_nonnote_nondebug_insn): Likewise.
9792 (next_real_insn): Likewise.
9793 (prev_real_insn): Likewise.
9794 (next_active_insn): Likewise.
9795 (prev_active_insn): Likewise.
9796
9797 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9798 param "stepfunc" so that it returns an rtx_insn * rather than an
9799 rtx, to track the change to prev_nonnote_insn_bb, which is the
9800 only function this is called with.
9801 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9802
9803 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9804
9805 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9806 assert.
9807
9808 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9809
9810 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9811 (class rtx_nonjump_insn): Likewise.
9812 (class rtx_jump_insn): Likewise.
9813 (class rtx_call_insn): Likewise.
9814 (class rtx_jump_table_data): Likewise.
9815 (class rtx_barrier): Likewise.
9816 (class rtx_code_label): Likewise.
9817 (class rtx_note): Likewise.
9818
9819 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9820 adding the invariant DEBUG_INSN_P (X).
9821 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9822 the invariant NONJUMP_INSN_P (X).
9823 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9824 the invariant JUMP_P (X).
9825 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9826 the invariant CALL_P (X).
9827 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9828 invariant JUMP_TABLE_DATA_P (X).
9829 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9830 invariant BARRIER_P (X).
9831 (class rtx_code_label): New, a subclass of rtx_insn, adding
9832 the invariant LABEL_P (X).
9833 (class rtx_note): New, a subclass of rtx_insn, adding
9834 the invariant NOTE_P(X).
9835 (is_a_helper <rtx_debug_insn *>::test): New.
9836 (is_a_helper <rtx_nonjump_insn *>::test): New.
9837 (is_a_helper <rtx_jump_insn *>::test): New.
9838 (is_a_helper <rtx_call_insn *>::test): New.
9839 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9840 overloaded for both rtx and rtx_insn *.
9841 (is_a_helper <rtx_barrier *>::test): New.
9842 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9843 for both rtx and rtx_insn *.
9844 (is_a_helper <rtx_note *>::test): New.
9845
9846 2014-08-19 Marek Polacek <polacek@redhat.com>
9847
9848 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9849 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9850 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9851 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9852
9853 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9854
9855 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9856 rtx_insn *. To help with transition, for now, convert from an
9857 access macro into a pair of functions: BND_TO, returning an
9858 rtx_insn *, and...
9859 (SET_BND_TO): New function, for use where BND_TO is used as an
9860 lvalue.
9861
9862 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9863 SET_BND_TO.
9864 (BND_TO): New function, adding a checked cast.
9865 (SET_BND_TO): New function.
9866
9867 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9868 SET_BND_TO.
9869 (compute_av_set_on_boundaries): Likewise.
9870
9871 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9872
9873 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9874 destination if it is used in source.
9875 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9876 (*popcount<mode>2_falsedep_1): Likewise.
9877
9878 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9879
9880 PR other/62168
9881 * configure.ac: Set install_gold_as_default to no first.
9882 * configure: Regenerated.
9883
9884 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9885
9886 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9887 "note_list" field will eventually be an rtx_insn *. To help with
9888 transition, for now, convert from an access macro into a pair of
9889 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9890 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9891 used as an lvalue.
9892
9893 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9894 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9895
9896 * sel-sched-ir.c (init_bb): Likewise.
9897 (sel_restore_notes): Likewise.
9898 (move_bb_info): Likewise.
9899 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9900 (SET_BB_NOTE_LIST): New function.
9901
9902 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9903
9904 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9905 field will eventually be an rtx_insn *. To help with transition,
9906 for now, convert from an access macro into a pair of functions:
9907 VINSN_INSN_RTX, returning an rtx_insn *, and...
9908 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9909 is used as an lvalue.
9910
9911 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9912 SET_VINSN_INSN_RTX where it's used as an lvalue.
9913 (VINSN_INSN_RTX): New function.
9914 (SET_VINSN_INSN_RTX): New function.
9915
9916 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9917
9918 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9919 eventually be rtx_insn *, but to help with transition, for now,
9920 convert from an access macro into a pair of functions: DEP_PRO
9921 returning an rtx_insn * and...
9922 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9923 lvalue, returning an rtx&.
9924 (DEP_CON): Analogous changes to DEP_PRO above.
9925 (SET_DEP_CON): Likewise.
9926
9927 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9928 an lvalue to SET_DEP_CON.
9929 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9930 (sd_copy_back_deps): Likewise for DEP_CON.
9931 (DEP_PRO): New function, adding a checked cast for now.
9932 (DEP_CON): Likewise.
9933 (SET_DEP_PRO): New function.
9934 (SET_DEP_CON): Likewise.
9935
9936 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9937
9938 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9939 (extra_options): Add i386/cygwin.opt.
9940 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9941 (CPP_SPEC): Accept -pthread.
9942 (LINK_SPEC): Ditto.
9943 (GOMP_SELF_SPECS): Update comment.
9944 * config/i386/cygwin.opt: New file for -pthread flag.
9945
9946 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9947
9948 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9949 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9950 that we can return an rtx_insn *.
9951
9952 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9953
9954 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9955 when building executables, not DLLs. Add --large-address-aware
9956 under the same conditions.
9957 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9958 when building executables, not DLLs. Add --large-address-aware
9959 under the same conditions when using -m32.
9960
9961 * config/i386/cygwin-stdint.h: Throughout, make type
9962 definitions dependent on target architecture, not host.
9963
9964 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9965
9966 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9967 the return type from rtx to rtx_insn *, which will enable various
9968 conversions in followup patches. For now this is is done by a
9969 checked cast.
9970 (NEXT_INSN): Likewise.
9971 (SET_PREV_INSN): Convert to an inline function. This is intended
9972 for use as an lvalue, and so returns an rtx& to allow in-place
9973 modification.
9974 (SET_NEXT_INSN): Likewise.
9975
9976 2014-07-08 Mark Wielaard <mjw@redhat.com>
9977
9978 PR debug/59051
9979 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9980
9981 2014-08-19 Marek Polacek <polacek@redhat.com>
9982
9983 PR c/61271
9984 * cgraphunit.c (handle_alias_pairs): Fix condition.
9985
9986 2014-08-19 Richard Biener <rguenther@suse.de>
9987
9988 * gimple-fold.c (fold_gimple_assign): Properly build a
9989 null-pointer constant when devirtualizing addresses.
9990
9991 2014-07-07 Mark Wielaard <mjw@redhat.com>
9992
9993 * dwarf2out.c (decl_quals): New function.
9994 (modified_type_die): Take one cv_quals argument instead of two,
9995 one for const and one for volatile.
9996 (add_type_attribute): Likewise.
9997 (generic_parameter_die): Call add_type_attribute with one modifier
9998 argument.
9999 (base_type_for_mode): Likewise.
10000 (add_bounds_info): Likewise.
10001 (add_subscript_info): Likewise.
10002 (gen_array_type_die): Likewise.
10003 (gen_descr_array_type_die): Likewise.
10004 (gen_entry_point_die): Likewise.
10005 (gen_enumeration_type_die): Likewise.
10006 (gen_formal_parameter_die): Likewise.
10007 (gen_subprogram_die): Likewise.
10008 (gen_variable_die): Likewise.
10009 (gen_const_die): Likewise.
10010 (gen_field_die): Likewise.
10011 (gen_pointer_type_die): Likewise.
10012 (gen_reference_type_die): Likewise.
10013 (gen_ptr_to_mbr_type_die): Likewise.
10014 (gen_inheritance_die): Likewise.
10015 (gen_subroutine_type_die): Likewise.
10016 (gen_typedef_die): Likewise.
10017 (force_type_die): Likewise.
10018
10019 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10020
10021 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
10022 if unset.
10023 * configure: Regenerate.
10024
10025 2014-08-19 Richard Biener <rguenther@suse.de>
10026
10027 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
10028 DECL_EXTERNALs in BLOCKs as non-references.
10029 * tree-streamer-out.c (streamer_write_chain): Likewise.
10030
10031 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
10032 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10033 Anna Tikhonova <anna.tikhonova@intel.com>
10034 Ilya Tocar <ilya.tocar@intel.com>
10035 Andrey Turetskiy <andrey.turetskiy@intel.com>
10036 Ilya Verbin <ilya.verbin@intel.com>
10037 Kirill Yukhin <kirill.yukhin@intel.com>
10038 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10039
10040 * config/i386/sse.md
10041 (define_mode_iterator VI48_AVX512F): Delete.
10042 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
10043 (define_mode_iterator VI2_AVX512VL): Ditto.
10044 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
10045 Delete.
10046 (define_insn
10047 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
10048 New.
10049 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
10050 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
10051 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10052 with VI48_AVX512F_AVX512VL): New.
10053 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
10054 with VI2_AVX512VL): Ditto.
10055
10056 2014-08-19 Marek Polacek <polacek@redhat.com>
10057
10058 * doc/invoke.texi: Document -Wc99-c11-compat.
10059
10060 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10061
10062 * rtl.h (PREV_INSN): Split macro in two: the existing one,
10063 for rvalues, and...
10064 (SET_PREV_INSN): New macro, for use as an lvalue.
10065 (NEXT_INSN, SET_NEXT_INSN): Likewise.
10066
10067 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
10068 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
10069 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
10070 (fixup_abnormal_edges): Likewise.
10071 (unlink_insn_chain): Likewise.
10072 (fixup_reorder_chain): Likewise.
10073 (cfg_layout_delete_block): Likewise.
10074 (cfg_layout_merge_blocks): Likewise.
10075 * combine.c (update_cfg_for_uncondjump): Likewise.
10076 * emit-rtl.c (link_insn_into_chain): Likewise.
10077 (remove_insn): Likewise.
10078 (delete_insns_since): Likewise.
10079 (reorder_insns_nobb): Likewise.
10080 (emit_insn_after_1): Likewise.
10081 * final.c (rest_of_clean_state): Likewise.
10082 (final_scan_insn): Likewise.
10083 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
10084 * haifa-sched.c (concat_note_lists): Likewise.
10085 (remove_notes): Likewise.
10086 (restore_other_notes): Likewise.
10087 (move_insn): Likewise.
10088 (unlink_bb_notes): Likewise.
10089 (restore_bb_notes): Likewise.
10090 * jump.c (delete_for_peephole): Likewise.
10091 * optabs.c (emit_libcall_block_1): Likewise.
10092 * reorg.c (emit_delay_sequence): Likewise.
10093 (fill_simple_delay_slots): Likewise.
10094 * sel-sched-ir.c (sel_move_insn): Likewise.
10095 (sel_remove_insn): Likewise.
10096 (get_bb_note_from_pool): Likewise.
10097 * sel-sched.c (move_nop_to_previous_block): Likewise.
10098
10099 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
10100 * config/c6x/c6x.c (gen_one_bundle): Likewise.
10101 (c6x_gen_bundles): Likewise.
10102 (hwloop_optimize): Likewise.
10103 * config/frv/frv.c (frv_function_prologue): Likewise.
10104 (frv_register_nop): Likewise.
10105 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10106 (ia64_reorg): Likewise.
10107 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10108 (mep_make_bundle): Likewise.
10109 (mep_bundle_insns): Likewise.
10110 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10111 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10112 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10113
10114 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10115
10116 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
10117 return type from rtx to rtx_insn *.
10118 (BB_END): Likewise.
10119 (BB_HEADER): Likewise.
10120 (BB_FOOTER): Likewise.
10121 (SET_BB_HEAD): Convert to a function.
10122 (SET_BB_END): Likewise.
10123 (SET_BB_HEADER): Likewise.
10124 (SET_BB_FOOTER): Likewise.
10125
10126 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10127 Strengthen the return type from rtx to rtx_insn *. For now, this
10128 is done by adding a checked cast, but this will eventually
10129 become a field lookup.
10130 (BB_END): Likewise.
10131 (BB_HEADER): Likewise.
10132 (BB_FOOTER): Likewise.
10133 (SET_BB_HEAD): New function, from macro of same name. This is
10134 intended for use as an lvalue, and so returns an rtx& to allow
10135 in-place modification.
10136 (SET_BB_END): Likewise.
10137 (SET_BB_HEADER): Likewise.
10138 (SET_BB_FOOTER): Likewise.
10139
10140 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10141
10142 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10143 for rvalues, and...
10144 (SET_BB_HEAD): New macro, for use as a lvalue.
10145 (BB_END, SET_BB_END): Likewise.
10146 (BB_HEADER, SET_BB_HEADER): Likewise.
10147 (BB_FOOTER, SET_BB_FOOTER): Likewise.
10148
10149 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10150 of BB_* macros into SET_BB_* macros.
10151 (fix_crossing_unconditional_branches): Likewise.
10152 * caller-save.c (save_call_clobbered_regs): Likewise.
10153 (insert_one_insn): Likewise.
10154 * cfgbuild.c (find_bb_boundaries): Likewise.
10155 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10156 (outgoing_edges_match): Likewise.
10157 (try_optimize_cfg): Likewise.
10158 * cfgexpand.c (expand_gimple_cond): Likewise.
10159 (expand_gimple_tailcall): Likewise.
10160 (expand_gimple_basic_block): Likewise.
10161 (construct_exit_block): Likewise.
10162 * cfgrtl.c (delete_insn): Likewise.
10163 (create_basic_block_structure): Likewise.
10164 (rtl_delete_block): Likewise.
10165 (rtl_split_block): Likewise.
10166 (emit_nop_for_unique_locus_between): Likewise.
10167 (rtl_merge_blocks): Likewise.
10168 (block_label): Likewise.
10169 (try_redirect_by_replacing_jump): Likewise.
10170 (emit_barrier_after_bb): Likewise.
10171 (fixup_abnormal_edges): Likewise.
10172 (record_effective_endpoints): Likewise.
10173 (relink_block_chain): Likewise.
10174 (fixup_reorder_chain): Likewise.
10175 (fixup_fallthru_exit_predecessor): Likewise.
10176 (cfg_layout_duplicate_bb): Likewise.
10177 (cfg_layout_split_block): Likewise.
10178 (cfg_layout_delete_block): Likewise.
10179 (cfg_layout_merge_blocks): Likewise.
10180 * combine.c (update_cfg_for_uncondjump): Likewise.
10181 * emit-rtl.c (add_insn_after): Likewise.
10182 (remove_insn): Likewise.
10183 (reorder_insns): Likewise.
10184 (emit_insn_after_1): Likewise.
10185 * haifa-sched.c (get_ebb_head_tail): Likewise.
10186 (restore_other_notes): Likewise.
10187 (move_insn): Likewise.
10188 (sched_extend_bb): Likewise.
10189 (fix_jump_move): Likewise.
10190 * ifcvt.c (noce_process_if_block): Likewise.
10191 (dead_or_predicable): Likewise.
10192 * ira.c (update_equiv_regs): Likewise.
10193 * reg-stack.c (change_stack): Likewise.
10194 * sel-sched-ir.c (sel_move_insn): Likewise.
10195 * sel-sched.c (move_nop_to_previous_block): Likewise.
10196
10197 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10198 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10199
10200 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10201
10202 * rtl.h (for_each_rtx_in_insn): New function.
10203 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10204
10205 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10206
10207 * coretypes.h (class rtx_insn): Add forward declaration.
10208
10209 * rtl.h: Include is-a.h.
10210 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10211 workaround to ensure gengtype knows inheritance is occurring,
10212 whilst continuing to use the pre-existing special-casing for
10213 rtx_def.
10214 (class rtx_insn): New subclass of rtx_def, adding the
10215 invariant that we're dealing with something we can sanely use
10216 INSN_UID, NEXT_INSN, PREV_INSN on.
10217 (is_a_helper <rtx_insn *>::test): New.
10218 (is_a_helper <const rtx_insn *>::test): New.
10219
10220 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10221
10222 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10223
10224 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10225
10226 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10227 comdats as extern.
10228
10229 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10230
10231 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10232 to BUILT_IN_UNREACHABLE.
10233
10234 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10235
10236 PR target/62011
10237 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10238 New tune flag.
10239 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10240 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10241 (ffs<mode>2): Do not expand with tzcnt for
10242 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10243 (ffssi2_no_cmove): Ditto.
10244 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10245 (ctz<mode>2): New expander.
10246 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10247 (*ctz<mode>2_falsedep): New insn.
10248 (*ctz<mode>2): Rename from ctz<mode>2.
10249 (clz<mode>2_lzcnt): New expander.
10250 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10251 (*clz<mode>2_lzcnt_falsedep): New insn.
10252 (*clz<mode>2): Rename from ctz<mode>2.
10253 (popcount<mode>2): New expander.
10254 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10255 (*popcount<mode>2_falsedep): New insn.
10256 (*popcount<mode>2): Rename from ctz<mode>2.
10257 (*popcount<mode>2_cmp): Remove.
10258 (*popcountsi2_cmp_zext): Ditto.
10259
10260 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10261
10262 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10263 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10264 * config/microblaze/microblaze.h
10265 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10266
10267 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10268
10269 PR other/62168
10270 * configure.ac: Set install_gold_as_default to no for
10271 --enable-gold=no.
10272 * configure: Regenerated.
10273
10274 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10275
10276 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10277 * config.in: Add undef of HAVE_isl.
10278 * configure: Regenerate.
10279 * configure.ac: Add definition of HAVE_isl.
10280 * graphite-blocking.c: Add checking of HAVE_isl.
10281 * graphite-dependences.c: Likewise.
10282 * graphite-interchange.c: Likewise.
10283 * graphite-isl-ast-to-gimple.c: Likewise.
10284 * graphite-optimize-isl.c: Likewise.
10285 * graphite-poly.c: Likewise.
10286 * graphite-scop-detection.c: Likewise.
10287 * graphite-sese-to-poly.c: Likewise.
10288 * graphite.c: Likewise.
10289 * toplev.c: Replace the checking of HAVE_cloog with the checking
10290 of HAVE_isl.
10291
10292 2014-08-18 Richard Biener <rguenther@suse.de>
10293
10294 PR tree-optimization/62090
10295 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10296 (fold_builtin_3): Do not fold snprintf.
10297 (fold_builtin_4): Likewise.
10298 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10299 moved from builtins.c.
10300 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10301 (gimple_fold_builtin): Do not fold sprintf here.
10302
10303 2014-08-18 Richard Biener <rguenther@suse.de>
10304
10305 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10306 code to ...
10307 (maybe_canonicalize_mem_ref_addr): ... this function.
10308 (fold_stmt_1): Apply it here before all simplification.
10309
10310 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10311
10312 PR ipa/61800
10313 * cgraph.h (cgraph_node::create_indirect_edge): Add
10314 compute_indirect_info param.
10315 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10316 indirect_info only when it is required.
10317 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10318 indirect_info fore cloned indirect edge.
10319
10320 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10321 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10322 Anna Tikhonova <anna.tikhonova@intel.com>
10323 Ilya Tocar <ilya.tocar@intel.com>
10324 Andrey Turetskiy <andrey.turetskiy@intel.com>
10325 Ilya Verbin <ilya.verbin@intel.com>
10326 Kirill Yukhin <kirill.yukhin@intel.com>
10327 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10328
10329 * config/i386/sse.md
10330 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10331 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10332
10333 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10334 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10335 Anna Tikhonova <anna.tikhonova@intel.com>
10336 Ilya Tocar <ilya.tocar@intel.com>
10337 Andrey Turetskiy <andrey.turetskiy@intel.com>
10338 Ilya Verbin <ilya.verbin@intel.com>
10339 Kirill Yukhin <kirill.yukhin@intel.com>
10340 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10341
10342 * config/i386/sse.md
10343 (define_mode_iterator VF1_AVX512VL): New.
10344 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10345 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10346 New.
10347
10348 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10349 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10350 Anna Tikhonova <anna.tikhonova@intel.com>
10351 Ilya Tocar <ilya.tocar@intel.com>
10352 Andrey Turetskiy <andrey.turetskiy@intel.com>
10353 Ilya Verbin <ilya.verbin@intel.com>
10354 Kirill Yukhin <kirill.yukhin@intel.com>
10355 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10356
10357 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10358 * config/i386/i386.md
10359 (define_code_iterator any_float): New.
10360 (define_code_attr floatsuffix): New.
10361 * config/i386/sse.md
10362 (define_mode_iterator VF1_128_256VL): New.
10363 (define_mode_iterator VF2_512_256VL): New.
10364 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10365 TARGET check.
10366 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10367 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10368 New.
10369 (define_mode_attr qq2pssuff): New.
10370 (define_mode_attr sselongvecmode): New.
10371 (define_mode_attr sselongvecmodelower): New.
10372 (define_mode_attr sseintvecmode3): New.
10373 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10374 New.
10375 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10376 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10377 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10378 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10379
10380 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10381 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10382 Anna Tikhonova <anna.tikhonova@intel.com>
10383 Ilya Tocar <ilya.tocar@intel.com>
10384 Andrey Turetskiy <andrey.turetskiy@intel.com>
10385 Ilya Verbin <ilya.verbin@intel.com>
10386 Kirill Yukhin <kirill.yukhin@intel.com>
10387 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10388
10389 * config/i386/sse.md
10390 (define_mode_iterator VF2_AVX512VL): New.
10391 (define_mode_attr sseintvecmode2): New.
10392 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10393 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10394 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10395 (define_insn
10396 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10397 Ditto.
10398 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10399 Ditto.
10400 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10401 Ditto.
10402
10403 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10404 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10405 Anna Tikhonova <anna.tikhonova@intel.com>
10406 Ilya Tocar <ilya.tocar@intel.com>
10407 Andrey Turetskiy <andrey.turetskiy@intel.com>
10408 Ilya Verbin <ilya.verbin@intel.com>
10409 Kirill Yukhin <kirill.yukhin@intel.com>
10410 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10411
10412 * config/i386/i386.md
10413 (define_insn "*movoi_internal_avx"): Add evex version.
10414 (define_insn "*movti_internal"): Ditto.
10415
10416 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10417 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10418 Anna Tikhonova <anna.tikhonova@intel.com>
10419 Ilya Tocar <ilya.tocar@intel.com>
10420 Andrey Turetskiy <andrey.turetskiy@intel.com>
10421 Ilya Verbin <ilya.verbin@intel.com>
10422 Kirill Yukhin <kirill.yukhin@intel.com>
10423 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10424
10425 * config/i386/i386.md
10426 (define_attr "isa"): Add avx512dq, noavx512dq.
10427 (define_attr "enabled"): Ditto.
10428 * config/i386/sse.md
10429 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10430
10431 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10432 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10433 Anna Tikhonova <anna.tikhonova@intel.com>
10434 Ilya Tocar <ilya.tocar@intel.com>
10435 Andrey Turetskiy <andrey.turetskiy@intel.com>
10436 Ilya Verbin <ilya.verbin@intel.com>
10437 Kirill Yukhin <kirill.yukhin@intel.com>
10438 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10439
10440 * config/i386/i386.c
10441 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10442 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10443 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10444 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10445 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10446 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10447 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10448 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10449 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10450 * config/i386/sse.md
10451 (define_mode_iterator VMOVE): Allow V4TI mode.
10452 (define_mode_iterator V_AVX512VL): New.
10453 (define_mode_iterator V): New handling for AVX512VL.
10454 (define_insn "avx512f_load<mode>_mask"): Delete.
10455 (define_insn "<avx512>_load<mode>_mask"): New.
10456 (define_insn "avx512f_store<mode>_mask"): Delete.
10457 (define_insn "<avx512>_store<mode>_mask"): New.
10458
10459
10460 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10461
10462 PR sanitizer/62089
10463 * asan.c (instrument_derefs): Fix bitfield check.
10464
10465 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10466
10467 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10468 * config/rs6000/htm.md (ttest): Remove clobber.
10469 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10470 (and_operand): Reformat.
10471 (and_2rld_operand): New predicate.
10472 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10473 parameter.
10474 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10475 parameter. Handle AND directly.
10476 (rs6000_split_logical_di): Remove last parameter.
10477 (rs6000_split_logical): Remove last parameter. Remove obsolete
10478 comment.
10479 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10480 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10481 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10482 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10483 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10484 and 5 anonymous splitters): Delete.
10485 (and<mode>3): New expander.
10486 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10487 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10488 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10489 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10490 (floatdisf2_internal1): Remove clobbers.
10491 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10492 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10493 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10494 (and<mode>3 for BOOL_128): Remove clobber.
10495 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10496 rs6000_split_logical.
10497 (*bool<mode>3_internal for BOOL_128): Adjust call of
10498 rs6000_split_logical.
10499 (*boolc<mode>3_internal1 for BOOL_128,
10500 *boolc<mode>3_internal2 for BOOL_128,
10501 *boolcc<mode>3_internal1 for BOOL_128,
10502 *boolcc<mode>3_internal2 for BOOL_128,
10503 *eqv<mode>3_internal1 for BOOL_128,
10504 *eqv<mode>3_internal2 for BOOL_128,
10505 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10506 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10507 clobber.
10508 (*vec_reload_and_reg_<mptrsize>): Delete.
10509
10510 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10511
10512 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10513 and split, *boolccsi3_internal3 and split): Delete.
10514 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10515 *boolccdi3_internal3 and split): Delete.
10516 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10517 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10518
10519 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10520
10521 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10522 and split, *boolcsi3_internal3 and split): Delete.
10523 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10524 *boolcdi3_internal3 and split): Delete.
10525 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10526
10527 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10528
10529 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10530 <'u'>: Also support printing the low-order 16 bits.
10531 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10532 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10533 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10534 *booldi3_internal3 and split): Delete.
10535 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10536 *bool<mode>3_dot2): New.
10537 (two anonymous define_splits for non_logical_cint_operand): Merge.
10538
10539 2014-08-17 Marek Polacek <polacek@redhat.com>
10540 Manuel López-Ibáñez <manu@gcc.gnu.org>
10541
10542 PR c/62059
10543 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10544 (diagnostic_show_locus): Don't print caret diagnostic
10545 if a column is larger than the line_width.
10546
10547 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10548
10549 * common.opt: Make the ISL AST generator to be the main code generator
10550 of Graphite.
10551
10552 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10553
10554 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10555
10556 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10557
10558 PR target/61641
10559 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10560 Declare.
10561 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10562 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10563 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10564 Define.
10565 * config/pa/pa.md (begin_brtab): Delete insn.
10566 (end_brtab): Likewise.
10567
10568 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10569
10570 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10571
10572 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10573
10574 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10575 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10576 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10577 (get_dynamic_type): Remove.
10578 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10579 (clear_speculation): Bring to ipa-deivrt.h
10580 (get_class_context): Rename to ...
10581 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10582 (contains_type_p): Update.
10583 (get_dynamic_type): Rename to ...
10584 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10585 (possible_polymorphic_call_targets): UPdate.
10586 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10587 * ipa-prop.c (ipa_analyze_call_uses): Update.
10588
10589 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10590
10591 * doc/invoke.texi (SH options): Document missing processor variant
10592 options. Remove references to Hitachi. Undocument deprecated mspace
10593 option.
10594
10595 2014-08-15 Jason Merrill <jason@redhat.com>
10596
10597 * tree.c (type_hash_canon): Uncomment assert.
10598
10599 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10600
10601 * input.h (in_system_header_at): Add comment.
10602
10603 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10604
10605 PR fortran/44054
10606 * diagnostic.c (build_message_string): Make it extern.
10607 * diagnostic.h (build_message_string): Make it extern.
10608
10609 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10610
10611 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10612 load/store from/to non-floating class pseudo.
10613
10614 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10615
10616 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10617
10618 2014-08-15 Richard Biener <rguenther@suse.de>
10619
10620 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10621 (get_constraint_for_ssa_var): Remove dead code.
10622 (get_constraint_for_1): Adjust.
10623 (find_what_var_points_to): Likewise.
10624 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10625
10626 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10627
10628 PR target/61878
10629 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10630 (_mm512_mask_cmpge_epu32_mask): Ditto.
10631 (_mm512_cmpge_epu32_mask): Ditto.
10632 (_mm512_mask_cmpge_epi64_mask): Ditto.
10633 (_mm512_cmpge_epi64_mask): Ditto.
10634 (_mm512_mask_cmpge_epu64_mask): Ditto.
10635 (_mm512_cmpge_epu64_mask): Ditto.
10636 (_mm512_mask_cmple_epi32_mask): Ditto.
10637 (_mm512_cmple_epi32_mask): Ditto.
10638 (_mm512_mask_cmple_epu32_mask): Ditto.
10639 (_mm512_cmple_epu32_mask): Ditto.
10640 (_mm512_mask_cmple_epi64_mask): Ditto.
10641 (_mm512_cmple_epi64_mask): Ditto.
10642 (_mm512_mask_cmple_epu64_mask): Ditto.
10643 (_mm512_cmple_epu64_mask): Ditto.
10644 (_mm512_mask_cmplt_epi32_mask): Ditto.
10645 (_mm512_cmplt_epi32_mask): Ditto.
10646 (_mm512_mask_cmplt_epu32_mask): Ditto.
10647 (_mm512_cmplt_epu32_mask): Ditto.
10648 (_mm512_mask_cmplt_epi64_mask): Ditto.
10649 (_mm512_cmplt_epi64_mask): Ditto.
10650 (_mm512_mask_cmplt_epu64_mask): Ditto.
10651 (_mm512_cmplt_epu64_mask): Ditto.
10652 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10653 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10654 (_mm512_cmpneq_epu32_mask): Ditto.
10655 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10656 (_mm512_cmpneq_epi64_mask): Ditto.
10657 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10658 (_mm512_cmpneq_epu64_mask): Ditto.
10659 (_mm512_castpd_ps): Ditto.
10660 (_mm512_castpd_si512): Ditto.
10661 (_mm512_castps_pd): Ditto.
10662 (_mm512_castps_si512): Ditto.
10663 (_mm512_castsi512_ps): Ditto.
10664 (_mm512_castsi512_pd): Ditto.
10665 (_mm512_castpd512_pd128): Ditto.
10666 (_mm512_castps512_ps128): Ditto.
10667 (_mm512_castsi512_si128): Ditto.
10668 (_mm512_castpd512_pd256): Ditto.
10669 (_mm512_castps512_ps256): Ditto.
10670 (_mm512_castsi512_si256): Ditto.
10671 (_mm512_castpd128_pd512): Ditto.
10672 (_mm512_castps128_ps512): Ditto.
10673 (_mm512_castsi128_si512): Ditto.
10674 (_mm512_castpd256_pd512): Ditto.
10675 (_mm512_castps256_ps512): Ditto.
10676 (_mm512_castsi256_si512): Ditto.
10677 (_mm512_cmpeq_epu32_mask): Ditto.
10678 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10679 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10680 (_mm512_cmpeq_epu64_mask): Ditto.
10681 (_mm512_cmpgt_epu32_mask): Ditto.
10682 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10683 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10684 (_mm512_cmpgt_epu64_mask): Ditto.
10685 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10686 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10687 * config/i386/i386.c (enum ix86_builtins): Add
10688 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10689 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10690 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10691 (bdesc_args): Add __builtin_ia32_si512_256si,
10692 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10693 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10694 __builtin_ia32_pd512_pd.
10695 (ix86_expand_args_builtin): Handle new FTYPEs.
10696 * config/i386/sse.md (castmode): Add 512-bit modes.
10697 (AVX512MODE2P): New.
10698 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10699 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10700
10701 2014-08-15 Richard Biener <rguenther@suse.de>
10702
10703 * fold-const.c (tree_swap_operands_p): Put all constants
10704 last, also strip sign-changing NOPs when considering further
10705 canonicalization. Canonicalize also when optimizing for size.
10706
10707 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10708
10709 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10710 one_match > zero_match case to just before simple_sequence.
10711
10712 2014-08-15 Richard Biener <rguenther@suse.de>
10713
10714 * data-streamer.h (streamer_string_index, string_for_index):
10715 Remove.
10716 * data-streamer-out.c (streamer_string_index): Make static.
10717 * data-streamer-in.c (string_for_index): Likewise.
10718 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10719 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10720
10721 2014-08-15 Richard Biener <rguenther@suse.de>
10722
10723 PR tree-optimization/62031
10724 * tree-data-ref.c (dr_analyze_indices): Do not set
10725 DR_UNCONSTRAINED_BASE.
10726 (dr_may_alias_p): All indirect accesses have to go the
10727 formerly DR_UNCONSTRAINED_BASE path.
10728 * tree-data-ref.h (struct indices): Remove
10729 unconstrained_base member.
10730 (DR_UNCONSTRAINED_BASE): Remove.
10731
10732 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10733
10734 PR middle-end/62092
10735 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10736 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10737 in OMP_CLAUSE_MAP in some outer target region.
10738
10739 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10740
10741 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10742 name_expansion_cache.
10743 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10744 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10745 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10746 (difference_cannot_overflow_p): New parameter. Use affine
10747 expansion for equality check.
10748 (iv_elimination_compare_lt): Pass new argument.
10749
10750 2014-08-14 DJ Delorie <dj@redhat.com>
10751
10752 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10753 variables to the accumulator.
10754
10755 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10756 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10757 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10758 with far-far moves.
10759
10760 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10761 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10762 (umulqihi3_virt): Likewise.
10763 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10764 (umulqihi3_real): Likewise.
10765
10766 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10767
10768 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10769
10770 PR tree-optimization/62091
10771 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10772 function_entry_reached.
10773 (walk_aliased_vdefs): Clear it here.
10774 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10775
10776 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10777
10778 * ipa-utils.h (compare_virtual_tables): Declare.
10779 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10780
10781 2014-08-14 Marek Polacek <polacek@redhat.com>
10782
10783 DR 458
10784 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10785 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10786
10787 2014-08-14 Tom de Vries <tom@codesourcery.com>
10788
10789 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10790
10791 2014-08-14 Tom de Vries <tom@codesourcery.com>
10792
10793 PR rtl-optimization/62004
10794 PR rtl-optimization/62030
10795 * ifcvt.c (rtx_interchangeable_p): New function.
10796 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10797 * emit-rtl.h (mem_attrs_eq_p): Declare.
10798
10799 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10800
10801 * graphite-scop-detection.c:
10802 Add inclusion of cp-tree.h.
10803 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10804 in case they are pointers to object types
10805
10806 2014-08-14 Richard Biener <rguenther@suse.de>
10807
10808 * BASE-VER: Change to 5.0.0
10809
10810 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10811 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10812 Anna Tikhonova <anna.tikhonova@intel.com>
10813 Ilya Tocar <ilya.tocar@intel.com>
10814 Andrey Turetskiy <andrey.turetskiy@intel.com>
10815 Ilya Verbin <ilya.verbin@intel.com>
10816 Kirill Yukhin <kirill.yukhin@intel.com>
10817 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10818
10819 * config/i386/sse.md (define_mode_attr avx512): New.
10820 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10821 V4DI modes.
10822 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10823 (define_mode_attr ssse3_avx2): Ditto.
10824 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10825 (define_mode_attr avx2_avx512bw): New.
10826 (define_mode_attr ssedoublemodelower): New.
10827 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10828 V32HI, V64QI modes.
10829 (define_mode_attr ssebytemode): Allow V8DI modes.
10830 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10831 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10832 (define_mode_attr ssePSmode2): New.
10833 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10834 V16HI, V32HI modes.
10835 (define_mode_attr dbpsadbwmode): New.
10836 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10837 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10838 (vi8_sse4_1_avx2_avx512): New.
10839 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10840 mode attribute.
10841 (define_mode_attr blendbits): Move before its immediate use.
10842
10843 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10844 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10845 Anna Tikhonova <anna.tikhonova@intel.com>
10846 Ilya Tocar <ilya.tocar@intel.com>
10847 Andrey Turetskiy <andrey.turetskiy@intel.com>
10848 Ilya Verbin <ilya.verbin@intel.com>
10849 Kirill Yukhin <kirill.yukhin@intel.com>
10850 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10851
10852 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10853 * config/i386/subst.md
10854 (define_mode_iterator SUBST_V): Update.
10855 (define_mode_iterator SUBST_A): Ditto.
10856 (define_subst_attr "mask_operand7"): New.
10857 (define_subst_attr "mask_operand10"): New.
10858 (define_subst_attr "mask_operand_arg34") : New.
10859 (define_subst_attr "mask_expand_op3"): New.
10860 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10861 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10862 (define_subst_attr "mask_avx512vl_condition"): New.
10863 (define_subst_attr "round_mask_operand4"): Ditto.
10864 (define_subst_attr "round_mask_scalar_op3"): Delete.
10865 (define_subst_attr "round_mask_op4"): New.
10866 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10867 V16SImode.
10868 (define_subst_attr "round_modev8sf_condition"): New.
10869 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10870 <MODE>mode.
10871 (define_subst_attr "round_saeonly_mask_operand4"): New.
10872 (define_subst_attr "round_saeonly_mask_op4"): New.
10873 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10874 V8DImode, V16SImode.
10875 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10876 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10877 (define_subst_attr "mask_expand4_args"): New.
10878 (define_subst "mask_expand4"): New.
10879
10880 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10881 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10882 Anna Tikhonova <anna.tikhonova@intel.com>
10883 Ilya Tocar <ilya.tocar@intel.com>
10884 Andrey Turetskiy <andrey.turetskiy@intel.com>
10885 Ilya Verbin <ilya.verbin@intel.com>
10886 Kirill Yukhin <kirill.yukhin@intel.com>
10887 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10888
10889 * config/i386/i386.md
10890 (define_attr "isa"): Add avx512bw,noavx512bw.
10891 (define_attr "enabled"): Ditto.
10892 (define_split): Add 32/64-bit mask logic.
10893 (define_insn "*k<logic>qi"): New.
10894 (define_insn "*k<logic>hi"): New.
10895 (define_insn "*anddi_1"): Add mask version.
10896 (define_insn "*andsi_1"): Ditto.
10897 (define_insn "*<code><mode>_1"): Ditto.
10898 (define_insn "*<code>hi_1"): Ditto.
10899 (define_insn "kxnor<mode>"): New.
10900 (define_insn "kunpcksi"): New.
10901 (define_insn "kunpckdi"): New.
10902 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10903 (define_insn "*one_cmplhi2_1"): Ditto.
10904
10905 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10906 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10907 Anna Tikhonova <anna.tikhonova@intel.com>
10908 Ilya Tocar <ilya.tocar@intel.com>
10909 Andrey Turetskiy <andrey.turetskiy@intel.com>
10910 Ilya Verbin <ilya.verbin@intel.com>
10911 Kirill Yukhin <kirill.yukhin@intel.com>
10912 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10913
10914 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10915 V32HImode.
10916
10917 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10918 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10919 Anna Tikhonova <anna.tikhonova@intel.com>
10920 Ilya Tocar <ilya.tocar@intel.com>
10921 Andrey Turetskiy <andrey.turetskiy@intel.com>
10922 Ilya Verbin <ilya.verbin@intel.com>
10923 Kirill Yukhin <kirill.yukhin@intel.com>
10924 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10925
10926 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10927 registers.
10928 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10929 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10930 xmm/ymm16+ when availble.
10931 * config/i386/i386.h
10932 (HARD_REGNO_NREGS): Add mask regs.
10933 (VALID_AVX512F_REG_MODE): Ditto.
10934 (VALID_AVX512F_REG_MODE) : Define.
10935 (VALID_MASK_AVX512BW_MODE): Ditto.
10936 (reg_class) (MASK_REG_P(X)): Define.
10937 * config/i386/i386.md: Do not split long moves with mask register,
10938 use kmovb if avx512bw is availible.
10939 (movdi_internal): Handle mask registers.
10940
10941 2014-08-14 Richard Biener <rguenther@suse.de>
10942
10943 PR tree-optimization/62081
10944 * tree-ssa-loop.c (pass_fix_loops): New pass.
10945 (pass_tree_loop::gate): Do not fixup loops here.
10946 * tree-pass.h (make_pass_fix_loops): Declare.
10947 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10948
10949 2014-08-14 Richard Biener <rguenther@suse.de>
10950
10951 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10952 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10953
10954 2014-08-14 Richard Biener <rguenther@suse.de>
10955
10956 PR tree-optimization/62090
10957 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10958 (fold_builtin_2): Do not fold sprintf.
10959 (fold_builtin_3): Likewise.
10960 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10961 moved from builtins.c.
10962 (gimple_fold_builtin): Fold sprintf.
10963
10964 2014-08-14 Richard Biener <rguenther@suse.de>
10965
10966 PR rtl-optimization/62079
10967 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10968 run cleanup_cfg.
10969
10970 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10971
10972 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10973 current_function_decl.
10974
10975 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10976
10977 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10978 cgraph_function_node to cgraph_node::function_symbol
10979 refactoring.
10980
10981 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10982
10983 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10984 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10985
10986 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10987
10988 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10989 warning.
10990
10991 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10992
10993 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10994 generator.
10995
10996 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10997
10998 PR target/62025
10999 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
11000 any registers that are used in mem_insn.
11001
11002 2014-08-12 Steve Ellcey <sellcey@mips.com>
11003
11004 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
11005
11006 2014-08-12 Steve Ellcey <sellcey@mips.com>
11007
11008 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
11009 (MULTILIB_DIRNAMES): Ditto.
11010 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
11011 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
11012 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
11013 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
11014 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
11015 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
11016
11017 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11018
11019 PR target/61413
11020 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
11021 of __ARM_SIZEOF_WCHAR_T.
11022
11023 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11024
11025 PR target/62098
11026 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
11027 Remove unnecessary attributes.
11028
11029 2014-08-12 Yury Gribov <y.gribov@samsung.com>
11030
11031 * internal-fn.c (init_internal_fns): Fix off-by-one.
11032
11033 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
11034 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11035 Anna Tikhonova <anna.tikhonova@intel.com>
11036 Ilya Tocar <ilya.tocar@intel.com>
11037 Andrey Turetskiy <andrey.turetskiy@intel.com>
11038 Ilya Verbin <ilya.verbin@intel.com>
11039 Kirill Yukhin <kirill.yukhin@intel.com>
11040 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11041
11042 * config/i386/i386.c (standard_sse_constant_opcode): Use
11043 vpxord/vpternlog if avx512 is availible.
11044
11045 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
11046
11047 PR middle-end/62103
11048 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
11049 bitfields, that is when size doesn't match the size of type or the
11050 size of the constructor.
11051
11052 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
11053
11054 * config/rs6000/constraints.md (wh constraint): New constraint,
11055 for FP registers if direct move is available.
11056 (wi constraint): New constraint, for VSX/FP registers that can
11057 handle 64-bit integers.
11058 (wj constraint): New constraint for VSX/FP registers that can
11059 handle 64-bit integers for direct moves.
11060 (wk constraint): New constraint for VSX/FP registers that can
11061 handle 64-bit doubles for direct moves.
11062 (wy constraint): Make documentation match implementation.
11063
11064 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
11065 scalar_in_vmx_p field to simplify tests of whether SFmode or
11066 DFmode can go in the Altivec registers.
11067 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
11068 (rs6000_setup_reg_addr_masks): Likewise.
11069 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
11070 field, and wh/wi/wj/wk constraints.
11071 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
11072 the wh/wi/wj/wk constraints.
11073 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
11074 upper registers, prefer VSX registers unless the operation is a
11075 memory operation with REG+OFFSET addressing.
11076
11077 * config/rs6000/vsx.md (VSr mode attribute): Add support for
11078 DImode. Change SFmode to use ww constraint instead of d to allow
11079 SF registers in the upper registers.
11080 (VSr2): Likewise.
11081 (VSr3): Likewise.
11082 (VSr5): Fix thinko in comment.
11083 (VSa): New mode attribute that is an alternative to wa, that
11084 returns the VSX register class that a mode can go in, but may not
11085 be the preferred register class.
11086 (VS_64dm): New mode attribute for appropriate register classes for
11087 referencing 64-bit elements of vectors for direct moves and normal
11088 moves.
11089 (VS_64reg): Likewise.
11090 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
11091 register allocator to only registers the data type can handle.
11092 (vsx_le_perm_load_<mode>): Likewise.
11093 (vsx_le_perm_store_<mode>): Likewise.
11094 (vsx_xxpermdi2_le_<mode>): Likewise.
11095 (vsx_xxpermdi4_le_<mode>): Likewise.
11096 (vsx_lxvd2x2_le_<mode>): Likewise.
11097 (vsx_lxvd2x4_le_<mode>): Likewise.
11098 (vsx_stxvd2x2_le_<mode>): Likewise.
11099 (vsx_add<mode>3): Likewise.
11100 (vsx_sub<mode>3): Likewise.
11101 (vsx_mul<mode>3): Likewise.
11102 (vsx_div<mode>3): Likewise.
11103 (vsx_tdiv<mode>3_internal): Likewise.
11104 (vsx_fre<mode>2): Likewise.
11105 (vsx_neg<mode>2): Likewise.
11106 (vsx_abs<mode>2): Likewise.
11107 (vsx_nabs<mode>2): Likewise.
11108 (vsx_smax<mode>3): Likewise.
11109 (vsx_smin<mode>3): Likewise.
11110 (vsx_sqrt<mode>2): Likewise.
11111 (vsx_rsqrte<mode>2): Likewise.
11112 (vsx_tsqrt<mode>2_internal): Likewise.
11113 (vsx_fms<mode>4): Likewise.
11114 (vsx_nfma<mode>4): Likewise.
11115 (vsx_eq<mode>): Likewise.
11116 (vsx_gt<mode>): Likewise.
11117 (vsx_ge<mode>): Likewise.
11118 (vsx_eq<mode>_p): Likewise.
11119 (vsx_gt<mode>_p): Likewise.
11120 (vsx_ge<mode>_p): Likewise.
11121 (vsx_xxsel<mode>): Likewise.
11122 (vsx_xxsel<mode>_uns): Likewise.
11123 (vsx_copysign<mode>3): Likewise.
11124 (vsx_float<VSi><mode>2): Likewise.
11125 (vsx_floatuns<VSi><mode>2): Likewise.
11126 (vsx_fix_trunc<mode><VSi>2): Likewise.
11127 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11128 (vsx_x<VSv>r<VSs>i): Likewise.
11129 (vsx_x<VSv>r<VSs>ic): Likewise.
11130 (vsx_btrunc<mode>2): Likewise.
11131 (vsx_b2trunc<mode>2): Likewise.
11132 (vsx_floor<mode>2): Likewise.
11133 (vsx_ceil<mode>2): Likewise.
11134 (vsx_<VS_spdp_insn>): Likewise.
11135 (vsx_xscvspdp): Likewise.
11136 (vsx_xvcvspuxds): Likewise.
11137 (vsx_float_fix_<mode>2): Likewise.
11138 (vsx_set_<mode>): Likewise.
11139 (vsx_extract_<mode>_internal1): Likewise.
11140 (vsx_extract_<mode>_internal2): Likewise.
11141 (vsx_extract_<mode>_load): Likewise.
11142 (vsx_extract_<mode>_store): Likewise.
11143 (vsx_splat_<mode>): Likewise.
11144 (vsx_xxspltw_<mode>): Likewise.
11145 (vsx_xxspltw_<mode>_direct): Likewise.
11146 (vsx_xxmrghw_<mode>): Likewise.
11147 (vsx_xxmrglw_<mode>): Likewise.
11148 (vsx_xxsldwi_<mode>): Likewise.
11149 (vsx_xscvdpspn): Tighten constraints to only use register classes
11150 the types use.
11151 (vsx_xscvspdpn): Likewise.
11152 (vsx_xscvdpspn_scalar): Likewise.
11153
11154 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11155 wj, and wk constraints.
11156 (GPR_REG_CLASS_P): New helper macro for register classes targeting
11157 general purpose registers.
11158
11159 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11160 direct moves.
11161 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11162 DImode instead of wm. Use wk constraint for direct move of DFmode
11163 instead of wm.
11164 (extendsidi2_lfiwax): Likewise.
11165 (lfiwax): Likewise.
11166 (lfiwzx): Likewise.
11167 (movdi_internal64): Likewise.
11168
11169 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11170 wk constraints. Make the wy constraint documentation match them
11171 implementation.
11172
11173 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11174
11175 Replacement of isl_int by isl_val
11176 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11177 (compute_bounds_for_param): use isl_val instead of isl_int
11178 (compute_bounds_for_loop): likewise
11179 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11180 (build_linearized_memory_access): use isl_val instead of isl_int
11181 (pdr_stride_in_loop): likewise
11182 * graphite-optimize-isl.c:
11183 (getPrevectorMap): use isl_val instead of isl_int
11184 * graphite-poly.c:
11185 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11186 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11187 (extern the_isl_ctx): declare
11188 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11189 (extract_affine_gmp): likewise
11190 (wrap): likewise
11191 (build_loop_iteration_domains): likewise
11192 (add_param_constraints): likewise
11193
11194 2014-08-11 Richard Biener <rguenther@suse.de>
11195
11196 PR tree-optimization/62075
11197 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11198 handle uses in patterns.
11199
11200 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11201 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11202 Anna Tikhonova <anna.tikhonova@intel.com>
11203 Ilya Tocar <ilya.tocar@intel.com>
11204 Andrey Turetskiy <andrey.turetskiy@intel.com>
11205 Ilya Verbin <ilya.verbin@intel.com>
11206 Kirill Yukhin <kirill.yukhin@intel.com>
11207 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11208
11209 * common/config/i386/i386-common.c
11210 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11211 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11212 (ix86_handle_option): Handle OPT_mavx512vl.
11213 * config/i386/cpuid.h (bit_AVX512VL): Define.
11214 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11215 set -mavx512vl accordingly.
11216 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11217 OPTION_MASK_ISA_AVX512VL.
11218 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11219 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11220 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11221 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11222 * config/i386/i386.h (TARGET_AVX512VL): Define.
11223 (TARGET_AVX512VL_P(x)): Ditto.
11224 * config/i386/i386.opt: Add mavx512vl.
11225
11226 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11227
11228 PR tree-optimization/62073
11229 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11230 a basic block.
11231
11232 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11233 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11234 Anna Tikhonova <anna.tikhonova@intel.com>
11235 Ilya Tocar <ilya.tocar@intel.com>
11236 Andrey Turetskiy <andrey.turetskiy@intel.com>
11237 Ilya Verbin <ilya.verbin@intel.com>
11238 Kirill Yukhin <kirill.yukhin@intel.com>
11239 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11240
11241 * common/config/i386/i386-common.c
11242 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11243 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11244 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11245 (ix86_handle_option): Handle OPT_mavx512bw.
11246 * config/i386/cpuid.h (bit_AVX512BW): Define.
11247 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11248 set -mavx512bw accordingly.
11249 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11250 OPTION_MASK_ISA_AVX512BW.
11251 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11252 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11253 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11254 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11255 * config/i386/i386.h (TARGET_AVX512BW): Define.
11256 (TARGET_AVX512BW_P(x)): Ditto.
11257 * config/i386/i386.opt: Add mavx512bw.
11258
11259 2014-08-11 Richard Biener <rguenther@suse.de>
11260
11261 PR tree-optimization/62070
11262 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11263 Remove SSA checking.
11264
11265 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11266
11267 * asan.c (asan_check_flags): New enum.
11268 (build_check_stmt_with_calls): Removed function.
11269 (build_check_stmt): Split inlining logic to
11270 asan_expand_check_ifn.
11271 (instrument_derefs): Rename parameter.
11272 (instrument_mem_region_access): Rename parameter.
11273 (instrument_strlen_call): Likewise.
11274 (asan_expand_check_ifn): New function.
11275 (asan_instrument): Remove old code.
11276 (pass_sanopt::execute): Change handling of
11277 asan-instrumentation-with-call-threshold.
11278 (asan_clear_shadow): Fix formatting.
11279 (asan_function_start): Likewise.
11280 (asan_emit_stack_protection): Likewise.
11281 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11282 Update description.
11283 * internal-fn.c (expand_ASAN_CHECK): New function.
11284 * internal-fn.def (ASAN_CHECK): New internal function.
11285 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11286 Update description.
11287 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11288 * tree.c: Small comment fix.
11289
11290 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11291
11292 * gimple.c (gimple_call_fnspec): Support internal functions.
11293 (gimple_call_return_flags): Use const.
11294 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11295 * internal-fn.def: Add fnspec information.
11296 * internal-fn.h (internal_fn_fnspec): New function.
11297 (init_internal_fns): Declare new function.
11298 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11299 (init_internal_fns): New function.
11300 * tree-core.h: Update macro call.
11301 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11302
11303 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11304
11305 * lto-streamer.h (struct output_block::symbol): Change from
11306 struct symtab_node to plain symtab_node.
11307 (referenced_from_this_partition_p): Change first parameter
11308 from struct symtab_node to plain symtab_node.
11309
11310 2014-08-10 Marek Polacek <polacek@redhat.com>
11311
11312 PR c/51849
11313 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11314
11315 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11316
11317 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11318 DECL correctly; do not give up on types in static storage.
11319
11320 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11321
11322 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11323
11324 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11325
11326 * graphite-isl-ast-to-gimple.c:
11327 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11328
11329 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11330
11331 2014-08-08 Guozhi Wei <carrot@google.com>
11332
11333 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11334
11335 2014-08-08 Cary Coutant <ccoutant@google.com>
11336
11337 * dwarf2out.c (get_skeleton_type_unit): Remove.
11338 (output_skeleton_debug_sections): Remove skeleton type units.
11339 (output_comdat_type_unit): Likewise.
11340 (dwarf2out_finish): Likewise.
11341
11342 2014-08-07 Yi Yang <ahyangyi@google.com>
11343
11344 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11345
11346 2014-08-08 Richard Biener <rguenther@suse.de>
11347
11348 * lto-streamer.h (struct lto_input_block): Make it a class
11349 with a constructor.
11350 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11351 (struct lto_function_header, struct lto_simple_header,
11352 struct lto_simple_header_with_strings,
11353 struct lto_decl_header, struct lto_function_header): Make
11354 a simple inheritance hieararchy. Remove unused fields.
11355 (struct lto_asm_header): Remove.
11356 * lto-streamer-out.c (produce_asm): Adjust.
11357 (lto_output_toplevel_asms): Likewise.
11358 (produce_asm_for_decls): Likewise.
11359 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11360 * data-streamer-in.c (string_for_index): Likewise.
11361 * ipa-inline-analysis.c (inline_read_section): Likewise.
11362 * ipa-prop.c (ipa_prop_read_section): Likewise.
11363 (read_replacements_section): Likewise.
11364 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11365 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11366 (lto_destroy_simple_input_block): Likewise.
11367 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11368 (lto_input_toplevel_asms): Likewise.
11369
11370 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11371 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11372 Anna Tikhonova <anna.tikhonova@intel.com>
11373 Ilya Tocar <ilya.tocar@intel.com>
11374 Andrey Turetskiy <andrey.turetskiy@intel.com>
11375 Ilya Verbin <ilya.verbin@intel.com>
11376 Kirill Yukhin <kirill.yukhin@intel.com>
11377 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11378
11379 * common/config/i386/i386-common.c
11380 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11381 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11382 (ix86_handle_option): Handle OPT_mavx512dq.
11383 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11384 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11385 set -mavx512dq accordingly.
11386 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11387 OPTION_MASK_ISA_AVX512DQ.
11388 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11389 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11390 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11391 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11392 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11393 (TARGET_AVX512DQ_P(x)): Ditto.
11394 * config/i386/i386.opt: Add mavx512dq.
11395
11396 2014-08-08 Richard Biener <rguenther@suse.de>
11397
11398 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11399 target_percent, target_percent_s): Export.
11400 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11401 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11402 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11403 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11404 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11405 Move to gimple-fold.c.
11406 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11407 strcat and strcpy.
11408 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11409 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11410 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11411 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11412 (rewrite_call_expr_array): Remove.
11413 (fold_builtin_sprintf_chk): Likewise.
11414 (fold_builtin_snprintf_chk): Likewise.
11415 (fold_builtin_varargs): Remove handling of sprintf_chk,
11416 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11417 (gimple_fold_builtin_sprintf_chk): Remove.
11418 (gimple_fold_builtin_snprintf_chk): Likewise.
11419 (gimple_fold_builtin_varargs): Likewise.
11420 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11421 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11422 * gimple.c (gimple_seq_add_seq_without_update): New function.
11423 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11424 * gimple-fold.c: Include output.h.
11425 (gsi_replace_with_seq_vops): New function, split out from ...
11426 (gimplify_and_update_call_from_tree): ... here.
11427 (replace_call_with_value): New function.
11428 (replace_call_with_call_and_fold): Likewise.
11429 (var_decl_component_p): Moved from builtins.c.
11430 (gimple_fold_builtin_memory_op): Moved from builtins.c
11431 fold_builtin_memory_op and rewritten to GIMPLE.
11432 (gimple_fold_builtin_memset): Likewise.
11433 (gimple_fold_builtin_strcpy): Likewise.
11434 (gimple_fold_builtin_strncpy): Likewise.
11435 (gimple_fold_builtin_strcat): Likewise.
11436 (gimple_fold_builtin_fputs): Likewise.
11437 (gimple_fold_builtin_memory_chk): Likewise.
11438 (gimple_fold_builtin_stxcpy_chk): Likewise.
11439 (gimple_fold_builtin_stxncpy_chk): Likewise.
11440 (gimple_fold_builtin_snprintf_chk): Likewise.
11441 (gimple_fold_builtin_sprintf_chk): Likewise.
11442 (gimple_fold_builtin_strlen): New function.
11443 (gimple_fold_builtin_with_strlen): New function split out from
11444 gimple_fold_builtin.
11445 (gimple_fold_builtin): Change signature and handle
11446 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11447 here. Call gimple_fold_builtin_with_strlen.
11448 (gimple_fold_call): Adjust.
11449
11450 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11451
11452 * calls.c (precompute_arguments): Check
11453 promoted_for_signed_and_unsigned_p and set the promoted mode.
11454 (promoted_for_signed_and_unsigned_p): New function.
11455 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11456 and set the promoted mode.
11457 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11458 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11459 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11460
11461
11462 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11463
11464 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11465 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11466 (expand_call): Likewise.
11467 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11468 to get promoted mode.
11469 * combine.c (record_promoted_value): Skip > 0 comparison with
11470 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11471 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11472 of SUBREG_PROMOTED_UNSIGNED_P.
11473 (convert_modes): Likewise.
11474 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11475 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11476 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11477 SUBREG_PROMOTED_UNSIGNED_SET.
11478 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11479 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11480 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11481 SUBREG_PROMOTED_SET.
11482 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11483 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11484 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11485 of SUBREG_PROMOTED_UNSIGNED_P.
11486 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11487 (SUBREG_PROMOTED_SET): New define.
11488 (SUBREG_PROMOTED_GET): Likewise.
11489 (SUBREG_PROMOTED_SIGN): Likewise.
11490 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11491 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11492 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11493 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11494 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11495 (nonzero_bits1): Skip > 0 comparison with the results as
11496 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11497 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11498 of !SUBREG_PROMOTED_UNSIGNED_P.
11499 * simplify-rtx.c (simplify_unary_operation_1): Use new
11500 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11501 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11502 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11503 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11504
11505 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11506
11507 * ipa-devirt.c: Include gimple-pretty-print.h
11508 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11509 further tests.
11510 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11511 (get_polymorphic_call_info): Fix return value
11512 (type_change_info): New sturcture based on ipa-prop
11513 variant.
11514 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11515 based on ipa-prop variant.
11516 (extr_type_from_vtbl_ptr_store): New function
11517 based on ipa-prop variant.
11518 (record_known_type): New function.
11519 (check_stmt_for_type_change): New function.
11520 (get_dynamic_type): New function.
11521 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11522 * tree-ssa-pre.c: ipa-utils.h
11523 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11524 machinery; sanity check with ipa-prop devirtualization.
11525 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11526 polymorphic flag.
11527
11528 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11529
11530 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11531 * alias.c, cfgexpand.c, cgraphbuild.c,
11532 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11533 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11534 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11535 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11536 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11537 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11538 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11539 dse.c, except.c, gengtype.c, gimple-expr.c,
11540 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11541 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11542 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11543 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11544 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11545 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11546 pointer-set.h.
11547 * pointer-set.c: Remove file.
11548 * pointer-set.h: Remove file.
11549
11550 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11551
11552 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11553 * config/arm/types.md (f_sels, f_seld): Delete.
11554
11555 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11556
11557 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11558 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11559 (aarch64_movdi_<mode>high): Likewise.
11560 (aarch64_mov<mode>high_di): Likewise.
11561 (aarch64_movdi_<mode>low): Likewise.
11562 (aarch64_mov<mode>low_di): Likewise.
11563 (aarch64_movtilow_tilow): Likewise.
11564 Add comment explaining usage of fp,simd attributes and of
11565 TARGET_FLOAT and TARGET_SIMD.
11566
11567 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11568 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11569
11570 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11571 Use MOVN when one of the half-words is 0xffff.
11572
11573 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11574
11575 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11576
11577 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11578
11579 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11580 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11581 (rfs_str): String corresponding to RFS_* constants.
11582 (rank_for_schedule_stats_t): New typedef.
11583 (rank_for_schedule_stats): New static variable.
11584 (rfs_result): New static function.
11585 (rank_for_schedule): Track statistics for deciding heuristics.
11586 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11587 static functions.
11588 (ready_sort): Use them for debug printouts.
11589 (schedule_block): Init statistics state. Print statistics on
11590 rank_for_schedule decisions.
11591
11592 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11593
11594 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11595
11596 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11597
11598 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11599 constraint.
11600
11601 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11602
11603 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11604 function to not conflict.
11605 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11606 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11607 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11608 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11609 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11610 of pointer_map.
11611
11612 2014-08-07 Marek Polacek <polacek@redhat.com>
11613
11614 * fold-const.c (fold_binary_loc): Add folding of
11615 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11616
11617 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11618
11619 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11620 instead of type size.
11621 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11622
11623 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11624
11625 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11626 (*thumb1_movqi_insn): Likewise.
11627 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11628
11629 2014-08-07 Tom de Vries <tom@codesourcery.com>
11630
11631 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11632 (glibc_2_11_or_earlier): Remove effective-target keywords.
11633
11634 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11635
11636 * config/arm/arm.c (bdesc_2arg): Fix typo.
11637 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11638
11639 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11640
11641 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11642
11643 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11644
11645 PR debug/61923
11646 * haifa-sched.c (advance_one_cycle): Fix dump.
11647 (schedule_block): Don't advance cycle if we are already at the
11648 beginning of the cycle.
11649
11650 2014-08-06 Martin Jambor <mjambor@suse.cz>
11651
11652 PR ipa/61393
11653 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11654
11655 2014-08-06 Richard Biener <rguenther@suse.de>
11656
11657 PR lto/62034
11658 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11659 SCCs here.
11660 (lto_input_tree): Pop SCCs here.
11661
11662 2014-08-06 Richard Biener <rguenther@suse.de>
11663
11664 PR tree-optimization/61320
11665 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11666 handle misaligned loads.
11667
11668 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11669
11670 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11671 (aarch64_expand_vec_perm_const): Check for dup before zip.
11672
11673 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11674
11675 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11676 CONST_INT_P instead of GET_CODE and compare.
11677 (aarch64_select_cc_mode): Likewise.
11678 (aarch64_print_operand): Likewise.
11679 (aarch64_rtx_costs): Likewise.
11680 (aarch64_simd_valid_immediate): Likewise.
11681 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11682 (aarch64_simd_emit_pair_result_insn): Likewise.
11683
11684 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11685
11686 * gdbhooks.py (find_gcc_source_dir): New helper function.
11687 (class PassNames): New class, locating and parsing passes.def.
11688 (class BreakOnPass): New command "break-on-pass".
11689
11690 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11691
11692 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11693 getting olde.
11694
11695 2014-08-05 Richard Biener <rguenther@suse.de>
11696
11697 PR rtl-optimization/61672
11698 * emit-rtl.h (mem_attrs_eq_p): Declare.
11699 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11700 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11701 * cfgcleanup.c (merge_memattrs): Likewise.
11702 Include emit-rtl.h.
11703
11704 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11705
11706 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11707 rather than singleton vectors.
11708 (vqdmlsls_lane_s32): Likewise.
11709
11710 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11711
11712 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11713 Use VSDQ_HSI mode iterator.
11714 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11715 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11716 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11717 Use BUILTIN_VDQHS macro.
11718 (sqrdmulh_laneq): Likewise.
11719 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11720 (vqdmlals_laneq_s32): Likewise.
11721 (vqdmlslh_laneq_s16): Likewise.
11722 (vqdmlsls_laneq_s32): Likewise.
11723 (vqdmulhh_laneq_s16): Likewise.
11724 (vqdmulhs_laneq_s32): Likewise.
11725 (vqrdmulhh_laneq_s16): Likewise.
11726 (vqrdmulhs_laneq_s32): Likewise.
11727
11728 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11729
11730 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11731 (vmuld_laneq_f64): Likewise.
11732 (vmuls_laneq_f32): Likewise.
11733 (vmul_n_f64): Likewise.
11734 (vmuld_lane_f64): Reimplement in C.
11735 (vmuls_lane_f32): Likewise.
11736
11737 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11738
11739 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11740 to reservation.
11741 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11742
11743 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11744
11745 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11746 (rbitsi2): Likewise.
11747 (*arm_rev): Set predicable and predicable_short_it attributes.
11748
11749 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11750
11751 * convert.c (convert_to_integer): Guard transformation to lrint by
11752 -fno-math-errno.
11753
11754 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11755
11756 * config/aarch64/aarch64-builtins.c
11757 (aarch64_simd_builtin_type_mode): Delete.
11758 (v8qi_UP): Remap to V8QImode.
11759 (v4hi_UP): Remap to V4HImode.
11760 (v2si_UP): Remap to V2SImode.
11761 (v2sf_UP): Remap to V2SFmode.
11762 (v1df_UP): Remap to V1DFmode.
11763 (di_UP): Remap to DImode.
11764 (df_UP): Remap to DFmode.
11765 (v16qi_UP):V16QImode.
11766 (v8hi_UP): Remap to V8HImode.
11767 (v4si_UP): Remap to V4SImode.
11768 (v4sf_UP): Remap to V4SFmode.
11769 (v2di_UP): Remap to V2DImode.
11770 (v2df_UP): Remap to V2DFmode.
11771 (ti_UP): Remap to TImode.
11772 (ei_UP): Remap to EImode.
11773 (oi_UP): Remap to OImode.
11774 (ci_UP): Map to CImode.
11775 (xi_UP): Remap to XImode.
11776 (si_UP): Remap to SImode.
11777 (sf_UP): Remap to SFmode.
11778 (hi_UP): Remap to HImode.
11779 (qi_UP): Remap to QImode.
11780 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11781 (VAR1): Build builtin name.
11782 (aarch64_init_simd_builtins): Remove dead code.
11783
11784 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11785
11786 * graphite-isl-ast-to-gimple.c:
11787 (set_options): New function.
11788 (scop_to_isl_ast): Add calling of set_options.
11789
11790 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11791
11792 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11793 (analyze_iv_to_split_insn): Don't initialize them.
11794 (get_ivts_expr): Removed.
11795 (allocate_basic_variable, insert_base_initialization): Use
11796 SET_SRC instead of *get_ivts_expr.
11797 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11798
11799 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11800
11801 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11802 (translate_isl_ast_for_loop): Add checking of the
11803 flag_loop_parallelize_all.
11804 (ast_build_before_for): New function.
11805 (scop_to_isl_ast): Add checking of the
11806 flag_loop_parallelize_all.
11807 * graphite-dependences.c: Move the defenition of the
11808 scop_get_dependences from graphite-optimize-isl.c to this file.
11809 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11810 (carries_deps): Add checking of the x's value.
11811 * graphite-optimize-isl.c: Move the defenition of the
11812 scop_get_dependences to graphite-dependences.c.
11813 * graphite-poly.h: Add declarations of scop_get_dependences
11814 and carries_deps.
11815
11816 2014-08-04 Rohit <rohitarulraj@freescale.com>
11817
11818 PR target/60102
11819 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11820 names.
11821 (alt_reg_names): Likewise.
11822 (rs6000_dwarf_register_span): For SPE high registers, replace
11823 dwarf register numbers with GCC hard register numbers.
11824 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11825 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11826 register number for the corresponding GCC hard register number.
11827 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11828 newly added GCC hard register numbers for SPE high registers.
11829 (DWARF_FRAME_REGISTERS): Likewise.
11830 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11831 (DWARF_FRAME_REGNUM): Likewise.
11832 (FIXED_REGISTERS): Likewise.
11833 (CALL_USED_REGISTERS): Likewise.
11834 (CALL_REALLY_USED_REGISTERS): Likewise.
11835 (REG_ALLOC_ORDER): Likewise.
11836 (enum reg_class): Likewise.
11837 (REG_CLASS_NAMES): Likewise.
11838 (REG_CLASS_CONTENTS): Likewise.
11839 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11840
11841 2014-08-04 Richard Biener <rguenther@suse.de>
11842
11843 * gimple-fold.h (gimple_fold_builtin): Remove.
11844 * gimple-fold.c (gimple_fold_builtin): Make static.
11845 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11846 fold_stmt, not gimple_fold_builtin.
11847
11848 2014-08-04 Martin Liska <mliska@suse.cz>
11849
11850 * cgraph.h (csi_end_p): Removed.
11851 (csi_next): Likewise.
11852 (csi_node): Likewise.
11853 (csi_start): Likewise.
11854 (cgraph_node_in_set_p): Likewise.
11855 (cgraph_node_set_size): Likewise.
11856 (vsi_end_p): Likewise.
11857 (vsi_next): Likewise.
11858 (vsi_node): Likewise.
11859 (vsi_start): Likewise.
11860 (varpool_node_set_size): Likewise.
11861 (cgraph_node_set_nonempty_p): Likewise.
11862 (varpool_node_set_nonempty_p): Likewise.
11863 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11864 cgraph_node_set.
11865 * ipa-inline-transform.c: Likewise.
11866 * ipa-utils.c (cgraph_node_set_new): Removed.
11867 (cgraph_node_set_add): Likewise.
11868 (cgraph_node_set_remove): Likewise.
11869 (cgraph_node_set_find): Likewise.
11870 (dump_cgraph_node_set): Likewise.
11871 (debug_cgraph_node_set): Likewise.
11872 (free_cgraph_node_set): Likewise.
11873 (varpool_node_set_new): Likewise.
11874 (varpool_node_set_add): Likewise.
11875 (varpool_node_set_remove): Likewise.
11876 (varpool_node_set_find): Likewise.
11877 (dump_varpool_node_set): Likewise.
11878 (free_varpool_node_set): Likewise.
11879 (debug_varpool_node_set): Likewise.
11880 * tree-emutls.c (struct tls_var_data):
11881 (emutls_index): Removed.
11882 (emutls_decl): Likewise.
11883 (gen_emutls_addr): Function implementation uses newly added
11884 hash_map<varpool_node *, tls_var_data>.
11885 (clear_access_vars): Likewise.
11886 (create_emultls_var): Likewise.
11887 (ipa_lower_emutls): Likewise.
11888 (reset_access): New function.
11889
11890 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11891
11892 * config/i386/i386.c (ix86_option_override_internal): Add
11893 PTA_RDRND and PTA_MOVBE for bdver4.
11894
11895 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11896 James Greenhalgh <james.greenhalgh@arm.com>
11897
11898 * doc/md.texi (clrsb): Document.
11899 (clz): Change reference to x into operand 1.
11900 (ctz): Likewise.
11901 (popcount): Likewise.
11902
11903 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11904
11905 PR target/61713
11906 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11907 move to subtarget in serial version if result is ignored.
11908
11909 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11910 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11911
11912 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11913 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11914 (sched_analyze_insn): Update use of try_group_insn to
11915 sched_macro_fuse_insns.
11916 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11917 arguments that are not conditional jumps.
11918
11919 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11920
11921 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11922 family information. Handle BTVER2 cpu with cpuid family value.
11923
11924 2014-08-04 Tom de Vries <tom@codesourcery.com>
11925
11926 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11927 (glibc_2_11_or_earlier): Document effective-target keywords.
11928
11929 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11930
11931 * ipa-devirt.c (odr_type_warn_count): Add type.
11932 (possible_polymorphic_call_targets): Set it.
11933 (ipa_devirt): Use it.
11934
11935 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11936
11937 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11938 Document.
11939 * ipa-devirt.c: Include hash-map.h
11940 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11941 (clear_speculation): Break out of ...
11942 (get_class_context): ... here; speed up handling obviously useless
11943 speculations.
11944 (odr_type_warn_count, decl_warn_count): New structures.
11945 (final_warning_record): New structure.
11946 (final_warning_records): New static variable.
11947 (possible_polymorphic_call_targets): Cleanup handling of
11948 speculative info; do not build speculation when user do not care;
11949 record info about warnings when asked for.
11950 (add_decl_warning): New function.
11951 (type_warning_cmp): New function.
11952 (decl_warning_cmp): New function.
11953 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11954 (gate): Enable pass when warnings are requested.
11955 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11956 options.
11957
11958 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11959
11960 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11961 Fix cast.
11962 (hash_map::remove): New method.
11963 (hash_map::traverse): New method.
11964 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11965 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11966 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11967 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11968 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11969 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11970 pointer_map.
11971
11972 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11973
11974 * hash-set.h: new File.
11975 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11976 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11977 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11978 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11979 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11980 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11981 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11982 varpool.c: Use hash_set instead of pointer_set.
11983
11984 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11985
11986 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11987
11988 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11989
11990 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11991 for frame access when strict_p is false.
11992
11993 2014-08-01 Renlin Li <renlin.li@arm.com>
11994 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11995
11996 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11997 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11998 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11999 Declaration.
12000 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
12001 predicate.
12002 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
12003 aarch64_mem_pair_offset.
12004
12005 2014-08-01 Jiong Wang <jiong.wang@arm.com>
12006
12007 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
12008 offset.
12009 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
12010 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
12011
12012 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
12013
12014 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
12015
12016 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
12017
12018 PR regression/61510
12019 * cgraphunit.c (analyze_functions): Use get_create rather than get
12020 for decls which are clones of abstract functions.
12021
12022 2014-08-01 Martin Liska <mliska@suse.cz>
12023
12024 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
12025 * ipa-prop.h (count_formal_params): Global function created from static.
12026 * ipa-prop.c (count_formal_params): Likewise.
12027 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
12028 profiles for semantically equivalent functions.
12029 * passes.c (do_per_function): If we load body of a function
12030 during WPA, this condition should behave same.
12031 * varpool.c (ctor_for_folding): More tolerant assert for variable
12032 aliases created during WPA.
12033
12034 2014-08-01 Martin Liska <mliska@suse.cz>
12035
12036 * doc/invoke.texi (Options That Control Optimization): Documentation
12037 for -foptimize-strlen introduced. Optimization levels default options
12038 fixed.
12039
12040 2014-08-01 Jakub Jelinek <jakub@redhat.com>
12041
12042 * opts.c (common_handle_option): Handle -fsanitize=alignment.
12043 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
12044 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
12045 type to bool.
12046 * stor-layout.h (min_align_of_type): New prototype.
12047 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
12048 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
12049 check.
12050 * ubsan.c: Include builtins.h.
12051 (ubsan_expand_bounds_ifn): Change return type to bool,
12052 always return true.
12053 (ubsan_expand_null_ifn): Change return type to bool, change
12054 argument to gimple_stmt_iterator *. Handle both null and alignment
12055 sanitization, take type from ckind argument's type rather than
12056 first argument.
12057 (instrument_member_call): Removed.
12058 (instrument_mem_ref): Remove t argument, add mem and base arguments.
12059 Handle both null and alignment sanitization, don't say whole
12060 struct access is member access. Build 3 argument IFN_UBSAN_NULL
12061 call instead of 2 argument.
12062 (instrument_null): Adjust instrument_mem_ref caller. Don't
12063 instrument calls here.
12064 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
12065 like SANITIZE_NULL.
12066 * stor-layout.c (min_align_of_type): New function.
12067 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
12068 Or it into SANITIZE_UNDEFINED.
12069 * doc/invoke.texi (-fsanitize=alignment): Document.
12070
12071 2014-07-31 Andi Kleen <ak@linux.intel.com>
12072
12073 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
12074
12075 2014-07-31 Andi Kleen <ak@linux.intel.com>
12076
12077 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
12078 inchash.
12079 (vn_reference_compute_hash): Dito.
12080 (vn_nary_op_compute_hash): Dito.
12081 (vn_phi_compute_hash): Dito.
12082 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
12083
12084 2014-07-31 Andi Kleen <ak@linux.intel.com>
12085
12086 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
12087 Rename to inchash:add_expr_commutative. Convert to inchash.
12088 (iterative_hash_hashable_expr): Rename to
12089 inchash:add_hashable_expr. Convert to inchash.
12090 (avail_expr_hash): Dito.
12091
12092 2014-07-31 Andi Kleen <ak@linux.intel.com>
12093
12094 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
12095 Convert to inchash.
12096
12097 2014-07-31 Andi Kleen <ak@linux.intel.com>
12098
12099 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
12100
12101 2014-07-31 Andi Kleen <ak@linux.intel.com>
12102
12103 * Makefile.in (OBJS): Add rtlhash.o
12104 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12105 (loc_checksum): Dito.
12106 (loc_checksum_ordered): Dito.
12107 (hash_loc_operands): Dito.
12108 (hash_locs): Dito.
12109 (hash_loc_list): Dito.
12110 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12111 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12112 * rtlhash.c: New file.
12113 * rtlhash.h: New file.
12114
12115 2014-07-31 Andi Kleen <ak@linux.intel.com>
12116
12117 * inchash.h (inchash): Change inchash class to namespace.
12118 (class hash): ... Rename from inchash.
12119 (add_object): Move from macro to class template.
12120 * lto-streamer-out.c (hash_tree): Change inchash
12121 to inchash::hash.
12122 * tree.c (build_type_attribute_qual_variant): Dito.
12123 (type_hash_list): Dito.
12124 (attribute_hash_list): Dito.
12125 (iterative_hstate_expr): Rename to inchash::add_expr
12126 (build_range_type_1): Change inchash to inchash::hash
12127 and use hash::add_expr.
12128 (build_array_type_1): Dito.
12129 (build_function_type): Dito
12130 (build_method_type_directly): Dito.
12131 (build_offset_type): Dito.
12132 (build_complex_type): Dito.
12133 (make_vector_type): Dito.
12134 * tree.h (iterative_hash_expr): Dito.
12135
12136 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
12137
12138 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12139
12140 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12141
12142 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12143 correct alphabetical position.
12144 (vpaddd_f64): Rewrite using builtins.
12145 (vpaddd_s64): Move to correct alphabetical position.
12146 (vpaddd_u64): New.
12147
12148 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
12149
12150 PR target/61844
12151 * config/sh/sh.c (sh_legitimate_address_p,
12152 sh_legitimize_reload_address): Handle reg+reg address modes when
12153 ALLOW_INDEXED_ADDRESS is false.
12154 * config/sh/predicates.md (general_movsrc_operand,
12155 general_movdst_operand): Likewise.
12156
12157 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12158
12159 * config/aarch64/aarch64-builtins.c
12160 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12161 BYTES_BIG_ENDIAN.
12162
12163 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12164
12165 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12166 the generated mask based on BYTES_BIG_ENDIAN.
12167 (aarch64_simd_check_vect_par_cnst_half): New.
12168 * config/aarch64/aarch64-protos.h
12169 (aarch64_simd_check_vect_par_cnst_half): New.
12170 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12171 the check out to aarch64_simd_check_vect_par_cnst_half.
12172 (vect_par_cnst_lo_half): Likewise.
12173 * config/aarch64/aarch64-simd.md
12174 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12175 (move_hi_quad_<mode>): Always generate a low mask.
12176
12177 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12178
12179 * doc/invoke.texi (AVR Options): Add documentation about
12180 __AVR_DEVICE_NAME__ built-in macro.
12181
12182 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12183
12184 PR target/61948
12185 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12186 constraints are satisfied.
12187 (<shift>di3_neon): Likewise.
12188
12189 2014-07-31 Richard Biener <rguenther@suse.de>
12190
12191 PR tree-optimization/61964
12192 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12193 by structural equality.
12194
12195 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12196
12197 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12198 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12199 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12200 New enums.
12201 * gcc.c (sanitize_spec_function): Support new option.
12202 (SANITIZER_SPEC): Remove now redundant check.
12203 * opts.c (common_handle_option): Support new option.
12204 (finish_options): Check for incompatibilities.
12205 * toplev.c (process_options): Split userspace-specific checks.
12206
12207 2014-07-31 Richard Biener <rguenther@suse.de>
12208
12209 * lto-streamer.h (struct output_block): Remove global.
12210 (struct data_in): Remove labels, num_named_labels and
12211 num_unnamed_labels.
12212 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12213 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12214
12215 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12216
12217 PR c++/60517
12218 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12219 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12220 (isolate_path): New argument to avoid inserting a trap.
12221 (find_implicit_erroneous_behaviour): Handle returning the address
12222 of a local variable.
12223 (find_explicit_erroneous_behaviour): Likewise.
12224
12225 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12226
12227 PR lto/61868
12228 * toplev.c (init_random_seed): Move piece of code never called to
12229 set_random_seed.
12230 (set_random_seed): see above.
12231
12232 2014-07-31 Tom de Vries <tom@codesourcery.com>
12233
12234 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12235
12236 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12237
12238 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12239 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12240
12241 2014-07-31 Richard Biener <rguenther@suse.de>
12242
12243 * data-streamer.h (streamer_write_data_stream): Declare here,
12244 renamed from ...
12245 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12246 * lto-cgraph.c (lto_output_node): Adjust.
12247 (lto_output_varpool_node): Likewise.
12248 * data-streamer-out.c (streamer_string_index): Likewise.
12249 (streamer_write_data_stream, lto_append_block): Move from ...
12250 * lto-section-out.c (lto_output_data_stream,
12251 lto_append_block): ... here.
12252
12253 2014-07-30 Mike Stump <mikestump@comcast.net>
12254
12255 * configure.ac: Also check for popen.
12256 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12257 * configure: Regenerate.
12258 * config.in: Regenerate.
12259
12260 2014-07-30 Martin Jambor <mjambor@suse.cz>
12261
12262 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12263 parameter to gimple.
12264
12265 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12266
12267 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12268 address as second parameter to __tpf_eh_return routine.
12269
12270 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12271
12272 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12273 Thumb2.
12274
12275 2014-07-30 Tom Tromey <tromey@redhat.com>
12276
12277 PR c/59855
12278 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12279 * doc/extend.texi (Type Attributes): Document designated_init
12280 attribute.
12281
12282 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12283
12284 * graphite-isl-ast-to-gimple.c:
12285 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12286 (gcc_expression_from_isl_expression): Pass type to
12287 gcc_expression_from_isl_ast_expr_id.
12288
12289 2014-07-30 Richard Biener <rguenther@suse.de>
12290
12291 * lto-streamer.h (lto_write_data): New function.
12292 * langhooks.c (lhd_append_data): Do not free block.
12293 * lto-section-out.c (lto_write_data): New function writing
12294 raw data to the current section.
12295 (lto_write_stream): Adjust for langhook semantic change.
12296 (lto_destroy_simple_output_block): Write header directly.
12297 * lto-opts.c (lto_write_options): Write options directly.
12298 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12299 (lto_output_toplevel_asms): Likewise.
12300 (copy_function_or_variable): Copy data directly.
12301 (write_global_references): Output index table directly.
12302 (lto_output_decl_state_refs): Likewise.
12303 (write_symbol): Write data directly.
12304 (produce_symtab): Adjust.
12305 (produce_asm_for_decls): Output header and refs directly.
12306
12307 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12308
12309 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12310 to speculative_targets
12311 (get_class_context): Fix handling of contextes without outer type;
12312 avoid matching non-polymorphic types in LTO.
12313 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12314 parameter to speculative_targetsp; handle speculation.
12315 (dump_possible_polymorphic_call_targets): Update dumping.
12316
12317 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12318
12319 * common.opt (Wodr): Enable by default.
12320
12321 2014-07-29 Olivier Hainque <hainque@adacore.com>
12322
12323 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12324
12325 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12326
12327 PR bootstrap/61914
12328 * gengtype.c (strtoken): New function.
12329 (create_user_defined_type): Replace strtok with strtoken.
12330
12331 2014-07-29 Nathan Sidwell <nathan@acm.org>
12332
12333 * gcov-io.c (gcov_var): Make hidden.
12334 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12335 (gcov_do_dump): Declare.
12336 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12337
12338 2014-07-29 Martin Jambor <mjambor@suse.cz>
12339
12340 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12341 parameter to gimple.
12342 (sra_modify_assign): Likewise.
12343
12344 2014-07-29 Richard Biener <rguenther@suse.de>
12345
12346 PR middle-end/52478
12347 * expr.c (expand_expr_real_2): Revert last change.
12348
12349 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12350
12351 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12352 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12353 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12354 call.
12355 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12356 (contains_type_p): Forward declare.
12357 (polymorphic_call_target_hasher::hash): Hash speculative info.
12358 (polymorphic_call_target_hasher::equal): Compare speculative info.
12359 (get_class_context): Handle speuclation.
12360 (contains_type_p): Update.
12361 (get_polymorphic_call_info_for_decl): Update.
12362 (walk_ssa_copies): Break out from ...
12363 (get_polymorphic_call_info): ... here; set speculative context
12364 before giving up.
12365 * ipa-prop.c (ipa_write_indirect_edge_info,
12366 ipa_read_indirect_edge_info): Stream speculative context.
12367 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12368 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12369 SPECULATIVE_MAYBE_DERIVED_TYPE).
12370 (possible_polymorphic_call_targets overriders): Update.
12371 (dump_possible_polymorphic_call_targets overriders): Update.
12372 (dump_possible_polymorphic_call_target_p overriders): Update.
12373
12374 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12375
12376 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12377 ipa-devirt path; fix thinko there.
12378
12379 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12380
12381 * config/i386/i386.c (ix86_return_in_memory): Replace one
12382 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12383
12384 2014-07-28 Marek Polacek <polacek@redhat.com>
12385
12386 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12387
12388 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12389
12390 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12391 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12392 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12393 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12394 (USE_LD_AS_NEEDED): Likewise.
12395 (ASM_APP_ON): Likewise.
12396 (ASM_APP_OFF): Likewise.
12397 (TARGET_POSIX_IO): Likewise.
12398 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12399 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12400 (USE_LD_AS_NEEDED): Likewise.
12401 (ASM_APP_ON): Likewise.
12402 (ASM_APP_OFF): Likewise.
12403 (TARGET_POSIX_IO): Likewise.
12404
12405 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12406
12407 PR middle-end/61734
12408 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12409 operators other than the equality operators.
12410
12411 2014-07-28 Richard Biener <rguenther@suse.de>
12412
12413 PR middle-end/52478
12414 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12415 sure to register SImode ones, not only >= word_mode ones.
12416 * expr.c (expand_expr_real_2): When expanding -ftrapv
12417 binops do not use OPTAB_LIB_WIDEN.
12418
12419 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12420
12421 PR middle-end/61919
12422 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12423 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12424 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12425 inserting them in the insn stream.
12426
12427 2014-07-28 Marek Polacek <polacek@redhat.com>
12428
12429 PR middle-end/61913
12430 * common.opt (Wodr): Add Var.
12431
12432 2014-07-28 Richard Biener <rguenther@suse.de>
12433
12434 PR tree-optimization/61921
12435 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12436 if there is a varpool node before dereferencing it.
12437
12438 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12439
12440 * graphite-sese-to-poly.c:
12441 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12442 id of the pbb), which contains pointer to the pbb1.
12443
12444 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12445
12446 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12447
12448 * graphite-isl-ast-to-gimple.c:
12449 (graphite_create_new_guard): New function.
12450 (translate_isl_ast_node_if): New function.
12451 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12452
12453 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12454
12455 2014-07-27 Anthony Green <green@moxielogic.com>
12456
12457 * config.gcc: Add moxie-*-moxiebox* configuration.
12458 * config/moxie/moxiebox.h: New file.
12459
12460 2014-07-26 Andrew Pinski <apinski@cavium.com>
12461
12462 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12463 from the read only register.
12464
12465 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12466
12467 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12468 as the allocation class if it isn't likely to be spilled.
12469
12470 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12471
12472 * rtl.h (tls_referenced_p): Declare.
12473 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12474 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12475 (mips_cannot_force_const_mem): Use tls_referenced_p.
12476 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12477 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12478 instead of pa_tls_referenced_p.
12479 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12480 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12481 (pa_legitimate_constant_p): Likewise.
12482 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12483 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12484 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12485 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12486 rs6000_tls_referenced_p.
12487 (rs6000_tls_symbol_ref_1): Delete.
12488
12489 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12490
12491 PR target/44551
12492 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12493 Optimize inverse of a VEC_CONCAT.
12494
12495 2014-07-25 Xinliang David Li <davidxl@google.com>
12496
12497 * params.def: New parameter.
12498 * coverage.c (get_coverage_counts): Check new flag.
12499 (coverage_compute_profile_id): Check new flag.
12500 (coverage_begin_function): Check new flag.
12501 (coverage_end_function): Check new flag.
12502 * value-prof.c (coverage_node_map_initialized_p): New function.
12503 (init_node_map): Populate map with all functions.
12504 * doc/invoke.texi: Document new parameter.
12505
12506 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12507 Richard Biener <rguenther@suse.de>
12508
12509 * lto-streamer-out.c (struct sccs): Turn to ...
12510 (class DFS): ... this one; refactor the DFS walk so it can
12511 be re-done on per-SCC basis.
12512 (DFS::DFS): New constructor.
12513 (DFS::~DFS): New destructor.
12514 (hash_tree): Add new MAP argument holding in-SCC hash values;
12515 remove POINTER_TYPE hashing hack.
12516 (scc_entry_compare): Rename to ...
12517 (DFS::scc_entry_compare): ... this one.
12518 (hash_scc): Rename to ...
12519 (DFS::hash_scc): ... this one; pass output_block instead
12520 of streamer_cache; work harder to get unique and stable SCC
12521 hashes.
12522 (DFS_write_tree): Rename to ...
12523 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12524 (lto_output_tree): Update.
12525
12526 2014-07-25 Andi Kleen <ak@linux.intel.com>
12527
12528 * lto-streamer-out.c (hash_tree): Convert to inchash.
12529
12530 2014-07-25 Andi Kleen <ak@linux.intel.com>
12531
12532 * tree.c (build_type_attribute_qual_variant): Use inchash.
12533 (type_hash_list): Dito.
12534 (attribute_hash_list): Dito
12535 (iterative_hstate_expr): Dito.
12536 (iterative_hash_expr): Dito.
12537 (build_range_type_1): Dito.
12538 (build_array_type_1): Dito.
12539 (build_function_type): Dito.
12540 (build_method_type_directly): Dito.
12541 (build_offset_type): Dito.
12542 (build_complex_type): Dito.
12543 (make_vector_type): Dito.
12544 * tree.h (iterative_hash_expr): Add compat wrapper.
12545 (iterative_hstate_expr): Add.
12546
12547 2014-07-25 Andi Kleen <ak@linux.intel.com>
12548
12549 * Makefile.in (OBJS): Add inchash.o.
12550 (PLUGIN_HEADERS): Add inchash.h.
12551 * ipa-devirt.c: Include inchash.h.
12552 * lto-streamer-out.c: Dito.
12553 * tree-ssa-dom.c: Dito.
12554 * tree-ssa-pre.c: Dito.
12555 * tree-ssa-sccvn.c: Dito.
12556 * tree-ssa-tail-merge.c: Dito.
12557 * asan.c: Dito.
12558 * tree.c (iterative_hash_hashval_t): Move to ...
12559 (iterative_hash_host_wide_int): Move to ...
12560 * inchash.c: Here. New file.
12561 * tree.h (iterative_hash_hashval_t): Move to ...
12562 (iterative_hash_host_wide_int): Move to ...
12563 * inchash.h: Here. New file.
12564
12565 2014-07-25 Richard Biener <rguenther@suse.de>
12566
12567 PR middle-end/61762
12568 PR middle-end/61894
12569 * fold-const.c (native_encode_int): Add and handle offset
12570 parameter to do partial encodings of expr.
12571 (native_encode_fixed): Likewise.
12572 (native_encode_real): Likewise.
12573 (native_encode_complex): Likewise.
12574 (native_encode_vector): Likewise.
12575 (native_encode_string): Likewise.
12576 (native_encode_expr): Likewise.
12577 * fold-const.c (native_encode_expr): Add offset parameter
12578 defaulting to -1.
12579 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12580 (fold_ctor_reference): Handle all reads from tcc_constant
12581 ctors.
12582
12583 2014-07-25 Richard Biener <rguenther@suse.de>
12584
12585 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12586 as possibly unused.
12587
12588 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12589
12590 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12591
12592 2014-07-24 Kyle McMartin <kyle@redhat.com>
12593
12594 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12595
12596 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12597
12598 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12599 Add prototype.
12600 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12601 function.
12602 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12603 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12604 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12605
12606 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12607
12608 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12609 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12610 aggregate types. Instead, *all* aggregate types, except for single-
12611 element or homogeneous float/vector aggregates, are quadword-aligned
12612 if required by their type alignment. Issue -Wpsabi note when a type
12613 is now treated differently than before.
12614
12615 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12616
12617 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12618 does not fit fully into floating-point registers, and there is still
12619 space in the register parameter area, use GPRs to pass those parts
12620 of the argument. Issue -Wpsabi note if any parameter is now treated
12621 differently than before.
12622 (rs6000_arg_partial_bytes): Update.
12623
12624 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12625
12626 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12627
12628 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12629
12630 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12631 * toplev.c (initialize_rtl): Don't use it. Move previously
12632 "language-dependent" calls to...
12633 (backend_init): ...here.
12634 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12635 Assert that RTL initialization hasn't happend yet.
12636
12637 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12638
12639 PR rtl-optimization/61629
12640 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12641 they have already been initialized.
12642
12643 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12644
12645 PR middle-end/61268
12646 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12647 DECL_INCOMING_RTL and entry_parm.
12648 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12649 * calls.c (load_register_parameters): Likewise argument values.
12650 (emit_library_call_value_1, store_one_arg): Likewise argument
12651 save areas.
12652 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12653 stack slot.
12654 * explow.c (validize_mem): Modify the argument in-place.
12655
12656 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12657
12658 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12659 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12660
12661 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12662
12663 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12664 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12665
12666 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12667
12668 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12669 (aarch64_save_callee_saves): New parameter "skip_wb".
12670 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12671
12672 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12673
12674 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12675 "wb_candidate2".
12676 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12677
12678 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12679
12680 * graphite-isl-ast-to-gimple.c:
12681 (graphite_create_new_loop): Add calling of isl_id_free to properly
12682 decrement reference counts.
12683
12684 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12685
12686 2014-07-24 Martin Liska <mliska@suse.cz>
12687 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12688 function used.
12689 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12690 (rs6000_code_end): Likewise.
12691
12692 2014-07-24 Martin Liska <mliska@suse.cz>
12693
12694 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12695 symtab_node funtion used.
12696 (rs6000_xcoff_declare_object_name): Likewise.
12697
12698 2014-07-24 Martin Liska <mliska@suse.cz>
12699
12700 * cgraphunit.c (compile): Correct function used.
12701
12702 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12703
12704 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12705 as non-indexable.
12706
12707 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12708
12709 PR lto/61802
12710 * varasm.c (bss_initializer_p): Handle offlined ctors.
12711 (align_variable, get_variable_align): Likewise.
12712 (make_decl_one_only): Likewise.
12713 (default_binds_local_p_1): Likewise.
12714 (decl_binds_to_current_def_p): Likewise.
12715 (get_variable_section): Get constructor if it is offlined.
12716 (assemble_variable_contents): Sanity check that the caller
12717 streamed in the ctor in LTO.
12718
12719 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12720
12721 * graphite-isl-ast-to-gimple.c:
12722 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12723 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12724 isl_ast_op_pdiv_r to the different case.
12725
12726 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12727
12728 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12729
12730 PR middle-end/61876
12731 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12732 when flag_errno_math is on.
12733
12734 2014-07-24 Martin Liska <mliska@suse.cz>
12735
12736 * cgraph.h (varpool_node):
12737 (availability get_availability (void)):
12738 created from cgraph_variable_initializer_availability
12739 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12740 created from: cgraph_variable_initializer_availability
12741 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12742 (void finalize_named_section_flags (void)):
12743 created from varpool_finalize_named_section_flags
12744 (bool assemble_decl (void)): created from varpool_assemble_decl
12745 (void analyze (void)): created from varpool_analyze_node
12746 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12747 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12748 (void remove_initializer (void)): created from varpool_remove_initializer
12749 (tree get_constructor (void)): created from varpool_get_constructor
12750 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12751 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12752 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12753 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12754 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12755 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12756 (static bool output_variables (void)): created from varpool_output_variables
12757 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12758 created from varpool_extra_name_alias
12759 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12760 (static void dump_varpool (FILE *f)): created from dump_varpool
12761 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12762 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12763 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12764 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12765 (void assemble_aliases (void)): created from assemble_aliases
12766
12767 2014-07-24 Martin Liska <mliska@suse.cz>
12768
12769 * cgraph.h (symtab_node):
12770 (void register_symbol (void)): created from symtab_register_node
12771 (void remove (void)): created from symtab_remove_node
12772 (void dump (FILE *f)): created from dump_symtab_node
12773 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12774 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12775 (struct ipa_ref *add_reference (symtab_node *referred_node,
12776 enum ipa_ref_use use_type)): created from add_reference
12777 (struct ipa_ref *add_reference (symtab_node *referred_node,
12778 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12779 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12780 gimple stmt)): created from maybe_add_reference
12781 (bool semantically_equivalent_p (symtab_node *target)): created from
12782 symtab_semantically_equivalent_p
12783 (void remove_from_same_comdat_group (void)): created from
12784 remove_from_same_comdat_group
12785 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12786 symtab_add_to_same_comdat_group
12787 (void dissolve_same_comdat_group_list (void)): created from
12788 symtab_dissolve_same_comdat_group_list
12789 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12790 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12791 created from symtab_alias_ultimate_target
12792 (inline symtab_node *next_defined_symbol (void)): created from
12793 symtab_next_defined_symbol
12794 (bool resolve_alias (symtab_node *target)): created from
12795 symtab_resolve_alias
12796 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12797 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12798 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12799 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12800 (void set_section (const char *section)): created from set_section_1
12801 (enum availability get_availability (void)): created from symtab_node_availability
12802 (void make_decl_local (void)): created from symtab_make_decl_local
12803 (bool real_symbol_p (void)): created from symtab_read_node
12804 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12805 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12806 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12807 symtab_in_same_comdat_p;
12808 (bool address_taken_from_non_vtable_p (void)): created from
12809 address_taken_from_non_vtable_p
12810 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12811 (static void dump_table (FILE *)): created from dump_symtab
12812 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12813 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12814 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12815 symtab_used_from_object_file_p
12816 (void dump_base (FILE *)): created from dump_symtab_base
12817 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12818 (void unregister (void)): created from symtab_unregister_node
12819 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12820 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12821 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12822 symtab_nonoverwritable_alias_1
12823 * cgraph.h (cgraph_node):
12824 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12825 created from cgraph_remove_node_and_inline_clones
12826 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12827 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12828 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12829 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12830 created from cgraph_function_node
12831 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12832 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12833 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12834 created from cgraph_create_clone
12835 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12836 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12837 created from cgraph_create_virtual_clone
12838 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12839 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12840 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12841 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12842 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12843 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12844 created from cgraph_function_version_info
12845 (struct cgraph_function_version_info *insert_new_function_version (void)):
12846 created from insert_new_cgraph_node_version
12847 (struct cgraph_function_version_info *function_version (void)): created from
12848 get_cgraph_node_version
12849 (void analyze (void)): created from analyze_function
12850 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12851 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12852 tree real_alias) cgraph_add_thunk
12853 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12854 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12855 created from cgraph_function_or_thunk_node
12856 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12857 created from expand_thunk
12858 (void reset (void)): created from cgraph_reset_node
12859 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12860 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12861 (void remove (void)): created from cgraph_remove_node
12862 (void dump (FILE *f)): created from dump_cgraph_node
12863 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12864 (bool get_body (void)): created from cgraph_get_body
12865 (void release_body (void)): created from cgraph_release_function_body
12866 (void unnest (void)): created from cgraph_unnest_node
12867 (void make_local (void)): created from cgraph_make_node_local
12868 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12869 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12870 gcov_type count, int freq)): created from cgraph_create_edge
12871 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12872 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12873 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12874 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12875 created from cgraph_create_edge_including_clones
12876 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12877 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12878 (void remove_callers (void)): created from cgraph_node_remove_callers
12879 (void remove_callees (void)): created from cgraph_node_remove_callees
12880 (enum availability get_availability (void)): created from cgraph_function_body_availability
12881 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12882 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12883 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12884 (void call_duplication_hooks (cgraph_node *node2)): created from
12885 cgraph_call_node_duplication_hooks
12886 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12887 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12888 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12889 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12890 (void call_function_insertion_hooks (void)):
12891 created from cgraph_call_function_insertion_hooks
12892 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12893 (bool local_p (void)): created from cgraph_local_node
12894 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12895 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12896 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12897 (inline bool only_called_directly_or_aliased_p (void)):
12898 created from cgraph_only_called_directly_or_aliased_p
12899 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12900 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12901 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12902 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12903 (bool can_remove_if_no_direct_calls_p (void)):
12904 created from cgraph_can_remove_if_no_direct_calls_p
12905 (inline bool has_gimple_body_p (void)):
12906 created from cgraph_function_with_gimple_body_p
12907 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12908 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12909 (static inline void debug_cgraph (void)): created from debug_cgraph
12910 (static void record_function_versions (tree decl1, tree decl2)):
12911 created from record_function_versions
12912 (static void delete_function_version (tree decl)):
12913 created from delete_function_version
12914 (static void add_new_function (tree fndecl, bool lowered)):
12915 created from cgraph_add_new_function
12916 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12917 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12918 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12919 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12920 (static cgraph_node *get_for_asmname (tree asmname)):
12921 created from cgraph_node_for_asm
12922 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12923 created from cgraph_same_body_alias
12924 (static bool used_from_object_file_p_worker (cgraph_node *node,
12925 void *): new function
12926 (static bool non_local_p (cgraph_node *node, void *)):
12927 created from cgraph_non_local_node_p_1
12928 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12929 created from verify_cgraph
12930 (static bool make_local (cgraph_node *node, void *)):
12931 created from cgraph_make_node_local
12932 (static cgraph_node *create_alias (tree alias, tree target)):
12933 created from cgraph_create_function_alias
12934 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12935 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12936 created from cgraph_create_edge_1
12937 * cgraph.h (varpool_node):
12938 (void remove (void)): created from varpool_remove_node
12939 (void dump (FILE *f)): created from dump_varpool_node
12940
12941 2014-07-24 Richard Biener <rguenther@suse.de>
12942
12943 PR ipa/61823
12944 * tree-ssa-structalias.c (create_variable_info_for_1):
12945 Use varpool_get_constructor.
12946 (create_variable_info_for): Likewise.
12947
12948 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12949
12950 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12951 subtract outgoing area size when restoring stack_pointer_rtx.
12952
12953 2014-07-24 Nick Clifton <nickc@redhat.com>
12954
12955 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12956 that operations are taking place in parallel.
12957 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12958
12959 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12960
12961 * omp-low.c (extract_omp_for_data): Add missing break statement.
12962
12963 2014-07-24 Richard Biener <rguenther@suse.de>
12964
12965 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12966 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12967 and adjust MOVE_RATIO query accordingly.
12968 (estimate_num_insns): Adjust callers.
12969 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12970 * ipa-cp.c (gather_context_independent_values,
12971 estimate_local_effects): Likewise.
12972 * ipa-split.c (consider_split): Likewise.
12973
12974 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12975
12976 * config/i386/driver-i386.c: Remove names of unused arguments and
12977 unnecessary unused attributes.
12978 * config/i386/host-mingw32.c: Likewise.
12979 * config/i386/i386.c: Likewise.
12980 * config/i386/winnt-stubs.c: Likewise.
12981 * config/i386/winnt.c: Likewise.
12982
12983 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12984
12985 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12986 (aarch64_gen_loadwb_pair): New helper function.
12987 (aarch64_expand_epilogue): Simplify code using new helper functions.
12988 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12989
12990 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12991
12992 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12993 (aarch64_gen_storewb_pair): New helper function.
12994 (aarch64_expand_prologue): Simplify code using new helper functions.
12995 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12996
12997 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12998
12999 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
13000 Rename to aarch64_save_callee_saves, remove restore code.
13001 (aarch64_restore_callee_saves): New function.
13002
13003 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13004
13005 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
13006 (aarch64_save_callee_saves): New function to handle reg save
13007 for both core and vectore regs.
13008
13009 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13010
13011 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
13012 (aarch64_gen_store_pair): New helper function.
13013 (aarch64_save_or_restore_callee_save_registers)
13014 (aarch64_save_or_restore_fprs): Use new helper functions.
13015
13016 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13017
13018 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
13019 (aarch64_save_or_restore_callee_save_registers)
13020 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
13021
13022 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13023
13024 * config/aarch64/aarch64.c
13025 (aarch64_save_or_restore_callee_save_registers)
13026 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
13027
13028 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13029
13030 * config/aarch64/aarch64.c
13031 (aarch64_save_or_restore_callee_save_registers)
13032 (aarch64_save_or_restore_fprs): Remove 'increment'.
13033
13034 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13035
13036 * config/aarch64/aarch64.c
13037 (aarch64_save_or_restore_callee_save_registers)
13038 (aarch64_save_or_restore_fprs): Use register offset in
13039 cfun->machine->frame.reg_offset.
13040
13041 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13042
13043 * config/aarch64/aarch64.c
13044 (aarch64_save_or_restore_callee_save_registers)
13045 (aarch64_save_or_restore_fprs): Remove base_rtx.
13046
13047 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13048
13049 * config/aarch64/aarch64.c
13050 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
13051 to 'start_offset'. Remove local variable 'start_offset'.
13052
13053 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13054
13055 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
13056 type to HOST_WIDE_INT.
13057
13058 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13059
13060 * config/aarch64/aarch64.c (aarch64_expand_prologue)
13061 (aarch64_save_or_restore_fprs)
13062 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
13063
13064 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13065
13066 * config/arm/t-rtems-eabi: Add
13067 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
13068 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
13069 mbig-endian/mthumb/march=armv7-r, and
13070 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
13071 multilibs.
13072
13073 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
13074 Chris Johns <chrisj@rtems.org>
13075 Joel Sherrill <joel.sherrill@oarcorp.com>
13076
13077 * config.gcc: Add nios2-*-rtems*.
13078 * config/nios2/rtems.h: New file.
13079 * gcc/config/nios2/t-rtems: New file.
13080
13081 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
13082
13083 PR target/61396
13084 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
13085 constant numbers, not general constants.
13086 (rs6000_expand_vector_init): Ditto.
13087
13088 2014-07-23 Nathan Sidwell <nathan@acm.org>
13089
13090 * gcov-tool.c (gcov_list): Declare here.
13091 (set_gcov_list): Remove.
13092 (gcov_output_files): Set gcov_list directly.
13093
13094 2014-07-23 Host Schirmeier <horst@schirmeier.com>
13095
13096 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
13097
13098 2014-07-23 Jiong Wang <jiong.wang@arm.com>
13099
13100 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
13101 callee-saved registers are available for padding purpose
13102 and r3 is not mandatory, then prefer use those callee-saved
13103 instead of r3.
13104
13105 2014-07-23 Richard Biener <rguenther@suse.de>
13106
13107 * params.def (PARAM_MAX_COMBINE_INSNS): New.
13108 * combine.c: Include statistics.h and params.h.
13109 (combine_instructions): Guard three and four insn combines
13110 with max-combine-insns value. Record statistics for combines
13111 performed.
13112 * doc/invoke.texi (max-combine-insns): Document new param.
13113
13114 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13115
13116 * graphite-isl-ast-to-gimple.c:
13117 (translate_isl_ast_node_block): New function.
13118 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13119
13120 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13121 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13122
13123 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13124
13125 * graphite-isl-ast-to-gimple.c:
13126 (get_max_schedule_dimensions): New function.
13127 (extend_schedule): Likewise.
13128 (generate_isl_schedule): Add calling of extend_schedule and
13129 get_max_schedule_dimensions.
13130
13131 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13132
13133 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13134 (case UNSPEC): Handle UNSPEC_RBIT.
13135
13136 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13137
13138 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13139 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13140
13141 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13142
13143 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13144
13145 2014-07-22 Roman Gareev <gareevroman@gmail.com>
13146
13147 * graphite-isl-ast-to-gimple.c:
13148 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13149 (ivs_params_clear):
13150 (build_iv_mapping): New function.
13151 (translate_isl_ast_node_user): Likewise.
13152 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13153
13154 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13155 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13156 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13157
13158 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13159
13160 PR target/55701
13161 * config/arm/arm.md (setmem): New pattern.
13162 * config/arm/arm-protos.h (struct tune_params): New fields.
13163 (arm_gen_setmem): New prototype.
13164 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13165 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13166 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13167 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13168 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13169 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13170 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13171 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13172 (arm_const_inline_cost): New function.
13173 (arm_block_set_max_insns): New function.
13174 (arm_block_set_non_vect_profit_p): New function.
13175 (arm_block_set_vect_profit_p): New function.
13176 (arm_block_set_unaligned_vect): New function.
13177 (arm_block_set_aligned_vect): New function.
13178 (arm_block_set_unaligned_non_vect): New function.
13179 (arm_block_set_aligned_non_vect): New function.
13180 (arm_block_set_vect, arm_gen_setmem): New functions.
13181
13182 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13183
13184 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13185
13186 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13187
13188 PR target/61855
13189 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13190 out of #ifdef __OPTIMIZE__.
13191
13192 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13193
13194 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13195 different trapping status if -fnon-call-exceptions is enabled.
13196
13197 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13198
13199 * expr.c (store_field): Handle VOIDmode for calls that return values
13200 in multiple locations.
13201
13202 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13203
13204 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13205 (altivec_vsldoi_<mode>): Likewise.
13206
13207 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13208
13209 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13210 to the number of characters in the line.
13211
13212 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13213
13214 * graphite-isl-ast-to-gimple.c: Add using of
13215 build_nonstandard_integer_type instead of int128_integer_type_node.
13216
13217 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13218
13219 * toplev.c (output_stack_usage): Adjust the location of the warning.
13220
13221 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13222
13223 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13224 (*membar_storeload): Disable for LEON3.
13225
13226 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13227
13228 PR rtl-optimization/61461
13229 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13230
13231 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13232
13233 PR target/61794
13234 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13235 Fix instruction constraint.
13236 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13237
13238 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13239
13240 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13241
13242 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13243
13244 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13245 GNU coding standards.
13246 (nds32_register_move_cost): Likewise.
13247 (nds32_memory_move_cost): Likewise.
13248 (nds32_address_cost): Likewise.
13249
13250 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13251
13252 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13253
13254 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13255
13256 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13257 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13258 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13259 (HAVE_sync_compare_and_swapqi): Define.
13260 (HAVE_sync_compare_and_swaphi): Likewise.
13261 (HAVE_sync_compare_and_swapsi): Likewise.
13262
13263 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13264
13265 * config/mips/p5600.md: Add missing cpu tests.
13266
13267 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13268
13269 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13270 (vmla_f64): Likewise.
13271 (vfms_f64): Likewise.
13272 (vmls_f64): Likewise.
13273
13274 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13275
13276 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13277 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13278
13279 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13280
13281 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13282 (vmlal_high_lane_s32): Likewise.
13283 (vmlal_high_lane_u16): Likewise.
13284 (vmlal_high_lane_u32): Likewise.
13285 (vmlsl_high_lane_s16): Likewise.
13286 (vmlsl_high_lane_s32): Likewise.
13287 (vmlsl_high_lane_u16): Likewise.
13288 (vmlsl_high_lane_u32): Likewise.
13289
13290 2014-07-17 Terry Guo <terry.guo@arm.com>
13291
13292 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13293 (alus_reg): Renamed to alus_sreg.
13294 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13295 from alu_reg to alu_sreg. Change type of dsp instructions from
13296 alu_reg to alu_dsp_reg.
13297 * config/arm/thumb1.md: Likewise.
13298 * config/arm/thumb2.md: Likewise.
13299 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13300 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13301 with alu_sreg and alus_sreg.
13302 * config/arm/arm1026ejs.md (alu_op): Likewise.
13303 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13304 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13305 * config/arm/fa526.md (526_alu_op): Likewise.
13306 * config/arm/fa606te.md (606te_alu_op): Likewise.
13307 * config/arm/fa626te.md (626te_alu_op): Likewise.
13308 * config/arm/fa726te.md (726te_alu_op): Likewise.
13309 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13310 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13311 alu_sreg, alu_dsp_reg and alus_sreg.
13312 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13313 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13314 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13315 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13316 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13317 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13318 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13319 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13320 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13321 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13322 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13323 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13324 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13325 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13326 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13327 alus_reg to alus_sreg.
13328
13329 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13330
13331 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13332 infinity format.
13333
13334 2014-07-17 Richard Biener <rguenther@suse.de>
13335
13336 PR rtl-optimization/61801
13337 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13338 don't set reg_pending_barrier if it appears in a debug-insn.
13339
13340 2014-07-16 DJ Delorie <dj@redhat.com>
13341
13342 * config/rx/rx.c (rx_option_override): Fix alignment values.
13343 (rx_align_for_label): Likewise.
13344
13345 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13346
13347 PR target/61737.
13348 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13349 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13350 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13351 functions.
13352 (cris_print_index, cris_print_operand, cris_constant_index_p)
13353 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13354 (cris_address_cost): Ditto last CONSTANT_P.
13355 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13356 callers changed. Yield cris_offsettable_symbol for non-PIC
13357 constant symbolic expressions including labels. Yield cris_unspec
13358 for all unspecs.
13359 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13360 target to pic_offset_table_rtx for calls that will likely go
13361 through PLT, const0_rtx when they can't. All callers changed.
13362 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13363 symbolic expressions to be PICified. Remove second, redundant,
13364 assert on can_create_pseudo_p returning non-zero. Use
13365 replace_equiv_address_nv, not replace_equiv_address, for final
13366 operand update.
13367 * config/cris/cris.md ("movsi"): Move variable t to pattern
13368 toplevel. Adjust assert for new cris_symbol_type member. Use
13369 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13370 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13371 for lapc stricter.
13372 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13373 ("call", "call_value"): Use second incoming operand as a marker
13374 for pic-offset-table-register being used.
13375 ("*expanded_call_non_v32", "*expanded_call_v32")
13376 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13377 second incoming operand to CALL, match cris_call_type_marker.
13378 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13379 ("*expanded_call_side"): Ditto. Fix typo in comment.
13380 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13381 CONSTANT_P.
13382 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13383 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13384 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13385 users changed. Add members cris_offsettable_symbol and cris_unspec.
13386 (cris_symbol_type): Rename from cris_pic_symbol_type.
13387 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13388 just CONSTANT_P.
13389 * config/cris/cris-protos.h (cris_symbol_type_of,
13390 cris_expand_pic_call_address): Adjust prototypes.
13391 (cris_legitimate_constant_p): New prototype.
13392
13393 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13394 an existing tmake_file. Don't add t-slibgcc and t-linux.
13395
13396 2014-07-17 Jason Merrill <jason@redhat.com>
13397
13398 PR c++/61623
13399 * symtab.c (symtab_remove_from_same_comdat_group): Also
13400 set_comdat_group to NULL_TREE.
13401 (verify_symtab): Fix diagnostic.
13402
13403 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13404
13405 PR target/61662
13406 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13407
13408 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13409
13410 Support location tracking for built-in macro tokens
13411 * input.h (is_location_from_builtin_token): New function declaration.
13412 * input.c (is_location_from_builtin_token): New function definition.
13413 * toplev.c (general_init): Tell libcpp what the pre-defined
13414 spelling location for built-in tokens is.
13415
13416 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13417
13418 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13419 on the FUNCTION_DECL.
13420
13421 2014-07-16 Richard Biener <rguenther@suse.de>
13422
13423 PR other/61782
13424 * doc/extend.texi (always_inline): Clarify.
13425
13426 2014-07-15 Eric Christopher <echristo@gmail.com>
13427
13428 * doc/invoke.texi (Link Options): Document -z option.
13429
13430 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13431
13432 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13433 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13434
13435 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13436
13437 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13438
13439 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13440
13441 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13442 varpool_assemble_decl.
13443 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13444 true.
13445
13446 2014-07-15 Michael Matz <matz@suse.de>
13447
13448 PR rtl-optimization/61772
13449 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13450
13451 2014-07-15 Richard Biener <rguenther@suse.de>
13452
13453 * opts.c (default_options_table): Disable bit-ccp at -Og.
13454
13455 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13456
13457 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13458
13459 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13460
13461 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13462 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13463 call langhook for unknown declaration.
13464 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13465 * tree.h (DECL_ARGUMENTS): Update.
13466 * print-tree.c (print_node): Update.
13467 * tree-core.h (tree_decl_non_common): Remove arguments.
13468 (tree_function_decl): Add arguments.
13469
13470 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13471
13472 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13473
13474 2014-07-14 Richard Biener <rguenther@suse.de>
13475
13476 PR tree-optimization/61779
13477 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13478 simplifying a condition.
13479
13480 2014-07-14 Richard Biener <rguenther@suse.de>
13481
13482 * builtins.c (c_strlen): Make only_value == 2 really only
13483 affect warning generation.
13484
13485 2014-07-14 Richard Biener <rguenther@suse.de>
13486
13487 PR tree-optimization/61757
13488 PR tree-optimization/61783
13489 PR tree-optimization/61787
13490 * tree-ssa-dom.c (record_equality): Revert canonicalization
13491 change and add comment.
13492 (propagate_rhs_into_lhs): Revert previous fix, removing
13493 loop depth restriction again.
13494
13495 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13496
13497 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13498 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13499 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13500 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13501 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13502 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13503 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13504
13505 2014-07-14 Richard Biener <rguenther@suse.de>
13506
13507 * cgraph.h (decl_in_symtab_p): Make inline.
13508
13509 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13510
13511 PR middle-end/61294
13512 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13513
13514 PR target/61656
13515 * config/i386/i386.c (classify_argument): Don't merge classes above
13516 number of words.
13517
13518 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13519
13520 * cgraph.h (symtab_node): Add nonzero_address.
13521 (decl_in_symtab_p): Break out from ...
13522 (symtab_get_node): ... here.
13523 * fold-const.c: Include cgraph.h
13524 (tree_single_nonzero_warnv_p): Use symtab to determine
13525 if symbol is non-zero.
13526 * symtab.c (symtab_node::nonzero_address): New method.
13527
13528 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13529
13530 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13531 forgotten in previous commit.
13532
13533 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13534
13535 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13536 on builtin types.
13537 * ipa-devirt.c: Include stor-layout.h and intl.h
13538 (odr_subtypes_equivalent_p): New function.
13539 (warn_odr): New function.
13540 (warn_type_mismatch): New function.
13541 (odr_types_equivalent_p): New function.
13542 (add_type_duplicate): Use it.
13543 * common.opt (Wodr): New flag.
13544 * doc/invoke.texi (Wodr): Document new warning.
13545
13546 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13547
13548 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13549 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13550 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13551 (varpool_get_constructor): Push CTORS_IN timevar.
13552 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13553
13554 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13555
13556 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13557 Remove VOID_FTYPE_PUSHORT.
13558 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13559 Change code to USHORT_FTYPE_VOID.
13560 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13561 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13562 (ix86_atomic_assign_expand_fenv): Update for
13563 __builtin_ia32_fnstsw changes.
13564 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13565 (fnstsw): Change operand 0 to nonimmediate operand.
13566
13567 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13568
13569 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13570 (varpool_get_constructor): New function.
13571 (varpool_ctor_useable_for_folding_p): Break out from ...
13572 (ctor_for_folding): ... here; use varpool_get_constructor.
13573 (varpool_assemble_decl): Likewise.
13574 * lto-streamer.h (struct output_block): Turn cgraph_node
13575 to symbol filed.
13576 (lto_input_variable_constructor): Declare.
13577 * ipa-visibility.c (function_and_variable_visibility): Use
13578 varpool_get_constructor.
13579 * cgraph.h (varpool_get_constructor): Declare.
13580 (varpool_ctor_useable_for_folding_p): New function.
13581 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13582 parameter; return error_mark_node for non-trivial constructors.
13583 (lto_write_tree_1, DFS_write_tree): Update use of
13584 get_symbol_initial_value.
13585 (output_function): Update initialization of symbol.
13586 (output_constructor): New function.
13587 (copy_function): Rename to ..
13588 (copy_function_or_variable): ... this one; handle vars too.
13589 (lto_output): Output variable sections.
13590 * lto-streamer-in.c (input_constructor): New function.
13591 (lto_read_body): Rename from ...
13592 (lto_read_body_or_constructor): ... this one; handle vars too.
13593 (lto_input_variable_constructor): New function.
13594 * ipa-prop.c (ipa_prop_write_jump_functions,
13595 ipa_prop_write_all_agg_replacement): Update.
13596 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13597 (output_cgraph_opt_summary): Set symbol to NULL.
13598
13599 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13600
13601 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13602 non-polymorphic types.
13603 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13604 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13605 of types is not polymorphic.
13606
13607 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13608
13609 * lra-constraints.c (remove_inheritance_pseudos): Process
13610 destination pseudo too.
13611
13612 2014-07-11 Rong Xu <xur@google.com>
13613
13614 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13615 commit r212448.
13616
13617 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13618
13619 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13620 * config/avr/avr-devices.c (AVR_MCU): Same.
13621 (avr_mcu_types): add text start value to end of device list.
13622 * config/avr/avr-mcus.def: Add text section start for all devices.
13623 (ata5782): Add new avr5 device.
13624 (ata5831): Same.
13625 * config/avr/avr-tables.opt: Regenerate.
13626 * config/avr/avr.h: Add declaration for text section start handler.
13627 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13628 SPEC functions.
13629 (LINK_SPEC): Include text section start handler to linker spec.
13630 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13631 pass -Ttext option to linker if the text section start for the device
13632 is not zero.
13633 * config/avr/t-multilib: Regenerate.
13634 * doc/avr-mmcu.texi: Regenerate.
13635
13636 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13637
13638 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13639 * config/rs6000/aix52.h (LINK_SPEC): Same.
13640 * config/rs6000/aix53.h (LINK_SPEC): Same.
13641 * config/rs6000/aix61.h (LINK_SPEC): Same.
13642 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13643
13644 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13645
13646 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13647 (graphite_verify): New function.
13648 (ivs_params_clear): New function.
13649 (gcc_expression_from_isl_ast_expr_id): New function.
13650 (gcc_expression_from_isl_expr_int): New function.
13651 (binary_op_to_tree): New function.
13652 (ternary_op_to_tree): New function.
13653 (unary_op_to_tree): New function.
13654 (nary_op_to_tree): New function.
13655 (gcc_expression_from_isl_expr_op): New function.
13656 (gcc_expression_from_isl_expression): New function.
13657 (graphite_create_new_loop): New function.
13658 (translate_isl_ast_for_loop): New function.
13659 (get_upper_bound): New function.
13660 (graphite_create_new_loop_guard): New function.
13661 (translate_isl_ast_node_for): New function.
13662 (translate_isl_ast): New function.
13663 (add_parameters_to_ivs_params): New function.
13664 (scop_to_isl_ast): New parameter ip.
13665 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13666
13667 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13668
13669 * config/xtensa/predicates.md (call expander): Update for
13670 DECL_SECTION_NAME being string.
13671
13672 2014-07-11 Richard Biener <rguenther@suse.de>
13673
13674 PR middle-end/61473
13675 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13676 can be implemented with a single load followed by a single store.
13677 (c_strlen): Only warn when only_value is not 2.
13678
13679 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13680
13681 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13682
13683 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13684
13685 PR target/61561
13686 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13687 (*movhi_bytes): Likewise.
13688 (*arm_movqi_insn): Likewise.
13689
13690 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13691
13692 PR target/56858
13693 * config/alpha/alpha.c: Include tree-pass.h, context.h
13694 and pass_manager.h.
13695 (pass_data_handle_trap_shadows): New pass.
13696 (pass_handle_trap_shadows::gate): New pass gate function.
13697 (make_pass_handle_trap_shadows): New function.
13698 (rest_of_handle_trap_shadows): Ditto.
13699
13700 (alpha_align_insns_1): Rename from alpha_align_insns.
13701 (pass_data_align_insns): New pass.
13702 (pass_align_insns::gate): New pass gate function.
13703 (make_pass_aling_insns): New function.
13704 (rest_of_align_insns): Ditto.
13705 (alpha_align_insns): Ditto.
13706
13707 (alpha_option_override): Declare handle_trap_shadows info
13708 and align_insns_info. Register handle_trap_shadows and align_insns
13709 passes here.
13710 (alpha_reorg): Do not call alpha_trap_shadows and
13711 alpha_align_insn from here.
13712
13713 (alpha_pad_function_end): Do not skip BARRIERs.
13714
13715 2014-07-10 Rong Xu <xur@google.com>
13716
13717 Add gcov-tool: an offline gcda profile processing tool support.
13718 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13719 (gcov_is_error): Ditto.
13720 (gcov_read_string): Ditto.
13721 (gcov_read_sync): Ditto.
13722 * gcov-io.h: Move counter defines to gcov-counter.def.
13723 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13724 * coverage.c: Ditto.
13725 * gcov-tool.c: Offline gcda profile processing tool.
13726 (unlink_gcda_file): Remove one gcda file.
13727 (unlink_profile_dir): Remove gcda files from the profile path.
13728 (gcov_output_files): Output gcda files to an output dir.
13729 (profile_merge): Merge two profiles in directory.
13730 (print_merge_usage_message): Print merge usage.
13731 (merge_usage): Print merge usage and exit.
13732 (do_merge): Driver for profile merge sub-command.
13733 (profile_rewrite): Rewrite profile.
13734 (print_rewrite_usage_message): Print rewrite usage.
13735 (rewrite_usage): Print rewrite usage and exit.
13736 (do_rewrite): Driver for profile rewrite sub-command.
13737 (print_usage): Print gcov-info usage and exit.
13738 (print_version): Print gcov-info version.
13739 (process_args): Process arguments.
13740 (main): Main routine for gcov-tool.
13741 * Makefile.in: Build and install gcov-tool.
13742 * gcov-counter.def: New file split from gcov-io.h.
13743 * doc/gcc.texi: Include gcov-tool.texi.
13744 * doc/gcov-tool.texi: Document for gcov-tool.
13745
13746 2014-07-10 Richard Biener <rguenther@suse.de>
13747
13748 PR tree-optimization/61757
13749 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13750 (propagate_rhs_into_lhs): Revert part of last change.
13751
13752 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13753
13754 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13755 FUNCTION_DECLs.
13756
13757 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13758
13759 PR middle-end/53590
13760 * function.c (allocate_struct_function): Revert r188667 change.
13761
13762 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13763
13764 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13765
13766 * doc/install.texi: Remove links to defunct package providers for
13767 Solaris.
13768
13769 2014-07-09 Tom de Vries <tom@codesourcery.com>
13770
13771 * final.c (get_call_fndecl): Declare.
13772 (self_recursive_call_p): New function.
13773 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13774
13775 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13776
13777 * ipa-devirt.c (record_node): Walk through aliases.
13778
13779 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13780
13781 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13782
13783 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13784
13785 Revert:
13786 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13787
13788 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13789
13790 * ipa-visibility.c (function_and_variable_visibility): Remove
13791 temporary hack disabling local aliases on AIX.
13792
13793 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13794
13795 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13796 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13797
13798 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13799
13800 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13801 * rs6000/rs6000.c: Inline output of .set instruction.
13802 (declare_alias_data): New struct.
13803 (rs6000_declare_alias): New function.
13804 (rs6000_xcoff_declare_function_name): Use it.
13805 (rs6000_xcoff_declare_object_name): New function.
13806 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13807 (ASM_OUTPUT_DEF): Turn to empty definition.
13808
13809 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13810
13811 PR bootstrap/61679
13812 * hash-table.h: use hash_table::value_type instead of
13813 Descriptor::value_type in the return types of several methods.
13814
13815 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13816
13817 * tree-pass.h (pass_data): Remove has_execute member.
13818 * passes.c (execute_one_pass): Don't check pass->has_execute.
13819 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13820 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13821 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13822 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13823 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13824 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13825 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13826 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13827 gimple-low.c, gimple-ssa-isolate-paths.c,
13828 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13829 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13830 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13831 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13832 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13833 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13834 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13835 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13836 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13837 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13838 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13839 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13840 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13841 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13842 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13843 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13844 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13845 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13846 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13847 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13848 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13849 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13850 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13851 web.c: Remove initializer for pass_data::has_execute.
13852
13853 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13854
13855 * graphite-htab.h: Use hash_map instead of hash_table.
13856 * graphite-clast-to-gimple.c: Adjust.
13857 * passes.c: Use hash_map instead of hash_table.
13858 * sese.c: Likewise.
13859 * sese.h: Remove now unused code.
13860
13861 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13862
13863 PR target/61599
13864 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13865 than zero.
13866
13867 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13868
13869 PR rtl-optimization/61673
13870 * combine.c (simplify_comparison): Test just mode's sign bit
13871 in tmode rather than the sign bit and any bits above it.
13872
13873 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13874
13875 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13876 Add __isl_give to the declaration.
13877 (generate_isl_schedule): Likewise.
13878 (scop_to_isl_ast): Likewise.
13879
13880 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13881
13882 * config/arm/arm.c (cortexa5_extra_costs): New table.
13883 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13884
13885 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13886
13887 PR tree-optimization/61725
13888 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13889 range, use range_includes_zerop_p instead of integer_zerop on
13890 vr0->min, only use log2 of max if min is not negative.
13891
13892 2014-07-08 Richard Biener <rguenther@suse.de>
13893
13894 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13895 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13896 restriction on loop depth difference.
13897 (record_equality): Likewise.
13898 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13899 (loop_depth_of_name): Remove.
13900 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13901 restriction on loop depth difference.
13902 (init_copy_prop): Likewise.
13903
13904 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13905
13906 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13907 parameter.
13908 (walk_aliased_vdefs): Likewise.
13909 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13910 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13911 (detect_type_change_from_memory_writes): Check if entry was reached.
13912
13913 2014-07-08 Richard Biener <rguenther@suse.de>
13914
13915 PR tree-optimization/61681
13916 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13917 NONLOCAL inside ESCAPED.
13918
13919 2014-07-08 Richard Biener <rguenther@suse.de>
13920
13921 PR tree-optimization/61680
13922 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13923 Handle properly all read-write dependences with group accesses.
13924
13925 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13926
13927 PR tree-optimization/61576
13928 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13929 block containing reduction statement is predecessor of phi basi block.
13930
13931 2014-07-08 Marek Polacek <polacek@redhat.com>
13932
13933 PR c/60226
13934 * fold-const.c (round_up_loc): Change the parameter type.
13935 Remove assert.
13936 * fold-const.h (round_up_loc): Adjust declaration.
13937 * stor-layout.c (finalize_record_size): Check for too large types.
13938
13939 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13940
13941 * symtab.c: Include calls.h.
13942 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13943
13944 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13945
13946 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13947 little-endian code generation.
13948 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13949 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13950 (spe_evmergehilo): Rename to...
13951 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13952 (spe_evmergelo): Rename to...
13953 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13954 (spe_evmergelohi): Rename to...
13955 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13956 (spe_evmergehi, spe_evmergehilo): New expanders.
13957 (spe_evmergelo, spe_evmergelohi): Likewise.
13958 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13959 (*frob_tf_ti): Likewise.
13960 (*frob_<mode>_di_2): Likewise.
13961 (*frob_tf_di_8_2): Likewise.
13962 (*frob_di_<mode>): Likewise.
13963 (*frob_ti_tf): Likewise.
13964 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13965 (*frob_ti_<mode>_8_2): Likewise.
13966 (*frob_ti_tf_2): Likewise.
13967 (mov_si<mode>_e500_subreg0): Rename to...
13968 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13969 endianness only.
13970 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13971 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13972 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13973 the big endianness only.
13974 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13975 (*mov_si<mode>_e500_subreg0_2): Rename to...
13976 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13977 big big endianness only.
13978 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13979 (*mov_si<mode>_e500_subreg4): Rename to...
13980 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13981 endianness only.
13982 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13983 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13984 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13985 the big endianness only.
13986 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13987 pattern.
13988 (*mov_si<mode>_e500_subreg4_2): Rename to...
13989 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13990 endianness only.
13991 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13992 (*mov_sitf_e500_subreg8): Rename to...
13993 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13994 endianness only.
13995 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13996 (*mov_sitf_e500_subreg8_2): Rename to...
13997 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13998 endianness only.
13999 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
14000 (*mov_sitf_e500_subreg12): Rename to...
14001 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
14002 endianness only.
14003 (*mov_sitf_e500_subreg12_le): New instruction pattern.
14004 (*mov_sitf_e500_subreg12_2): Rename to...
14005 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
14006 endianness only.
14007 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
14008
14009 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
14010
14011 * asan.c (instrument_strlen_call): Do not instrument first byte
14012 in strlen if already instrumented.
14013
14014 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14015
14016 * config/arm/arm.opt (mwords-little-endian): Delete.
14017 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
14018 of TARGET_LITTLE_WORDS.
14019 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
14020 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
14021 warning.
14022 * doc/invoke.texi: Remove references to -mwords-little-endian.
14023
14024 2014-07-07 Jakub Jelinek <jakub@redhat.com>
14025
14026 * expmed.c (struct init_expmed_rtl): Change all fields but
14027 pow2 and cint from struct rtx_def to rtx.
14028 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
14029 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
14030 at the end again.
14031
14032 2014-07-06 Marek Polacek <polacek@redhat.com>
14033
14034 PR c/6940
14035 * doc/invoke.texi: Document -Wsizeof-array-argument.
14036
14037 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
14038
14039 * wide-int.h (wide_int_storage): Change declaration from struct
14040 to class.
14041
14042 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
14043
14044 * cgraph.c (cgraph_create_indirect_edge): Update call of
14045 get_polymorphic_call_info.
14046 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
14047 (possible_polymorphic_call_targets): Add parameter call.
14048 (decl_maybe_in_construction_p): New predicate.
14049 (get_polymorphic_call_info): Add parameter call;
14050 use decl_maybe_in_construction_p.
14051 * gimple-fold.c (fold_gimple_assign): Update use of
14052 possible_polymorphic_call_targets.
14053 (gimple_fold_call): Likewise.
14054 * ipa-prop.c: Inlcude calls.h
14055 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
14056 (param_type_may_change_p): New predicate.
14057 (detect_type_change_from_memory_writes): Break out from ...
14058 (detect_type_change): ... this one; use param_type_may_change_p.
14059 (detect_type_change_ssa): Use param_type_may_change_p.
14060 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
14061
14062 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
14063
14064 PR target/49423
14065 * config/arm/arm-protos.h (arm_legitimate_address_p,
14066 arm_is_constant_pool_ref): Add prototypes.
14067 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
14068 (arm_is_constant_pool_ref) New function.
14069 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
14070 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
14071 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
14072 operand. Remove pool_range and neg_pool_range attributes.
14073 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
14074 pool_range and neg_pool_range attributes.
14075 * config/arm/constraints.md (Uh): New constraint.
14076 (Uq): Don't allow constant pool references.
14077
14078 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
14079
14080 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
14081 (move_lo_quad_internal_be_<mode>): Likewise.
14082 (move_lo_quad_<mode>): Convert to define_expand.
14083 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
14084 (aarch64_simd_move_hi_quad_be_<mode>): New.
14085 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
14086 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
14087 (aarch64_combinez_be<mode>): New.
14088 (aarch64_combine<mode>): Convert to define_expand.
14089 (aarch64_combine_internal<mode>): New.
14090 (aarch64_simd_combine<mode>): Remove bogus RTL description.
14091
14092 2014-07-04 Tom de Vries <tom@codesourcery.com>
14093
14094 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
14095 combination of earlyclobber and read/write modifiers.
14096
14097 2014-07-04 Tom de Vries <tom@codesourcery.com>
14098
14099 * config/aarch64/aarch64-simd.md
14100 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
14101
14102 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
14103
14104 PR target/61714
14105 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14106
14107 2014-07-04 Jakub Jelinek <jakub@redhat.com>
14108
14109 PR middle-end/61654
14110 * cgraphunit.c (expand_thunk): Call free_dominance_info.
14111
14112 PR tree-optimization/61684
14113 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14114 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14115
14116 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14117 Kito Cheng <kito@0xlab.org>
14118 Monk Chiang <sh.chiang04@gmail.com>
14119
14120 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14121 (nds32_symbol_load_store_p): Move to ...
14122 (nds32_fp_as_gp_check_available): Move to ...
14123 * config/nds32/nds32-fp-as-gp.c: ... here.
14124 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14125 extern declaration.
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 (nds32_expand_load_multiple): Move to ...
14132 (nds32_expand_store_multiple): Move to ...
14133 (nds32_expand_movmemqi): Move to ...
14134 * config/nds32/nds32-memory-manipulation.c: ... here.
14135
14136 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14137 Kito Cheng <kito@0xlab.org>
14138 Monk Chiang <sh.chiang04@gmail.com>
14139
14140 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14141 (nds32_output_casesi_pc_relative): Move to ...
14142 (nds32_output_casesi): Move to ...
14143 (nds32_mem_format): Move to ...
14144 (nds32_output_16bit_store): Move to ...
14145 (nds32_output_16bit_load): Move to ...
14146 (nds32_output_32bit_store): Move to ...
14147 (nds32_output_32bit_load): Move to ...
14148 (nds32_output_32bit_load_s): Move to ...
14149 (nds32_output_stack_push): Move to ...
14150 (nds32_output_stack_pop): Move to ...
14151 * config/nds32/nds32-md-auxiliary.c: ... here.
14152
14153 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14154 Ling-Hua Tseng <uranus@tinlans.org>
14155
14156 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14157 the purpose of this file.
14158
14159 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14160 Kito Cheng <kito@0xlab.org>
14161 Monk Chiang <sh.chiang04@gmail.com>
14162
14163 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14164 (nds32_address_cost): Move implementation to ...
14165 * config/nds32/nds32-cost.c: ... here.
14166 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14167 (nds32_address_cost_impl): Declare.
14168
14169 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14170 Kito Cheng <kito@0xlab.org>
14171 Monk Chiang <sh.chiang04@gmail.com>
14172
14173 * config/nds32/nds32.c
14174 (nds32_consecutive_registers_load_store_p): Move to ...
14175 (nds32_valid_multiple_load_store): Move to ...
14176 (nds32_valid_stack_push_pop): Move to ...
14177 (nds32_can_use_bclr_p): Move to ...
14178 (nds32_can_use_bset_p): Move to ...
14179 (nds32_can_use_btgl_p): Move to ...
14180 (nds32_can_use_bitci_p): Move to ...
14181 * config/nds32/nds32-predicates.c: ... here.
14182
14183 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14184 Kito Cheng <kito@0xlab.org>
14185 Monk Chiang <sh.chiang04@gmail.com>
14186
14187 * config/nds32/nds32.c
14188 (nds32_expand_builtin_null_ftype_reg): Move to ...
14189 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14190 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14191 (nds32_init_builtins): Move implementation to ...
14192 (nds32_expand_builtin): Move implementation to ...
14193 * config/nds32/nds32-intrinsic.c: ... here.
14194 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14195 (nds32_expand_builtin_impl): Declare.
14196
14197 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14198 Kito Cheng <kito@0xlab.org>
14199 Monk Chiang <sh.chiang04@gmail.com>
14200
14201 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14202 (nds32_emit_section_tail_template): Move to ...
14203 (nds32_emit_isr_jmptbl_section): Move to ...
14204 (nds32_emit_isr_vector_section): Move to ...
14205 (nds32_emit_isr_reset_conten): Move to ...
14206 (nds32_check_isr_attrs_conflict): Move to ...
14207 (nds32_construct_isr_vectors_information): Move to ...
14208 (nds32_asm_file_start): Move implementation to ...
14209 (nds32_asm_file_end): Move implementation to ...
14210 * config/nds32/nds32-isr.c: ... here.
14211 * config/nds32/nds32-protos.h
14212 (nds32_check_isr_attrs_conflict): Declare.
14213 (nds32_construct_isr_vectors_information): Declare.
14214 (nds32_asm_file_start_for_isr): Declare.
14215 (nds32_asm_file_end_for_isr): Declare.
14216
14217 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14218 Kito Cheng <kito@0xlab.org>
14219 Monk Chiang <sh.chiang04@gmail.com>
14220
14221 * config.gcc (nds32*): Add new modules to extra_objs.
14222 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14223 (nds32be-*-*): Likewise.
14224 * config/nds32/nds32-cost.c: New file.
14225 * config/nds32/nds32-fp-as-gp.c: New file.
14226 * config/nds32/nds32-intrinsic.c: New file.
14227 * config/nds32/nds32-isr.c: New file.
14228 * config/nds32/nds32-md-auxiliary.c: New file.
14229 * config/nds32/nds32-memory-manipulation.c: New file.
14230 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14231 * config/nds32/nds32-predicates.c: New file.
14232 * config/nds32/t-nds32: New file.
14233
14234 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14235
14236 PR tree-optimization/61682
14237 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14238 using cases and when one of the operands is equal to 1.
14239
14240 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14241
14242 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14243 ashr<mode>3): Correct mode of operands[2].
14244 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14245 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14246 Correct mode of operands[2]. Fix split condition.
14247
14248 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14249
14250 * arm.md (arch): Add armv6_or_vfpv3.
14251 (arch_enabled): Add test for the above.
14252 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14253 on VFP9.
14254 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14255
14256 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14257
14258 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14259 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14260 HWI 1 and negate the unsigned value.
14261 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14262 use AND instead of shift.
14263 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14264
14265 2014-07-03 Marek Polacek <polacek@redhat.com>
14266
14267 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14268 (-fsanitize=float-divide-by-zero): Move to the table with
14269 -fsanitize=undefined suboptions.
14270 (-fsanitize=float-cast-overflow): Likewise.
14271
14272 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14273
14274 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14275 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14276 endianness.
14277
14278 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14279
14280 * loop-invariant.c (struct invariant): Add a new member: eqno;
14281 (find_identical_invariants): Update eqno;
14282 (create_new_invariant): Init eqno;
14283 (get_inv_cost): Compute comp_cost with eqno;
14284
14285 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14286
14287 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14288 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14289 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14290 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14291 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14292
14293 2014-07-02 Christian Bruel <christian.bruel@st.com>
14294
14295 PR target/29349
14296 PR target/53513
14297 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14298 (make_preds_opaque): Delete.
14299 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14300 (commit_mode_sets): New function.
14301 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14302 Process all modes at once.
14303 * basic-block.h (pre_edge_lcm_avs): Declare.
14304 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14305 Call clear_aux_for_edges. Fix comments.
14306 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14307 (pre_edge_rev_lcm): Idem.
14308 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14309 parameter.
14310 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14311 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14312 Idem.
14313 * config/i386/i386.c (x96_emit_mode_set): Idem.
14314 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14315 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14316 (fpscr_toggle) Disallow from delay slot.
14317 * target.def (emit_mode_set): Add prev_mode parameter.
14318 * doc/tm.texi: Regenerate.
14319
14320 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14321
14322 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14323 variable i.
14324
14325 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14326
14327 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14328 vtable_pointer_value_to_vtable): Constify.
14329 (contains_polymorphic_type_p): Declare.
14330 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14331 vtable_pointer_value_to_vtable): Constify.
14332 (contains_polymorphic_type_p): New predicate.
14333 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14334 polymorphic types.
14335 (ipa_set_ancestor_jf): Likewise.
14336 (detect_type_change): Return false in easy cases.
14337 (compute_complex_assign_jump_func): Require type to contain
14338 polymorphic type.
14339 (compute_known_type_jump_func): Likewise.
14340
14341 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14342
14343 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14344 Remove.
14345 (type_in_anonymous_namespace_p): Constify argument.
14346 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14347 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14348 (main_odr_variant): New function.
14349 (hash_type_name): Make static; update assert; do not ICE on
14350 non-records.
14351 (types_same_for_odr): Bring here from tree.c; simplify and remove
14352 old structural comparing code that doesn't work for templates.
14353 (odr_hasher::equal): Update assert.
14354 (add_type_duplicate): Return true when bases should be computed;
14355 replace incomplete loader by complete; do not output duplicated
14356 warnings; do not ICE on non-records; set odr_violated flag.
14357 (get_odr_type): Be ready to replace incomplete type by complete
14358 one; work on ODR variants instead of main variants; reorder item
14359 in array so bases have still smaller indexes.
14360 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14361 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14362
14363 2014-07-01 Cary Coutant <ccoutant@google.com>
14364
14365 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14366 lookup.
14367 (resolve_addr_in_expr): When replacing the rtx in a location list
14368 entry, get a new address table entry.
14369 (dwarf2out_finish): Call index_location_lists even if there are no
14370 addr_index_table entries yet.
14371
14372 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14373
14374 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14375 change for not being obvious.
14376
14377 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14378
14379 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14380 unused argument.
14381
14382 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14383
14384 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14385 (vcagt_f64): Likewise.
14386 (vcale_f64): Likewise.
14387 (vcaled_f64): Likewise.
14388 (vcales_f32): Likewise.
14389 (vcalt_f64): Likewise.
14390 (vcaltd_f64): Likewise.
14391 (vcalts_f32): Likewise.
14392
14393 2014-07-01 Marek Polacek <polacek@redhat.com>
14394
14395 * doc/invoke.texi: Document -Wint-conversion.
14396
14397 2014-07-01 Marek Polacek <polacek@redhat.com>
14398
14399 PR c/58286
14400 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14401
14402 2014-07-01 Martin Liska <mliska@suse.cz>
14403
14404 IPA REF alias refactoring
14405 * cgraph.h (iterate_direct_aliases): New function.
14406 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14407 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14408 FOR_EACH_ALIAS added.
14409 (cgraph_for_node_and_aliases): Likewise.
14410 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14411 * ipa-inline.c (reset_edge_caches): Likewise.
14412 (update_caller_keys): Likewise.
14413 * trans-mem.c (ipa_tm_execute): Likewise.
14414 *varpool.c (varpool_analyze_node): Likewise.
14415 (varpool_for_node_and_aliases): Likewise.
14416 * ipa-ref.h (first_alias): New function.
14417 (last_alias): Likewise.
14418 (has_aliases_p): Likewise.
14419 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14420 is sensitive to IPA_REF_ALIASes.
14421 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14422 are put at the beginning of the list.
14423 (symtab_node::iterate_direct_aliases): New function.
14424
14425 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14426
14427 Revert:
14428 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14429 type is complete.
14430 (write_ts_type_common_tree_pointers): Do not stream fields not set
14431 for incomplete types; do not stream duplicated fields for variants;
14432 sanity check that variant and type match.
14433 (write_ts_type_non_common_tree_pointers): Likewise.
14434 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14435 TYPE_SIZE whether type is complete.
14436 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14437 write_ts_type_common_tree_pointers
14438 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14439
14440 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14441
14442 * var-tracking.c (add_stores): Return instead of asserting if old
14443 and new values for conditional store are the same.
14444
14445 2014-06-30 Richard Henderson <rth@redhat.com>
14446
14447 PR rtl-opt/61608
14448 PR target/39284
14449 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14450 the cfg if there were any changes.
14451 * passes.def: Revert move of peephole2 after reorder_blocks;
14452 move duplicate_computed_gotos before peephole2.
14453
14454 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14455
14456 * except.c (emit_note_eh_region_end): New helper function.
14457 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14458 emit EH_REGION_END note.
14459 * jump.c (cleanup_barriers): Do not split a call and its
14460 corresponding CALL_ARG_LOCATION note.
14461
14462 2014-06-30 Jeff Law <law@redhat.com>
14463
14464 PR tree-optimization/61607
14465 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14466 deeper into the SSA_NAME_VALUE chain.
14467
14468 2014-06-30 Marek Polacek <polacek@redhat.com>
14469
14470 * convert.c (convert_to_integer): Don't instrument conversions if the
14471 function has no_sanitize_undefined attribute.
14472 * ubsan.c: Don't run the ubsan pass if the function has
14473 no_sanitize_undefined attribute.
14474
14475 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14476
14477 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14478 -fsanitize=undefined suboptions.
14479
14480 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14481
14482 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14483 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14484 against bigendian and adjust indices.
14485
14486 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14487
14488 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14489
14490 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14491
14492 PR target/61633
14493 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14494 Add alternative; make early clobber. Adjust both split patterns
14495 to use operand 0 as the working register.
14496
14497 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14498
14499 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14500 as ira_object_id_map might be NULL, or 1.
14501
14502 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14503
14504 * loop-invariant.c (get_inv_cost): Handle register class.
14505 (gain_for_invariant): Check the register pressure of the inv
14506 and its overlapped register class, other than all.
14507
14508 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14509
14510 * doc/invoke.texi (Optimize Options): Fix descriptions of
14511 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14512
14513 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14514
14515 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14516 documentation.
14517
14518 2014-06-29 Tobias Grosser <tobias@grosser.es>
14519
14520 PR bootstrap/61650
14521 * graphite-isl-ast-to-gimple.c: Add missing guards.
14522
14523 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14524
14525 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14526 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14527 * flag-types.h: Add new enum fgraphite_generator.
14528 * graphite-isl-ast-to-gimple.c: New.
14529 * graphite-isl-ast-to-gimple.h: New.
14530 * graphite.c (graphite_transform_loops): Add choice of Graphite
14531 code generator, which depends on flag_graphite_code_gen.
14532
14533 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14534
14535 * graphite-dependences.c (subtract_commutative_associative_deps):
14536 Add NULL checking of the following variables: must_raw_no_source,
14537 may_raw_no_source, must_war_no_source, may_war_no_source,
14538 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14539 must_war, may_war, must_waw, may_waw.
14540
14541 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14542
14543 * graphite-clast-to-gimple.c: gloog is renamed to
14544 graphite_regenerate_ast_cloog. gloog_error is renamed to
14545 graphite_regenerate_error.
14546 * graphite-clast-to-gimple.h: The definition of the struct
14547 bb_pbb_def is moved to graphite-htab.h.
14548 Add inclusion of the hash-table.h.
14549 * graphite-htab.h: The declaration of the function gloog is moved
14550 to graphite-clast-to-gimple.h and renamed to
14551 graphite_regenerate_ast_cloog.
14552 * graphite.c (graphite_transform_loops): gloog is renamed
14553 to graphite_regenerate_ast_cloog.
14554
14555 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14556
14557 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14558 type is complete.
14559 (write_ts_type_common_tree_pointers): Do not stream fields not set
14560 for incomplete types; do not stream duplicated fields for variants;
14561 sanity check that variant and type match.
14562 (write_ts_type_non_common_tree_pointers): Likewise.
14563 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14564 TYPE_SIZE whether type is complete.
14565 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14566 write_ts_type_common_tree_pointers
14567 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14568
14569 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14570
14571 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14572
14573 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14574
14575 * tree-inline.c (remap_type_1): Do not duplicate fields
14576 that are shared in between type and its main variant.
14577
14578 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14579
14580 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14581 of the type.
14582 (ipa_set_ancestor_jf) Likewise.
14583 (check_stmt_for_type_change): Check that we work on main variant.
14584 (detect_type_change): Look into main variant.
14585 (compute_known_type_jump_func): Check that main variant has BINFO.
14586
14587 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14588
14589 * ipa-devirt.c (set_type_binfo): New function.
14590 (add_type_duplicate): Use it.
14591 (get_odr_type): Sanity check that binfos points to main variants.
14592 (get_class_context): Be sure the context's outer_type is main variant.
14593 (contains_type_p): Walk main variant.
14594 (get_polymorphic_call_info_for_decl): Set outer_type to be
14595 main variant.
14596 (get_polymorphic_call_info): Likewise.
14597 (possible_polymorphic_call_targets): Sanity check that we operate
14598 on main variant.
14599
14600 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14601
14602 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14603
14604 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14605
14606 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14607 accidental change due to wide-int branch merge.
14608
14609 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14610
14611 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14612 compressed debug support.
14613 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14614 * configure: Regenerate.
14615 * config.in: Regenerate.
14616 * common.opt (compressed_debug_sections): New enum.
14617 (gz, gz=): New options.
14618 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14619 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14620 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14621 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14622 LINK_COMPRESS_DEBUG_SPEC.
14623 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14624 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14625 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14626 (Debugging Options): Document -gz[=type].
14627
14628 2014-06-27 Martin Jambor <mjambor@suse.cz>
14629
14630 PR ipa/61160
14631 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14632 args_to_skip, use those from node instead. Copy args_to_skip and
14633 combined_args_to_skip from node to the new thunk.
14634 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14635 (cgraph_create_virtual_clone): Moved computation of
14636 combined_args_to_skip...
14637 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14638
14639 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14640
14641 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14642 redundant diagnostic machinary.
14643
14644 2014-06-27 Richard Biener <rguenther@suse.de>
14645
14646 * tree-ssa-math-opts.c (bswap_replace): Fix
14647 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14648
14649 2014-06-27 Martin Liska <mliska@suse.cz>
14650
14651 * gimple.h (gimple_location_safe): New function introduced.
14652 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14653 of gimple_location_safe replaces gimple_location.
14654 (gimple_fold_call): Likewise.
14655 * ipa-devirt.c (ipa_devirt): Likewise.
14656 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14657 * ipa.c (walk_polymorphic_call_targets): Likewise.
14658 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14659
14660 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14661
14662 PR tree-optimization/57233
14663 PR tree-optimization/61299
14664 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14665 functions.
14666 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14667 would be lowered to scalar shifts, check if corresponding
14668 shifts and vector BIT_IOR_EXPR are supported and don't lower
14669 or lower just to narrower vector type in that case.
14670 * expmed.c (expand_shift_1): Fix up handling of vector
14671 shifts and rotates.
14672
14673 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14674
14675 PR target/61586
14676 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14677
14678 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14679
14680 * doc/invoke.texi (-fsemantic-interposition): Document.
14681 * common.opt (fsemantic-interposition): New flag.
14682 * varasm.c (decl_replaceable_p): Use it.
14683
14684 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14685
14686 PR target/61542
14687 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14688 extraction other than index 3.
14689
14690 2014-06-26 Teresa Johnson <tejohnson@google.com>
14691
14692 * doc/invoke.texi: Fix typo.
14693 * dumpfile.c: Add support for documented -fdump-* options
14694 optimized/missed/note/optall.
14695
14696 2014-06-26 Martin Jambor <mjambor@suse.cz>
14697
14698 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14699 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14700 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14701 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14702 * opts.c (default_options_optimization): Set
14703 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14704 * doc/invoke.texi (allow-load-data-races)
14705 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14706 (allow-store-data-races): Document the new default.
14707
14708 2014-06-26 Martin Jambor <mjambor@suse.cz>
14709
14710 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14711 renamed to ipa_impossible_devirt_target. Fix typo.
14712 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14713 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14714 ipa_impossible_devirt_target.
14715
14716 2014-06-26 Richard Biener <rguenther@suse.de>
14717
14718 PR tree-optimization/61607
14719 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14720 explaining why we restrict copies on loop depth.
14721 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14722 on loop depth.
14723 (record_equivalences_from_phis): Instead add it here.
14724
14725 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14726
14727 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14728 (LTO_WRAPPER_OBJS): New variable.
14729 (lto-wrapper$(exeext)): Use it.
14730 * collect2.c: Include "collect-utils.h".
14731 (verbose, debug): Remove variables.
14732 (at_file_supplied): No longer static.
14733 (tool_name): New variable.
14734 (do_wait, fork_execute, maybe_unlink): Don't declare.
14735 (tool_cleanup): No longer static.
14736 (notice): Remove function.
14737 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14738 fork_execute calls.
14739 (collect_wait, do_wait, collect_execute): Remove functions.
14740 (maybe_unlink): No longer static.
14741 * collect2.h (verbose, debug): Don't declare.
14742 (at_file_supplied): Declare.
14743 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14744 changed.
14745 (collect_execute): Replace with implementation from collect2, plus a
14746 new arg use_atfile. All callers changed.
14747 (collect_wait): Replace with implementation from collect2.
14748 (maybe_unlink_file): Remove function.
14749 (fork_execute): Replace with implementation from collect2, plus a
14750 new arg use_atfile. All callers changed.
14751 (do_wait): Add call to utils_cleanup to the error path.
14752 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14753 (tool_cleanup): Adjust declarations.
14754 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14755 * tlink.c: Include "collect-utils.h".
14756 (tlink_execute): New arg use_atfile. All callers changed.
14757 (tlink_init, tlink_execute): Remove declarations.
14758
14759 * collect-utils.c (save_temps): New variable.
14760 (do_wait): Use it instead of debug. Use fatal_error.
14761 * collect-utils.h (save_temps): Declare.
14762 * collect2.c (verbose): Rename from vflag. All uses changed.
14763 (tool_cleanup): New function, copied from collect_atexit.
14764 (collect_atexit, handler): Just call it.
14765 * collect2.h (verbose): Declaration renamed from vflag.
14766 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14767 debug.
14768
14769 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14770 (lto-wrapper$(exeext)): Link with collect-utils.o.
14771 * collect-utils.c: New file.
14772 * collect-utils.h: New file.
14773 * lto-wrapper.c: Include "collect-utils.h".
14774 (args_name): Delete variable.
14775 (tool_name): New variable.
14776 (tool_cleanup): New function.
14777 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14778 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14779 (fork_execute): Remove functions.
14780
14781 2014-06-26 Nick Clifton <nickc@redhat.com>
14782
14783 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14784
14785 * doc/extend.texi (Function Attributes): Fix typo in description
14786 of RX vector attribute.
14787
14788 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14789
14790 * config.gcc (supported_defaults): Error when passing either
14791 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14792
14793 2014-06-26 Richard Biener <rguenther@suse.de>
14794
14795 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14796 propagating volatile pointers.
14797
14798 2014-06-26 Richard Biener <rguenther@suse.de>
14799
14800 PR tree-optimization/61607
14801 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14802 loop if we redirected its latch edge.
14803 (thread_block_1): Do not cancel loops prematurely.
14804
14805 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14806
14807 * toplev.c (backend_init_target): Move init_emit_regs and
14808 init_regs to...
14809 (backend_init) ... here; skip ira_init_once and backend_init_target.
14810 (target_reinit) ... and here; clear
14811 this_target_rtl->lang_dependent_initialized.
14812 (lang_dependent_init_target): Clear
14813 this_target_rtl->lang_dependent_initialized;
14814 break out rtl initialization to ...
14815 (initialize_rtl): ... here; call also backend_init_target
14816 and ira_init_once.
14817 * toplev.h (initialize_rtl): New function.
14818 * function.c: Include toplev.h
14819 (init_function_start): Call initialize_rtl.
14820 * rtl.h (target_rtl): Add target_specific_initialized,
14821 lang_dependent_initialized.
14822
14823 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14824 Jakub Jelinek <jakub@redhat.com>
14825
14826 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14827
14828 2014-06-25 Tom de Vries <tom@codesourcery.com>
14829
14830 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14831
14832 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14833
14834 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14835 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14836 Issue a strict overflow warning if appropriate.
14837
14838 2014-06-25 Martin Liska <mliska@suse.cz>
14839
14840 IPA REF refactoring
14841 * Makefile.in: Removed header file (ipa-ref-inline.h).
14842 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14843 called.
14844 (cgraph_speculative_call_info): Likewise.
14845 (cgraph_for_node_thunks_and_aliases): Likewise.
14846 (cgraph_for_node_and_aliases): Likewise.
14847 (verify_cgraph_node): Likewise.
14848 * cgraph.h: Batch of IPA REF functions become member functions of
14849 symtab_node: add_reference, maybe_add_reference, clone_references,
14850 clone_referring, clone_reference, find_reference,
14851 remove_stmt_references, remove_all_references,
14852 remove_all_referring, dump_references, dump_referring,
14853 has_alias_p, iterate_reference, iterate_referring.
14854 * cgraphbuild.c (record_reference): New IPA REF function used.
14855 (record_type_list): Likewise.
14856 (record_eh_tables): Likewise.
14857 (mark_address): Likewise.
14858 (mark_load): Likewise.
14859 (mark_store): Likewise.
14860 (pass_build_cgraph_edges): Likewise.
14861 (rebuild_cgraph_edge): Likewise.
14862 (cgraph_rebuild_references): Likewise.
14863 (pass_remove_cgraph_callee_edges): Likewise.
14864 * cgraphclones.c (cgraph_clone_node): Likewise.
14865 (cgraph_create_virtual_clone): Likewise.
14866 (cgraph_materialize_clone): Likewise.
14867 (cgraph_materialize_all_clones): Likewise.
14868 * cgraphunit.c (cgraph_reset_node): Likewise.
14869 (cgraph_reset_node): Likewise.
14870 (analyze_function): Likewise.
14871 (assemble_thunks_and_aliases): Likewise.
14872 (expand_function): Likewise.
14873 * ipa-comdats.c (propagate_comdat_group): Likewise.
14874 (enqueue_references): Likewise.
14875 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14876 (create_specialized_node): Likewise.
14877 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14878 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14879 * ipa-inline.c (reset_edge_caches): Likewise.
14880 (update_caller_keys): Likewise.
14881 (execute): Likewise.
14882 * ipa-prop.c (remove_described_reference): Likewise.
14883 (propagate_controlled_uses): Likewise.
14884 (ipa_edge_duplication_hook): Likewise.
14885 (ipa_modify_call_arguments): Likewise.
14886 * ipa-pure-const.c (propagate_pure_const): Likewise.
14887 * ipa-ref-inline.h: Header file removed, functions moved
14888 to symtab_node class.
14889 * ipa-ref.c (remove_reference): New class member function.
14890 (cannot_lead_to_return): New class member function.
14891 (referring_ref_list): Likewise.
14892 (referred_ref_list): Likewise.
14893 Rest of functions moved to symtab_node class.
14894 * ipa-ref.h: New member functions remove_reference,
14895 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14896 to ipa_ref class.
14897 ipa_ref_list class has new member functions: first_reference,
14898 first_referring, clear, nreferences.
14899 * ipa-reference.c (analyze_function): New IPA REF function used.
14900 (write_node_summary_p): Likewise.
14901 (ipa_reference_write_optimization_summary): Likewise.
14902 * ipa-split.c (split_function): Likewise.
14903 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14904 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14905 (function_and_variable_visibility): Likewise.
14906 * ipa.c (has_addr_references_p): Likewise.
14907 (process_references): Argument type changed.
14908 (symtab_remove_unreachable_nodes): New IPA REF function used.
14909 (process_references): Likewise.
14910 (set_writeonly_bit): Likewise.
14911 * lto-cgraph.c: Implementation of new symtab_node member functions
14912 that uses new IPA REF functions.
14913 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14914 function used.
14915 * lto-streamer-out.c (output_symbol_p): Likewise.
14916 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14917 changed.
14918 * symtab.c: Implementation of new IPA REF API.
14919 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14920 (ipa_tm_create_version): Likewise.
14921 (ipa_tm_execute): Likewise.
14922 * tree-emutls.c (gen_emutls_addr): Likewise.
14923 * tree-inline.c (copy_bb): Likewise.
14924 (delete_unreachable_blocks_update_callgraph): Likewise.
14925 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14926 (varpool_for_node_and_aliases): Likewise.
14927
14928 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14929
14930 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14931
14932 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14933
14934 PR bootstrap/61598
14935 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14936 tree_node * instead of tree_node *.
14937 (fold): Adjust.
14938 (print_fold_checksum): Likewise.
14939 (fold_check_failed): Likewise.
14940 (debug_fold_checksum): Likewise.
14941 (fold_build1_stat_loc): Likewise.
14942 (fold_build2_stat_loc): Likewise.
14943 (fold_build3_stat_loc): Likewise.
14944 (fold_build_call_array_loc): Likewise.
14945
14946 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14947
14948 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14949 implementation with call to...
14950 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14951 function.
14952 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14953 Declare.
14954
14955 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14956
14957 PR tree-optimization/57742
14958 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14959 after replacing the statement.
14960
14961 2014-06-25 Nick Clifton <nickc@redhat.com>
14962
14963 * config/v850/v850.c (GHS_default_section_names): Change to const
14964 char * type.
14965 (GHS_current_section_names): Likewise.
14966 (v850_insert_attributes): Do not build strings, just assign the
14967 names directly. Change the type of 'chosen_section' to const
14968 char*.
14969 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14970 directly to the array entry.
14971 * config/v850/v850.h (GHS_default_section_names): Change to const
14972 char * type.
14973 (GHS_current_section_names): Likewise.
14974
14975 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14976
14977 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14978 (LANG_HOOKS_DECLS): Add it.
14979 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14980 has correct type.
14981 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14982 * langhooks.h (struct lang_hooks_for_decls): Add
14983 omp_clause_linear_ctor hook.
14984 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14985 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14986 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14987 combined simd loop use omp_clause_linear_ctor hook.
14988
14989 2014-06-24 Cong Hou <congh@google.com>
14990
14991 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14992 pattern recognition.
14993 (type_conversion_p): PROMOTION is true if it's a type promotion
14994 conversion, and false otherwise. Return true if the given expression
14995 is a type conversion one.
14996 * tree-vectorizer.h: Adjust the number of patterns.
14997 * tree.def: Add SAD_EXPR.
14998 * optabs.def: Add sad_optab.
14999 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
15000 * expr.c (expand_expr_real_2): Likewise.
15001 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
15002 * gimple.c (get_gimple_rhs_num_ops): Likewise.
15003 * optabs.c (optab_for_tree_code): Likewise.
15004 * tree-cfg.c (estimate_operator_cost): Likewise.
15005 * tree-ssa-operands.c (get_expr_operands): Likewise.
15006 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
15007 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
15008 * doc/generic.texi: Add document for SAD_EXPR.
15009 * doc/md.texi: Add document for ssad and usad.
15010
15011 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15012
15013 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
15014 qualification in cast.
15015
15016 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
15017
15018 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
15019 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
15020 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
15021 (tree_function_decl): ... here.
15022 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
15023 streaming of vindex to ...
15024 (write_ts_function_decl_tree_pointers): ... here.
15025 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
15026 Do not stream DECL_VINDEX.
15027 (lto_input_ts_function_decl_tree_pointers): Stream it here.
15028
15029 2014-06-24 Catherine Moore <clm@codesourcery.com>
15030 Sandra Loosemore <sandra@codesourcery.com>
15031
15032 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
15033 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
15034 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
15035
15036 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
15037
15038 * doc/invoke.texi (Warning Options): Remove duplicated
15039 -Wmaybe-uninitialized.
15040
15041 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
15042
15043 PR tree-optimization/57742
15044 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
15045 (handle_builtin_malloc, handle_builtin_memset): New functions.
15046 (strlen_optimize_stmt): Call them.
15047 * passes.def: Move strlen after loop+dom but before vrp.
15048
15049 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15050
15051 PR target/61570
15052 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
15053 model family 6 CPU with has_longmode never use a CPU without
15054 64-bit support.
15055
15056 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
15057
15058 PR target/61570
15059 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
15060 the last change.
15061
15062 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15063
15064 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
15065 * dominance.c (iterate_fix_dominators): Use hash_map instead of
15066 pointer_map.
15067 * hash-map.h: New file.
15068 * ipa-comdats.c: Use hash_map instead of pointer_map.
15069 * ipa.c: Likewise.
15070 * lto-section-out.c: Adjust.
15071 * lto-streamer.h: Replace pointer_map with hash_map.
15072 * symtab.c (verify_symtab): Likewise.
15073 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
15074 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
15075 * tree-streamer.h: Likewise.
15076 * tree-streamer.c: Adjust.
15077 * pointer-set.h: Remove pointer_map.
15078
15079 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15080
15081 * hash-table.h: Add a template arg to choose between storing values
15082 and storing pointers to values, and then provide partial
15083 specializations for both.
15084 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
15085 should store, not the type values should point to.
15086 * tree-into-ssa.c (var_info_hasher): Likewise.
15087 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
15088 * tree-complex.c: Adjust.
15089 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
15090 table instead of int_tree_map *.
15091 * tree-parloops.c: Adjust.
15092 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
15093 type is being stored.
15094 * tree-vectorizer.c: Adjust.
15095
15096 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
15097
15098 * hash-table.h: Remove a layer of indirection from hash_table so that
15099 it contains the hash table's data instead of a pointer to the data.
15100 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
15101 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
15102 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15103 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15104 fold-const.c, gcse.c, ggc-common.c,
15105 gimple-ssa-strength-reduction.c, gimplify.c,
15106 graphite-clast-to-gimple.c, graphite-dependences.c,
15107 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15108 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15109 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15110 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15111 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15112 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15113 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15114 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15115 tree-ssa-live.c, tree-ssa-loop-im.c,
15116 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15117 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15118 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15119 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15120 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15121 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15122 vtable-verify.c, vtable-verify.h: Adjust.
15123
15124 2014-06-24 Richard Biener <rguenther@suse.de>
15125
15126 PR tree-optimization/61572
15127 * tree-ssa-sink.c (statement_sink_location): Do not sink
15128 loads from hard registers.
15129
15130 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15131
15132 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15133 not mentioned in clauses use private clause if the iterator is
15134 declared in #pragma omp for simd, and when adding lastprivate
15135 instead, add it to the outer #pragma omp for too. Diagnose
15136 if the variable is private in outer context. For simd collapse > 1
15137 loops, replace all iterators with temporaries.
15138 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15139 same even in collapse > 1 loops.
15140
15141 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15142 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15143 non-NULL.
15144 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15145 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15146 non-NULL.
15147 (gimplify_adjust_omp_clauses): Likewise.
15148 * omp-low.c (lower_rec_simd_input_clauses,
15149 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15150 safelen the same as safelen(1).
15151 * tree-nested.c (convert_nonlocal_omp_clauses,
15152 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
15153 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15154 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15155 Fixup handling of GIMPLE_OMP_TARGET.
15156 (convert_tramp_reference_stmt, convert_gimple_call): Handle
15157 GIMPLE_OMP_TARGET.
15158
15159 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15160
15161 PR tree-optimization/61554
15162 * tree-ssa-propagate.c: Include "bitmap.h".
15163 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15164 properly update constructor/destructor.
15165 (substitute_and_fold_dom_walker::before_dom_children):
15166 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15167 need_eh_cleaup instead.
15168 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15169 need_eh_cleanup.
15170
15171 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15172
15173 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15174 * tree-pass.h (make_pass_ipa_single_use): New pass.
15175 * cgraph.h (used_by_single_function): New flag.
15176 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15177 Stream it.
15178 * passes.def (pass_ipa_single_use): Scedule.
15179 * ipa.c (BOTTOM): New macro.
15180 (meet): New function
15181 (propagate_single_user): New function.
15182 (ipa_single_use): New function.
15183 (pass_data_ipa_single_use): New pass.
15184 (pass_ipa_single_use): New pass.
15185 (pass_ipa_single_use::gate): New gate.
15186 (make_pass_ipa_single_use): New function.
15187
15188 2014-06-23 Kai Tietz <ktietz@redhat.com>
15189
15190 PR target/39284
15191 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15192 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15193
15194 2014-06-23 Richard Biener <rguenther@suse.de>
15195
15196 * tree-ssa-loop.c (gate_loop): New function.
15197 (pass_tree_loop::gate): Call it.
15198 (pass_data_tree_no_loop, pass_tree_no_loop,
15199 make_pass_tree_no_loop): New.
15200 * tree-vectorizer.c: Include tree-scalar-evolution.c
15201 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15202 required.
15203 (pass_slp_vectorize::clone): New method.
15204 * timevar.def (TV_TREE_NOLOOP): New.
15205 * tree-pass.h (make_pass_tree_no_loop): Declare.
15206 * passes.def (pass_tree_no_loop): New pass group with
15207 SLP vectorizer.
15208
15209 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15210
15211 PR target/61570
15212 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15213 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15214
15215 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15216
15217 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15218 "yes" where needed.
15219
15220 2014-06-23 Alan Modra <amodra@gmail.com>
15221
15222 PR bootstrap/61583
15223 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15224 to zero on debug statements.
15225
15226 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15227
15228 PR target/60825
15229 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15230 Ignore third operand if present by marking qualifier_internal.
15231
15232 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15233
15234 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15235 vector extension.
15236 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15237 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15238 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15239 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15240 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15241 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15242 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15243 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15244 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15245 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15246 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15247 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15248 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15249 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15250 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15251 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15252 logic in GCC vector extensions
15253
15254 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15255 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15256 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15257 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15258 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15259 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15260 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15261 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15262 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15263 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15264
15265 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15266
15267 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15268 extensions.
15269
15270 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15271 (vget_low_s64): Use __GET_LOW macro.
15272 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15273 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15274 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15275 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15276 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15277
15278 (vcombine_s64): Use GCC vector extensions; remove cast.
15279 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15280 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15281 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15282 Fix type signature; remove cast.
15283
15284 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15285
15286 PR target/60825
15287 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15288 V1DFmode.
15289 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15290 add V1DFmode
15291 (BUILTIN_VD1): New.
15292 (BUILTIN_VD_RE): Remove.
15293 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15294 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15295 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15296 variant but not df.
15297 (vreinterpretv1df*, vreinterpret*v1df): New.
15298 (vreinterpretdf*, vreinterpret*df): Remove.
15299 * config/aarch64/aarch64-simd.md (aarch64_create,
15300 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15301 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15302 (VD1): New.
15303 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15304 (vcreate_f64): Remove cast, use v1df builtin.
15305 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15306 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15307 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15308 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15309 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15310 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15311 add range check using __builtin_aarch64_im_lane_boundsi.
15312 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15313 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15314 type signature, use gcc vector extensions.
15315 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15316 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15317 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15318 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15319 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15320 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15321 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15322 vreinterpret_u64_f64): Use v1df builtin not df.
15323
15324 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15325
15326 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15327 vector registers.
15328
15329 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15330
15331 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15332 priority directly.
15333
15334 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15335
15336 * loop-invariant.c (pre_check_invariant_p): New function.
15337 (find_invariant_insn): Call pre_check_invariant_p.
15338
15339 2014-06-22 Richard Henderson <rth@redhat.com>
15340
15341 PR target/61565
15342 * compare-elim.c (struct comparison): Add eh_note.
15343 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15344 a redundant comparison in a different EH region. Purge EH edges if
15345 necessary.
15346
15347 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15348
15349 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15350 (var_shift): Use it.
15351 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15352 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15353 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15354 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15355 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15356 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15357 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15358 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15359 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15360 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15361 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15362 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15363 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15364 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15365 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15366 *rotldi3_internal15be): Use the new attribute. Merge register and
15367 integer alternatives.
15368
15369 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15370
15371 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15372 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15373 split, *ashrdi3_internal3 and split): Delete, merge into...
15374 (ashr<mode>3): New expander.
15375 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15376 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15377
15378 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15379
15380 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15381 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15382 *rotldi3_internal3 and split): Delete, merge into...
15383 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15384 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15385 Use "rotlw" extended mnemonic.
15386
15387 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15388
15389 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15390 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15391 and split, *ashldi3_internal3 and split): Delete, merge into...
15392 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15393 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15394
15395 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15396
15397 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15398 (lshrsi3, two anonymous define_insns and define_splits,
15399 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15400 *lshrdi3_internal3 and split): Delete, merge into...
15401 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15402 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15403
15404 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15405
15406 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15407 Remove "O" alternative.
15408
15409 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15410
15411 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15412 (mips_move_from_gpr_cost): Likewise.
15413 (mips_register_move_cost): Update accordingly.
15414 (mips_secondary_reload_class): Remove name of in_p.
15415
15416 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15417
15418 PR target/61503
15419 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15420 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15421
15422 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15423
15424 * config/nios2/nios2.c: Include "builtins.h".
15425
15426 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15427
15428 * cgraph.h (tls_model_names): New variable.
15429 * print-tree.c (print_node): Simplify.
15430 * varpool.c (tls_model_names): New variable.
15431 (dump_varpool_node): Output tls model.
15432
15433 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15434
15435 * ipa-visibility.c (function_and_variable_visibility): Disable
15436 temporarily local aliases for some targets.
15437
15438 2014-06-20 Marek Polacek <polacek@redhat.com>
15439
15440 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15441 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15442 into SANITIZE_UNDEFINED.
15443 * doc/invoke.texi: Describe -fsanitize=bounds.
15444 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15445 functions created in the FEs.
15446 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15447 (expand_UBSAN_BOUNDS): New function.
15448 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15449 * internal-fn.h: Don't define internal functions here.
15450 * opts.c (common_handle_option): Add -fsanitize=bounds.
15451 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15452 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15453 * tree-core.h: Define internal functions here.
15454 (struct tree_base): Add ifn field.
15455 * tree-pretty-print.c: Include "internal-fn.h".
15456 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15457 * tree.c (get_callee_fndecl): Likewise.
15458 (build_call_expr_internal_loc): New function.
15459 * tree.def (CALL_EXPR): Update description.
15460 * tree.h (CALL_EXPR_IFN): Define.
15461 (build_call_expr_internal_loc): Declare.
15462 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15463 types.
15464 (ubsan_type_descriptor): Change bool parameter to enum
15465 ubsan_print_style. Adjust the code. Add handling of
15466 UBSAN_PRINT_ARRAY.
15467 (ubsan_expand_bounds_ifn): New function.
15468 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15469 (ubsan_build_overflow_builtin): Likewise.
15470 (instrument_bool_enum_load): Likewise.
15471 (ubsan_instrument_float_cast): Likewise.
15472 * ubsan.h (enum ubsan_print_style): New enum.
15473 (ubsan_expand_bounds_ifn): Declare.
15474 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15475
15476 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15477
15478 * config/rs6000/rs6000.md: Append `DONE' to preparation
15479 statements of `bswap' pattern splitters.
15480
15481 2014-06-20 Tom de Vries <tom@codesourcery.com>
15482
15483 * target.def (call_fusage_contains_non_callee_clobbers): Update
15484 definition.
15485 * doc/tm.texi: Regenerate.
15486
15487 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15488 Max Ostapenko <m.ostapenko@partner.samsung.com>
15489
15490 PR sanitizer/61547
15491 * asan.c (instrument_strlen_call): Fixed instrumentation of
15492 trailing byte.
15493
15494 2014-06-20 Martin Jambor <mjambor@suse.cz>
15495
15496 PR ipa/61540
15497 * ipa-prop.c (impossible_devirt_target): New function.
15498 (try_make_edge_direct_virtual_call): Use it, also instead of
15499 asserting.
15500
15501 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15502 Max Ostapenko <m.ostapenko@partner.samsung.com>
15503
15504 PR sanitizer/61530
15505 * asan.c (build_check_stmt): Add condition.
15506
15507 2014-06-20 Martin Jambor <mjambor@suse.cz>
15508
15509 PR ipa/61211
15510 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15511 expanded clones.
15512
15513 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15514
15515 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15516 Update comments.
15517 (VCONQ): Make comment more helpful.
15518 (VCON): Delete.
15519 * config/aarch64/aarch64-simd.md
15520 (aarch64_sqdmulh_lane<mode>):
15521 Use VCOND for operands 2. Update lane checking and flipping logic.
15522 (aarch64_sqrdmulh_lane<mode>): Likewise.
15523 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15524 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15525 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15526 attribute of operand 3 to VCOND.
15527 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15528 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15529 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15530 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15531 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15532 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15533 define_insn.
15534 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15535 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15536 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15537 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15538 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15539 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15540 operand to VCOND. Update lane flipping and bounds checking logic.
15541 (aarch64_sqdmlal2_lane<mode>): Likewise.
15542 (aarch64_sqdmlsl_lane<mode>): Likewise.
15543 (aarch64_sqdmull_lane<mode>): Likewise.
15544 (aarch64_sqdmull2_lane<mode>): Likewise.
15545 (aarch64_sqdmlal_laneq<mode>):
15546 Replace VCON usage with VCONQ.
15547 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15548 (aarch64_sqdmlal2_laneq<mode>): Emit
15549 aarch64_sqdmlal2_laneq<mode>_internal insn.
15550 Replace VCON with VCONQ.
15551 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15552 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15553 (aarch64_sqdmull_laneq<mode>): Emit
15554 aarch64_sqdmull_laneq<mode>_internal insn.
15555 Replace VCON with VCONQ.
15556 (aarch64_sqdmull2_laneq<mode>): Emit
15557 aarch64_sqdmull2_laneq<mode>_internal insn.
15558 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15559 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15560 of 3rd argument to int16x4_t.
15561 (vqdmlalh_lane_s16): Likewise.
15562 (vqdmlslh_lane_s16): Likewise.
15563 (vqdmull_high_lane_s16): Likewise.
15564 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15565 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15566 (vqdmlsl_lane_s16): Likewise.
15567 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15568 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15569 (vqdmlals_lane_s32): Likewise.
15570 (vqdmlsls_lane_s32): Likewise.
15571 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15572 (vqdmulls_lane_s32): Likewise.
15573 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15574 (vqdmlsl_lane_s32): Likewise.
15575 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15576 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15577 (vqrdmulhh_lane_s16): Likewise.
15578 (vqdmlsl_high_lane_s16): Likewise.
15579 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15580 (vqdmlsl_high_lane_s32): Likewise.
15581 (vqrdmulhs_lane_s32): Likewise.
15582
15583 2014-06-20 Tom de Vries <tom@codesourcery.com>
15584
15585 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15586 get_call_reg_set_usage.
15587
15588 2014-06-20 Tom de Vries <tom@codesourcery.com>
15589
15590 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15591 it contains all call_used_regs.
15592
15593 2014-06-20 Tom de Vries <tom@codesourcery.com>
15594
15595 * final.c (collect_fn_hard_reg_usage): Add and use variable
15596 function_used_regs.
15597
15598 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15599
15600 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15601 (set_init_priority, get_init_priority, set_fini_priority,
15602 get_fini_priority): New methods.
15603 * tree.c (init_priority_for_decl): Remove.
15604 (init_ttree): Do not initialize init priority.
15605 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15606 (decl_priority_info): Remove.
15607 (decl_init_priority_insert): Rewrite.
15608 (decl_fini_priority_insert): Rewrite.
15609 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15610 tree_priority_map_marked_p): Remove.
15611 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15612 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15613 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15614 not output priorities.
15615 (pack_ts_function_decl_value_fields): Likewise.
15616 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15617 not input priorities.
15618 (unpack_ts_function_decl_value_fields): Likewise.
15619 * symtab.c (symbol_priority_map): Declare.
15620 (init_priority_hash): Declare.
15621 (symtab_unregister_node): Unregister from priority hash, too.
15622 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15623 New methods.
15624 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15625 (symbol_priority_info): New function.
15626 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15627 New methods.
15628 * tree-core.h (tree_priority_map): Remove.
15629
15630 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15631
15632 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15633 0xff to uint64_t before shifting it up.
15634
15635 2014-06-20 Julian Brown <julian@codesourcery.com>
15636 Chung-Lin Tang <cltang@codesourcery.com>
15637
15638 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15639 TARGET_THUMB1_ONLY. Add comments.
15640
15641 2014-06-19 Tom de Vries <tom@codesourcery.com>
15642
15643 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15644 return type to void.
15645 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15646
15647 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15648
15649 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15650 as "move", from depends_on.
15651
15652 2014-06-19 Terry Guo <terry.guo@arm.com>
15653
15654 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15655 stage.
15656
15657 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15658
15659 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15660 Remove cr5.
15661 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15662
15663 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15664
15665 PR target/61550
15666 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15667 addresses here if reload in progress or completed.
15668
15669 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15670
15671 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15672 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15673 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15674 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15675 (mips_register_priority): New function that implements the target
15676 hook TARGET_REGISTER_PRIORITY.
15677 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15678 (mips_lra_p): Likewise for TARGET_LRA_P.
15679 (TARGET_REGISTER_PRIORITY): Define macro.
15680 (TARGET_SPILL_CLASS): Likewise.
15681 (TARGET_LRA_P): Likewise.
15682 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15683 classes.
15684 (REG_CLASS_NAMES): Likewise.
15685 (REG_CLASS_CONTENTS): Likewise.
15686 (BASE_REG_CLASS): Use M16_SP_REGS.
15687 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15688 New set attribute to enable alternatives depending on the register
15689 allocator used.
15690 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15691 (*lea64): Disable pattern for MIPS16.
15692 * config/mips/mips.opt (mlra): New option.
15693
15694 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15695
15696 * lra-constraints.c (base_to_reg): New function.
15697 (process_address): Use new function.
15698
15699 2014-06-18 Tom de Vries <tom@codesourcery.com>
15700
15701 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15702 * config/aarch64/aarch64.c
15703 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15704 (aarch64_emit_call_insn): New function.
15705 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15706 of emit_call_insn.
15707 * config/aarch64/aarch64.md (define_expand "call_internal")
15708 (define_expand "call_value_internal", define_expand "sibcall_internal")
15709 (define_expand "sibcall_value_internal"): New.
15710 (define_expand "call", define_expand "call_value")
15711 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15712 expand variant and aarch64_emit_call_insn.
15713
15714 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15715 Tom de Vries <tom@codesourcery.com>
15716
15717 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15718 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15719 Redefine to true.
15720 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15721 clobbers to CALL_INSN_FUNCTION_USAGE.
15722 (define_expand "sibcall_internal")
15723 (define_expand "sibcall_value_internal"): New.
15724 (define_expand "call", define_expand "call_value"): Add argument to
15725 arm_emit_call_insn.
15726 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15727 (define_expand "sibcall_value"): Use sibcall_value_internal and
15728 arm_emit_call_insn.
15729
15730 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15731
15732 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15733
15734 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15735
15736 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15737 __udivmoddi4.
15738
15739 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15740
15741 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15742 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15743 annotations. Fix DWARF information.
15744
15745 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15746
15747 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15748 __udivmoddi4, and fixups for negative operands.
15749
15750 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15751
15752 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15753
15754 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15755
15756 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15757 to __udivmoddi4.
15758
15759 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15760
15761 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15762 manipulation.
15763
15764 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15765
15766 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15767 describing register usage on function entry and exit.
15768
15769 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15770
15771 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15772 (__aeabi_ldivmod): Fix whitespace.
15773
15774 2014-06-18 Andreas Schwab <schwab@suse.de>
15775
15776 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15777 Remove blank line after @item.
15778
15779 2014-06-18 Richard Henderson <rth@redhat.com>
15780
15781 PR target/61545
15782 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15783
15784 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15785
15786 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15787 POST_MODIFY for neon loads and stores.
15788 (arm_print_operand): Output post-index register for neon loads and
15789 stores.
15790
15791 2014-06-18 Richard Biener <rguenther@suse.de>
15792
15793 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15794
15795 2014-06-18 Richard Biener <rguenther@suse.de>
15796
15797 * tree-pass.h (make_pass_dce_loop): Remove.
15798 * passes.def: Replace pass_dce_loop with pass_dce.
15799 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15800 changed free niter estimates and reset the scev cache.
15801 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15802 make_pass_dce_loop): Remove.
15803 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15804 (fini_copy_prop): Return whether something changed. Always
15805 let substitute_and_fold perform DCE and free niter estimates
15806 and reset the scev cache if so.
15807 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15808 (pass_data_copy_prop): Do not unconditionally schedule
15809 cleanup-cfg or update-ssa.
15810
15811 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15812
15813 PR tree-optimization/61518
15814 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15815 reduction var is used in reduction stmt or phi-function only.
15816
15817 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15818
15819 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15820
15821 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15822
15823 PR tree-optimization/61517
15824 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15825 whose rhs's first tree is the source expression instead of the
15826 expression itself.
15827 (find_bswap_or_nop): Likewise.
15828 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15829 gimple stmt whose rhs's first tree is the source. In the memory source
15830 case, move the stmt to be replaced close to one of the original load to
15831 avoid the problem of a store between the load and the stmt's original
15832 location.
15833 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15834 signature.
15835
15836 2014-06-18 Andreas Schwab <schwab@suse.de>
15837
15838 PR rtl-optimization/54555
15839 * postreload.c (move2add_use_add2_insn): Substitute
15840 STRICT_LOW_PART only if it is cheaper.
15841
15842 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15843
15844 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15845 Do not use unspec as call operand. Use memory_operand instead of
15846 memory_nox32_operand and add "m" operand constraint. Disable
15847 pattern for TARGET_X32.
15848 (*sibcall_pop_memory): Ditto.
15849 (*sibcall_value_memory): Ditto.
15850 (*sibcall_value_pop_memory): Ditto.
15851 (sibcall peepholes): Merge SImode and DImode patterns using
15852 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15853 Disable pattern for TARGET_X32. Check if eliminated register is
15854 really dead after call insn. Generate call RTX without unspec operand.
15855 (sibcall_value peepholes): Ditto.
15856 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15857 instead of memory_nox32_operand. Check if eliminated register is
15858 really dead after call insn. Generate call RTX without unspec operand.
15859 (sibcall_value_pop peepholes): Ditto.
15860 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15861
15862 2014-06-18 Terry Guo <terry.guo@arm.com>
15863
15864 PR target/61544
15865 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15866 reach the head.
15867
15868 2014-06-18 Olivier Hainque <hainque@adacore.com>
15869
15870 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15871 memorization of the end of block source location.
15872 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15873 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15874 end source location info we have on the block entry/exit code we
15875 generate.
15876
15877 2014-06-18 Richard Biener <rguenther@suse.de>
15878
15879 * common.opt (fssa-phiopt): New option.
15880 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15881 but not with -Og.
15882 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15883 * doc/invoke.texi (-fssa-phiopt): Document.
15884
15885 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15886
15887 * genattrtab.c (n_bypassed): New variable.
15888 (process_bypasses): Initialise n_bypassed.
15889 Count number of bypassed reservations.
15890 (make_automaton_attrs): Allocate space for bypassed reservations
15891 rather than number of bypasses.
15892
15893 2014-06-18 Richard Biener <rguenther@suse.de>
15894
15895 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15896 we propagated anything.
15897 (substitute_and_fold_dom_walker::before_dom_children): Something
15898 changed if we propagated into PHI arguments.
15899 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15900 we removed a stmt.
15901
15902 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15903
15904 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15905 vector case.
15906 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15907 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15908 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15909 Introduces alternative way of loads group permutaions.
15910 (vect_transform_grouped_load): Try alternative way of permutations.
15911
15912 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15913
15914 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15915 changed in ORT_TARGET region, don't jump to do_outer.
15916 (struct gimplify_adjust_omp_clauses_data): New type.
15917 (gimplify_adjust_omp_clauses_1): Adjust for data being
15918 a struct gimplify_adjust_omp_clauses_data pointer instead
15919 of tree *. Pass pre_p as a new argument to
15920 lang_hooks.decls.omp_finish_clause hook.
15921 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15922 splay_tree_foreach to pass both list_p and pre_p.
15923 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15924 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15925 gimplify_adjust_omp_clauses callers.
15926 * langhooks.c (lhd_omp_finish_clause): New function.
15927 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15928 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15929 * langhooks.h (struct lang_hooks_for_decls): Add a new
15930 gimple_seq * argument to omp_finish_clause hook.
15931 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15932 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15933 (scan_omp_parallel, lower_omp_for): When adding
15934 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15935 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15936 * tree-nested.c (convert_nonlocal_omp_clauses,
15937 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15938 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15939
15940 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15941
15942 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15943 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15944
15945 2014-06-17 Xinliang David Li <davidxl@google.com>
15946
15947 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15948 * passes.c (pass_init_dump_file): Do not set initialize
15949 flag to false unconditionally.
15950
15951 2014-06-17 Richard Biener <rguenther@suse.de>
15952
15953 * genopinit.c (main): Use vec<>::qsort method.
15954 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15955 Likewise.
15956 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15957
15958 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15959
15960 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15961 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15962 (mips_move_to_gpr_cost): Remove ST_REGS case.
15963 (mips_move_from_gpr_cost): Likewise.
15964 (mips_register_move_cost): Likewise.
15965 (mips_secondary_reload_class): Likewise.
15966
15967 2014-06-17 Richard Biener <rguenther@suse.de>
15968
15969 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15970 (pass_all_optimizations): Move 3rd copy-prop pass from after
15971 fre to before ifcombine/phiopt.
15972
15973 2014-06-17 Richard Biener <rguenther@suse.de>
15974
15975 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15976 and allow all blocks to be forwarders.
15977
15978 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15979
15980 PR target/61483
15981 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15982 variable 'size'; calculate 'size' right in the front; use
15983 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15984 pcum->aapcs_stack_words.
15985
15986 2014-06-17 Nick Clifton <nickc@redhat.com>
15987
15988 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15989 (umulhi3, mulsidi3, umulsidi3): Likewise.
15990
15991 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15992
15993 PR middle-end/61508
15994 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15995 check for section name.
15996
15997 2014-06-17 Richard Biener <rguenther@suse.de>
15998
15999 * tree-ssa-propagate.c: Include domwalk.h.
16000 (substitute_and_fold): Outline main worker into a domwalker ...
16001 (substitute_and_fold_dom_walker::before_dom_children): ... here.
16002 Schedule stmts we can fully propagate for removal. Remove
16003 poor-mans DCE.
16004 (substitute_and_fold): Apply a dominator walk to perform
16005 substitution. Process stmts scheduled for removal here.
16006
16007 2014-06-17 Richard Biener <rguenther@suse.de>
16008
16009 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
16010 of PHI node moving.
16011
16012 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
16013
16014 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
16015 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
16016 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
16017 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
16018 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
16019 TARGET_HARD_FLOAT.
16020 (get_fpscr) : Likewise.
16021
16022 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
16023
16024 PR rtl-optimization/61325
16025 * lra-constraints.c (valid_address_p): Add forward declaration.
16026 (simplify_operand_subreg): Check address validity before and after
16027 alter_reg of memory subreg.
16028
16029 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
16030
16031 * config/i386/i386.c (decide_alg): Correctly handle
16032 maximum size of stringop algorithm.
16033
16034 2014-06-16 Yury Gribov <y.gribov@samsung.com>
16035
16036 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
16037
16038 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
16039
16040 PR rtl-optimization/61522
16041 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
16042
16043 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
16044
16045 Revert:
16046 * symtab.c (symtab_node::reset_section): New method.
16047 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16048 for localization.
16049 * cgraph.h (reset_section): Declare.
16050 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16051 do not consider comdat locals.
16052 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16053 for new symbol.
16054 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16055 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16056 reset sections of symbols dragged out of the comdats.
16057 (function_and_variable_visibility): Reset sections of
16058 localized symbols.
16059
16060 2014-06-16 Richard Biener <rguenther@suse.de>
16061
16062 PR tree-optimization/61482
16063 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
16064 [-INF(OVF), +INF(OVF)] range.
16065
16066 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
16067
16068 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
16069 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
16070 handling 32-bit multiplication.
16071
16072 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
16073
16074 PR middle-end/61430
16075 * lra-lives.c (process_bb_lives): Skip creating copy during
16076 insn scan when src/dest has constrained to same regno.
16077
16078 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16079
16080 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
16081 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
16082
16083 2014-06-16 Yury Gribov <y.gribov@samsung.com>
16084
16085 * asan.c (check_func): New function.
16086 (maybe_create_ssa_name): Likewise.
16087 (build_check_stmt_with_calls): Likewise.
16088 (use_calls_p): Likewise.
16089 (report_error_func): Change interface.
16090 (build_check_stmt): Allow non-integer lengths; add support
16091 for new parameter.
16092 (asan_instrument): Likewise.
16093 (instrument_mem_region_access): Moved code to build_check_stmt.
16094 (instrument_derefs): Likewise.
16095 (instrument_strlen_call): Likewise.
16096 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
16097 * doc/invoke.texi: Describe new parameter.
16098 * params.def: Define new parameter.
16099 * params.h: Likewise.
16100 * sanitizer.def: Describe new builtins.
16101
16102 2014-06-16 Richard Biener <rguenther@suse.de>
16103
16104 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16105 Make all defs available at the end.
16106 (eliminate): If we remove a PHI node schedule cfg-cleanup.
16107
16108 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16109
16110 PR plugins/45078
16111 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16112
16113 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
16114
16115 PR bootstrap/61516
16116 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16117 initialization. Replace remaining use of uid.
16118
16119 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16120
16121 * c-family/c-common.c (handle_tls_model_attribute): Use
16122 set_decl_tls_model.
16123 * c-family/c-common.c (handle_tls_model_attribute): Use
16124 set_decl_tls_model.
16125 * cgraph.h (struct varpool_node): Add tls_model.
16126 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16127 * tree.h (DECL_TLS_MODEL): Update.
16128 (DECL_THREAD_LOCAL_P): Check that variable is static.
16129 (decl_tls_model): Declare.
16130 (set_decl_tls_model): Declare.
16131 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16132 set symbol prorperties.
16133 (get_emutls_init_templ_addr): Cleanup.
16134 (new_emutls_decl): Update.
16135 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16136 (lto_input_varpool_node): Likewise.
16137 * lto-streamer-out.c (hash_tree): Likewise.
16138 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16139 not stream DECL_TLS_MODEL.
16140 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16141 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16142
16143 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16144
16145 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16146
16147 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16148
16149 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16150 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16151 lists.
16152 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16153 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16154 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16155 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16156 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16157 (df_get_artificial_defs, df_get_artificial_uses)
16158 (df_single_def, df_single_use): Update accordingly.
16159 (df_refs_chain_dump): Take the first element in a linked list as
16160 parameter, rather than a pointer to an array of pointers.
16161 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16162 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16163 (df_chain_create_bb_process_use): Likewise.
16164 (df_md_bb_local_compute_process_def): Likewise.
16165 * fwprop.c (process_defs, process_uses): Likewise.
16166 (register_active_defs, update_uses): Likewise.
16167 (forward_propagate_asm): Update for new df_ref linking.
16168 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16169 (df_null_ref_rec, df_null_mw_rec): Likewise.
16170 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16171 explicitly.
16172 (df_scan_free_bb_info): Remove check for null artificial_defs.
16173 (df_install_ref_incremental): Adjust for new df_ref linking.
16174 Use a single-element insertion rather than a full sort.
16175 (df_ref_chain_delete_du_chain): Take the first element
16176 in a linked list as parameter, rather than a pointer to an array of
16177 pointers.
16178 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16179 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16180 (df_insn_info_delete): Remove check for null defs and call to
16181 df_scan_free_mws_vec.
16182 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16183 null rather than df_null_*_rec.
16184 (df_insn_rescan_debug_internal): Likewise, and update null
16185 checks in the same way. Remove check for null defs.
16186 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16187 Move a single element rather doing a full sort.
16188 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16189 linking.
16190 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16191 Initialize df_ref and df_mw_hardreg lists to null rather than
16192 df_null_*_rec.
16193 (df_ref_compare): Take df_refs as parameter, transferring the
16194 old interface to...
16195 (df_ref_ptr_compare): ...this new function.
16196 (df_sort_and_compress_refs): Update accordingly.
16197 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16198 old interface to...
16199 (df_mw_ptr_compare): ...this new function.
16200 (df_sort_and_compress_mws): Update accordingly.
16201 (df_install_refs, df_install_mws): Return a linked list rather than
16202 an array of pointers.
16203 (df_refs_add_to_chains): Assert that old lists are empty rather
16204 than freeing them.
16205 (df_insn_refs_verify): Don't handle null defs speciailly.
16206 * web.c (union_match_dups): Update for new df_ref linking.
16207
16208 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16209
16210 * df.h (df_ref_create, df_ref_remove): Delete.
16211 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16212 (df_ref_remove): Likewise.
16213
16214 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16215
16216 * df.h (df_single_def, df_single_use): New functions.
16217 * ira.c (find_moveable_pseudos): Use them.
16218
16219 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16220
16221 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16222 * df-problems.c (df_note_bb_compute): Use it.
16223 * regstat.c (regstat_bb_compute_ri): Likewise.
16224
16225 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16226
16227 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16228 * cse.c (cse_extended_basic_block): Use them.
16229 * dce.c (mark_artificial_use): Likewise.
16230 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16231 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16232 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16233 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16234 (df_simulate_initialize_backwards): Likewise.
16235 (df_simulate_finalize_backwards): Likewise.
16236 (df_simulate_initialize_forwards): Likewise.
16237 (df_md_simulate_artificial_defs_at_top): Likewise.
16238 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16239 * regrename.c (init_rename_info): Likewise.
16240 * regstat.c (regstat_bb_compute_ri): Likewise.
16241 (regstat_bb_compute_calls_crossed): Likewise.
16242
16243 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16244
16245 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16246 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16247 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16248 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16249 * combine.c (create_log_links): Likewise.
16250 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16251 (try_eliminate_compare): Likewise.
16252 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16253 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16254 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16255 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16256 (word_dce_process_block, dce_process_block): Likewise.
16257 * ddg.c (def_has_ccmode_p): Likewise.
16258 * df-core.c (df_bb_regno_first_def_find): Likewise.
16259 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16260 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16261 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16262 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16263 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16264 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16265 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16266 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16267 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16268 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16269 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16270 * fwprop.c (local_ref_killed_between_p): Likewise.
16271 (all_uses_available_at, free_load_extend): Likewise.
16272 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16273 * hw-doloop.c (scan_loop): Likewise.
16274 * ifcvt.c (dead_or_predicable): Likewise.
16275 * init-regs.c (initialize_uninitialized_regs): Likewise.
16276 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16277 (process_bb_node_lives): Likewise.
16278 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16279 (find_moveable_pseudos): Likewise.
16280 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16281 * recog.c (peep2_find_free_register): Likewise.
16282 * ree.c (get_defs): Likewise.
16283 * regstat.c (regstat_bb_compute_ri): Likewise.
16284 (regstat_bb_compute_calls_crossed): Likewise.
16285 * sched-deps.c (find_inc, find_mem): Likewise.
16286 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16287 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16288 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16289 (prepare_shrink_wrap): Likewise.
16290 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16291 * web.c (union_defs, pass_web::execute): Likewise.
16292 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16293 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16294
16295 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16296
16297 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16298 to inheritance pseudos.
16299 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16300
16301 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16302
16303 PR target/61415
16304 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16305 (BU_MISC_2): Rename to ...
16306 (BU_LDBL128_2): ... this.
16307 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16308 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16309 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16310 RS6000_BTM_LDBL128.
16311 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16312 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16313 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16314 (unpacktf_1): Likewise.
16315 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16316 (__builtin_longdouble_dw1): Likewise.
16317 * doc/sourcebuild.texi (longdouble128): Document.
16318
16319 2014-06-13 Jeff Law <law@redhat.com>
16320
16321 PR rtl-optimization/61094
16322 PR rtl-optimization/61446
16323 * ree.c (combine_reaching_defs): Get the mode for the copy from
16324 the extension insn rather than the defining insn.
16325
16326 2014-06-13 Dehao Chen <dehao@google.com>
16327
16328 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16329
16330 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16331
16332 * doc/install.texi (--enable-linker-plugin-configure-flags)
16333 (--enable-linker-plugin-flags): Document new flags.
16334
16335 2014-06-13 Martin Jambor <mjambor@suse.cz>
16336
16337 PR ipa/61186
16338 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16339 cache_token if returning early.
16340
16341 2014-06-13 Nick Clifton <nickc@redhat.com>
16342
16343 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16344 requested alignment is active.
16345 (LABEL_ALIGN): Likewise.
16346 (LOOP_ALIGN): Likewise.
16347
16348 2014-06-13 Richard Biener <rguenther@suse.de>
16349
16350 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16351 Rewrite to propagate the VN result into all uses where
16352 possible and to remove stmts becoming dead because of that.
16353 (eliminate): Generalize stmt removal handling, remove in
16354 reverse dominator order to support proper debug stmt
16355 generation. Update stmts before removing stmts.
16356 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16357
16358 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16359
16360 PR tree-optimization/61375
16361 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16362 symbolic number cannot be represented in an uint64_t.
16363 (find_bswap_or_nop_1): Likewise.
16364
16365 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16366
16367 * symtab.c (symtab_node::reset_section): New method.
16368 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16369 for localization.
16370 * cgraph.h (reset_section): Declare.
16371 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16372 do not consider comdat locals.
16373 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16374 for new symbol.
16375 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16376 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16377 reset sections of symbols dragged out of the comdats.
16378 (function_and_variable_visibility): Reset sections of
16379 localized symbols.
16380
16381 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16382
16383 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16384 to use symtab and decl_binds_to_current_def_p
16385 * tree-vectorizer.c (increase_alignment): Increase alignment
16386 of alias target, too.
16387
16388 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16389
16390 PR middle-end/61486
16391 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16392 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16393 if outer combined construct is distribute.
16394 (gimplify_omp_for): For OMP_DISTRIBUTE set
16395 gimplify_omp_ctxp->distribute.
16396 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16397 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16398 mapping into decl map.
16399
16400 2014-06-12 Jason Merrill <jason@redhat.com>
16401
16402 * common.opt (fabi-version): Change default to 0.
16403
16404 2014-06-12 Jason Merrill <jason@redhat.com>
16405
16406 * toplev.c (process_options): Reject -fabi-version=1.
16407
16408 2014-06-12 Jeff Law <law@redhat.com>
16409
16410 PR tree-optimization/61009
16411 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16412 value when we stop processing a block due to problematic PHIs.
16413
16414 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16415
16416 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16417 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16418 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16419 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16420 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16421 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16422 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16423 are not in the spec.
16424
16425 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16426
16427 PR target/59843
16428 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16429 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16430 Support V1DFmode.
16431
16432 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16433
16434 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16435
16436 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16437
16438 PR target/61443
16439 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16440 loading from address spaces.
16441
16442 2014-06-12 Martin Liska <mliska@suse.cz>
16443
16444 PR ipa/61462
16445 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16446 statement is reachable.
16447
16448 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16449
16450 * symtab.c (section_hash): New hash.
16451 (symtab_unregister_node): Clear section before freeing.
16452 (hash_section_hash_entry): New haser.
16453 (eq_sections): New function.
16454 (symtab_node::set_section_for_node): New method.
16455 (set_section_1): Update.
16456 (symtab_node::set_section): Take string instead of tree as parameter.
16457 (symtab_resolve_alias): Update.
16458 * cgraph.h (section_hash_entry_d): New structure.
16459 (section_hash_entry): New typedef.
16460 (cgraph_node): Change comdat_group_ to x_comdat_group,
16461 change section_ to x_section and turn into section_hash_entry;
16462 update accestors; put set_section_for_node offline.
16463 * tree.c (decl_section_name): Turn into string.
16464 (set_decl_section_name): Change parameter to be string.
16465 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16466 * sdbout.c (sdbout_one_type): Update.
16467 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16468 * varasm.c (IN_NAMED_SECTION, get_named_section,
16469 resolve_unique_section, hot_function_section, get_named_text_section,
16470 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16471 make_decl_rtl, default_unique_section): Update.
16472 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16473 (c6x_elf_unique_section): Update.
16474 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16475 * config/pa/pa.c (pa_function_section): Update.
16476 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16477 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16478 * config/arc/arc.c (arc_in_small_data_p): Update.
16479 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16480 * config/mcore/mcore.c (mcore_unique_section): Update.
16481 * config/mips/mips.c (mips16_build_function_stub): Update.
16482 (mips16_build_call_stub): Update.
16483 (mips_function_rodata_section): Update.
16484 (mips_in_small_data_p): Update.
16485 * config/score/score.c (score_in_small_data_p): Update.
16486 * config/rx/rx.c (rx_in_small_data): Update.
16487 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16488 (rs6000_xcoff_asm_named_section): Update.
16489 (rs6000_xcoff_unique_section): Update.
16490 * config/frv/frv.c (frv_string_begins_with): Update.
16491 (frv_in_small_data_p): Update.
16492 * config/v850/v850.c (v850_encode_data_area): Update.
16493 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16494 (bfin_handle_l1_data_attribute): Update.
16495 (bfin_handle_l2_attribute): Update.
16496 * config/mep/mep.c (mep_unique_section): Update.
16497 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16498 Update.
16499 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16500 (h8300_handle_tiny_data_attribute): Update.
16501 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16502 (m32r_in_small_data_p): Update.
16503 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16504 * config/i386/i386.c (ix86_in_large_data_p): Update.
16505 * config/i386/winnt.c (i386_pe_unique_section): Update.
16506 * config/darwin.c (darwin_function_section): Update.
16507 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16508 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16509 (new_emutls_decl): Update.
16510 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16511 input_varpool_node): Update.
16512 (ead_string_cst): Turn to ...
16513 (read_string): ... this one.
16514 * dwarf2out.c (secname_for_decl): Update.
16515 * asan.c (asan_protect_global): Update.
16516
16517 2014-06-11 DJ Delorie <dj@redhat.com>
16518
16519 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16520 cache lines.
16521 * config/rx/rx.c (rx_option_override): Likewise.
16522 (rx_align_for_label): Likewise.
16523
16524 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16525
16526 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16527
16528 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16529 prototype.
16530
16531 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16532
16533 * common.md: New file.
16534 * doc/md.texi: Update description of generic, machine-independent
16535 constraints.
16536 * config/s390/constraints.md (e): Delete.
16537 * Makefile.in (md_file): Include common.md.
16538 * config/m32c/t-m32c (md_file): Likewise.
16539 * genpreds.c (general_mem): New array.
16540 (generic_constraint_letters): Remove constraints now defined by
16541 common.md.
16542 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16543 Allow the first character to be '<' or '>' as well.
16544 * genoutput.c (general_mem): New array.
16545 (indep_constraints): Remove constraints now defined by common.md.
16546 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16547 Remove special handling of 'm'.
16548 * ira-costs.c (record_reg_classes): Remove special handling of
16549 constraints now defined by common.md.
16550 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16551 * ira-lives.c (single_reg_class): Likewise.
16552 (ira_implicitly_set_insn_hard_regs): Likewise.
16553 * lra-constraints.c (reg_class_from_constraints): Likewise.
16554 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16555 * postreload.c (reload_cse_simplify_operands): Likewise.
16556 * reload.c (push_secondary_reload, scratch_reload_class)
16557 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16558 * reload1.c (maybe_fix_stack_asms): Likewise.
16559 * targhooks.c (default_secondary_reload): Likewise.
16560 * stmt.c (parse_output_constraint): Likewise.
16561 * recog.c (preprocess_constraints): Likewise.
16562 (constrain_operands, peep2_find_free_register): Likewise.
16563 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16564 must be handled specially.
16565
16566 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16567
16568 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16569 * genpreds.c (have_const_dbl_constraints): Delete.
16570 (add_constraint): Don't set it.
16571 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16572 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16573 constraints using the lookup_constraint logic.
16574 * ira-lives.c (single_reg_class): Likewise.
16575 * ira.c (ira_setup_alts): Likewise.
16576 * lra-constraints.c (process_alt_operands): Likewise.
16577 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16578 * reload.c (find_reloads): Likewise.
16579
16580 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16581
16582 * genpreds.c (const_int_start, const_int_end): New variables.
16583 (choose_enum_order): Output CONST_INT constraints before memory
16584 constraints.
16585 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16586 Add CT_CONST_INT.
16587 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16588 * ira.c (ira_setup_alts): Likewise.
16589 * lra-constraints.c (process_alt_operands): Likewise.
16590 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16591 * reload.c (find_reloads): Likewise.
16592
16593 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16594
16595 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16596 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16597 * recog.c (preprocess_constraints): Update accordingly.
16598
16599 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16600
16601 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16602 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16603 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16604 * genpreds.c (print_type_tree): New function.
16605 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16606 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16607 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16608 Write out enum constraint_type and get_constraint_type.
16609 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16610 constraint_num rather than a constraint string.
16611 (satisfies_address_constraint_p): Likewise.
16612 (reg_class_from_constraints): Avoid old constraint macros.
16613 (process_alt_operands, process_address_1): Likewise.
16614 (curr_insn_transform): Likewise.
16615 * ira-costs.c (record_reg_classes): Likewise.
16616 (record_operand_costs): Likewise.
16617 * ira-lives.c (single_reg_class): Likewise.
16618 (ira_implicitly_set_insn_hard_regs): Likewise.
16619 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16620 * postreload.c (reload_cse_simplify_operands): Likewise.
16621 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16622 (constrain_operands, peep2_find_free_register): Likewise.
16623 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16624 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16625 * reload1.c (maybe_fix_stack_asms): Likewise.
16626 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16627 * targhooks.c (default_secondary_reload): Likewise.
16628 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16629 to EXTRA_CONSTRAINT_STR.
16630 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16631
16632 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16633
16634 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16635 (write_constraint_satisfied_p_array): ...this new function.
16636 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16637 an array.
16638 (write_insn_preds_c): Update accordingly.
16639
16640 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16641
16642 * genpreds.c (write_lookup_constraint): Rename to...
16643 (write_lookup_constraint_1): ...this.
16644 (write_lookup_constraint_array): New function.
16645 (write_tm_preds_h): Define lookup_constraint as an inline function
16646 that uses write_lookup_constraint_array where possible.
16647 (write_insn_preds_c): Update for the changes above.
16648
16649 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16650
16651 * doc/md.texi (regclass_for_constraint): Rename to...
16652 (reg_class_for_constraint): ...this.
16653 * genpreds.c (num_constraints, enum_order, register_start)
16654 (register_end, satisfied_start, memory_start, memory_end)
16655 (address_start, address_end): New variables.
16656 (add_constraint): Count the number of constraints.
16657 (choose_enum_order): New function.
16658 (write_enum_constraint_num): Iterate over enum_order.
16659 (write_regclass_for_constraint): Rename to...
16660 (write_reg_class_for_constraint_1): ...this and update output
16661 accordingly.
16662 (write_constraint_satisfied_p): Rename to...
16663 (write_constraint_satisfied_p_1): ...this and update output
16664 accordingly. Do nothing if all extra constraints are register
16665 constraints.
16666 (write_insn_extra_memory_constraint): Delete.
16667 (write_insn_extra_address_constraint): Delete.
16668 (write_range_function): New function.
16669 (write_tm_preds_h): Define constraint_satisfied_p and
16670 reg_class_for_constraint as inline functions that do a range check
16671 before calling the out-of-line function. Use write_range_function
16672 to implement insn_extra_{register,memory,address}_constraint,
16673 the first of which is new.
16674 (write_insn_preds_c): Update after above changes to write_* functions.
16675 (main): Call choose_enum_order.
16676
16677 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16678
16679 PR tree-optimization/61306
16680 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16681 expression instead of its size.
16682 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16683 false to prevent optimization when the result is unpredictable due to
16684 arithmetic right shift of signed type with highest byte is set.
16685 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16686 (init_symbolic_number): Likewise.
16687 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16688 when the result is unpredictable due to sign extension.
16689
16690 2014-06-11 Terry Guo <terry.guo@arm.com>
16691
16692 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16693 (*thumb1_addsi3): Ditto.
16694 (*thumb_subdi3): Ditto.
16695 (thumb1_subsi3_insn): Ditto.
16696 (*thumb_mulsi3): Ditto.
16697 (*thumb_mulsi3_v6): Ditto.
16698 (*thumb1_andsi3_insn): Ditto.
16699 (thumb1_bicsi3): Ditto.
16700 (*thumb1_iorsi3_insn): Ditto.
16701 (*thumb1_xorsi3_insn): Ditto.
16702 (*thumb1_ashlsi3): Ditto.
16703 (*thumb1_ashrsi3): Ditto.
16704 (*thumb1_lshrsi3): Ditto.
16705 (*thumb1_rotrsi3): Ditto.
16706 (*thumb1_negdi2): Ditto.
16707 (*thumb1_negsi2): Ditto.
16708 (*thumb1_abssi2): Ditto.
16709 (*thumb1_neg_abssi2): Ditto.
16710 (*thumb1_one_cmplsi2): Ditto.
16711 (*thumb1_zero_extendhisi2): Ditto.
16712 (*thumb1_zero_extendqisi2): Ditto.
16713 (*thumb1_zero_extendqisi2_v6): Ditto.
16714 (thumb1_extendhisi2): Ditto.
16715 (thumb1_extendqisi2): Ditto.
16716 (*thumb1_movdi_insn): Ditto.
16717 (*thumb1_movsi_insn): Ditto.
16718 (*thumb1_movhi_insn): Ditto.
16719 (thumb_movhi_clobber): Ditto.
16720 (*thumb1_movqi_insn): Ditto.
16721 (*thumb1_movhf): Ditto.
16722 (*thumb1_movsf_insn): Ditto.
16723 (*thumb_movdf_insn): Ditto.
16724 (movmem12b): Ditto.
16725 (movmem8b): Ditto.
16726 (cbranchqi4): Ditto.
16727 (cbranchsi4_insn): Ditto.
16728 (cbranchsi4_scratch): Ditto.
16729 (*negated_cbranchsi4): Ditto.
16730 (*tbit_cbranch): Ditto.
16731 (*tlobits_cbranch): Ditto.
16732 (*tstsi3_cbranch): Ditto.
16733 (*cbranchne_decr1): Ditto.
16734 (*addsi3_cbranch): Ditto.
16735 (*addsi3_cbranch_scratch): Ditto.
16736 (*thumb_cmpdi_zero): Ditto.
16737 (cstoresi_eq0_thumb1): Ditto.
16738 (cstoresi_ne0_thumb1): Ditto.
16739 (*cstoresi_eq0_thumb1_insn): Ditto.
16740 (*cstoresi_ne0_thumb1_insn): Ditto.
16741 (cstoresi_nltu_thumb1): Ditto.
16742 (cstoresi_ltu_thumb1): Ditto.
16743 (thumb1_addsi3_addgeu): Ditto.
16744 (*thumb_jump): Ditto.
16745 (*call_reg_thumb1_v5): Ditto.
16746 (*call_reg_thumb1): Ditto.
16747 (*call_value_reg_thumb1_v5): Ditto.
16748 (*call_value_reg_thumb1): Ditto.
16749 (*call_insn): Ditto.
16750 (*call_value_insn): Ditto.
16751 (thumb1_casesi_internal_pic): Ditto.
16752 (thumb1_casesi_dispatch): Ditto.
16753 (*thumb1_indirect_jump): Ditto.
16754 (prologue_thumb1_interwork): Ditto.
16755 (*epilogue_insns): Ditto.
16756 (consttable_1): Ditto.
16757 (consttable_2): Ditto.
16758 (tablejump): Ditto.
16759 (*thumb1_tablejump): Ditto.
16760 (thumb_eh_return): Ditto.
16761 (define_peephole2): Two of them are thumb1 only and got moved into
16762 new file thumb1.md.
16763 (define_split): Six of them are thumb1 only and got moved into new
16764 file thumb1.md.
16765 * config/arm/thumb1.md: New file comprised of above thumb1 only
16766 patterns.
16767
16768 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16769
16770 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16771 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16772 dependencies.
16773 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16774 (aarch64_crc_builtin_datum): New struct.
16775 (aarch64_crc_builtin_data): New.
16776 (aarch64_init_crc32_builtins): New function.
16777 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16778 (aarch64_crc32_expand_builtin): New.
16779 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16780 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16781 __ARM_FEATURE_CRC32 when appropriate.
16782 (TARGET_CRC32): Define.
16783 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16784 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16785 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16786 (aarch64_<crc_variant>): New pattern.
16787 * config/aarch64/arm_acle.h: New file.
16788 * config/aarch64/iterators.md (CRC): New int iterator.
16789 (crc_variant, crc_mode): New int attributes.
16790 * doc/aarch64-acle-intrinsics.texi: New file.
16791 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16792 Include aarch64-acle-intrinsics.texi.
16793
16794 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16795
16796 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16797 check for stores group of length 3.
16798 (vect_permute_store_chain): New permutations for stores group of
16799 length 3.
16800 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16801 of vec_perm_shuffle for the new permutations.
16802
16803 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16804
16805 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16806 table rewriting temporarily on targets not supporting ONE_ONLY.
16807
16808 2014-06-11 Richard Biener <rguenther@suse.de>
16809
16810 PR middle-end/61437
16811 Revert
16812 2014-06-04 Richard Biener <rguenther@suse.de>
16813
16814 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16815 TREE_PUBLIC and DECL_EXTERNAL decls.
16816
16817 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16818
16819 * varasm.c (set_implicit_section): New function.
16820 (resolve_unique_section): Use it to set implicit section
16821 for aliases, too.
16822 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16823 (default_function_section): Likewise.
16824 (decl_binds_to_current_def_p): Constify argument.
16825 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16826 * asan.c (asan_protect_global): Use
16827 symtab_get_node (decl)->implicit_section.
16828 * symtab.c (dump_symtab_base): Dump implicit sections.
16829 (verify_symtab_base): Verify sanity of sectoins and comdats.
16830 (symtab_resolve_alias): Alias share the section of its target.
16831 (set_section_1): New function.
16832 (symtab_node::set_section): Move here, recurse to aliases.
16833 (verify_symtab): Check for duplicated symtab lists.
16834 * tree-core.h (implicit_section_name_p): Remove.
16835 * tree-vect-data-refs.c: Include varasm.h.
16836 (vect_can_force_dr_alignment_p): Fix conditional on when
16837 decl bints to current definition; use
16838 symtab_get_node (decl)->implicit_section.
16839 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16840 * cgraph.h (struct symtab_node): Add implicit_section.
16841 (set_section): Rename to ...
16842 (set_section_for_node): ... this one.
16843 (set_section): Declare.
16844 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16845 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16846 input_overwrite_node, input_varpool_node): Stream implicit_section.
16847 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16848 removal; it will fail in LTO.
16849
16850 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16851
16852 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16853 Change second alternative type to f_mcr.
16854 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16855 and 12th alternatives' types to f_mcr and f_mrc.
16856 (*movdi_aarch64): Same for 12th and 13th alternatives.
16857 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16858 (aarch64_movtilow_tilow): Change type to fmov.
16859
16860 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16861
16862 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16863 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16864
16865 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16866
16867 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16868 New expander.
16869 (aarch64_sqrdmulh_lane<mode>): Likewise.
16870 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16871 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16872 (aarch64_sqdmulh_laneq<mode>): New expander.
16873 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16874 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16875 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16876 (aarch64_sqdmulh_lane<mode>): New expander.
16877 (aarch64_sqrdmulh_lane<mode>): Likewise.
16878 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16879 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16880 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16881 (aarch64_sqdmlal_laneq<mode>): Likewise.
16882 (aarch64_sqdmlsl_lane<mode>): Likewise.
16883 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16884 (aarch64_sqdmlal2_lane<mode>): Likewise.
16885 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16886 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16887 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16888 (aarch64_sqdmull_lane<mode>): Likewise.
16889 (aarch64_sqdmull_laneq<mode>): Likewise.
16890 (aarch64_sqdmull2_lane<mode>): Likewise.
16891 (aarch64_sqdmull2_laneq<mode>): Likewise.
16892
16893 2014-06-10 Richard Biener <rguenther@suse.de>
16894
16895 PR tree-optimization/61438
16896 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16897 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16898 insertion of IVs if running PRE.
16899 (eliminate): Adjust.
16900 (pass_pre::execute): Likewise.
16901 (pass_fre::execute): Likewise.
16902
16903 2014-06-10 Richard Biener <rguenther@suse.de>
16904
16905 PR middle-end/61456
16906 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16907 Do not use the main variant for the type comparison.
16908 (ncr_compar): Likewise.
16909 (nonoverlapping_component_refs_p): Likewise.
16910
16911 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16912
16913 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16914 REG_CFA_RESTORE mode.
16915
16916 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16917
16918 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16919 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16920 expand_vec_perm_pblendv.
16921
16922 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16923
16924 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16925 available.
16926 Simplify description of __crc32d and __crc32cd intrinsics.
16927 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16928 availability.
16929
16930 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16931
16932 PR lto/61334
16933 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16934 * config.in: Regenerate.
16935 * configure: Likewise.
16936
16937 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16938
16939 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16940 and public vars.
16941 (intersect_static_var_sets): Remove.
16942 (propagate): Do not prune local statics.
16943
16944 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16945
16946 PR fortran/60928
16947 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16948 Set lastprivate_firstprivate even if omp_private_outer_ref
16949 langhook returns true.
16950 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16951 langhook, call unshare_expr on new_var and call
16952 build_outer_var_ref to get the last argument.
16953
16954 2014-06-10 Marek Polacek <polacek@redhat.com>
16955
16956 PR c/60988
16957 * doc/extend.texi: Add cindex for transparent_union.
16958
16959 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16960
16961 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16962 init_symbolic_number ().
16963
16964 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16965
16966 PR middle-end/61141
16967 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16968 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16969 (verify_rtl_sharing): Likewise.
16970
16971 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16972
16973 PR c++/54442
16974 * tree.c (build_qualified_type): Use a canonical type for
16975 TYPE_CANONICAL.
16976
16977 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16978
16979 * config/arm/arm-modes.def: Remove XFmode.
16980
16981 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16982
16983 PR target/61062
16984 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16985 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16986 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16987 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16988 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16989 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16990 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16991 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16992 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16993
16994 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16995
16996 * tree-core.h (tree_decl_with_vis): Remove section_name.
16997
16998 2014-06-09 Kito Cheng <kito@0xlab.org>
16999
17000 * ira.c (ira): Don't call init_caller_save if LRA enabled
17001 since LRA use its own infrastructure to handle that.
17002
17003 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17004
17005 * symtab.c (dump_symtab_base): Update dumping.
17006 (symtab_make_decl_local): Clear only DECL_COMDAT.
17007 * tree-vect-data-refs.c (Check that variable is static before
17008 tampering with sections.
17009 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
17010 (cgraph_create_virtual_clone): Likewise.
17011 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
17012 (decl_section_name, set_decl_section_name): New accessors.
17013 (find_decls_types_r): Do not walk section name
17014 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
17015 (decl_comdat_group, decl_comdat_group_id): Constify.
17016 (decl_section_name, set_decl_section_name): Update.
17017 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
17018 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
17019 (cgraph_make_node_local_1): Clear section and comdat group.
17020 * cgraph.h (set_comdat_group): Sanity check.
17021 (get_section, set_section): New.
17022 * ipa-comdats.c (ipa_comdats): Use get_section.
17023 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
17024 * lto-streamer-out.c: Do not follow section names.
17025 * c-family/c-common.c (handle_section_attribute): Update.
17026 * lto-cgraph.c (lto_output_node): Output section.
17027 (lto_output_varpool_node): Likewise.
17028 (read_comdat_group): Rename to ...
17029 (read_identifier): ... this one.
17030 (read_string_cst): New function.
17031 (input_node, input_varpool_node): Input section names.
17032 * tree-emutls.c (get_emutls_init_templ_addr): Update.
17033 (new_emutls_decl): Update.
17034 (secname_for_decl): Check section names only of static vars.
17035 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
17036 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
17037 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
17038 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
17039 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
17040 * config/mcore/mcore.c (mcore_unique_section): Likewise.
17041 * config/mips/mips.c (mips16_build_function_stub): Likewise.
17042 * config/v850/v850.c (v850_insert_attributes): Likewise.
17043 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
17044 Likewise.
17045 (h8300_handle_tiny_data_attribute): Likewise.
17046 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
17047 (bfin_handle_l2_attribute): Likewise.
17048
17049 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17050
17051 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
17052 remove static initializer.
17053
17054 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17055
17056 * varasm.c (use_blocks_for_decl_p): Check symbol table
17057 instead of alias attribute.
17058 (place_block_symbol): Recurse on aliases.
17059
17060 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17061
17062 * ipa-visibility.c: Include varasm.h
17063 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
17064
17065 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
17066
17067 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
17068 outputting aliases.
17069
17070 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
17071
17072 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
17073 from test_insn into GGC space escape via SET_SRC.
17074
17075 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
17076
17077 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
17078 call statement, if any.
17079 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
17080 statements, if any. Tidy up.
17081
17082 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
17083
17084 PR target/61431
17085 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
17086 iterators, VSX_D that handles 64-bit types, and VSX_LE that
17087 handles swapping the two 64-bit double words on little endian
17088 systems. Include V1TImode and optionally TImode in VSX_LE so that
17089 these types are properly swapped. Change all of the insns and
17090 splits that do the 64-bit swaps to use VSX_LE.
17091 (vsx_le_perm_load_<mode>): Likewise.
17092 (vsx_le_perm_store_<mode>): Likewise.
17093 (splitters for little endian memory operations): Likewise.
17094 (vsx_xxpermdi2_le_<mode>): Likewise.
17095 (vsx_lxvd2x2_le_<mode>): Likewise.
17096 (vsx_stxvd2x2_le_<mode>): Likewise.
17097
17098 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
17099
17100 PR target/61423
17101 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
17102 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17103 and corresponding splitters. Zero extend general register
17104 or memory input operand to XMM temporary. Enable for
17105 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17106 (floatunssi<mode>2): Update expander predicate.
17107
17108 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
17109
17110 PR rtl-optimization/61325
17111 * lra-constraints.c (process_address_1): Check scale equal to one
17112 to prevent transformation: base + scale * index => base + new_reg.
17113
17114 2014-06-06 Richard Biener <rguenther@suse.de>
17115
17116 PR tree-optimization/59299
17117 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17118 a def operand.
17119 (nearest_common_dominator_of_uses): Likewise.
17120 (statement_sink_location): Adjust. Support sinking loads.
17121
17122 2014-06-06 Martin Jambor <mjambor@suse.cz>
17123
17124 * ipa-prop.c (get_place_in_agg_contents_list): New function.
17125 (build_agg_jump_func_from_list): Likewise.
17126 (determine_known_aggregate_parts): Renamed to
17127 determine_locally_known_aggregate_parts. Moved some functionality
17128 to the two functions above, removed bound checks.
17129
17130 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
17131
17132 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17133 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17134 (aarch64_progress_pointer): Likewise.
17135 (aarch64_copy_one_part_and_move_pointers): Likewise.
17136 (aarch64_expand_movmen): Likewise.
17137 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17138 * config/aarch64/aarch64.md (movmem<mode>): New.
17139
17140 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
17141
17142 * targhooks.c (default_add_stmt_cost): Call target specific
17143 hook instead of default one.
17144
17145 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17146
17147 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17148 endianness instead of host endianness.
17149 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17150 comments.
17151
17152 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17153
17154 PR debug/53927
17155 * function.c (instantiate_decls): Process the saved static chain.
17156 (expand_function_start): If not optimizing, save the static chain
17157 onto the stack.
17158 * tree-nested.c (convert_all_function_calls): Always create the static
17159 chain for nested functions if not optimizing.
17160
17161 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17162
17163 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17164
17165 2014-06-06 Richard Biener <rguenther@suse.de>
17166
17167 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17168 (construct_init_block): Likewise.
17169 (construct_exit_block): Likewise.
17170 (pass_expand::execute): Likewise.
17171 * graphite.c (graphite_transforms): Replace check for current_loops
17172 with a check for > 1 loops.
17173 (pass_graphite_transforms::execute): Adjust.
17174 * ipa-split.c (split_function): Remove check for current_loops.
17175 * omp-low.c (expand_parallel_call): Likewise.
17176 (expand_omp_for_init_counts): Likewise.
17177 (extract_omp_for_update_vars): Likewise.
17178 (expand_omp_for_generic): Likewise.
17179 (expand_omp_sections): Likewise.
17180 (expand_omp_target): Likewise.
17181 * tracer.c (tail_duplicate): Likewise.
17182 (pass_tracer::execute): Likewise.
17183 * trans-mem.c (expand_transaction): Likewise.
17184 * tree-complex.c (expand_complex_div_wide): Likewise.
17185 * tree-eh.c (lower_resx): Likewise.
17186 (cleanup_empty_eh_merge_phis): Likewise.
17187 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17188 current_loops with a check for > 1 loops.
17189 (pass_predcom::execute): Adjust.
17190 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17191 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17192 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17193 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17194 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17195 * tree-switch-conversion.c (process_switch): Likewise.
17196 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17197 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17198 (execute_vrp): Likewise.
17199 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17200
17201 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17202
17203 * rtl.h (insn_location): Declare.
17204 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17205 with UNKNOWN_LOCATION.
17206 * emit-rtl.c (insn_location): New function.
17207 * final.c (notice_source_line): Check that the instruction has a
17208 location before retrieving it and use insn_location.
17209 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17210 * print-rtl.c (print_rtx): Likewise.
17211
17212 2014-06-06 Richard Biener <rguenther@suse.de>
17213
17214 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17215
17216 2014-06-06 Christian Bruel <christian.bruel@st.com>
17217
17218 PR tree-optimization/43934
17219 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17220 cost.
17221
17222 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17223
17224 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17225 return NO_REGS for extra address and memory constraints. Handle
17226 operands that match (or are equivalent to something that matches)
17227 extra constant constraints. Ignore other non-register operands.
17228
17229 2014-06-06 Alan Modra <amodra@gmail.com>
17230
17231 PR target/61300
17232 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17233 * doc/tm.texi: Regenerate.
17234 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17235 Use throughout in place of REG_PARM_STACK_SPACE.
17236 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17237 "incoming" param. Pass to rs6000_function_parms_need_stack.
17238 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17239 prototype_p when incoming. Use function decl when incoming
17240 to handle K&R style functions.
17241 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17242 (INCOMING_REG_PARM_STACK_SPACE): Define.
17243
17244 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17245
17246 PR target/52472
17247 * cfgexpand.c (expand_debug_expr): Use address space of nested
17248 TREE_TYPE for ADDR_EXPR and MEM_REF.
17249
17250 2014-06-05 Jeff Law <law@redhat.com>
17251
17252 PR tree-optimization/61289
17253 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17254 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17255 looking for those which match LHS. All callers changed.
17256 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17257 parameters and code which manipulated them. All callers changed.
17258 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17259 and DST_MAP parameters. Simplify invalidation code by just calling
17260 invalidate_equivalences. All callers changed.
17261 (thread_across_edge): Simplify now that we don't need to maintain
17262 the map of equivalences to invalidate.
17263
17264 2014-06-05 Kai Tietz <ktietz@redhat.com>
17265 Richard Henderson <rth@redhat.com>
17266
17267 PR target/46219
17268 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17269 checking for !TARGET_X32.
17270 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17271 (sibcall_intern): New define_insn, plus required peepholes.
17272 (sibcall_pop_intern): Likewise.
17273 (sibcall_value_intern): Likewise.
17274 (sibcall_value_pop_intern): Likewise.
17275
17276 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17277
17278 * tree-inline.c (tree_function_versioning): Check DF info existence
17279 before accessing it.
17280
17281 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17282
17283 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17284 frame_size.
17285 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17286 aarch64_frame hard_fp_offset and frame_size.
17287 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17288 frame_size; remove original_frame_size.
17289 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17290 (aarch64_initial_elimination_offset): Remove frame_size and
17291 offset. Use aarch64_frame frame_size.
17292
17293 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17294 Jiong Wang <jiong.wang@arm.com>
17295 Renlin <renlin.li@arm.com>
17296
17297 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17298 initialization of R30 offset. Update offset. Iterate core
17299 regisers upto X30. Remove X29, X30 specific code.
17300
17301 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17302 Jiong Wang <jiong.wang@arm.com>
17303
17304 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17305 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17306 (aarch64_register_saved_on_entry): Adjust test.
17307
17308 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17309
17310 * config/aarch64/aarch64.h (machine_function): Move
17311 saved_varargs_size from here...
17312 (aarch64_frame): ... to here.
17313
17314 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17315 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17316 (aarch64_initial_elimination_offset)
17317 (aarch64_setup_incoming_varargs): Adjust location of
17318 saved_varargs_size.
17319
17320 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17321
17322 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17323 layout comment.
17324
17325 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17326 Prachi Godbole <Prachi.Godbole@imgtec.com>
17327
17328 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17329 mips32r5 entry to use PROCESSOR_P5600.
17330 * config/mips/mips-tables.opt: Regenerate.
17331 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17332 * config/mips/mips.c (mips_fmadd_bypass): New function.
17333 (mips_rtx_cost_data): Add costs for p5600.
17334 (mips_issue_rate): Add support for p5600.
17335 (mips_multipass_dfa_lookahead): Likewise.
17336 * config/mips/mips.h (TUNE_P5600): New define.
17337 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17338 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17339 * config/mips/mips.md: Include p5600.md.
17340 (processor): Add p5600.
17341 * config/mips/p5600.md: New file.
17342
17343 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17344
17345 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17346 * config/i386/predicates.md (palignr_operand): New.
17347 Indicates if permutation is suitable for palignr instruction.
17348
17349 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17350
17351 PR tree-optimization/61319
17352 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17353 stmt belongs to loop.
17354
17355 2014-06-05 Richard Biener <rguenther@suse.de>
17356
17357 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17358 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17359 (lookup_tmp_var): Adjust.
17360 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17361
17362 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17363
17364 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17365
17366 2014-06-05 Marek Polacek <polacek@redhat.com>
17367
17368 PR c/49706
17369 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17370
17371 2014-06-04 Tom de Vries <tom@codesourcery.com>
17372
17373 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17374 CONST_INT.
17375
17376 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17377
17378 PR tree-optimization/61385
17379 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17380
17381 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17382
17383 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17384 changed to use fatal_error.
17385 (main): Ensure lto_wrapper_cleanup is run atexit.
17386
17387 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17388
17389 * lra-constraints.c (valid_address_p): Move earlier in file.
17390 (address_eliminator): New structure.
17391 (satisfies_memory_constraint_p): New function.
17392 (satisfies_address_constraint_p): Likewise.
17393 (process_alt_operands, process_address, curr_insn_transform): Use them.
17394
17395 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17396
17397 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17398 const pointer.
17399 (target_lra_int, default_target_lra_int, this_target_lra_int)
17400 (op_alt_data): Delete.
17401 * lra.h (lra_init): Delete.
17402 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17403 (init_insn_code_data_once): Remove op_alt_data handling.
17404 (finish_insn_code_data_once): Likewise.
17405 (init_op_alt_data): Delete.
17406 (get_static_insn_data): Initialize operand_alternative to null.
17407 (free_insn_recog_data): Cast operand_alternative before freeing it.
17408 (setup_operand_alternative): Take the operand_alternative as
17409 parameter and assume it isn't already cached in the static
17410 insn data.
17411 (lra_set_insn_recog_data): Update accordingly.
17412 (lra_init): Delete.
17413 * ira.c (ira_init): Don't call lra_init.
17414 * target-globals.h (this_target_lra_int): Declare.
17415 (target_globals): Remove lra_int.
17416 (restore_target_globals): Update accordingly.
17417 * target-globals.c: Don't include lra-int.h.
17418 (default_target_globals, save_target_globals): Remove lra_int.
17419
17420 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17421
17422 * recog.h (operand_alternative): Convert reg_class, reject,
17423 matched and matches into bitfields.
17424 (preprocess_constraints): New overload.
17425 (preprocess_insn_constraints): New function.
17426 (preprocess_constraints): Take the insn as parameter.
17427 (recog_op_alt): Change into a pointer.
17428 (target_recog): Add x_op_alt.
17429 * recog.c (asm_op_alt): New variable.
17430 (recog_op_alt): Change into a pointer.
17431 (preprocess_constraints): New overload, replacing the old function
17432 definition with one that doesn't use global state.
17433 (preprocess_insn_constraints): New function.
17434 (preprocess_constraints): Use them. Take the insn as parameter.
17435 Use asm_op_alt for asms.
17436 (recog_init): Free existing x_op_alt entries.
17437 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17438 pointer const.
17439 (make_early_clobber_and_input_conflicts): Likewise.
17440 (process_bb_node_lives): Pass the insn to process_constraints.
17441 * reg-stack.c (check_asm_stack_operands): Likewise.
17442 (subst_asm_stack_regs): Likewise.
17443 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17444 * regrename.c (build_def_use): Likewise.
17445 * sched-deps.c (sched_analyze_insn): Likewise.
17446 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17447 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17448 (note_invalid_constants): Likewise.
17449 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17450 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17451 const.
17452
17453 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17454
17455 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17456 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17457 alternatives.
17458 (make_early_clobber_and_input_conflicts): Likewise.
17459 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17460
17461 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17462
17463 * recog.h (alternative_class): New function.
17464 (which_op_alt): Return a const recog_op_alt.
17465 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17466 (subst_asm_stack_regs): Likewise.
17467 * config/arm/arm.c (note_invalid_constants): Likewise.
17468 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17469 the operand_alternative; use alternative class instead.
17470 * sel-sched.c (get_reg_class): Likewise.
17471 * regrename.c (build_def_use): Likewise.
17472 (hide_operands, restore_operands, record_out_operands): Update type
17473 accordingly.
17474
17475 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17476
17477 * recog.h (recog_op_alt): Convert to a flat array.
17478 (which_op_alt): New function.
17479 * recog.c (recog_op_alt): Convert to a flat array.
17480 (preprocess_constraints): Update accordingly, grouping all
17481 operands of the same alternative together, rather than the
17482 other way around.
17483 * ira-lives.c (check_and_make_def_conflict): Likewise.
17484 (make_early_clobber_and_input_conflicts): Likewise.
17485 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17486 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17487 (subst_asm_stack_regs): Likewise.
17488 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17489 * regrename.c (hide_operands, record_out_operands): Likewise.
17490 (build_def_use): Likewise.
17491 * sel-sched.c (get_reg_class): Likewise.
17492 * config/arm/arm.c (note_invalid_constants): Likewise.
17493
17494 2014-06-04 Jason Merrill <jason@redhat.com>
17495
17496 PR c++/51253
17497 PR c++/61382
17498 * gimplify.c (gimplify_arg): Non-static.
17499 * gimplify.h: Declare it.
17500
17501 2014-06-04 Richard Biener <rguenther@suse.de>
17502
17503 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17504 TREE_PUBLIC and DECL_EXTERNAL decls.
17505
17506 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17507
17508 * regcprop.c (copyprop_hardreg_forward_1): Account for
17509 HARD_REGNO_CALL_PART_CLOBBERED.
17510
17511 2014-06-04 Richard Biener <rguenther@suse.de>
17512
17513 * configure.ac: Check whether the underlying type of int64_t
17514 is long or long long.
17515 * configure: Regenerate.
17516 * config.in: Likewise.
17517 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17518 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17519
17520 2014-06-04 Richard Biener <rguenther@suse.de>
17521
17522 PR tree-optimization/60098
17523 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17524 we hit a kill.
17525 (dse_optimize_stmt): Simplify, now that we found a kill
17526 earlier.
17527
17528 2014-06-04 Richard Biener <rguenther@suse.de>
17529
17530 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17531 of accesses with non-invariant address.
17532
17533 2014-06-04 Martin Liska <mliska@suse.cz>
17534
17535 * cgraph.h (cgraph_make_wrapper): New function introduced.
17536 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17537 * ipa-inline.h (inline_analyze_function): The function is global.
17538 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17539
17540 2014-06-04 Martin Liska <mliska@suse.cz>
17541
17542 * tree.h (private_lookup_attribute_starting): New function.
17543 (lookup_attribute_starting): Likewise.
17544 * tree.c (private_lookup_attribute_starting): Likewise.
17545
17546 2014-06-04 Martin Liska <mliska@suse.cz>
17547
17548 * cgraph.h (expand_thunk): New argument added.
17549 (address_taken_from_non_vtable_p): New global function.
17550 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17551 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17552 * cgraphunit.c (analyze_function): Likewise.
17553 (assemble_thunks_and_aliases): Argument added to call.
17554 (expand_thunk): New argument forces to produce GIMPLE thunk.
17555
17556 2014-06-04 Martin Liska <mliska@suse.cz>
17557
17558 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17559 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17560 * profile.c (branch_prob): Likewise.
17561
17562 2014-06-04 Martin Jambor <mjambor@suse.cz>
17563
17564 PR ipa/61340
17565 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17566 handler for switch on an ipa_ref_use enum.
17567 * ipa-reference.c (analyze_function): Likewise.
17568
17569 2014-06-04 Kai Tietz <ktietz@redhat.com>
17570
17571 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17572 from old call-instruction.
17573
17574 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17575
17576 * config/aarch64/aarch64.c (aarch64_classify_address)
17577 (aarch64_legitimize_reload_address): Support full addressing modes
17578 for vector modes.
17579 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17580 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17581
17582 2014-06-03 Andrew Pinski <apinski@cavium.com>
17583
17584 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17585 for OP0.
17586
17587 2014-06-03 Andrew Pinski <apinski@cavium.com>
17588
17589 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17590 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17591
17592 2014-06-03 Kai Tietz <ktietz@redhat.com>
17593
17594 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17595 for 64-bit ms-abi.
17596
17597 2014-06-03 Dehao Chen <dehao@google.com>
17598
17599 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17600 the same loop.
17601
17602 2014-06-03 Marek Polacek <polacek@redhat.com>
17603
17604 PR c/60439
17605 * doc/invoke.texi: Document -Wswitch-bool.
17606 * function.c (stack_protect_epilogue): Cast controlling expression of
17607 the switch to int.
17608 * gengtype.c (walk_type): Generate switch expression with its
17609 controlling expression cast to int.
17610
17611 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17612
17613 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17614 and attiny841.
17615 * config/avr/avr-tables.opt: Regenerate.
17616 * config/avr/t-multilib: Regenerate.
17617 * doc/avr-mmcu.texi: Regenerate.
17618
17619 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17620 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17621
17622 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17623 (ata6617c, ata664251): Add new avr35 devices.
17624 (ata6612c): Add new avr4 device.
17625 (ata6613c, ata6614q): Add new avr5 devices.
17626 * config/avr/avr-tables.opt: Regenerate.
17627 * config/avr/t-multilib: Regenerate.
17628 * doc/avr-mmcu.texi: Regenerate.
17629
17630 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17631
17632 * gcc/config/aarch64/aarch64-builtins.c
17633 (aarch64_types_binop_ssu_qualifiers): New static data.
17634 (TYPES_BINOP_SSU): Define.
17635 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17636 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17637 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17638 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17639 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17640 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17641 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17642 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17643 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17644 suffix to builtin function name, remove cast.
17645 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17646 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17647 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17648
17649 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17650
17651 * gcc/config/aarch64/aarch64-builtins.c
17652 (aarch64_types_binop_uus_qualifiers,
17653 aarch64_types_shift_to_unsigned_qualifiers,
17654 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17655 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17656 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17657 sqshlu_n, uqshl_n): Update qualifiers.
17658 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17659 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17660 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17661 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17662 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17663 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17664 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17665 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17666 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17667 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17668 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17669 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17670 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17671 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17672 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17673 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17674 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17675 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17676 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17677 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17678 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17679 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17680 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17681 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17682 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17683 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17684 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17685
17686 2014-06-03 Teresa Johnson <tejohnson@google.com>
17687
17688 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17689
17690 2014-06-02 Jason Merrill <jason@redhat.com>
17691
17692 PR c++/61020
17693 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17694
17695 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17696
17697 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17698 location == 0.
17699
17700 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17701
17702 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17703 New pattern.
17704 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17705 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17706 * config/aarch64/iterators.md (REVERSE): New iterator.
17707 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17708 (rev_op): New int_attribute.
17709 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17710 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17711 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17712 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17713 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17714 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17715 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17716 Replace temporary __asm__ with __builtin_shuffle.
17717
17718 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17719
17720 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17721 mips64r5.
17722 * config/mips/mips-tables.opt: Regenerate.
17723 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17724 to use mips_isa_rev rather than ISA_MIPS32R2.
17725 * config/mips/mips.h (ISA_MIPS32R3): New define.
17726 (ISA_MIPS32R5): New define.
17727 (ISA_MIPS64R3): New define.
17728 (ISA_MIPS64R5): New define.
17729 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17730 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17731 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17732 and mips64r5.
17733 (MIPS_ISA_SYNCI_SPEC): Likewise.
17734 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17735 (LINK_SPEC): Added mips32r3 and mips32r5.
17736 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17737 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17738 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17739 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17740 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17741 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17742 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17743
17744 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17745
17746 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17747 options.
17748 * config/mips/mips.opt (mxpa): New option.
17749 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17750 assembler.
17751
17752 2014-06-03 Martin Jambor <mjambor@suse.cz>
17753
17754 PR ipa/61160
17755 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17756 thunks.
17757
17758 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17759
17760 PR tree-optimization/61328
17761 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17762 initialization from find_bswap_or_nop_1.
17763 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17764 in source_expr2 before using the size value the function sets. Also
17765 make use of init_symbolic_number () in both the old place and
17766 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17767 doing recursion in the GIMPLE_BINARY_RHS case.
17768
17769 2014-06-03 Richard Biener <rguenther@suse.de>
17770
17771 PR tree-optimization/61383
17772 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17773 stmts can't trap.
17774
17775 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17776
17777 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17778 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17779 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17780 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17781 in this file.
17782 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17783 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17784 * system.h: ...here and make it unconditional.
17785 * target.def (conditional_register_usage): Mention
17786 define_register_constraint instead of old-style constraint macros.
17787 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17788 * doc/tm.texi: Regenerate.
17789 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17790 protected by !USE_MD_CONSTRAINTS.
17791 * config/frv/frv.md: Remove quote from old version of documentation.
17792 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17793 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17794 CONST_DOUBLE_OK_FOR_LETTER.
17795 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17796
17797 2014-06-02 Andrew Pinski <apinski@cavium.com>
17798
17799 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17800 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17801 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17802 file whose name depends on -mabi= and -mbig-endian.
17803 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17804 Handle LP64 better and handle ilp32 too.
17805 (MULTILIB_OPTIONS): Delete.
17806 (MULTILIB_DIRNAMES): Delete.
17807
17808 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17809
17810 * expr.h: Remove prototypes of functions defined in builtins.c.
17811 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17812 Remove prototypes of functions defined in builtins.c.
17813 * builtins.h: Update prototype list to include all exported functions.
17814 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17815 no_c99_libc_has_function): Move to targhooks.c
17816 (build_string_literal, build_call_expr_loc_array,
17817 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17818 to tree.c.
17819 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17820 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17821 no_c99_libc_has_function): Relocate from builtins.c.
17822 * tree.c: Include builtins.h.
17823 (build_call_expr_loc_array, build_call_expr_loc_vec,
17824 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17825 from builtins.c.
17826 * fold-const.h (fold_fma): Move prototype to builtins.h.
17827 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17828 * asan.c: Include builtins.h.
17829 * cfgexpand.c: Likewise.
17830 * convert.c: Likewise.
17831 * emit-rtl.c: Likewise.
17832 * except.c: Likewise.
17833 * expr.c: Likewise.
17834 * fold-const.c: Likewise.
17835 * gimple-fold.c: Likewise.
17836 * gimple-ssa-strength-reduction.c: Likewise.
17837 * gimplify.c: Likewise.
17838 * ipa-inline.c: Likewise.
17839 * ipa-prop.c: Likewise.
17840 * lto-streamer-out.c: Likewise.
17841 * stmt.c: Likewise.
17842 * tree-inline.c: Likewise.
17843 * tree-object-size.c: Likewise.
17844 * tree-sra.c: Likewise.
17845 * tree-ssa-ccp.c: Likewise.
17846 * tree-ssa-forwprop.c: Likewise.
17847 * tree-ssa-loop-ivcanon.c: Likewise.
17848 * tree-ssa-loop-ivopts.c: Likewise.
17849 * tree-ssa-math-opts.c: Likewise.
17850 * tree-ssa-reassoc.c: Likewise.
17851 * tree-ssa-threadedge.c: Likewise.
17852 * tree-streamer-in.c: Likewise.
17853 * tree-vect-data-refs.c: Likewise.
17854 * tree-vect-patterns.c: Likewise.
17855 * tree-vect-stmts.c: Likewise.
17856 * config/aarch64/aarch64.c: Likewise.
17857 * config/alpha/alpha.c: Likewise.
17858 * config/arc/arc.c: Likewise.
17859 * config/arm/arm.c: Likewise.
17860 * config/avr/avr.c: Likewise.
17861 * config/bfin/bfin.c: Likewise.
17862 * config/c6x/c6x.c: Likewise.
17863 * config/cr16/cr16.c: Likewise.
17864 * config/cris/cris.c: Likewise.
17865 * config/epiphany/epiphany.c: Likewise.
17866 * config/fr30/fr30.c: Likewise.
17867 * config/frv/frv.c: Likewise.
17868 * config/h8300/h8300.c: Likewise.
17869 * config/i386/i386.c: Likewise.
17870 * config/i386/winnt.c: Likewise.
17871 * config/ia64/ia64.c: Likewise.
17872 * config/iq2000/iq2000.c: Likewise.
17873 * config/lm32/lm32.c: Likewise.
17874 * config/m32c/m32c.c: Likewise.
17875 * config/m32r/m32r.c: Likewise.
17876 * config/m68k/m68k.c: Likewise.
17877 * config/mcore/mcore.c: Likewise.
17878 * config/mep/mep.c: Likewise.
17879 * config/microblaze/microblaze.c: Likewise.
17880 * config/mips/mips.c: Likewise.
17881 * config/mmix/mmix.c: Likewise.
17882 * config/mn10300/mn10300.c: Likewise.
17883 * config/moxie/moxie.c: Likewise.
17884 * config/msp430/msp430.c: Likewise.
17885 * config/nds32/nds32.c: Likewise.
17886 * config/pa/pa.c: Likewise.
17887 * config/pdp11/pdp11.c: Likewise.
17888 * config/picochip/picochip.c: Likewise.
17889 * config/rl78/rl78.c: Likewise.
17890 * config/rs6000/rs6000.c: Likewise.
17891 * config/rx/rx.c: Likewise.
17892 * config/s390/s390.c: Likewise.
17893 * config/score/score.c: Likewise.
17894 * config/sh/sh.c: Likewise.
17895 * config/sparc/sparc.c: Likewise.
17896 * config/spu/spu.c: Likewise.
17897 * config/stormy16/stormy16.c: Likewise.
17898 * config/tilegx/tilegx.c: Likewise.
17899 * config/tilepro/tilepro.c: Likewise.
17900 * config/v850/v850.c: Likewise.
17901 * config/vax/vax.c: Likewise.
17902 * config/xtensa/xtensa.c: Likewise.
17903
17904 2014-06-02 Jeff Law <law@redhat.com>
17905
17906 PR rtl-optimization/61094
17907 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17908 was marked as do_no_reextend. If a copy is needed to eliminate
17909 an extension, then mark it as do_not_reextend.
17910
17911 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17912
17913 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17914
17915 2014-06-02 Richard Henderson <rth@redhat.com>
17916
17917 PR target/61336
17918 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17919 addresses inside asms. Use output_operand_lossage instead of
17920 gcc_unreachable.
17921
17922 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17923
17924 PR target/61239
17925 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17926 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17927
17928 2014-06-02 Tom de Vries <tom@codesourcery.com>
17929
17930 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17931 case that x has VOIDmode.
17932
17933 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17934
17935 * varasm.c (copy_constant): Delete function.
17936 (build_constant_desc): Don't call it.
17937
17938 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17939
17940 PR target/61154
17941 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17942 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17943 with immediate_operand.
17944
17945 2014-06-02 Andreas Schwab <schwab@suse.de>
17946
17947 * config/ia64/ia64.c
17948 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17949 pending_data_specs first.
17950
17951 2014-06-02 Richard Biener <rguenther@suse.de>
17952
17953 PR tree-optimization/61378
17954 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17955 valueized_anything.
17956
17957 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17958
17959 * config/i386/constraints.md (Bw): Rename from 'w'.
17960 (Bz): Rename from 'z'.
17961 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17962
17963 2014-06-01 Kai Tietz <ktietz@redhat.com>
17964
17965 PR target/61377
17966 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17967 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17968 instead of m constraint.
17969
17970 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17971
17972 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17973 a separate alternative where the scratch operand 2 is marked as
17974 early clobber.
17975
17976 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17977
17978 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17979 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17980 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17981 and __builtins_arm_get_fpscr.
17982 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17983 __builtins_arm_get_fpscr.
17984 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17985 __builtins_arm_ldfpscr.
17986 (arm_atomic_assign_expand_fenv): New function.
17987 * config/arm/vfp.md (set_fpscr): New pattern.
17988 (get_fpscr) : Likewise.
17989 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17990 VUNSPEC_SET_FPSCR.
17991 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17992 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17993
17994 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17995
17996 * asan.c (report_error_func): Add SLOW_P argument, use
17997 BUILT_IN_ASAN_*_N if set.
17998 (build_check_stmt): Likewise.
17999 (instrument_derefs): If T has insufficient alignment,
18000 force same handling as for odd sizes.
18001
18002 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
18003 BUILT_IN_ASAN_REPORT_STORE_N): New.
18004 * asan.c (struct asan_mem_ref): Change access_size type to
18005 HOST_WIDE_INT.
18006 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
18007 update_mem_ref_hash_table): Likewise.
18008 (asan_mem_ref_hasher::hash): Hash in a HWI.
18009 (report_error_func): Change size_in_bytes argument to HWI.
18010 Use *_N builtins if size_in_bytes is larger than 16 or not power of
18011 two.
18012 (build_shadow_mem_access): New function.
18013 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
18014 Handle size_in_bytes not power of two or larger than 16.
18015 (instrument_derefs): Don't give up if size_in_bytes is not
18016 power of two or is larger than 16.
18017
18018 2014-05-30 Kai Tietz <ktietz@redhat.com>
18019
18020 PR target/60104
18021 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
18022 for sibling-tail-calls.
18023 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
18024 to its use.
18025 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
18026 (sibcall_insn_operand): Add check for sibcall_memory_operand.
18027
18028 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
18029
18030 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
18031 * config/avr/avr-tables.opt: Regenerate.
18032 * config/avr/t-multilib: Regenerate.
18033 * doc/avr-mmcu.texi: Regenerate.
18034
18035 2014-05-30 Ian Lance Taylor <iant@google.com>
18036
18037 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
18038 target("sse").
18039
18040 2014-05-30 Tom de Vries <tom@codesourcery.com>
18041
18042 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
18043 Redefine as true.
18044
18045 2014-05-30 Tom de Vries <tom@codesourcery.com>
18046
18047 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18048 * lra.c (initialize_lra_reg_info_element): Add init of
18049 actual_call_used_reg_set field.
18050 (lra): Call lra_create_live_ranges before lra_inheritance for
18051 -fuse-caller-save.
18052 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18053 -fuse-caller-save.
18054 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
18055 instead of call_used_reg_set for -fuse-caller-save.
18056 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18057
18058 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18059
18060 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
18061 to mov_imm.
18062 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
18063
18064 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
18065
18066 * ira.c (ira_get_dup_out_num): Check for output operands at
18067 the start of the loop. Handle cases where an included alternative
18068 follows an excluded one.
18069
18070 2014-05-29 Mike Stump <mikestump@comcast.net>
18071
18072 PR debug/61352
18073 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
18074 post ld passes when lto is used.
18075
18076 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
18077
18078 PR rtl-optimization/61325
18079 * lra-constraints.c (process_address): Rename to process_address_1.
18080 (process_address): New function.
18081
18082 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
18083
18084 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
18085 TYPES_BINOPV): New static data.
18086 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
18087 New builtin.
18088 * config/aarch64/aarch64-simd.md (aarch64_ext,
18089 aarch64_im_lane_boundsi): New patterns.
18090 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
18091 patterns for EXT.
18092 (aarch64_evpc_ext): New function.
18093
18094 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
18095
18096 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
18097 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
18098 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
18099 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
18100 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
18101
18102 2014-05-29 Tom de Vries <tom@codesourcery.com>
18103
18104 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18105
18106 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
18107 Richard Sandiford <rdsandiford@googlemail.com>
18108
18109 * arm/iterators.md (shiftable_ops): New code iterator.
18110 (t2_binop0, arith_shift_insn): New code attributes.
18111 * arm/predicates.md (shift_nomul_operator): New predicate.
18112 * arm/arm.md (insn_enabled): Delete.
18113 (enabled): Remove insn_enabled test.
18114 (*arith_shiftsi): Delete. Replace with ...
18115 (*<arith_shift_insn>_multsi): ... new pattern.
18116 (*<arith_shift_insn>_shiftsi): ... new pattern.
18117 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18118
18119 2014-05-29 Radovan Obradovic <robradovic@mips.com>
18120 Tom de Vries <tom@codesourcery.com>
18121
18122 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18123 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18124 clobber.
18125 (mips_split_call): Use POST_CALL_TMP_REG.
18126 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18127
18128 2014-05-29 Tom de Vries <tom@codesourcery.com>
18129
18130 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18131 with #ifdef STACK_REGS.
18132
18133 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
18134
18135 * varasm.c (get_variable_section): Walk aliases.
18136 (place_block_symbol): Walk aliases.
18137
18138 2014-05-28 Tom de Vries <tom@codesourcery.com>
18139
18140 Revert:
18141 2014-05-28 Tom de Vries <tom@codesourcery.com>
18142
18143 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18144 * lra.c (initialize_lra_reg_info_element): Add init of
18145 actual_call_used_reg_set field.
18146 (lra): Call lra_create_live_ranges before lra_inheritance for
18147 -fuse-caller-save.
18148 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18149 -fuse-caller-save.
18150 * lra-constraints.c (need_for_call_save_p): Use
18151 actual_call_used_reg_set instead of call_used_reg_set for
18152 -fuse-caller-save.
18153 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18154
18155 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18156
18157 * doc/md.texi: Document that the % constraint character must
18158 be at the beginning of the string.
18159 * genoutput.c (validate_insn_alternatives): Check that '=',
18160 '+' and '%' only appear at the beginning of a constraint.
18161 * ira.c (commutative_constraint_p): Delete.
18162 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18163 at the start of the string.
18164 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18165 duplicate '='s.
18166 * config/arm/neon.md (bicdi3_neon): Likewise.
18167 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18168 (slt_si, sltu_si): Likewise.
18169 * config/vax/vax.md (sbcdi3): Likewise.
18170 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18171 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18172 (mul64): Move '%' to beginning of constraint.
18173 * config/arm/arm.md (*xordi3_insn): Likewise.
18174 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18175 (xorsi3): Likewise.
18176
18177 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18178
18179 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18180
18181 2014-05-28 Jason Merrill <jason@redhat.com>
18182
18183 PR c++/47202
18184 * cgraph.h (symtab_node::get_comdat_group_id): New.
18185 * cgraphunit.c (analyze_functions): Call it.
18186 * symtab.c (dump_symtab_node): Likewise.
18187 * tree.c (decl_comdat_group_id): New.
18188 * tree.h: Declare it.
18189 * lto-streamer-out.c (write_symbol): Use it.
18190 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18191
18192 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18193
18194 PR bootstrap/PR61146
18195 * wide-int.cc: Do not include longlong.h when compiling with clang.
18196
18197 2014-05-28 Richard Biener <rguenther@suse.de>
18198
18199 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18200 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18201 (vrp_visit_assignment_or_call): Print less vertical space.
18202 (vrp_visit_stmt): Likewise.
18203 (vrp_visit_phi_node): Likewise. For a PHI argument with
18204 VR_VARYING range consider recording it as copy.
18205
18206 2014-05-28 Richard Biener <rguenther@suse.de>
18207
18208 Revert
18209 2014-05-28 Richard Biener <rguenther@suse.de>
18210
18211 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18212
18213 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18214
18215 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18216 sufficiently aligned and an offset is used at the same time.
18217 (expand_expr_real_1): Likewise.
18218
18219 2014-05-28 Richard Biener <rguenther@suse.de>
18220
18221 PR middle-end/61045
18222 * fold-const.c (fold_comparison): When folding
18223 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18224 the sign of the remaining constant operand stays the same.
18225
18226 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18227
18228 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18229 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18230 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18231 to the assembler.
18232 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18233 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18234 (m32bit-doubles) Likewise.
18235 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18236 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18237 option for RL78.
18238
18239 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18240
18241 * configure.ac ($gcc_cv_ld_clearcap): New test.
18242 * configure: Regenerate.
18243 * config.in: Regenerate.
18244 * config/sol2.opt (mclear-hwcap): New option.
18245 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18246 * config/sol2-clearcap.map: Moved here from
18247 testsuite/gcc.target/i386/clearcap.map.
18248 * config/sol2-clearcapv2.map: Move here from
18249 gcc.target/i386/clearcapv2.map.
18250 * config/t-sol2 (install): Depend on install-clearcap-map.
18251 (install-clearcap-map): New target.
18252 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18253 -mclear-hwcap.
18254
18255 2014-05-28 Richard Biener <rguenther@suse.de>
18256
18257 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18258 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18259 ... here and remove the rest.
18260 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18261
18262 2014-05-28 Richard Biener <rguenther@suse.de>
18263
18264 PR tree-optimization/61335
18265 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18266 new range fails, drop to varying.
18267
18268 2014-05-28 Olivier Hainque <hainque@adacore.com>
18269
18270 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18271 (CPP_SPEC): Add entry for -mcpu=8548.
18272 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18273 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18274
18275 2014-05-28 Tom de Vries <tom@codesourcery.com>
18276
18277 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18278 * lra.c (initialize_lra_reg_info_element): Add init of
18279 actual_call_used_reg_set field.
18280 (lra): Call lra_create_live_ranges before lra_inheritance for
18281 -fuse-caller-save.
18282 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18283 -fuse-caller-save.
18284 * lra-constraints.c (need_for_call_save_p): Use
18285 actual_call_used_reg_set instead of call_used_reg_set for
18286 -fuse-caller-save.
18287 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18288
18289 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18290 Tom de Vries <tom@codesourcery.com>
18291
18292 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18293 to gccoptlist.
18294 (@item -fuse-caller-save): New item.
18295
18296 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18297 Tom de Vries <tom@codesourcery.com>
18298
18299 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18300 OPT_fuse_caller_save.
18301
18302 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18303 Tom de Vries <tom@codesourcery.com>
18304
18305 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18306 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18307 get_call_reg_set_usage.
18308 * resource.c (mark_set_resources, mark_target_live_regs): Use
18309 get_call_reg_set_usage.
18310 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18311 field.
18312 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18313 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18314 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18315 * ira-build.c (ira_create_allocno): Init
18316 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18317 (create_cap_allocno, propagate_allocno_info)
18318 (propagate_some_info_from_allocno)
18319 (copy_info_to_removed_store_destinations): Handle
18320 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18321 * ira-costs.c (ira_tune_allocno_costs): Use
18322 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18323
18324 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18325 Tom de Vries <tom@codesourcery.com>
18326
18327 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18328 and function_used_regs_valid fields.
18329 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18330 find_all_hard_reg_sets.
18331 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18332 (get_call_reg_set_usage): New function.
18333 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18334 * regs.h (get_call_reg_set_usage): Declare.
18335
18336 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18337
18338 PR libgcc/61152
18339 * config/dbx.h (License): Add Runtime Library Exception.
18340 * config/newlib-stdint.h (License): Same.
18341 * config/rtems.h (License): Same
18342 * config/initfini-array.h (License): Same
18343 * config/v850/v850.h (License): Same.
18344 * config/v850/v850-opts.h (License): Same
18345 * config/v850/rtems.h (License): Same.
18346
18347 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18348
18349 PR target/61044
18350 * doc/extend.texi (Local Labels): Note that label differences are
18351 not supported for AVR.
18352
18353 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18354 Olivier Hainque <hainque@adacore.com>
18355
18356 * rtl.h (set_for_reg_notes): Declare.
18357 * emit-rtl.c (set_for_reg_notes): New function.
18358 (set_unique_reg_note): Use it.
18359 * optabs.c (add_equal_note): Likewise
18360
18361 2014-05-27 Andrew Pinski <apinski@cavium.com>
18362
18363 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18364 Use <w> for the register in assembly template.
18365 (stack_protect_test): Use the mode of operands[0] for the result.
18366 (stack_protect_test_<mode>): Use <w> for the register
18367 in assembly template.
18368
18369 2014-05-27 DJ Delorie <dj@redhat.com>
18370
18371 * config/rx/rx.c (add_vector_labels): New.
18372 (rx_output_function_prologue): Call it.
18373 (rx_handle_func_attribute): Don't require empty arguments.
18374 (rx_handle_vector_attribute): New.
18375 (rx_attribute_table): Add "vector" attribute.
18376 * doc/extend.texi (interrupt, vector): Document new/changed
18377 RX-specific attributes.
18378
18379 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18380
18381 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18382
18383 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18384 predicate to detect a negative quotient.
18385
18386 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18387
18388 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18389 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18390 Add X - Y CMP 0 to X CMP Y transformation.
18391 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18392
18393 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18394
18395 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18396 before printing.
18397
18398 2014-05-27 Steve Ellcey <sellcey@mips.com>
18399
18400 * config/mips/mips.c: Add include of cgraph.h.
18401
18402 2014-05-27 Richard Biener <rguenther@suse.de>
18403
18404 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18405
18406 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18407
18408 PR libgcc/61152
18409 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18410 * config/arm/arm-cores.def (License): Same.
18411 * config/arm/arm-opts.h (License): Same.
18412 * config/arm/aout.h (License): Same.
18413 * config/arm/bpabi.h (License): Same.
18414 * config/arm/elf.h (License): Same.
18415 * config/arm/linux-elf.h (License): Same.
18416 * config/arm/linux-gas.h (License): Same.
18417 * config/arm/netbsd-elf.h (License): Same.
18418 * config/arm/uclinux-eabi.h (License): Same.
18419 * config/arm/uclinux-elf.h (License): Same.
18420 * config/arm/vxworks.h (License): Same.
18421
18422 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18423
18424 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18425 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18426 (arm_init_neon_builtins): Handle NEON_BSWAP.
18427 Define required type nodes.
18428 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18429 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18430 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18431 * config/arm/iterators.md (VDQHSD): New mode iterator.
18432
18433 2014-05-27 Richard Biener <rguenther@suse.de>
18434
18435 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18436 Try using literal operands when comparing value-ranges failed.
18437
18438 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18439
18440 * ira.c (commutative_operand): Adjust for change to recog_data.
18441 [Missing from previous commit.]
18442
18443 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18444
18445 * system.h (TEST_BIT): New macro.
18446 * recog.h (alternative_mask): New type.
18447 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18448 (recog_data_d): Replace alternative_enabled_p array with
18449 enabled_alternatives.
18450 (target_recog): New structure.
18451 (default_target_recog, this_target_recog): Declare.
18452 (get_enabled_alternatives, recog_init): Likewise.
18453 * recog.c (default_target_recog, this_target_recog): New variables.
18454 (get_enabled_alternatives): New function.
18455 (extract_insn): Use it.
18456 (recog_init): New function.
18457 (preprocess_constraints, constrain_operands): Adjust for change to
18458 recog_data.
18459 * postreload.c (reload_cse_simplify_operands): Likewise.
18460 * reload.c (find_reloads): Likewise.
18461 * ira-costs.c (record_reg_classes): Likewise.
18462 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18463 all alternatives after a disabled one would be skipped.
18464 (ira_implicitly_set_insn_hard_regs): Likewise.
18465 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18466 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18467 with enabled_alternatives.
18468 * lra.c (free_insn_recog_data): Update accordingly.
18469 (lra_update_insn_recog_data): Likewise.
18470 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18471 * lra-constraints.c (process_alt_operands): Likewise. Handle
18472 only_alternative as part of the enabled mask.
18473 * target-globals.h (this_target_recog): Declare.
18474 (target_globals): Add a recog field.
18475 (restore_target_globals): Restore this_target_recog.
18476 * target-globals.c: Include recog.h.
18477 (default_target_globals): Initialize recog field.
18478 (save_target_globals): Likewise.
18479 * reginfo.c (reinit_regs): Call recog_init.
18480 * toplev.c (backend_init_target): Likewise.
18481
18482 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18483
18484 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18485 rather than any named insn's code.
18486
18487 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18488
18489 PR libgcc/61152
18490 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18491 * config/arm/arm-cores.def (License): Same.
18492
18493 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18494
18495 * tree.h (decl_comdat_group): Declare.
18496 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18497 * tree.c (decl_comdat_group): Here.
18498
18499 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18500
18501 PR rtl-optimization/61222
18502 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18503 the shift, truncate the PLUS operand to the result mode.
18504
18505 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18506
18507 PR target/61271
18508 * config/i386/i386.c (ix86_rtx_costs)
18509 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18510 Fix condition.
18511
18512 2014-05-26 Martin Jambor <mjambor@suse.cz>
18513
18514 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18515 subreg uses.
18516
18517 2014-05-26 Richard Biener <rguenther@suse.de>
18518
18519 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18520 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18521 Provide specializations.
18522 (wi::int_traits <HOST_WIDE_INT>,
18523 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18524
18525 2014-05-26 Alan Modra <amodra@gmail.com>
18526
18527 PR target/61098
18528 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18529 params and return a bool. Remove dead code. Update comment.
18530 Assert we have a const_int source. Remove bogus code from
18531 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18532 handling of constants > 2G and reg_equal note, from..
18533 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18534 return value. Update comment. If we can, use a new pseudo
18535 for intermediate calculations.
18536 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18537 prototype.
18538 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18539 call to rs6000_emit_set_const in splitter.
18540 (movdi_internal64+2, +3): Likewise.
18541
18542 2014-05-26 Richard Biener <rguenther@suse.de>
18543
18544 * system.h: Define __STDC_FORMAT_MACROS before
18545 including inttypes.h.
18546 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18547 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18548 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18549 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18550 HOST_WIDEST_INT_C): Remove.
18551 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18552 if C99 inttypes.h is not available.
18553 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18554 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18555 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18556 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18557 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18558 (struct output_info): Likewise.
18559 (print_statistics): Adjust.
18560 (dump_bitmap_statistics): Likewise.
18561 * bt-load.c (migrate_btr_defs): Print with PRId64.
18562 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18563 (MAX_SAFE_MULTIPLIER): Adjust.
18564 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18565 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18566 dump_cgraph_node): Likewise.
18567 * final.c (dump_basic_block_info): Likewise.
18568 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18569 * gcov.c (format_gcov): Likewise.
18570 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18571 for calculation.
18572 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18573 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18574 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18575 Use PRId64 for dumping.
18576 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18577 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18578 (add_allocno_hard_regs): Adjust.
18579 * loop-doloop.c (doloop_modify): Print using PRId64.
18580 * loop-iv.c (inverse): Compute in uint64_t.
18581 (determine_max_iter, iv_number_of_iterations): Likewise.
18582 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18583 Print using PRId64.
18584 * lto-streamer-out.c (write_symbol): Use uint64_t.
18585 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18586 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18587 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18588 * modulo-sched.c (const_iteration_count): Use int64_t.
18589 (sms_schedule): Dump using PRId64.
18590 * predict.c (dump_prediction): Likewise.
18591 * pretty-print.h (pp_widest_integer): Remove.
18592 * profile.c (get_working_sets, is_edge_inconsistent,
18593 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18594 * tree-pretty-print.c (pp_double_int): Remove case handling
18595 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18596 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18597 and adjust users.
18598 (pass_optimize_bswap::execute): Remove restriction on hosts.
18599 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18600 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18601 * tree.c (widest_int_cst_value): Remove.
18602 * tree.h (widest_int_cst_value): Likewise.
18603 * value-prof.c (dump_histogram_value): Print using PRId64.
18604 * gengtype.c (main): Also inject int64_t.
18605 * ggc-page.c (struct max_alignment): Use int64_t.
18606 * alloc-pool.c (struct allocation_object_def): Likewise.
18607 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18608 for computation.
18609 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18610 * doc/tm.texi: Regenerated.
18611 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18612 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18613 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18614 mmix_output_register_setting): Use [u]int64_t in prototypes.
18615 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18616 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18617 mmix_output_octa, mmix_output_shifted_value): Adjust.
18618 (mmix_intval): Adjust. Remove unreachable case.
18619 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18620
18621 2014-05-26 Richard Biener <rguenther@suse.de>
18622
18623 * configure.ac: Drop __int64 type check. Insist that we
18624 found uint64_t and int64_t.
18625 * hwint.h (HOST_BITS_PER___INT64): Remove.
18626 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18627 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18628 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18629 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18630 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18631 for dst_q_src_df_rms_cdt.
18632 * configure: Regenerate.
18633 * config.in: Likewise.
18634
18635 2014-05-26 Michael Tautschnig <mt@debian.org>
18636
18637 PR target/61249
18638 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18639 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18640
18641 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18642
18643 PR rtl-optimization/61278
18644 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18645
18646 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18647
18648 PR rtl-optimization/61220
18649 Part of PR rtl-optimization/61225
18650 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18651 insn; skip split_edge for a block with only one successor.
18652
18653 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18654
18655 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18656 for variables.
18657
18658 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18659
18660 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18661 (update_vtable_references): New function.
18662 (function_and_variable_visibility): Rewrite also vtable initializers.
18663 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18664
18665 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18666
18667 * ggc.h (ggc_grow): New function.
18668 * ggc-none.c (ggc_grow): New function.
18669 * ggc-page.c (ggc_grow): Likewise.
18670
18671 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18672
18673 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18674 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18675 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18676 varpool_externally_visible_p, can_replace_by_local_alias,
18677 update_visibility_by_resolution_info, function_and_variable_visibility,
18678 pass_data_ipa_function_and_variable_visibility,
18679 make_pass_ipa_function_and_variable_visibility,
18680 whole_program_function_and_variable_visibility,
18681 pass_data_ipa_whole_program_visibility,
18682 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18683 * cgraph.h (cgraph_local_node_p): Declare.
18684 * ipa-visibility.c: New file.
18685 * Makefile.in (OBJS): Add ipa-visiblity.o
18686
18687 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18688
18689 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18690 that var decl is available.
18691
18692 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18693
18694 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18695 symtab_node pointer.
18696 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18697 (find_decls_types_r): Do not walk COMDAT_GROUP.
18698 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18699 * varasm.c (make_decl_one_only): Use set_comdat_group;
18700 create node if needed.
18701 * ipa-inline-transform.c (save_inline_function_body): Update
18702 way we decl->symtab mapping.
18703 * symtab.c (symtab_hash, hash_node, eq_node
18704 symtab_insert_node_to_hashtable): Remove.
18705 (symtab_register_node): Update.
18706 (symtab_unregister_node): Update.
18707 (symtab_get_node): Reimplement as inline function.
18708 (symtab_add_to_same_comdat_group): Update.
18709 (symtab_dissolve_same_comdat_group_list): Update.
18710 (dump_symtab_base): Update.
18711 (verify_symtab_base): Update.
18712 (symtab_make_decl_local): Update.
18713 (fixup_same_cpp_alias_visibility): Update.
18714 (symtab_nonoverwritable_alias): Update.
18715 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18716 * ipa.c (update_visibility_by_resolution_info): UPdate.
18717 * bb-reorder.c: Include cgraph.h
18718 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18719 with comdat groups.
18720 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18721 * cgraph.c (cgraph_get_create_node): Update.
18722 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18723 and comdat_group_.
18724 (symtab_get_node): Make inline.
18725 (symtab_insert_node_to_hashtable): Remove.
18726 (symtab_can_be_discarded): Update.
18727 (decl_comdat_group): New function.
18728 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18729 Update.
18730 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18731 comdat group name.
18732 (read_comdat_group): New function.
18733 (input_node, input_varpool_node): Use it.
18734 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18735 comdat groups.
18736 * mips.c (mips_start_unique_function): Likewise.
18737 (ix86_code_end): Likewise.
18738 (rs6000_code_end): Likweise.
18739 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18740
18741 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18742
18743 * gengtype-state.c (fatal_reading_state): Bring offline.
18744 * optabs.c (widening_optab_handler): Bring offline.
18745 * optabs.h (widening_optab_handler): Likewise.
18746 * final.c (get_attr_length_1): Likewise.
18747
18748 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18749
18750 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18751
18752 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18753
18754 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18755 (ppc440-compare): Include shift with dot.
18756 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18757 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18758 without dot.
18759 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18760 without dot.
18761 (e6500_sfx2): Include it.
18762 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18763 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18764 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18765 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18766 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18767 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18768 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18769 *lshiftrt_internal1le, *lshiftrt_internal1be,
18770 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18771 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18772 *rotldi3_internal10le, *rotldi3_internal10be,
18773 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18774 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18775 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18776 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18777 define_insns): Use type "shift" in the appropriate alternatives.
18778
18779 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18780
18781 * config/rs6000/rs6000.md (type): Add "logical". Delete
18782 "fast_compare".
18783 (dot): Adjust comment.
18784 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18785 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18786 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18787 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18788 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18789 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18790 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18791 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18792
18793 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18794 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18795 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18796 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18797 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18798 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18799 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18800 * config/rs6000/8540.md (ppc8540_su): Adjust.
18801 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18802 cell-cmp-microcoded): Adjust.
18803 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18804 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18805 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18806 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18807 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18808 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18809 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18810 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18811 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18812 Adjust.
18813 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18814 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18815 Adjust. Adjust comment.
18816 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18817 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18818
18819 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18820
18821 * config/rs6000/rs6000.md (type): Add "add".
18822 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18823 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18824 define_insns): Use it.
18825 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18826
18827 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18828 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18829 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18830 * config/rs6000/601.md (ppc601-integer): Adjust.
18831 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18832 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18833 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18834 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18835 * config/rs6000/8540.md (ppc8540_su): Adjust.
18836 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18837 cell-cmp-microcoded): Adjust.
18838 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18839 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18840 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18841 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18842 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18843 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18844 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18845 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18846 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18847 Adjust.
18848 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18849 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18850 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18851 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18852
18853 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18854
18855 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18856 "delayed_compare", "var_delayed_compare".
18857 (var_shift): New attribute.
18858 (cell_micro): Adjust.
18859 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18860 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18861 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18862 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18863 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18864 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18865 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18866 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18867 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18868 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18869 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18870 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18871 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18872 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18873 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18874 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18875 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18876 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18877 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18878 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18879 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18880 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18881 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18882 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18883 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18884
18885 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18886 * config/rs6000/440.md (ppc440-integer): Adjust.
18887 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18888 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18889 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18890 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18891 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18892 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18893 * config/rs6000/8540.md (ppc8540_su): Adjust.
18894 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18895 cell-cmp-microcoded): Adjust.
18896 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18897 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18898 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18899 e500mc64_delayed): Adjust.
18900 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18901 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18902 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18903 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18904 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18905 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18906 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18907 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18908 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18909 Adjust comment.
18910 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18911 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18912
18913 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18914
18915 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18916 (bits): New mode_attr.
18917 (idiv_ldiv): Delete mode_attr.
18918 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18919 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18920 rs6000_adjust_priority, is_nonpipeline_insn,
18921 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18922
18923 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18924 * config/rs6000/440.md (ppc440-idiv): Adjust.
18925 * config/rs6000/476.md (ppc476-idiv): Adjust.
18926 * config/rs6000/601.md (ppc601-idiv): Adjust.
18927 * config/rs6000/603.md (ppc603-idiv): Adjust.
18928 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18929 ppc620-ldiv): Adjust.
18930 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18931 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18932 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18933 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18934 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18935 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18936 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18937 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18938 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18939 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18940 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18941 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18942 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18943 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18944 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18945 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18946 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18947 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18948
18949 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18950
18951 * config/rs6000/rs6000.md (type): Delete "insert_word",
18952 "insert_dword". Add "insert".
18953 (size): Update comment.
18954 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18955 insn_must_be_first_in_group): Adjust.
18956 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18957 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18958 *insvsi_internal6, insvdi_internal): Adjust.
18959
18960 * config/rs6000/40x.md (ppc403-integer): Adjust.
18961 * config/rs6000/440.md (ppc440-integer): Adjust.
18962 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18963 * config/rs6000/601.md (ppc601-integer): Adjust.
18964 * config/rs6000/603.md (ppc603-integer): Adjust.
18965 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18966 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18967 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18968 * config/rs6000/8540.md (ppc8540_su): Adjust.
18969 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18970 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18971 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18972 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18973 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18974 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18975 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18976 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18977 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18978 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18979 * config/rs6000/power7.md (power7-integer): Adjust.
18980 * config/rs6000/power8.md (power8-1cyc): Adjust.
18981 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18982 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18983
18984 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18985
18986 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18987 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18988 (size): New attribute.
18989 (dot): New attribute.
18990 (cell_micro): Adjust.
18991 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18992 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18993 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18994 umuldi3_highpart): Adjust.
18995 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18996 rs6000_adjust_priority, is_nonpipeline_insn,
18997 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18998
18999 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
19000 ppc405-imul3): Adjust.
19001 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
19002 * config/rs6000/476.md (ppc476-imul): Adjust.
19003 * config/rs6000/601.md (ppc601-imul): Adjust.
19004 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
19005 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
19006 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
19007 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
19008 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
19009 Adjust.
19010 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
19011 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
19012 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
19013 cell-imul): Adjust.
19014 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
19015 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
19016 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
19017 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
19018 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
19019 * config/rs6000/mpc.md (mpccore-imul): Adjust.
19020 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
19021 power4-lmul, power4-imul, power4-imul3): Adjust.
19022 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
19023 power5-lmul, power5-imul, power5-imul3): Adjust.
19024 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
19025 power6-lmul, power6-imul, power6-imul3): Adjust.
19026 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
19027 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
19028
19029 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
19030 rs64a-lmul): Adjust.
19031 * config/rs6000/titan.md (titan_imul): Adjust.
19032
19033 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19034
19035 * config/rs6000/rs6000.md (type): Add new value "halfmul".
19036 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
19037 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
19038 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
19039 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
19040 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
19041 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
19042 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
19043 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
19044 * config/rs6000/titan.md: Delete nonsensical comment.
19045 (titan_imul): Add type imul3.
19046 (titan_mulhw): Remove type imul3; add type halfmul.
19047
19048 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
19049
19050 * config/rs6000/rs6000.md (type): Reorder, reformat.
19051
19052 2014-05-23 Martin Jambor <mjambor@suse.cz>
19053
19054 PR tree-optimization/53787
19055 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
19056 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
19057 analysis_done, update all uses.
19058 * ipa-prop.c: Include domwalk.h
19059 (param_analysis_info): Removed.
19060 (param_aa_status): New type.
19061 (ipa_bb_info): Likewise.
19062 (func_body_info): Likewise.
19063 (ipa_get_bb_info): New function.
19064 (aa_overwalked): Likewise.
19065 (find_dominating_aa_status): Likewise.
19066 (parm_bb_aa_status_for_bb): Likewise.
19067 (parm_preserved_before_stmt_p): Changed to use new param AA info.
19068 (load_from_unmodified_param): Accept func_body_info as a parameter
19069 instead of parms_ainfo.
19070 (parm_ref_data_preserved_p): Changed to use new param AA info.
19071 (parm_ref_data_pass_through_p): Likewise.
19072 (ipa_load_from_parm_agg_1): Likewise. Update callers.
19073 (compute_complex_assign_jump_func): Changed to use new param AA info.
19074 (compute_complex_ancestor_jump_func): Likewise.
19075 (ipa_compute_jump_functions_for_edge): Likewise.
19076 (ipa_compute_jump_functions): Removed.
19077 (ipa_compute_jump_functions_for_bb): New function.
19078 (ipa_analyze_indirect_call_uses): Likewise, moved variable
19079 declarations down.
19080 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
19081 and info, moved variable declarations down.
19082 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
19083 node and info.
19084 (ipa_analyze_stmt_uses): Likewise.
19085 (ipa_analyze_params_uses): Removed.
19086 (ipa_analyze_params_uses_in_bb): New function.
19087 (ipa_analyze_controlled_uses): Likewise.
19088 (free_ipa_bb_info): Likewise.
19089 (analysis_dom_walker): New class.
19090 (ipa_analyze_node): Handle node-specific forbidden analysis,
19091 initialize and free func_body_info, use dominator walker.
19092 (ipcp_modif_dom_walker): New class.
19093 (ipcp_transform_function): Create and free func_body_info, use
19094 ipcp_modif_dom_walker, moved a lot of functionality there.
19095
19096 2014-05-23 Marek Polacek <polacek@redhat.com>
19097 Jakub Jelinek <jakub@redhat.com>
19098
19099 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
19100 * gcc.c (sanitize_spec_function): Likewise.
19101 * convert.c (convert_to_integer): Include "ubsan.h". Add
19102 floating-point to integer instrumentation.
19103 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19104 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19105 SANITIZE_NONDEFAULT.
19106 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19107 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19108 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19109 * ubsan.c: Include "realmpfr.h" and "dfp.h".
19110 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19111 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19112 float/double/long double.
19113 (ubsan_instrument_float_cast): New function.
19114 * ubsan.h (ubsan_instrument_float_cast): Declare.
19115
19116 2014-05-23 Jiong Wang <jiong.wang@arm.com>
19117
19118 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19119 predicate.
19120 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
19121 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19122 Adjust for tailcalling through registers.
19123 * config/aarch64/aarch64.h (enum reg_class): New caller save
19124 register class.
19125 (REG_CLASS_NAMES): Likewise.
19126 (REG_CLASS_CONTENTS): Likewise.
19127 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19128 Allow tailcalling without decls.
19129
19130 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19131
19132 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19133 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19134
19135 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19136 gsi, and variables v_* to v*.
19137
19138 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
19139
19140 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19141
19142 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19143
19144 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19145 * omp-low.c: Update accordingly.
19146
19147 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19148 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19149 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19150 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19151 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19152 GF_OMP_TARGET_KIND_UPDATE.
19153
19154 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19155 Explicitly enumerate the expected region types.
19156
19157 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19158
19159 PR other/56955
19160 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19161 documentation; the old documentation didn't clearly state the
19162 constraints on the contents of the pointed-to storage.
19163
19164 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19165
19166 Fix bootstrap error on ia64
19167 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19168 Return default value.
19169
19170 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19171
19172 PR tree-optimization/54733
19173 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19174 (CMPNOP): Define.
19175 (find_bswap_or_nop_load): New.
19176 (find_bswap_1): Renamed to ...
19177 (find_bswap_or_nop_1): This. Also add support for memory source.
19178 (find_bswap): Renamed to ...
19179 (find_bswap_or_nop): This. Also add support for memory source and
19180 detection of bitwise operations equivalent to load in target
19181 endianness.
19182 (execute_optimize_bswap): Likewise. Also move its leading comment back
19183 in place and split statement transformation into ...
19184 (bswap_replace): This.
19185
19186 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19187
19188 PR rtl-optimization/61215
19189 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19190 simplify_gen_subreg until final substitution.
19191
19192 2014-05-23 Alan Modra <amodra@gmail.com>
19193
19194 PR target/61231
19195 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19196 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19197 Use "Y" constraint rather than "m".
19198
19199 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19200
19201 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19202 define.
19203 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19204 New function declaration.
19205 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19206 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19207 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19208 (aarch64_init_builtins) : Initialize builtins
19209 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19210 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19211 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19212 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19213 and __builtins_aarch64_set_fpsr.
19214 (aarch64_atomic_assign_expand_fenv): New function.
19215 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19216 (get_fpcr) : Likewise.
19217 (set_fpsr) : Likewise.
19218 (get_fpsr) : Likewise.
19219 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19220 and UNSPECV_SET_FPSR.
19221 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19222 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19223 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19224
19225 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19226
19227 PR rtl-optimization/60969
19228 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19229 constraints. Set up mem cost for NO_REGS case.
19230
19231 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19232
19233 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19234
19235 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19236
19237 * config/darwin.c: Include "lto-section-names.h".
19238 (LTO_SEGMENT_NAME): Don't define.
19239 * config/i386/winnt.c: Include "lto-section-names.h".
19240 * lto-streamer.c: Include "lto-section-names.h".
19241 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19242 * lto-wrapper.c: Include "lto-section-names.h".
19243 (LTO_SECTION_NAME_PREFIX): Don't define.
19244 * lto-section-names.h: New file.
19245 * cgraphunit.c: Include "lto-section-names.h".
19246
19247 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19248
19249 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19250
19251 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19252
19253 PR target/61208
19254 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19255
19256 2014-05-22 Nick Clifton <nickc@redhat.com>
19257
19258 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19259
19260 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19261
19262 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19263 -> (T)A transformation to integer types.
19264
19265 2014-05-22 Teresa Johnson <tejohnson@google.com>
19266
19267 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19268 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19269 (gcov_rewrite): Use gcov_nonruntime_assert.
19270 (gcov_open): Ditto.
19271 (gcov_write_words): Ditto.
19272 (gcov_write_length): Ditto.
19273 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19274 gcc_assert from IN_LIBGCOV code.
19275 (gcov_read_summary): Use gcov_error to flag profile corruption.
19276 (gcov_sync): Use gcov_nonruntime_assert.
19277 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19278 (gcov_histo_index): Use gcov_nonruntime_assert.
19279 (static void gcov_histogram_merge): Ditto.
19280 (compute_working_sets): Ditto.
19281 * gcov-io.h (gcov_nonruntime_assert): Define.
19282 (gcov_error): Define for !IN_LIBGCOV
19283
19284 2014-05-22 Richard Biener <rguenther@suse.de>
19285
19286 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19287 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19288 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19289 and deallocation site.
19290 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19291 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19292 passing through the incoming points-to set.
19293 (handle_lhs_call): Use flags argument instead of recomputing it.
19294 (find_func_aliases_for_call): Call handle_lhs_call with proper
19295 call return flags.
19296
19297 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19298
19299 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19300 all padding bits in REAL_VALUE_TYPE are cleared.
19301
19302 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19303
19304 Cleanup and improve multipass_dfa_lookahead_guard
19305 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19306 (core2i7_first_cycle_multipass_begin,)
19307 (core2i7_first_cycle_multipass_issue,)
19308 (core2i7_first_cycle_multipass_backtrack): Update signature.
19309 * config/ia64/ia64.c
19310 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19311 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19312 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19313 hook definition.
19314 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19315 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19316 values.
19317 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19318 return values.
19319 * doc/tm.texi: Regenerate.
19320 * doc/tm.texi.in
19321 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19322 * haifa-sched.c (ready_try): Make signed to allow negative values.
19323 (rebug_ready_list_1): Update.
19324 (choose_ready): Simplify.
19325 (sched_extend_ready_list): Update.
19326
19327 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19328
19329 Remove IA64 speculation tweaking flags
19330 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19331 speculation tuning flags.
19332 (msched-prefer-non-data-spec-insns,)
19333 (msched-prefer-non-control-spec-insns): Obsolete options.
19334 * haifa-sched.c (choose_ready): Remove handling of
19335 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19336 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19337 and PREFER_NON_DATA_SPEC.
19338 * sel-sched.c (process_spec_exprs): Remove handling of
19339 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19340
19341 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19342
19343 Improve scheduling debug output
19344 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19345 (advance_one_cycle): Update.
19346 (schedule_insn, queue_to_ready): Add debug printouts.
19347 (debug_ready_list_1): New static function.
19348 (debug_ready_list): Update.
19349 (max_issue): Add debug printouts.
19350 (dump_insn_stream): New static function.
19351 (schedule_block): Use it. Also better indent printouts.
19352
19353 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19354
19355 Fix sched_insn debug counter
19356 * haifa-sched.c (schedule_insn): Update.
19357 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19358 (save_backtrack_point, restore_backtrack_point): Update.
19359 (first_nonscheduled_insn): New static function.
19360 (queue_to_ready, choose_ready): Use it.
19361 (schedule_block): Init nonscheduled_insns_begin.
19362 (sched_emit_insn): Update.
19363
19364
19365 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19366
19367 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19368 to GENERAL_REGS.
19369 (aarch64_secondary_reload) : LikeWise.
19370 (aarch64_class_max_nregs) : Remove CORE_REGS.
19371 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19372 (REG_CLASS_NAMES) : Likewise.
19373 (REG_CLASS_CONTENTS) : LikeWise.
19374 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19375
19376 2014-05-21 Guozhi Wei <carrot@google.com>
19377
19378 PR target/61202
19379 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19380 constraint.
19381 (vqdmulhq_n_s16): Likewise.
19382
19383 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19384
19385 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19386
19387 2014-05-21 Marek Polacek <polacek@redhat.com>
19388
19389 PR sanitizer/61272
19390 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19391
19392 2014-05-21 Martin Jambor <mjambor@suse.cz>
19393
19394 * doc/invoke.texi (Optimize Options): Document parameters
19395 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19396 ipa-cp-array-index-hint-bonus.
19397
19398 2014-05-21 Mark Wielaard <mjw@redhat.com>
19399
19400 PR debug/16063
19401 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19402 version >= 3 or not strict DWARF.
19403 * langhooks.h (struct lang_hooks_for_types): Add
19404 enum_underlying_base_type.
19405 * langhooks.c (lhd_enum_underlying_base_type): New function.
19406 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19407 enum_underlying_base_type.
19408 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19409 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19410 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19411
19412 2014-05-21 Richard Biener <rguenther@suse.de>
19413
19414 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19415
19416 2014-05-21 John Marino <gnugcc@marino.st>
19417
19418 * config.gcc (*-*-dragonfly*): New target.
19419 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19420 * configure: Regenerate.
19421 * config/dragonfly-stdint.h: New.
19422 * config/dragonfly.h: New.
19423 * config/dragonfly.opt: New.
19424 * config/i386/dragonfly.h: New.
19425 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19426
19427 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19428
19429 * tree.def (VOID_CST): New.
19430 * tree-core.h (TI_VOID): New.
19431 * tree.h (void_node): New.
19432 * tree.c (tree_node_structure_for_code, tree_code_size)
19433 (iterative_hash_expr): Handle VOID_CST.
19434 (build_common_tree_nodes): Initialize void_node.
19435
19436 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19437
19438 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19439 functions.
19440 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19441
19442 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19443 more places.
19444
19445 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19446 flag_reorder_blocks_and_partition.
19447 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19448
19449 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19450
19451 PR target/54236
19452 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19453 constraints.
19454 (*addc_r_t): Add new insn_and_split.
19455
19456 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19457
19458 PR middle-end/61252
19459 * omp-low.c (handle_simd_reference): New function.
19460 (lower_rec_input_clauses): Use it. Defer adding reference
19461 initialization even for reduction without placeholder if in simd,
19462 handle it properly later on.
19463
19464 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19465
19466 PR tree-optimization/60899
19467 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19468 assume all static symbols will have definition wile parsing and
19469 check the do have definition later in compilation; check that
19470 variable referring symbol will be output before concluding that
19471 reference is safe; be conservative for referring local statics;
19472 be more precise about when comdat is output in other partition.
19473
19474 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19475
19476 PR bootstrap/60984
19477 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19478 parameter.
19479 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19480 (ipa_inline): Loop inline_to_all_callers until no more aliases
19481 are removed.
19482
19483 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19484
19485 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19486 set writeonly flag only for vars actually written to.
19487
19488 2014-05-20 Dehao Chen <dehao@google.com>
19489
19490 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19491 and callee count to get clone count.
19492 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19493 count in copy_body.
19494
19495 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19496
19497 PR rtl-optimization/61243
19498 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19499
19500 2014-05-20 Xinliang David Li <davidxl@google.com>
19501
19502 * cgraphunit.c (walk_polymorphic_call_targets): Add
19503 dbgcnt and fopt-info support.
19504 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19505 * ipa-devirt.c (ipa_devirt): Ditto.
19506 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19507 * ipa.c (walk_polymorphic_call_targets): Ditto.
19508 * gimple-fold.c (fold_gimple_assign): Ditto.
19509 (gimple_fold_call): Ditto.
19510 * dbgcnt.def: New counter.
19511
19512 2014-05-20 DJ Delorie <dj@redhat.com>
19513
19514 * config/msp430/msp430.md (split): Don't allow subregs when
19515 splitting SImode adds.
19516 (andneghi): Fix subtraction logic.
19517 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19518
19519 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19520
19521 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19522 symbols.
19523 * except.c (switch_to_exception_section, resolve_unique_section,
19524 get_named_text_section, default_function_rodata_section,
19525 align_variable, get_block_for_decl, default_section_type_flags):
19526 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19527 * symtab.c (symtab_add_to_same_comdat_group,
19528 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19529 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19530 Likewise.
19531 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19532 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19533 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19534 (c6x_function_in_section_p): Likewise.
19535 * config/darwin.c (machopic_select_section): Likewise.
19536 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19537 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19538 * config/mep/mep.c (mep_select_section): LIkewise.
19539 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19540
19541 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19542
19543 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19544 EH region of calls to pure functions that can throw an exception.
19545 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19546 (copy_reference_ops_from_call): Also copy the EH region of the call if
19547 it can throw an exception.
19548
19549 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19550
19551 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19552 nested VEC_SELECTs that are inverses of each other.
19553
19554 2014-05-20 Richard Biener <rguenther@suse.de>
19555
19556 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19557 (extract_and_process_scc_for_name): not here.
19558 (cond_dom_walker::before_dom_children): Only process
19559 stmts that end the BB in interesting ways.
19560 (run_scc_vn): Mark param uses as visited.
19561
19562 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19563
19564 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19565 arm_restrict_it.
19566
19567 2014-05-20 Nick Clifton <nickc@redhat.com>
19568
19569 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19570 (msp430_gimplify_va_arg_expr): New function.
19571 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19572
19573 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19574 operand 0 in order to prevent confusion about the number of
19575 registers involved.
19576
19577 2014-05-20 Richard Biener <rguenther@suse.de>
19578
19579 PR tree-optimization/61221
19580 * tree-ssa-pre.c (el_to_update): Remove.
19581 (eliminate_dom_walker::before_dom_children): Handle released
19582 VDEFs by value-numbering them to the associated VUSE. Update
19583 stmt immediately for substituted call address.
19584 (eliminate): Remove delayed stmt updating code.
19585 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19586 possibly late re-numbered vuses.
19587 (vn_reference_lookup_2): Adjust.
19588 (vn_reference_lookup_pieces): Likewise.
19589 (vn_reference_lookup): Likewise.
19590
19591 2014-05-20 Richard Biener <rguenther@suse.de>
19592
19593 * config.gcc: Remove need_64bit_hwint.
19594 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19595 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19596 it to be true.
19597 * config.in: Regenerate.
19598 * configure: Likewise.
19599
19600 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19601
19602 * doc/extend.texi: Create Label Attributes section,
19603 move all label attributes into it and reference it.
19604
19605 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19606
19607 * arm.c (thumb1_reorg): When scanning backwards skip anything
19608 that's not a proper insn.
19609
19610 2014-05-19 Richard Biener <rguenther@suse.de>
19611
19612 PR tree-optimization/61221
19613 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19614 Do nothing for unreachable blocks.
19615 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19616 Improve unreachability detection.
19617
19618 2014-05-19 Richard Biener <rguenther@suse.de>
19619
19620 PR tree-optimization/61209
19621 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19622
19623 2014-05-19 Nick Clifton <nickc@redhat.com>
19624
19625 * except.c (init_eh): Fix computation of builtin setjmp buffer
19626 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19627
19628 2014-05-19 Richard Biener <rguenther@suse.de>
19629
19630 PR tree-optimization/61184
19631 * tree-vrp.c (is_negative_overflow_infinity): Use
19632 TREE_OVERFLOW_P and do that check first.
19633 (is_positive_overflow_infinity): Likewise.
19634 (is_overflow_infinity): Likewise.
19635 (vrp_operand_equal_p): Properly treat operands with
19636 differing overflow as not equal.
19637
19638 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19639
19640 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19641 shift simplification where it was intended.
19642
19643 2014-05-19 Christian Bruel <christian.bruel@st.com>
19644
19645 PR target/61195
19646 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19647
19648 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19649
19650 PR target/61084
19651 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19652 than wide_int.
19653
19654 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19655
19656 * reg-notes.def (CROSSING_JUMP): Likewise.
19657 * rtl.h (rtx_def): Update comment for jump flag.
19658 (CROSSING_JUMP_P): Define.
19659 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19660 of a REG_CROSSING_JUMP note.
19661 * cfghooks.c (tidy_fallthru_edges): Likewise.
19662 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19663 * emit-rtl.c (try_split): Likewise.
19664 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19665 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19666 * jump.c (redirect_jump_2): Likewise.
19667 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19668 (relax_delay_slots): Likewise.
19669 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19670 (bbit_di): Likewise.
19671 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19672 * config/sh/sh.md (jump_compact): Likewise.
19673 * bb-reorder.c (rotate_loop): Likewise.
19674 (pass_duplicate_computed_gotos::execute): Likewise.
19675 (add_reg_crossing_jump_notes): Rename to...
19676 (update_crossing_jump_flags): ...this.
19677 (pass_partition_blocks::execute): Update accordingly.
19678
19679 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19680
19681 * tree.h: Remove extraneous template <>.
19682
19683 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19684
19685 * ipa.c (symtab_remove_unreachable_nodes): Remove
19686 symbol from comdat group if its body was eliminated.
19687 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19688 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19689 (symtab_unregister_node): ... this one.
19690 (verify_symtab_base): More strict checking of comdats.
19691 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19692
19693 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19694
19695 * tree-pass.h (make_pass_ipa_comdats): New pass.
19696 * timevar.def (TV_IPA_COMDATS): New timevar.
19697 * passes.def (pass_ipa_comdats): Add.
19698 * Makefile.in (OBJS): Add ipa-comdats.o
19699 * ipa-comdats.c: New file.
19700
19701 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19702
19703 * ipa.c (update_visibility_by_resolution_info): New function.
19704 (function_and_variable_visibility): Use it.
19705
19706 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19707
19708 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19709 New functions.
19710 (FOR_EACH_DEFINED_SYMBOL): New macro.
19711 (varpool_first_static_initializer, varpool_next_static_initializer,
19712 varpool_first_defined_variable, varpool_next_defined_variable):
19713 Fix comments.
19714 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19715
19716 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19717
19718 * ggc-page.c (ggc_handle_finalizers): Add comment.
19719
19720 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19721
19722 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19723 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19724 (ggc_internal_cleared_alloc): Likewise.
19725 * ggc-page.c (finalizer): New class.
19726 (vec_finalizer): Likewise.
19727 (globals::finalizers): New member.
19728 (globals::vec_finalizers): Likewise.
19729 (ggc_internal_alloc): Record the finalizer if any for the block being
19730 allocated.
19731 (ggc_handle_finalizers): New function.
19732 (ggc_collect): Call ggc_handle_finalizers.
19733 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19734 finalizer.
19735 (ggc_internal_cleared_alloc): Likewise.
19736 (finalize): New function.
19737 (need_finalization_p): Likewise.
19738 (ggc_alloc): Install the type's destructor as the finalizer if it
19739 might do something.
19740 (ggc_cleared_alloc): Likewise.
19741 (ggc_vec_alloc): Likewise.
19742 (ggc_cleared_vec_alloc): Likewise.
19743
19744 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19745
19746 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19747
19748 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19749
19750 * alias.c (record_alias_subset): Adjust.
19751 * bitmap.c (bitmap_element_allocate): Likewise.
19752 (bitmap_gc_alloc_stat): Likewise.
19753 * cfg.c (init_flow): Likewise.
19754 (alloc_block): Likewise.
19755 (unchecked_make_edge): Likewise.
19756 * cfgloop.c (alloc_loop): Likewise.
19757 (flow_loops_find): Likewise.
19758 (rescan_loop_exit): Likewise.
19759 * cfgrtl.c (init_rtl_bb_info): Likewise.
19760 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19761 (cgraph_allocate_node): Likewise.
19762 (cgraph_create_edge_1): Likewise.
19763 (cgraph_allocate_init_indirect_info): Likewise.
19764 * cgraphclones.c (cgraph_clone_edge): Likewise.
19765 * cgraphunit.c (add_asm_node): Likewise.
19766 (init_lowered_empty_function): Likewise.
19767 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19768 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19769 (alpha_use_linkage): Likewise.
19770 * config/arc/arc.c (arc_init_machine_status): Likewise.
19771 * config/arm/arm.c (arm_init_machine_status): Likewise.
19772 * config/avr/avr.c (avr_init_machine_status): Likewise.
19773 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19774 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19775 * config/cris/cris.c (cris_init_machine_status): Likewise.
19776 * config/darwin.c (machopic_indirection_name): Likewise.
19777 (darwin_build_constant_cfstring): Likewise.
19778 (darwin_enter_string_into_cfstring_table): Likewise.
19779 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19780 * config/frv/frv.c (frv_init_machine_status): Likewise.
19781 * config/i386/i386.c (get_dllimport_decl): Likewise.
19782 (ix86_init_machine_status): Likewise.
19783 (assign_386_stack_local): Likewise.
19784 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19785 (i386_pe_maybe_record_exported_symbol): Likewise.
19786 (i386_pe_record_stub): Likewise.
19787 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19788 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19789 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19790 (m32c_note_pragma_address): Likewise.
19791 * config/mep/mep.c (mep_init_machine_status): Likewise.
19792 (mep_note_pragma_flag): Likewise.
19793 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19794 (mips16_local_alias): Likewise.
19795 (mips_init_machine_status): Likewise.
19796 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19797 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19798 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19799 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19800 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19801 * config/pa/pa.c (pa_init_machine_status): Likewise.
19802 (pa_get_deferred_plabel): Likewise.
19803 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19804 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19805 (rs6000_init_machine_status): Likewise.
19806 (output_toc): Likewise.
19807 * config/s390/s390.c (s390_init_machine_status): Likewise.
19808 * config/score/score.c (score_output_external): Likewise.
19809 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19810 * config/spu/spu.c (spu_init_machine_status): Likewise.
19811 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19812 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19813 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19814 * coverage.c (coverage_end_function): Likewise.
19815 * dbxout.c (dbxout_init): Likewise.
19816 * doc/gty.texi: Don't mention variable_size attribute.
19817 * dwarf2cfi.c (new_cfi): Adjust.
19818 (new_cfi_row): Likewise.
19819 (copy_cfi_row): Likewise.
19820 (create_cie_data): Likewise.
19821 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19822 (new_loc_descr): Likewise.
19823 (find_AT_string_in_table): Likewise.
19824 (add_addr_table_entry): Likewise.
19825 (new_die): Likewise.
19826 (add_var_loc_to_decl): Likewise.
19827 (clone_die): Likewise.
19828 (clone_as_declaration): Likewise.
19829 (break_out_comdat_types): Likewise.
19830 (new_loc_list): Likewise.
19831 (add_loc_descr_to_each): Likewise.
19832 (add_location_or_const_value_attribute): Likewise.
19833 (add_linkage_name): Likewise.
19834 (lookup_filename): Likewise.
19835 (dwarf2out_var_location): Likewise.
19836 (new_line_info_table): Likewise.
19837 (dwarf2out_init): Likewise.
19838 (mem_loc_descriptor): Likewise.
19839 (loc_descriptor): Likewise.
19840 (add_const_value_attribute): Likewise.
19841 (tree_add_const_value_attribute): Likewise.
19842 (comp_dir_string): Likewise.
19843 (dwarf2out_vms_debug_main_pointer): Likewise.
19844 (string_cst_pool_decl): Likewise.
19845 * emit-rtl.c (set_mem_attrs): Likewise.
19846 (get_reg_attrs): Likewise.
19847 (start_sequence): Likewise.
19848 (init_emit): Likewise.
19849 (init_emit_regs): Likewise.
19850 * except.c (init_eh_for_function): Likewise.
19851 (gen_eh_region): Likewise.
19852 (gen_eh_region_catch): Likewise.
19853 (gen_eh_landing_pad): Likewise.
19854 (add_call_site): Likewise.
19855 * function.c (add_frame_space): Likewise.
19856 (insert_temp_slot_address): Likewise.
19857 (assign_stack_temp_for_type): Likewise.
19858 (get_hard_reg_initial_val): Likewise.
19859 (allocate_struct_function): Likewise.
19860 (prepare_function_start): Likewise.
19861 (types_used_by_var_decl_insert): Likewise.
19862 * gengtype.c (variable_size_p): Remove function.
19863 (enum alloc_quantity): Remove enum.
19864 (write_typed_alloc_def): Remove function.
19865 (write_typed_struct_alloc_def): Likewise.
19866 (write_typed_typedef_alloc_def): Likewise.
19867 (write_typed_alloc_defns): Likewise.
19868 (main): Adjust.
19869 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19870 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19871 * ggc.h (ggc_alloc): new function.
19872 (ggc_cleared_alloc): Likewise.
19873 (ggc_vec_alloc): Template on type of vector element, and remove
19874 element size argument.
19875 (ggc_cleared_vec_alloc): Likewise.
19876 * gimple.c (gimple_build_omp_for): Adjust.
19877 (gimple_copy): Likewise.
19878 * ipa-cp.c (get_replacement_map): Likewise.
19879 (find_aggregate_values_for_callers_subset): Likewise.
19880 (known_aggs_to_agg_replacement_list): Likewise.
19881 * ipa-devirt.c (get_odr_type): Likewise.
19882 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19883 (read_agg_replacement_chain): Likewise.
19884 * loop-iv.c (get_simple_loop_desc): Likewise.
19885 * lto-cgraph.c (input_node_opt_summary): Likewise.
19886 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19887 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19888 (input_eh_region): Likewise.
19889 (input_eh_lp): Likewise.
19890 (input_cfg): Likewise.
19891 * optabs.c (set_optab_libfunc): Likewise.
19892 (init_tree_optimization_optabs): Likewise.
19893 (set_conv_libfunc): Likewise.
19894 * passes.c (do_per_function_toporder): Likewise.
19895 * rtl.h: Don't use variable_size gty attribute.
19896 * sese.c (if_region_set_false_region): Adjust.
19897 * stringpool.c (gt_pch_save_stringpool): Likewise.
19898 * target-globals.c (save_target_globals): Likewise.
19899 * toplev.c (general_init): Likewise.
19900 * trans-mem.c (record_tm_replacement): Likewise.
19901 (split_bb_make_tm_edge): Likewise.
19902 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19903 * tree-data-ref.h (lambda_vector_new): Likewise.
19904 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19905 * tree-iterator.c (tsi_link_before): Likewise.
19906 (tsi_link_after): Likewise.
19907 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19908 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19909 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19910 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19911 * tree-ssa.c (init_tree_ssa): Adjust.
19912 * tree-ssanames.c (set_range_info): Likewise.
19913 (get_ptr_info): Likewise.
19914 (duplicate_ssa_name_ptr_info): Likewise.
19915 (duplicate_ssa_name_range_info): Likewise.
19916 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19917 (unpack_ts_fixed_cst_value_fields): Likewise.
19918 * tree.c (build_fixed): Likewise.
19919 (build_real): Likewise.
19920 (build_string): Likewise.
19921 (decl_priority_info): Likewise.
19922 (decl_debug_expr_insert): Likewise.
19923 (decl_value_expr_insert): Likewise.
19924 (decl_debug_args_insert): Likewise.
19925 (type_hash_add): Likewise.
19926 (build_omp_clause): Likewise.
19927 * ubsan.c (decl_for_type_insert): Likewise.
19928 * varasm.c (get_unnamed_section): Likewise.
19929 (get_noswitch_section): Likewise.
19930 (get_section): Likewise.
19931 (get_block_for_section): Likewise.
19932 (create_block_symbol): Likewise.
19933 (build_constant_desc): Likewise.
19934 (create_constant_pool): Likewise.
19935 (force_const_mem): Likewise.
19936 (record_tm_clone_pair): Likewise.
19937 * varpool.c (varpool_create_empty_node): Likewise.
19938
19939 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19940
19941 * dwarf2out.c (tree_add_const_value_attribute): Call
19942 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19943 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19944 instead of ggc_internal_<x>alloc_stat.
19945 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19946 (ggc_realloc): Likewise.
19947 * ggc-none.c (ggc_internal_alloc): Likewise.
19948 (ggc_internal_cleared_alloc): Likewise.
19949 * ggc-page.c: Likewise.
19950 * ggc.h (ggc_internal_alloc_stat): Likewise.
19951 (ggc_internal_alloc): Remove macro.
19952 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19953 (ggc_internal_cleared_alloc): Remove macro.
19954 (GGC_RESIZEVEC): Adjust.
19955 (ggc_resizevar): Remove macro.
19956 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19957 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19958 (ggc_internal_vec_cleared_alloc): Remove macro.
19959 (ggc_alloc_atomic_stat): Drop _stat suffix.
19960 (ggc_alloc_atomic): Remove macro.
19961 (ggc_alloc_cleared_atomic): Remove macro.
19962 (ggc_alloc_string_stat): Drop _stat suffix.
19963 (ggc_alloc_string): Remove macro.
19964 (ggc_alloc_rtx_def_stat): Adjust.
19965 (ggc_alloc_tree_node_stat): Likewise.
19966 (ggc_alloc_cleared_tree_node_stat): Likewise.
19967 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19968 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19969 * gimple.c (gimple_build_omp_for): Likewise.
19970 (gimple_copy): Likewise.
19971 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19972 * toplev.c (realloc_for_line_map): Adjust.
19973 * tree-data-ref.h (lambda_vector_new): Likewise.
19974 * tree-phinodes.c (allocate_phi_node): Likewise.
19975 * tree.c (grow_tree_vec_stat): Likewise.
19976 * vec.h (va_gc::reserve): Adjust.
19977
19978 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19979
19980 * config/microblaze/microblaze.c (break_handler): New Declaration.
19981 (microblaze_break_function_p,microblaze_is_break_handler): New.
19982 (compute_frame_size): Use microblaze_break_function_p.
19983 Add the test of break_handler.
19984 (microblaze_function_prologue) : Add the test of variable
19985 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19986 (microblaze_function_epilogue) : Add the test of break_handler.
19987 (microblaze_globalize_label) : Add the test of break_handler.
19988 Check the name by BREAK_HANDLER_NAME.
19989
19990 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19991
19992 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19993 microblaze_is_break_handler test.
19994 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19995 Use SYMBOL_REF_DECL.
19996
19997 * config/microblaze/microblaze-protos.h
19998 (microblaze_break_function_p,microblaze_is_break_handler):
19999 New Declaration.
20000
20001 * doc/extend.texi (MicroBlaze break_handler Functions): Document
20002 new MicroBlaze break_handler functions.
20003
20004 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
20005
20006 * doc/extend.texi (Size of an asm): Move node text according
20007 to its @menu entry position.
20008
20009 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
20010
20011 PR tree-optimization/61140
20012 PR tree-optimization/61150
20013 PR tree-optimization/61197
20014 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
20015
20016 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
20017
20018 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
20019
20020 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
20021
20022 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
20023 __SIZEOF_INT128__ is defined.
20024
20025 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
20026
20027 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
20028 (rs6000_delegitimize_address): Use it.
20029
20030 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
20031
20032 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
20033 inplace argument. Store the new address in the original MEM when true.
20034 * emit-rtl.c (change_address_1): Likewise.
20035 (adjust_address_1, adjust_automodify_address_1, offset_address):
20036 Update accordingly.
20037 * rtl.h (plus_constant): Add an inplace argument.
20038 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
20039 when true. Avoid generating (plus X (const_int 0)).
20040 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
20041 in-place. Pass true to plus_constant.
20042 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
20043
20044 2014-05-16 Dehao Chen <dehao@google.com>
20045
20046 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
20047
20048 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20049
20050 PR target/54089
20051 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
20052 patterns.
20053 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
20054
20055 2014-05-16 Dehao Chen <dehao@google.com>
20056
20057 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
20058 optimize_function_for_size_p.
20059 * regs.h (REG_FREQ_FROM_BB): Likewise.
20060
20061 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20062
20063 PR target/51244
20064 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
20065 negt_reg_operand cases.
20066 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
20067 predicate.
20068 * config/sh/predicates.md (cbranch_treg_value): Simplify.
20069
20070 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
20071
20072 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
20073 target variants.
20074
20075 2014-05-16 David Malcolm <dmalcolm@redhat.com>
20076
20077 Revert:
20078 2014-04-29 David Malcolm <dmalcolm@redhat.com>
20079
20080 * tree-cfg.c (dump_function_to_file): Dump the return type of
20081 functions, in a line to itself before the function body, mimicking
20082 the layout of a C function.
20083
20084 2014-05-16 Dehao Chen <dehao@google.com>
20085
20086 * cfghooks.c (make_forwarder_block): Use direct computation to
20087 get fall-through edge's count and frequency.
20088
20089 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
20090
20091 * config/arc/arc.c (arc_init): Fix typo in error message.
20092 * config/i386/i386.c (ix86_expand_builtin): Likewise.
20093 (split_stack_prologue_scratch_regno): Likewise.
20094 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
20095 word from error message.
20096
20097 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
20098
20099 * ira-costs.c: Fix typo in comment.
20100
20101 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
20102
20103 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20104
20105 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
20106
20107 * varpool.c (dump_varpool_node): Dump write-only flag.
20108 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20109 write-only flag.
20110 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20111 write-only variables.
20112 * ipa.c (process_references): New function.
20113 (set_readonly_bit): New function.
20114 (set_writeonly_bit): New function.
20115 (clear_addressable_bit): New function.
20116 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20117 fix handling of aliases.
20118 * cgraph.h (struct varpool_node): Add writeonly flag.
20119
20120 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
20121
20122 PR rtl-optimization/60969
20123 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20124 Calculate costs for this case.
20125
20126 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
20127
20128 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20129 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20130
20131 2014-05-16 Richard Biener <rguenther@suse.de>
20132
20133 PR tree-optimization/61194
20134 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20135 bool patterns ending in a COND_EXPR.
20136
20137 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20138
20139 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20140
20141 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20142
20143 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20144 where we were unable to cost an RTX.
20145
20146 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20147
20148 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20149 HIGH, LO_SUM.
20150
20151 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20152 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20153
20154 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
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): Cost FMA,
20160 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20161
20162 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20163 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20164
20165 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20166 operators.
20167
20168 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20169 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20170
20171 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20172 DIV/MOD.
20173
20174 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20175 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20176
20177 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20178 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20179
20180 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20181 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20182
20183 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20184 rotates and shifts.
20185
20186 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20187 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20188
20189 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20190 ZERO_EXTEND and SIGN_EXTEND better.
20191
20192 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20193 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20194
20195 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20196 logical operations.
20197
20198 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20199 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20200
20201 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20202 costs when costing loads and stores to memory.
20203
20204 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20205 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20206
20207 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20208 for SET RTX.
20209
20210 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20211
20212 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20213
20214 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20215 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20216
20217 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20218 to...
20219 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20220 well formed.
20221 (aarch64_rtx_mult_cost): New.
20222 (aarch64_rtx_costs): Use it, refactor as appropriate.
20223
20224 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20225 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20226
20227 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20228 emit instructions, return number of instructions which would
20229 be emitted.
20230 (aarch64_add_constant): Update call to aarch64_build_constant.
20231 (aarch64_output_mi_thunk): Likewise.
20232 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20233 a CONST_DOUBLE.
20234
20235 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20236
20237 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20238 (TARGET_RTX_COSTS): Call it.
20239
20240 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20241
20242 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20243 (cortexa57_vector_cost): Likewise.
20244 (cortexa57_tunings): Use them.
20245
20246 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20247
20248 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20249 (cpu_addrcost_table): Use it.
20250 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20251 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20252 move it.
20253
20254 2014-05-16 Richard Biener <rguenther@suse.de>
20255
20256 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20257 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20258 (visit_phi): Ignore edges marked as not executable.
20259 (class cond_dom_walker): New.
20260 (cond_dom_walker::before_dom_children): Value-number
20261 control statements and mark successor edges as not
20262 executable if possible.
20263 (run_scc_vn): First walk all control statements in
20264 dominator order, marking edges as not executable.
20265 * tree-inline.c (copy_edges_for_bb): Be not confused
20266 about random edge flags.
20267
20268 2014-05-16 Richard Biener <rguenther@suse.de>
20269
20270 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20271
20272 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20273
20274 PR target/61193
20275 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20276 (__TM_simple_begin): Use it.
20277 (__TM_begin): Likewise.
20278
20279 2014-05-15 Martin Jambor <mjambor@suse.cz>
20280
20281 PR ipa/61085
20282 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20283 type_preserved flag when the indirect edge is polymorphic.
20284
20285 2014-05-15 Martin Jambor <mjambor@suse.cz>
20286
20287 PR tree-optimization/61090
20288 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20289 build_ref_for_model.
20290
20291 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20292
20293 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20294 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20295
20296 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20297
20298 PR tree-optimization/61158
20299 * fold-const.c (fold_binary_loc): If X is zero-extended and
20300 shiftc >= prec, make sure zerobits is all ones instead of
20301 invoking undefined behavior.
20302
20303 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20304
20305 * regcprop.h: New file.
20306 * regcprop.c (skip_debug_insn_p): New decl.
20307 (replace_oldest_value_reg): Check skip_debug_insn_p.
20308 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20309 * shrink-wrap.c: Include regcprop.h.
20310 (prepare_shrink_wrap): Call
20311 copyprop_hardreg_forward_bb_without_debug_insn.
20312
20313 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20314
20315 * shrink-wrap.h: Update comment.
20316 * shrink-wrap.c: Update comment.
20317 (next_block_for_reg): Rename to live_edge_for_reg.
20318 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20319 (move_insn_for_shrink_wrap): Split live_edge.
20320 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20321
20322 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20323
20324 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20325 Delete.
20326 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20327 * config/sparc/sparc.md (fptype_ut699): New attribute.
20328 (in_branch_delay): Return false if -mfix-ut699 is specified and
20329 fptype_ut699 is set to single.
20330 (truncdfsf2): Add fptype_ut699 attribute.
20331 (fix_truncdfsi2): Likewise.
20332 (floatsisf2): Change fptype attribute.
20333 (fix_truncsfsi2): Likewise.
20334 (negtf2_notv9): Delete.
20335 (negtf2_v9): Likewise.
20336 (negtf2_hq): New instruction.
20337 (negtf2): New instruction and splitter.
20338 (negdf2_notv9): Rewrite.
20339 (abstf2_notv9): Delete.
20340 (abstf2_hq_v9): Likewise.
20341 (abstf2_v9): Likewise.
20342 (abstf2_hq): New instruction.
20343 (abstf2): New instruction and splitter.
20344 (absdf2_notv9): Rewrite.
20345
20346 2014-05-14 Cary Coutant <ccoutant@google.com>
20347
20348 PR debug/61013
20349 * opts.c (common_handle_option): Don't special-case "-g".
20350 (set_debug_level): Default to at least level 2 with "-g".
20351
20352 2014-05-14 DJ Delorie <dj@redhat.com>
20353
20354 * config/msp430/msp430.c (msp430_builtin): Add
20355 MSP430_BUILTIN_DELAY_CYCLES.
20356 (msp430_init_builtins): Register void __delay_cycles(long long).
20357 (msp430_builtin_decl): Add it.
20358 (cg_magic_constant): New.
20359 (msp430_expand_delay_cycles): New.
20360 (msp430_expand_builtin): Call it.
20361 (msp430_print_operand_raw): Change integer printing from "int" to
20362 HOST_WIDE_INT.
20363 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20364 (delay_cycles_start): New.
20365 (delay_cycles_end): New.
20366 (delay_cycles_32): New.
20367 (delay_cycles_32x): New.
20368 (delay_cycles_16): New.
20369 (delay_cycles_16x): New.
20370 (delay_cycles_2): New.
20371 (delay_cycles_1): New.
20372 * doc/extend.texi: Document __delay_cycles().
20373
20374 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20375
20376 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20377 length attribute computation.
20378
20379 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20380
20381 PR debug/61188
20382 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20383
20384 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20385
20386 PR target/61084
20387 * config/sparc/sparc.md: Fix types of low and high in DI constant
20388 splitter. Use gen_int_mode in some other splitters.
20389
20390 2014-05-14 Martin Jambor <mjambor@suse.cz>
20391
20392 PR ipa/60897
20393 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20394
20395 2014-05-14 James Norris <jnorris@codesourcery.com>
20396
20397 * omp-low.c (expand_parallel_call): Remove shadow variable.
20398 (expand_omp_taskreg): Likewise.
20399
20400 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20401
20402 * common/config/i386/i386-common.c
20403 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20404 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20405 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20406 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20407 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20408 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20409 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20410 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20411 xsavecintrin.h, xsavesintrin.h.
20412 (x86_64-*-*): Ditto.
20413 * config/i386/clflushoptintrin.h: New.
20414 * config/i386/xsavecintrin.h: Ditto.
20415 * config/i386/xsavesintrin.h: Ditto.
20416 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20417 (bit_XSAVES): Ditto.
20418 (bit_XSAVES): Ditto.
20419 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20420 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20421 -mno-clflushopt.
20422 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20423 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20424 OPTION_MASK_ISA_XSAVES.
20425 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20426 -mxsavec, -mxsaves.
20427 (PTA_CLFLUSHOPT) Define.
20428 (PTA_XSAVEC): Ditto.
20429 (PTA_XSAVES): Ditto.
20430 (ix86_option_override_internal): Handle new options.
20431 (ix86_valid_target_attribute_inner_p): Ditto.
20432 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20433 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20434 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20435 (bdesc_special_args): Add __builtin_ia32_xsaves,
20436 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20437 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20438 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20439 (ix86_expand_builtin): Handle new builtins.
20440 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20441 (TARGET_CLFLUSHOPT_P): Ditto.
20442 (TARGET_XSAVEC): Ditto.
20443 (TARGET_XSAVEC_P): Ditto.
20444 (TARGET_XSAVES): Ditto.
20445 (TARGET_XSAVES_P): Ditto.
20446 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20447 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20448 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20449 (ANY_XRSTOR): New.
20450 (ANY_XRSTOR64): Ditto.
20451 (xrstor): Ditto.
20452 (xrstor): Change into <xrstor>.
20453 (xrstor_rex64): Change into <xrstor>_rex64.
20454 (xrstor64): Change into <xrstor>64
20455 (clflushopt): New.
20456 * config/i386/i386.opt (mclflushopt): New.
20457 (mxsavec): Ditto.
20458 (mxsaves): Ditto.
20459 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20460 xsavecintrin.h.
20461 * doc/invoke.texi: Document new options.
20462
20463 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20464
20465 PR rtl-optimization/60866
20466 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20467 Default it to -1. Pass it down to init_simplejump_data.
20468 (init_simplejump_data): New parameter old_seqno. Pass it down
20469 to get_seqno_for_a_jump.
20470 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20471 initializing new jump seqno as a last resort. Add comment.
20472 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20473 jump and pass it down to sel_init_new_insn.
20474 (sel_redirect_edge_and_branch_force): Likewise.
20475
20476 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20477
20478 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20479 shifted values to avoid build warning.
20480
20481 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20482
20483 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20484 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20485 (cfg_layout_merge_blocks): Likewise.
20486 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20487
20488 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20489
20490 PR rtl-optimization/60901
20491 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20492 bb predecessor belongs to the same scheduling region. Adjust comment.
20493
20494 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20495
20496 * doc/sourcebuild.texi: (dfp_hw): Document.
20497 (p8vector_hw): Likewise.
20498 (powerpc_eabi_ok): Likewise.
20499 (powerpc_elfv2): Likewise.
20500 (powerpc_htm_ok): Likewise.
20501 (ppc_recip_hw): Likewise.
20502 (vsx_hw): Likewise.
20503
20504 2014-05-13 Cary Coutant <ccoutant@google.com>
20505
20506 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20507
20508 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20509
20510 * gengtype-parse.c (require3): Eliminate in favor of...
20511 (require4): New.
20512 (require_template_declaration): Update to support optional single *
20513 on a type.
20514
20515 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20516 (create_user_defined_type): Handle a single level of explicit
20517 pointerness within template arguments.
20518 (struct write_types_data): Add field "kind".
20519 (filter_type_name): Handle "*" character.
20520 (write_user_func_for_structure_ptr): Require a write_types_data
20521 rather than just a prefix string, so that we can look up the kind
20522 of the wtd and use it as an index into wrote_user_func_for_ptr,
20523 ensuring that such functions are written at most once. Support
20524 subclasses by invoking the marking function of the ultimate base class.
20525 (write_user_func_for_structure_body): Require a write_types_data
20526 rather than just a prefix string, so that we can pass this to
20527 write_user_func_for_structure_ptr.
20528 (write_func_for_structure): Likewise.
20529 (ggc_wtd): Add initializer of new "kind" field.
20530 (pch_wtd): Likewise.
20531
20532 * gengtype.h (enum write_types_kinds): New.
20533 (struct type): Add field wrote_user_func_for_ptr to the "s"
20534 union member.
20535
20536 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20537
20538 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20539 instead of const_binop.
20540 (fold_binary_loc): Likewise.
20541
20542 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20543
20544 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20545 calculation to match get_ref_base_and_extent.
20546
20547 2014-05-13 Catherine Moore <clm@codesourcery.com>
20548 Sandra Loosemore <sandra@codesourcery.com>
20549
20550 * configure.ac: Fix assembly for explicit JALR relocation check.
20551 * configure: Regenerate.
20552
20553 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20554
20555 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20556 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20557 Remove associated type declarations and initialisations.
20558 (arm_expand_neon_builtin): Likewise.
20559 (neon_emit_pair_result_insn): Delete.
20560 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20561 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20562 (neon_vzip<mode>): Likewise.
20563 (neon_vuzp<mode>): Likewise.
20564
20565 2014-05-13 Richard Biener <rguenther@suse.de>
20566
20567 PR ipa/60973
20568 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20569 it needs revisiting whether the call still may be tail-called.
20570
20571 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20572
20573 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20574 * rtl.h (block_symbol): Reduce number of fields to 2.
20575 (rtx_def): Add u2.symbol_ref_flags.
20576 (SYMBOL_REF_FLAGS): Use it.
20577 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20578 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20579 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20580 Lower index of SYMBOL_REF_DATA.
20581 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20582 Print SYMBOL_REF_FLAGS at the same time.
20583 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20584
20585 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20586
20587 * rtl.def (VAR_LOCATION): Remove "i" field.
20588 * rtl.h (rtx_def): Add u2.var_location_status.
20589 (PAT_VAR_LOCATION_STATUS): Use it.
20590 (gen_rtx_VAR_LOCATION): Declare.
20591 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20592 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20593 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20594
20595 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20596
20597 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20598 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20599
20600 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20601
20602 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20603 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20604 * rtl.h (rtx_def): Add insn_uid to u2 field.
20605 (RTX_FLAG_CHECK8): Delete in favor of...
20606 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20607 (INSN_DELETED_P): Update accordingly.
20608 (INSN_UID): Use u2.insn_uid.
20609 (INSN_CHAIN_CODE_P): Define.
20610 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20611 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20612 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20613 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20614 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20615 indices accordingly.
20616 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20617 Update indices for insn-chain rtxes.
20618 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20619 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20620 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20621 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20622 * combine.c (try_combine): Likewise.
20623 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20624
20625 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20626
20627 * rtl.def (REG): Remove middle field.
20628 * rtl.h (rtx_def): Add orignal_regno to u2.
20629 (ORIGINAL_REGNO): Use it instead of field 1.
20630 (REG_ATTRS): Lower field index accordingly.
20631 * gengtype.c (adjust_field_rtx_def): Remove handling of
20632 ORIGINAL_REGNO. Move REG_ATTRS index down.
20633 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20634 code that prints the REGNO.
20635
20636 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20637
20638 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20639 GENERATOR_FILE.
20640
20641 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20642
20643 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20644
20645 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20646
20647 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20648 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20649
20650 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20651
20652 * config/aarch64/aarch64-protos.h
20653 (aarch64_hard_regno_caller_save_mode): New prototype.
20654 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20655 New function.
20656 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20657
20658 2014-05-13 Christian Bruel <christian.bruel@st.com>
20659
20660 * target.def (mode_switching): New hook vector.
20661 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20662 (mode_exit, modepriority_to_mode): Likewise.
20663 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20664 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20665 * target.h: Include tm.h and hard-reg-set.h.
20666 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20667 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20668 * doc/tm.texi Regenerate.
20669 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20670 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20671 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20672 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20673 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20674 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20675 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20676 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20677 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20678 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20679 (ix86_emit_mode_set): Hookify.
20680 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20681 Delete.
20682 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20683 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20684 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20685 (epiphany_mode_priority_to_mode): Remove declaration.
20686 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20687 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20688 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20689 Likewise.
20690 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20691 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20692 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20693
20694 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20695
20696 PR target/61060
20697 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20698 is const0_rtx, return immediately. Don't test count == 0 when
20699 it is always true.
20700
20701 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20702
20703 * Makefile.in: add shrink-wrap.o.
20704 * config/i386/i386.c: include "shrink-wrap.h"
20705 * function.c: Likewise.
20706 (requires_stack_frame_p, next_block_for_reg,
20707 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20708 dup_block_and_redirect): Move to shrink-wrap.c
20709 (thread_prologue_and_epilogue_insns): Extract three code segments
20710 as functions in shrink-wrap.c
20711 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20712 shrink-wrap.h
20713 * shrink-wrap.c: New file.
20714 * shrink-wrap.h: New file.
20715
20716 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20717
20718 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20719 reference to Solaris.
20720
20721 2014-05-12 Mike Stump <mikestump@comcast.net>
20722
20723 PR other/31778
20724 * genattrtab.c (filename): Add.
20725 (convert_set_attr_alternative): Improve error message.
20726 (check_defs): Restore read_md_filename for error messages.
20727 (gen_insn): Save filename.
20728
20729 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20730
20731 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20732 -fno-local-ivars and -fivar-visibility.
20733 * c-family/c.opt: Make -Wshadow also implicitly enable
20734 -Wshadow-ivar.
20735
20736 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20737
20738 * doc/tm.texi: Remove reference to deleted macro.
20739 * doc/tm.texi.in: Likewise.
20740
20741 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20742
20743 PR target/60991
20744 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20745 to restore Y.
20746
20747 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20748
20749 PR libgcc/61152
20750 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20751 * config/arm/aout.h (License): Same.
20752 * config/arm/bpabi.h (License): Same.
20753 * config/arm/elf.h (License): Same.
20754 * config/arm/linux-elf.h (License): Same.
20755 * config/arm/linux-gas.h (License): Same.
20756 * config/arm/netbsd-elf.h (License): Same.
20757 * config/arm/uclinux-eabi.h (License): Same.
20758 * config/arm/uclinux-elf.h (License): Same.
20759 * config/arm/vxworks.h (License): Same.
20760
20761 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20762
20763 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20764 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20765 number of operands to 3.
20766 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20767 * tree-nested.c (convert_nonlocal_omp_clauses,
20768 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20769 * gimplify.c (gimplify_scan_omp_clauses): Handle
20770 OMP_CLAUSE_LINEAR_STMT.
20771 * omp-low.c (lower_rec_input_clauses): Fix typo.
20772 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20773 cast between Fortran boolean_type_node and C _Bool if
20774 needed.
20775
20776 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20777
20778 PR tree-optimization/61136
20779 * wide-int.h (multiple_of_p): Define a version that doesn't return
20780 the quotient.
20781 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20782 integer_zerop/const_binop pair.
20783 (multiple_of_p): Likewise, converting both operands to widest_int
20784 precision.
20785
20786 2014-05-09 Teresa Johnson <tejohnson@google.com>
20787
20788 * cgraphunit.c (analyze_functions): Use correct dump file.
20789
20790 2014-05-09 Florian Weimer <fweimer@redhat.com>
20791
20792 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20793 expand_used_vars.
20794 (stack_protect_return_slot_p): New function.
20795 (expand_used_vars): Call stack_protect_decl_p and
20796 stack_protect_return_slot_p for -fstack-protector-strong.
20797
20798 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20799 Andrew Haley <aph@redhat.com>
20800 Richard Sandiford <rdsandiford@googlemail.com>
20801
20802 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20803 pages.
20804
20805 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20806
20807 PR middle-end/61111
20808 * fold-const.c (fold_binary_loc): Changed width of mask.
20809
20810 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20811
20812 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20813 unsigned int initializers for regno_in, regno_out.
20814
20815 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20816
20817 PR target/61055
20818 * config/avr/avr.md (cc): Add new attribute set_vzn.
20819 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20820 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20821 with INC, DEC or NEG.
20822 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20823 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20824 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20825
20826 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20827
20828 Revert:
20829 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20830
20831 * wide-int.cc (UTItype): Define.
20832 (UDWtype): Define for appropriate W_TYPE_SIZE.
20833
20834 2014-05-09 Richard Biener <rguenther@suse.de>
20835
20836 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20837 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20838 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20839 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20840 ssa_propagate): Adjust.
20841
20842 2014-05-08 Jeff Law <law@redhat.com>
20843
20844 PR tree-optimization/61009
20845 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20846 tri-state rather than a boolean. When a block is too big to
20847 thread through, inform caller via negative return value.
20848 (thread_across_edge): If a block was too big for normal threading,
20849 then it's too big for a joiner too, so remove temporary equivalences
20850 and return immediately.
20851
20852 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20853 Matthias Klose <doko@ubuntu.com>
20854
20855 PR driver/61106
20856 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20857
20858 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20859
20860 PR target/59952
20861 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20862
20863 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20864
20865 PR target/61092
20866 * config/alpha/alpha.c: Include gimple-iterator.h.
20867 (alpha_gimple_fold_builtin): New function. Move
20868 ALPHA_BUILTIN_UMULH folding from ...
20869 (alpha_fold_builtin): ... here.
20870 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20871
20872 2014-05-08 Wei Mi <wmi@google.com>
20873
20874 PR target/58066
20875 * config/i386/i386.c (ix86_compute_frame_layout): Update
20876 preferred_stack_boundary for call, expanded from tls descriptor.
20877 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20878 to depend on SP register.
20879 (*tls_local_dynamic_base_32_gnu): Ditto.
20880 (*tls_local_dynamic_32_once): Ditto.
20881 (tls_global_dynamic_64_<mode>): Set
20882 ix86_tls_descriptor_calls_expanded_in_cfun.
20883 (tls_local_dynamic_base_64_<mode>): Ditto.
20884 (tls_global_dynamic_32): Set
20885 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20886 to depend on SP register.
20887 (tls_local_dynamic_base_32): Ditto.
20888
20889 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20890
20891 * config/arm/arm_neon.h: Update comment.
20892 * config/arm/neon-docgen.ml: Delete.
20893 * config/arm/neon-gen.ml: Delete.
20894 * doc/arm-neon-intrinsics.texi: Update comment.
20895
20896 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20897
20898 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20899 and v4sf versions.
20900 (vand, vorr, veor, vorn, vbic): Remove.
20901 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20902 iterator.
20903 (neon_vsub_unspec): Likewise.
20904 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20905
20906 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20907
20908 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20909 (vadd_s16): Likewise.
20910 (vadd_s32): Likewise.
20911 (vadd_f32): Likewise.
20912 (vadd_u8): Likewise.
20913 (vadd_u16): Likewise.
20914 (vadd_u32): Likewise.
20915 (vadd_s64): Likewise.
20916 (vadd_u64): Likewise.
20917 (vaddq_s8): Likewise.
20918 (vaddq_s16): Likewise.
20919 (vaddq_s32): Likewise.
20920 (vaddq_s64): Likewise.
20921 (vaddq_f32): Likewise.
20922 (vaddq_u8): Likewise.
20923 (vaddq_u16): Likewise.
20924 (vaddq_u32): Likewise.
20925 (vaddq_u64): Likewise.
20926 (vmul_s8): Likewise.
20927 (vmul_s16): Likewise.
20928 (vmul_s32): Likewise.
20929 (vmul_f32): Likewise.
20930 (vmul_u8): Likewise.
20931 (vmul_u16): Likewise.
20932 (vmul_u32): Likewise.
20933 (vmul_p8): Likewise.
20934 (vmulq_s8): Likewise.
20935 (vmulq_s16): Likewise.
20936 (vmulq_s32): Likewise.
20937 (vmulq_f32): Likewise.
20938 (vmulq_u8): Likewise.
20939 (vmulq_u16): Likewise.
20940 (vmulq_u32): Likewise.
20941 (vsub_s8): Likewise.
20942 (vsub_s16): Likewise.
20943 (vsub_s32): Likewise.
20944 (vsub_f32): Likewise.
20945 (vsub_u8): Likewise.
20946 (vsub_u16): Likewise.
20947 (vsub_u32): Likewise.
20948 (vsub_s64): Likewise.
20949 (vsub_u64): Likewise.
20950 (vsubq_s8): Likewise.
20951 (vsubq_s16): Likewise.
20952 (vsubq_s32): Likewise.
20953 (vsubq_s64): Likewise.
20954 (vsubq_f32): Likewise.
20955 (vsubq_u8): Likewise.
20956 (vsubq_u16): Likewise.
20957 (vsubq_u32): Likewise.
20958 (vsubq_u64): Likewise.
20959 (vand_s8): Likewise.
20960 (vand_s16): Likewise.
20961 (vand_s32): Likewise.
20962 (vand_u8): Likewise.
20963 (vand_u16): Likewise.
20964 (vand_u32): Likewise.
20965 (vand_s64): Likewise.
20966 (vand_u64): Likewise.
20967 (vandq_s8): Likewise.
20968 (vandq_s16): Likewise.
20969 (vandq_s32): Likewise.
20970 (vandq_s64): Likewise.
20971 (vandq_u8): Likewise.
20972 (vandq_u16): Likewise.
20973 (vandq_u32): Likewise.
20974 (vandq_u64): Likewise.
20975 (vorr_s8): Likewise.
20976 (vorr_s16): Likewise.
20977 (vorr_s32): Likewise.
20978 (vorr_u8): Likewise.
20979 (vorr_u16): Likewise.
20980 (vorr_u32): Likewise.
20981 (vorr_s64): Likewise.
20982 (vorr_u64): Likewise.
20983 (vorrq_s8): Likewise.
20984 (vorrq_s16): Likewise.
20985 (vorrq_s32): Likewise.
20986 (vorrq_s64): Likewise.
20987 (vorrq_u8): Likewise.
20988 (vorrq_u16): Likewise.
20989 (vorrq_u32): Likewise.
20990 (vorrq_u64): Likewise.
20991 (veor_s8): Likewise.
20992 (veor_s16): Likewise.
20993 (veor_s32): Likewise.
20994 (veor_u8): Likewise.
20995 (veor_u16): Likewise.
20996 (veor_u32): Likewise.
20997 (veor_s64): Likewise.
20998 (veor_u64): Likewise.
20999 (veorq_s8): Likewise.
21000 (veorq_s16): Likewise.
21001 (veorq_s32): Likewise.
21002 (veorq_s64): Likewise.
21003 (veorq_u8): Likewise.
21004 (veorq_u16): Likewise.
21005 (veorq_u32): Likewise.
21006 (veorq_u64): Likewise.
21007 (vbic_s8): Likewise.
21008 (vbic_s16): Likewise.
21009 (vbic_s32): Likewise.
21010 (vbic_u8): Likewise.
21011 (vbic_u16): Likewise.
21012 (vbic_u32): Likewise.
21013 (vbic_s64): Likewise.
21014 (vbic_u64): Likewise.
21015 (vbicq_s8): Likewise.
21016 (vbicq_s16): Likewise.
21017 (vbicq_s32): Likewise.
21018 (vbicq_s64): Likewise.
21019 (vbicq_u8): Likewise.
21020 (vbicq_u16): Likewise.
21021 (vbicq_u32): Likewise.
21022 (vbicq_u64): Likewise.
21023 (vorn_s8): Likewise.
21024 (vorn_s16): Likewise.
21025 (vorn_s32): Likewise.
21026 (vorn_u8): Likewise.
21027 (vorn_u16): Likewise.
21028 (vorn_u32): Likewise.
21029 (vorn_s64): Likewise.
21030 (vorn_u64): Likewise.
21031 (vornq_s8): Likewise.
21032 (vornq_s16): Likewise.
21033 (vornq_s32): Likewise.
21034 (vornq_s64): Likewise.
21035 (vornq_u8): Likewise.
21036 (vornq_u16): Likewise.
21037 (vornq_u32): Likewise.
21038 (vornq_u64): Likewise.
21039
21040 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
21041
21042 * wide-int.cc (UTItype): Define.
21043 (UDWtype): Define for appropriate W_TYPE_SIZE.
21044
21045 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
21046
21047 PR tree-optimization/59100
21048 * tree-ssa-phiopt.c: Include tree-inline.h.
21049 (neutral_element_p, absorbing_element_p): New functions.
21050 (value_replacement): Handle conditional binary operations with a
21051 neutral or absorbing element.
21052
21053 2014-05-08 Richard Biener <rguenther@suse.de>
21054
21055 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
21056 folding the expression.
21057 (valueize_expr): Remove.
21058 (visit_reference_op_load): Do not valueize the result of
21059 vn_get_expr_for.
21060 (simplify_binary_expression): Likewise.
21061 (simplify_unary_expression): Likewise.
21062
21063 2014-05-08 Richard Biener <rguenther@suse.de>
21064
21065 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
21066 looking at TYPE_ARG_TYPES.
21067
21068 2014-05-08 Richard Biener <rguenther@suse.de>
21069
21070 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
21071 pointer propagation special-case.
21072
21073 2014-05-08 Bin Cheng <bin.cheng@arm.com>
21074
21075 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
21076 core part of address expressions.
21077
21078 2014-05-08 Alan Modra <amodra@gmail.com>
21079
21080 PR target/60737
21081 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
21082 loads and stores when -mno-strict-align at any alignment.
21083 (expand_block_clear): Similarly. Also correct calculation of
21084 instruction count.
21085
21086 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
21087
21088 PR middle-end/39246
21089 * tree-complex.c (expand_complex_move): Keep line info when expanding
21090 complex move.
21091 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
21092 of complex expression. Use new argument to display correct location
21093 for values coming from phi statement.
21094 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
21095 (warn_uninitialized_phi): Pass location of phi argument to
21096 warn_uninit.
21097 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
21098 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
21099
21100 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
21101
21102 * config/rs6000/predicates.md (indexed_address_mem): New.
21103 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21104 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21105 fpstore_ux, fpstore_u.
21106 (sign_extend, indexed, update): New.
21107 (cell_micro): Adjust.
21108 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21109 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21110 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21111 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21112 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21113 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21114 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21115 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21116 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21117 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21118 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21119 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21120 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21121 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21122 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21123
21124 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21125 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21126 *vsx_extract_<mode>_store): Adjust.
21127 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21128 is_cracked_insn, insn_must_be_first_in_group,
21129 insn_must_be_last_in_group): Adjust.
21130
21131 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21132 Adjust.
21133 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21134 ppc440-fpstore): Adjust.
21135 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21136 ppc476-fpstore): Adjust.
21137 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21138 ppc601-fpstore): Adjust.
21139 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21140 Adjust.
21141 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21142 Adjust.
21143 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21144 ppc7450-fpstore): Adjust.
21145 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21146 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21147 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21148 Adjust.
21149 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21150 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21151 cell-fpstore, cell-fpstore-update): Adjust.
21152 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21153 ppce300c3_store, ppce300c3_fpstore): Adjust.
21154 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21155 e500mc_fpstore): Adjust.
21156 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21157 e500mc64_store, e500mc64_fpstore): Adjust.
21158 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21159 e5500_fpstore): Adjust.
21160 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21161 e6500_fpstore): Adjust.
21162 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21163 Adjust.
21164 * config/rs6000/power4.md (power4-load, power4-load-ext,
21165 power4-load-ext-update, power4-load-ext-update-indexed,
21166 power4-load-update-indexed, power4-load-update, power4-fpload,
21167 power4-fpload-update, power4-store, power4-store-update,
21168 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21169 Adjust.
21170 * config/rs6000/power5.md (power5-load, power5-load-ext,
21171 power5-load-ext-update, power5-load-ext-update-indexed,
21172 power5-load-update-indexed, power5-load-update, power5-fpload,
21173 power5-fpload-update, power5-store, power5-store-update,
21174 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21175 Adjust.
21176 * config/rs6000/power6.md (power6-load, power6-load-ext,
21177 power6-load-update, power6-load-update-indexed,
21178 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21179 power6-fpload-update, power6-store, power6-store-update,
21180 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21181 Adjust.
21182 * config/rs6000/power7.md (power7-load, power7-load-ext,
21183 power7-load-update, power7-load-update-indexed,
21184 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21185 power7-fpload-update, power7-store, power7-store-update,
21186 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21187 Adjust.
21188 * config/rs6000/power8.md (power8-load, power8-load-update,
21189 power8-load-ext, power8-load-ext-update, power8-fpload,
21190 power8-fpload-update, power8-store, power8-store-update-indexed,
21191 power8-fpstore, power8-fpstore-update): Adjust.
21192 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21193 Adjust.
21194 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21195 titan_lsu_store, titan_lsu_fpstore): Adjust.
21196 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21197
21198 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21199
21200 PR target/60884
21201 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21202 unrolled byte insns. Emit address increments after move insns.
21203
21204 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21205
21206 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21207 const_gimple, rather than a gimple.
21208 (gimple_call_builtin_p): Likewise, for the three variants.
21209
21210 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21211 (gimple_call_builtin_p): Likewise, for the three variants.
21212
21213 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21214
21215 PR tree-optimization/61095
21216 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21217
21218 2014-05-07 Richard Biener <rguenther@suse.de>
21219
21220 PR tree-optimization/61034
21221 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21222 (maybe_skip_until): Use translate to take into account
21223 lattices when trying to do disambiguations.
21224 (get_continuation_for_phi_1): Likewise.
21225 (get_continuation_for_phi): Adjust for added translate arguments.
21226 (walk_non_aliased_vuses): Likewise.
21227 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21228 (walk_non_aliased_vuses): Likewise.
21229 (call_may_clobber_ref_p_1): Declare.
21230 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21231 calls. Stop early if we are only supposed to disambiguate.
21232 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21233
21234 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21235
21236 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21237 Emit an error when the function has arguments.
21238
21239 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21240
21241 * cfgloop.h (unswitch_loops): Remove.
21242 * doc/passes.texi: Remove references to loop-unswitch.c
21243 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21244
21245 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21246
21247 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21248 check for loads group of length 3.
21249 (vect_permute_load_chain): New permutations for loads group of
21250 length 3.
21251 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21252 of vec_perm_shuffle for the new permutations.
21253
21254 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21255
21256 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21257 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21258 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21259 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21260 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21261 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21262 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21263 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21264
21265 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21266
21267 * loop-unswitch.c: Delete.
21268
21269 2014-05-07 Richard Biener <rguenther@suse.de>
21270
21271 * config.gcc: Always set need_64bit_hwint to yes.
21272
21273 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21274
21275 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21276 of using optimize_size.
21277
21278 2014-05-06 Mike Stump <mikestump@comcast.net>
21279
21280 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21281
21282 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21283
21284 * config/i386/sse.md (*mov<mode>_internal)
21285 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21286 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21287 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21288 (*<code><mode>3, *andnot<mode>3<mask_name>)
21289 (<mask_codefor><code><mode>3<mask_name>): Only consider
21290 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21291
21292 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21293
21294 Revert:
21295 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21296
21297 * lra-constraints.c (valid_address_p): Move earlier in file.
21298 Add a constraint argument to the address_info version.
21299 (satisfies_memory_constraint_p): New function.
21300 (satisfies_address_constraint_p): Likewise.
21301 (process_alt_operands, curr_insn_transform): Use them.
21302 (process_address): Pass the constraint to valid_address_p when
21303 checking address operands.
21304
21305 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21306
21307 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21308 to their respective blocks. Fix inadvertent use of "node".
21309
21310 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21311
21312 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21313 out from...
21314 (init_emit_once): ...here.
21315 * rtl.h (init_derived_machine_modes): Declare.
21316 * toplev.c (do_compile): Call it even if no_backend.
21317
21318 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21319 Mike Stump <mikestump@comcast.net>
21320 Richard Sandiford <rdsandiford@googlemail.com>
21321 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21322
21323 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21324 (rtx_equal_for_memref_p): Update comment.
21325 (adjust_offset_for_component_ref): Use wide-int interfaces.
21326 * builtins.c (get_object_alignment_2): Likewise.
21327 (c_readstr): Likewise.
21328 (target_char_cast): Add comment.
21329 (determine_block_size): Use wide-int interfaces.
21330 (expand_builtin_signbit): Likewise.
21331 (fold_builtin_int_roundingfn): Likewise.
21332 (fold_builtin_bitop): Likewise.
21333 (fold_builtin_bswap): Likewise.
21334 (fold_builtin_logarithm): Use signop.
21335 (fold_builtin_pow): Likewise.
21336 (fold_builtin_memory_op): Use wide-int interfaces.
21337 (fold_builtin_object_size): Likewise.
21338 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21339 nb_iterations_estimate.
21340 (record_niter_bound): Use wide-int interfaces.
21341 (get_estimated_loop_iterations_int): Likewise.
21342 (get_estimated_loop_iterations): Likewise.
21343 (get_max_loop_iterations): Likewise.
21344 * cfgloop.h: Include wide-int.h.
21345 (struct nb_iter_bound): Change bound to widest_int.
21346 (struct loop): Change nb_iterations_upper_bound and
21347 nb_iterations_estimate to widest_int.
21348 (record_niter_bound): Switch to use widest_int.
21349 (get_estimated_loop_iterations): Likewise.
21350 (get_max_loop_iterations): Likewise.
21351 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21352 update for wide-int.
21353 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21354 * combine.c (try_combine): Likewise.
21355 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21356 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21357 interfaces.
21358 (aarch64_float_const_representable_p): Likewise.
21359 * config/arc/arc.c: Include wide-int.h.
21360 (arc_can_use_doloop_p): Use wide-int interfaces.
21361 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21362 (vfp3_const_double_index): Likewise.
21363 * config/avr/avr.c (avr_out_round): Likewise.
21364 (avr_fold_builtin): Likewise.
21365 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21366 (bfin_can_use_doloop_p): Likewise.
21367 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21368 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21369 * config/i386/i386.c: Include wide-int.h.
21370 (ix86_data_alignment): Use wide-int interfaces.
21371 (ix86_local_alignment): Likewise.
21372 (ix86_emit_swsqrtsf): Update real_from_integer.
21373 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21374 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21375 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21376 (zero_constant): Likewise.
21377 (input_operand): Likewise.
21378 (splat_input_operand): Likewise.
21379 (non_logical_cint_operand): Change const_double to const_wide_int.
21380 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21381 (easy_altivec_constant): Remove comment.
21382 (paired_expand_vector_init): Use CONSTANT_P.
21383 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21384 (rs6000_emit_move): Update checks.
21385 (rs6000_aggregate_candidate): Use wide-int interfaces.
21386 (rs6000_expand_ternop_builtin): Likewise.
21387 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21388 (rs6000_assemble_integer): Likewise.
21389 (rs6000_hash_constant): Likewise.
21390 (output_toc): Likewise.
21391 (rs6000_rtx_costs): Likewise.
21392 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21393 * config/rs6000/rs6000-c.c: Include wide-int.h.
21394 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21395 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21396 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21397 Handle CONST_WIDE_INT.
21398 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21399 Use tree_fits_uhwi_p.
21400 * config/sparc/sparc.c: Include wide-int.h.
21401 (sparc_fold_builtin): Use wide-int interfaces.
21402 * config/vax/vax.c: Include wide-int.h.
21403 (vax_float_literal): Use real_from_integer.
21404 * coretypes.h (struct hwivec_def): New.
21405 (hwivec): New.
21406 (const_hwivec): New.
21407 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21408 (equiv_constant): Handle CONST_WIDE_INT.
21409 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21410 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21411 * dbxout.c (stabstr_U): Use wide-int interfaces.
21412 (dbxout_type): Update to use cst_fits_shwi_p.
21413 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21414 (TARGET_SUPPORTS_WIDE_INT): Add default.
21415 * dfp.c: Include wide-int.h.
21416 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21417 decimal_real_to_integer.
21418 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21419 decimal_real_to_integer.
21420 * doc/generic.texi (Constant expressions): Update for wide_int.
21421 * doc/rtl.texi (const_double): Likewise.
21422 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21423 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21424 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21425 (REAL_VALUE_FROM_INT): Remove.
21426 (TARGET_SUPPORTS_WIDE_INT): New.
21427 * doc/tm.texi: Regenerate.
21428 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21429 * double-int.h: Include wide-int.h.
21430 (struct wi::int_traits): New.
21431 * dwarf2out.c (get_full_len): New.
21432 (dw_val_equal_p): Add case dw_val_class_wide_int.
21433 (size_of_loc_descr): Likewise.
21434 (output_loc_operands): Likewise.
21435 (insert_double): Remove.
21436 (insert_wide_int): New.
21437 (add_AT_wide): New.
21438 (print_die): Add case dw_val_class_wide_int.
21439 (attr_checksum): Likewise.
21440 (attr_checksum_ordered): Likewise.
21441 (same_dw_val_p): Likewise.
21442 (size_of_die): Likewise.
21443 (value_format): Likewise.
21444 (output_die): Likewise.
21445 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21446 Use wide-int.
21447 (clz_loc_descriptor): Use wide-int interfaces.
21448 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21449 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21450 (round_up_to_align): Use wide-int interfaces.
21451 (field_byte_offset): Likewise.
21452 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21453 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21454 CONST_DOUBLE handling. Use wide-int interfaces.
21455 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21456 (gen_enumeration_type_die): Use add_AT_wide.
21457 (hash_loc_operands): Add case dw_val_class_wide_int.
21458 (compare_loc_operands): Likewise.
21459 * dwarf2out.h: Include wide-int.h.
21460 (wide_int_ptr): New.
21461 (enum dw_val_class): Add dw_val_class_wide_int.
21462 (struct dw_val_struct): Add val_wide.
21463 * emit-rtl.c (const_wide_int_htab): New.
21464 (const_wide_int_htab_hash): New.
21465 (const_wide_int_htab_eq): New.
21466 (lookup_const_wide_int): New.
21467 (const_double_htab_hash): Use wide-int interfaces.
21468 (const_double_htab_eq): Likewise.
21469 (rtx_to_double_int): Conditionally compile for wide-int.
21470 (immed_double_int_const): Rename to immed_wide_int_const and
21471 update for wide-int.
21472 (immed_double_const): Conditionally compile for wide-int.
21473 (init_emit_once): Use wide-int interfaces.
21474 * explow.c (plus_constant): Likewise.
21475 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21476 (lshift_value): Use wide-int interfaces.
21477 (expand_mult): Likewise.
21478 (choose_multiplier): Likewise.
21479 (expand_smod_pow2): Likewise.
21480 (make_tree): Likewise.
21481 * expr.c (convert_modes): Consolidate handling of constants.
21482 Use wide-int interfaces.
21483 (emit_group_load_1): Add note.
21484 (store_expr): Update comment.
21485 (get_inner_reference): Use wide-int interfaces.
21486 (expand_constructor): Update comment.
21487 (expand_expr_real_2): Use wide-int interfaces.
21488 (expand_expr_real_1): Likewise.
21489 (reduce_to_bit_field_precision): Likewise.
21490 (const_vector_from_tree): Likewise.
21491 * final.c: Include wide-int-print.h.
21492 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21493 * fixed-value.c: Include wide-int.h.
21494 (fixed_from_string): Use wide-int interfaces.
21495 (fixed_to_decimal): Likewise.
21496 (fixed_convert_from_real): Likewise.
21497 (real_convert_from_fixed): Likewise.
21498 * fold-const.h (mem_ref_offset): Return an offset_int.
21499 (div_if_zero_remainder): Remove code parameter.
21500 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21501 Use wide-int interfaces.
21502 (may_negate_without_overflow_p): Use wide-int interfaces.
21503 (negate_expr_p): Likewise.
21504 (fold_negate_expr): Likewise.
21505 (int_const_binop_1): Likewise.
21506 (const_binop): Likewise.
21507 (fold_convert_const_int_from_int): Likewise.
21508 (fold_convert_const_int_from_real): Likewise.
21509 (fold_convert_const_int_from_fixed): Likewise.
21510 (fold_convert_const_fixed_from_int): Likewise.
21511 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21512 (sign_bit_p): Use wide-int interfaces.
21513 (make_range_step): Likewise.
21514 (build_range_check): Likewise. Pass an integer of the correct type
21515 instead of using integer_one_node.
21516 (range_predecessor): Pass an integer of the correct type instead
21517 of using integer_one_node.
21518 (range_successor): Likewise.
21519 (merge_ranges): Likewise.
21520 (unextend): Use wide-int interfaces.
21521 (extract_muldiv_1): Likewise.
21522 (fold_div_compare): Likewise.
21523 (fold_single_bit_test): Likewise.
21524 (fold_sign_changed_comparison): Likewise.
21525 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21526 (fold_plusminus_mult_expr): Use wide-int interfaces.
21527 (native_encode_int): Likewise.
21528 (native_interpret_int): Likewise.
21529 (fold_unary_loc): Likewise.
21530 (pointer_may_wrap_p): Likewise.
21531 (size_low_cst): Likewise.
21532 (mask_with_tz): Likewise.
21533 (fold_binary_loc): Likewise.
21534 (fold_ternary_loc): Likewise.
21535 (multiple_of_p): Likewise.
21536 (tree_call_nonnegative_warnv_p): Update calls to
21537 tree_int_cst_min_precision and real_from_integer.
21538 (fold_negate_const): Use wide-int interfaces.
21539 (fold_abs_const): Likewise.
21540 (fold_relational_const): Use tree_int_cst_lt.
21541 (round_up_loc): Use wide-int interfaces.
21542 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21543 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21544 * gengtype.c: Remove include of double-int.h.
21545 (do_typedef): Use wide-int interfaces.
21546 (open_base_files): Add wide-int.h.
21547 (main): Add offset_int and widest_int typedefs.
21548 * gengtype-lex.l: Handle "^".
21549 (CXX_KEYWORD): Add "static".
21550 * gengtype-parse.c (require3): New.
21551 (require_template_declaration): Handle constant template arguments
21552 and nested templates.
21553 * gengtype-state.c: Don't include "double-int.h".
21554 * genpreds.c (write_one_predicate_function): Update comment.
21555 (write_tm_constrs_h): Add check for hval and lval use in
21556 CONST_WIDE_INT.
21557 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21558 (add_to_sequence): Likewise.
21559 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21560 and const_double_operand.
21561 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21562 interfaces.
21563 * gimple-fold.c (get_base_constructor): Likewise.
21564 (fold_array_ctor_reference): Likewise.
21565 (fold_nonarray_ctor_reference): Likewise.
21566 (fold_const_aggregate_ref_1): Likewise.
21567 (gimple_val_nonnegative_real_p): Likewise.
21568 (gimple_fold_indirect_ref): Likewise.
21569 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21570 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21571 (struct slsr_cand_d): Change index to be widest_int.
21572 (struct incr_info_d): Change incr to be widest_int.
21573 (alloc_cand_and_find_basis): Use wide-int interfaces.
21574 (slsr_process_phi): Likewise.
21575 (backtrace_base_for_ref): Likewise. Return a widest_int.
21576 (restructure_reference): Take a widest_int instead of a double_int.
21577 (slsr_process_ref): Use wide-int interfaces.
21578 (create_mul_ssa_cand): Likewise.
21579 (create_mul_imm_cand): Likewise.
21580 (create_add_ssa_cand): Likewise.
21581 (create_add_imm_cand): Take a widest_int instead of a double_int.
21582 (slsr_process_add): Use wide-int interfaces.
21583 (slsr_process_cast): Likewise.
21584 (slsr_process_copy): Likewise.
21585 (dump_candidate): Likewise.
21586 (dump_incr_vec): Likewise.
21587 (replace_ref): Likewise.
21588 (cand_increment): Likewise. Return a widest_int.
21589 (cand_abs_increment): Likewise.
21590 (replace_mult_candidate): Take a widest_int instead of a double_int.
21591 (replace_unconditional_candidate): Use wide-int interfaces.
21592 (incr_vec_index): Take a widest_int instead of a double_int.
21593 (create_add_on_incoming_edge): Likewise.
21594 (create_phi_basis): Use wide-int interfaces.
21595 (replace_conditional_candidate): Likewise.
21596 (record_increment): Take a widest_int instead of a double_int.
21597 (record_phi_increments): Use wide-int interfaces.
21598 (phi_incr_cost): Take a widest_int instead of a double_int.
21599 (lowest_cost_path): Likewise.
21600 (total_savings): Likewise.
21601 (analyze_increments): Use wide-int interfaces.
21602 (ncd_with_phi): Take a widest_int instead of a double_int.
21603 (ncd_of_cand_and_phis): Likewise.
21604 (nearest_common_dominator_for_cands): Likewise.
21605 (insert_initializers): Use wide-int interfaces.
21606 (all_phi_incrs_profitable): Likewise.
21607 (replace_one_candidate): Likewise.
21608 (replace_profitable_candidates): Likewise.
21609 * godump.c: Include wide-int-print.h.
21610 (go_output_typedef): Use wide-int interfaces.
21611 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21612 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21613 (build_loop_iteration_domains): Likewise.
21614 * hooks.h: Include wide-int.h rather than double-int.h.
21615 (hook_bool_dint_dint_uint_bool_true): Delete.
21616 (hook_bool_wint_wint_uint_bool_true): Declare.
21617 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21618 (hook_bool_wint_wint_uint_bool_true): New.
21619 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21620 interfaces.
21621 (ubsan_expand_si_overflow_mul_check): Likewise.
21622 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21623 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21624 (get_ancestor_addr_info): Likewise.
21625 (ipa_modify_call_arguments): Likewise.
21626 * loop-doloop.c (doloop_modify): Likewise.
21627 (doloop_optimize): Likewise.
21628 * loop-iv.c (iv_number_of_iterations): Likewise.
21629 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21630 (unroll_loop_constant_iterations): Likewise.
21631 (decide_unroll_runtime_iterations): Likewise.
21632 (unroll_loop_runtime_iterations): Likewise.
21633 (decide_peel_simple): Likewise.
21634 (decide_unroll_stupid): Likewise.
21635 * lto-streamer-in.c (streamer_read_wi): Add.
21636 (input_cfg): Use wide-int interfaces.
21637 (lto_input_tree_1): Likewise.
21638 * lto-streamer-out.c (streamer_write_wi): Add.
21639 (hash_tree): Use wide-int interfaces.
21640 (output_cfg): Likewise.
21641 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21642 (GTFILES): Add wide-int.h and signop.h.
21643 (TAGS): Look for .cc files too.
21644 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21645 * optabs.c (expand_subword_shift): Likewise.
21646 (expand_doubleword_shift): Likewise.
21647 (expand_absneg_bit): Likewise.
21648 (expand_copysign_absneg): Likewise.
21649 (expand_copysign_bit): Likewise.
21650 * postreload.c (reload_cse_simplify_set): Likewise.
21651 * predict.c (predict_iv_comparison): Likewise.
21652 * pretty-print.h: Include wide-int-print.h.
21653 (pp_wide_int) New.
21654 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21655 * print-tree.c: Include wide-int-print.h.
21656 (print_node_brief): Use wide-int interfaces.
21657 (print_node): Likewise.
21658 * read-rtl.c (validate_const_wide_int): New.
21659 (read_rtx_code): Add CONST_WIDE_INT case.
21660 * real.c: Include wide-int.h.
21661 (real_to_integer2): Delete.
21662 (real_to_integer): New function, returning a wide_int.
21663 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21664 (ten_to_ptwo): Update call to real_from_integer.
21665 (real_digit): Likewise.
21666 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21667 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21668 (REAL_VALUE_TO_INT): Delete.
21669 (real_to_integer): Declare a wide-int form.
21670 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21671 * recog.c (const_int_operand): Improve comment.
21672 (const_scalar_int_operand): New.
21673 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21674 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21675 (split_double): Likewise.
21676 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21677 (rtx_size): Likewise.
21678 (rtx_alloc_stat_v): New.
21679 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21680 (cwi_output_hex): New.
21681 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21682 (cwi_check_failed_bounds): New.
21683 * rtl.def (CONST_WIDE_INT): New.
21684 * rtl.h: Include <utility> and wide-int.h.
21685 (struct hwivec_def): New.
21686 (CWI_GET_NUM_ELEM): New.
21687 (CWI_PUT_NUM_ELEM): New.
21688 (struct rtx_def): Add num_elem and hwiv.
21689 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21690 (CASE_CONST_UNIQUE): Likewise.
21691 (CASE_CONST_ANY): Likewise.
21692 (CONST_SCALAR_INT_P): Likewise.
21693 (CONST_WIDE_INT_P): New.
21694 (CWI_ELT): New.
21695 (HWIVEC_CHECK): New.
21696 (cwi_check_failed_bounds): New.
21697 (CWI_ELT): New.
21698 (HWIVEC_CHECK): New.
21699 (CONST_WIDE_INT_VEC) New.
21700 (CONST_WIDE_INT_NUNITS) New.
21701 (CONST_WIDE_INT_ELT) New.
21702 (rtx_mode_t): New type.
21703 (wi::int_traits <rtx_mode_t>): New.
21704 (wi::shwi): New.
21705 (wi::min_value): New.
21706 (wi::max_value): New.
21707 (rtx_alloc_v) New.
21708 (const_wide_int_alloc): New.
21709 (immed_wide_int_const): New.
21710 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21711 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21712 * signop.h: New file.
21713 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21714 (simplify_const_unary_operation): Use wide-int interfaces.
21715 (simplify_binary_operation_1): Likewise.
21716 (simplify_const_binary_operation): Likewise.
21717 (simplify_const_relational_operation): Likewise.
21718 (simplify_immed_subreg): Likewise.
21719 * stmt.c (expand_case): Likewise.
21720 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21721 signop rather than a bool.
21722 * stor-layout.c (layout_type): Use wide-int interfaces.
21723 (initialize_sizetypes): Update calls to
21724 set_min_and_max_values_for_integral_type.
21725 (set_min_and_max_values_for_integral_type): Take a signop rather
21726 than a bool. Use wide-int interfaces.
21727 (fixup_signed_type): Update accordingly. Remove
21728 HOST_BITS_PER_DOUBLE_INT limit.
21729 (fixup_unsigned_type): Likewise.
21730 * system.h (STATIC_CONSTANT_P): New.
21731 (STATIC_ASSERT): New.
21732 * target.def (can_use_doloop_p): Take widest_ints rather than
21733 double_ints.
21734 * target.h: Include wide-int.h rather than double-int.h.
21735 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21736 than double_ints.
21737 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21738 rather than INT_CST_LT_UNSIGNED.
21739 (can_use_doloop_if_innermost): Take widest_ints rather than
21740 double_ints.
21741 * tree-affine.c: Include wide-int-print.h.
21742 (double_int_ext_for_comb): Delete.
21743 (wide_int_ext_for_comb): New.
21744 (aff_combination_zero): Use wide-int interfaces.
21745 (aff_combination_const): Take a widest_int instead of a double_int.
21746 (aff_combination_elt): Use wide-int interfaces.
21747 (aff_combination_scale): Take a widest_int instead of a double_int.
21748 (aff_combination_add_elt): Likewise.
21749 (aff_combination_add_cst): Likewise.
21750 (aff_combination_add): Use wide-int interfaces.
21751 (aff_combination_convert): Likewise.
21752 (tree_to_aff_combination): Likewise.
21753 (add_elt_to_tree): Take a widest_int instead of a double_int.
21754 (aff_combination_to_tree): Use wide-int interfaces.
21755 (aff_combination_remove_elt): Likewise.
21756 (aff_combination_add_product): Take a widest_int instead of
21757 a double_int.
21758 (aff_combination_mult): Use wide-int interfaces.
21759 (aff_combination_expand): Likewise.
21760 (double_int_constant_multiple_p): Delete.
21761 (wide_int_constant_multiple_p): New.
21762 (aff_combination_constant_multiple_p): Take a widest_int pointer
21763 instead of a double_int pointer.
21764 (print_aff): Use wide-int interfaces.
21765 (get_inner_reference_aff): Take a widest_int pointer
21766 instead of a double_int pointer.
21767 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21768 * tree-affine.h: Include wide-int.h.
21769 (struct aff_comb_elt): Change type of coef to widest_int.
21770 (struct affine_tree_combination): Change type of offset to widest_int.
21771 (double_int_ext_for_comb): Delete.
21772 (wide_int_ext_for_comb): New.
21773 (aff_combination_const): Use widest_int instead of double_int.
21774 (aff_combination_scale): Likewise.
21775 (aff_combination_add_elt): Likewise.
21776 (aff_combination_constant_multiple_p): Likewise.
21777 (get_inner_reference_aff): Likewise.
21778 (aff_comb_cannot_overlap_p): Likewise.
21779 (aff_combination_zero_p): Use wide-int interfaces.
21780 * tree.c: Include tree.h.
21781 (init_ttree): Use make_int_cst.
21782 (tree_code_size): Removed code for INTEGER_CST case.
21783 (tree_size): Add INTEGER_CST case.
21784 (make_node_stat): Update comment.
21785 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21786 (build_int_cst_type): Use wide-int interfaces.
21787 (double_int_to_tree): Likewise.
21788 (double_int_fits_to_tree_p): Delete.
21789 (force_fit_type_double): Delete.
21790 (force_fit_type): New.
21791 (int_cst_hash_hash): Use wide-int interfaces.
21792 (int_cst_hash_eq): Likewise.
21793 (build_int_cst_wide): Delete.
21794 (wide_int_to_tree): New.
21795 (cache_integer_cst): Use wide-int interfaces.
21796 (build_low_bits_mask): Likewise.
21797 (cst_and_fits_in_hwi): Likewise.
21798 (real_value_from_int_cst): Likewise.
21799 (make_int_cst_stat): New.
21800 (integer_zerop): Use wide_int interfaces.
21801 (integer_onep): Likewise.
21802 (integer_all_onesp): Likewise.
21803 (integer_pow2p): Likewise.
21804 (integer_nonzerop): Likewise.
21805 (tree_log2): Likewise.
21806 (tree_floor_log2): Likewise.
21807 (tree_ctz): Likewise.
21808 (int_size_in_bytes): Likewise.
21809 (mem_ref_offset): Return an offset_int rather than a double_int.
21810 (build_type_attribute_qual_variant): Use wide_int interfaces.
21811 (type_hash_eq): Likewise
21812 (tree_int_cst_equal): Likewise.
21813 (tree_int_cst_lt): Delete.
21814 (tree_int_cst_compare): Likewise.
21815 (tree_fits_shwi_p): Use wide_int interfaces.
21816 (tree_fits_uhwi_p): Likewise.
21817 (tree_int_cst_sign_bit): Likewise.
21818 (tree_int_cst_sgn): Likewise.
21819 (tree_int_cst_min_precision): Take a signop rather than a bool.
21820 (simple_cst_equal): Use wide_int interfaces.
21821 (compare_tree_int): Likewise.
21822 (iterative_hash_expr): Likewise.
21823 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21824 INT_CST_LT.
21825 (get_type_static_bounds): Use wide_int interfaces.
21826 (tree_int_cst_elt_check_failed): New.
21827 (build_common_tree_nodes): Reordered to set prec before filling in
21828 value.
21829 (int_cst_value): Check cst_and_fits_in_hwi.
21830 (widest_int_cst_value): Use wide_int interfaces.
21831 (upper_bound_in_type): Likewise.
21832 (lower_bound_in_type): Likewise.
21833 (num_ending_zeros): Likewise.
21834 (drop_tree_overflow): Likewise.
21835 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21836 (gen_conditions_for_pow_cst_base): Likewise.
21837 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21838 (group_case_labels_stmt): Use wide-int interfaces.
21839 (verify_gimple_assign_binary): Likewise.
21840 (print_loop): Likewise.
21841 * tree-chrec.c (tree_fold_binomial): Likewise.
21842 * tree-core.h (struct tree_base): Add int_length.
21843 (struct tree_int_cst): Change rep of value.
21844 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21845 (dr_may_alias_p): Likewise.
21846 (max_stmt_executions_tree): Likewise.
21847 * tree.def (INTEGER_CST): Update comment.
21848 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21849 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21850 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21851 (dequeue_and_dump): Use wide-int interfaces.
21852 * tree.h: Include wide-int.h.
21853 (NULL_TREE): Moved to earlier loc in file.
21854 (TREE_INT_CST_ELT_CHECK): New.
21855 (tree_int_cst_elt_check_failed): New.
21856 (TYPE_SIGN): New.
21857 (TREE_INT_CST): Delete.
21858 (TREE_INT_CST_LOW): Use wide-int interfaces.
21859 (TREE_INT_CST_HIGH): Delete.
21860 (TREE_INT_CST_NUNITS): New.
21861 (TREE_INT_CST_EXT_NUNITS): Likewise.
21862 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21863 (TREE_INT_CST_ELT): Likewise.
21864 (INT_CST_LT): Delete.
21865 (tree_int_cst_elt_check): New (two forms).
21866 (type_code_size): Update comment.
21867 (make_int_cst_stat, make_int_cst): New.
21868 (tree_to_double_int): Delete.
21869 (double_int_fits_to_tree_p): Delete.
21870 (force_fit_type_double): Delete.
21871 (build_int_cstu): Replace with out-of-line function.
21872 (build_int_cst_wide): Delete.
21873 (tree_int_cst_lt): Define inline.
21874 (tree_int_cst_le): New.
21875 (tree_int_cst_compare): Define inline.
21876 (tree_int_cst_min_precision): Take a signop rather than a bool.
21877 (wi::int_traits <const_tree>): New.
21878 (wi::int_traits <tree>): New.
21879 (wi::extended_tree): New.
21880 (wi::int_traits <wi::extended_tree>): New.
21881 (wi::to_widest): New.
21882 (wi::to_offset): New.
21883 (wi::fits_to_tree_p): New.
21884 (wi::min_value): New.
21885 (wi::max_value): New.
21886 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21887 (copy_tree_body_r): Likewise.
21888 * tree-object-size.c (compute_object_offset): Likewise.
21889 (addr_object_size): Likewise.
21890 * tree-predcom.c: Include wide-int-print.h.
21891 (struct dref_d): Change type of offset to widest_int.
21892 (dump_dref): Call wide-int printer.
21893 (aff_combination_dr_offset): Use wide-int interfaces.
21894 (determine_offset): Take a widest_int pointer rather than a
21895 double_int pointer.
21896 (split_data_refs_to_components): Use wide-int interfaces.
21897 (suitable_component_p): Likewise.
21898 (order_drefs): Likewise.
21899 (add_ref_to_chain): Likewise.
21900 (valid_initializer_p): Likewise.
21901 (determine_roots_comp): Likewise.
21902 * tree-pretty-print.c: Include wide-int-print.h.
21903 (dump_generic_node): Use wide-int interfaces.
21904 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21905 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21906 (move_fixed_address_to_symbol): Likewise.
21907 (move_hint_to_base): Likewise.
21908 (move_pointer_to_base): Likewise.
21909 (move_variant_to_index): Likewise.
21910 (most_expensive_mult_to_index): Likewise.
21911 (addr_to_parts): Likewise.
21912 (copy_ref_info): Likewise.
21913 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21914 (indirect_refs_may_alias_p): Likewise.
21915 (stmt_kills_ref_p_1): Likewise.
21916 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21917 * tree-ssa-ccp.c: Update comment at top of file. Include
21918 wide-int-print.h.
21919 (struct prop_value_d): Change type of mask to widest_int.
21920 (extend_mask): New function.
21921 (dump_lattice_value): Use wide-int interfaces.
21922 (get_default_value): Likewise.
21923 (set_constant_value): Likewise.
21924 (set_value_varying): Likewise.
21925 (valid_lattice_transition): Likewise.
21926 (set_lattice_value): Likewise.
21927 (value_to_double_int): Delete.
21928 (value_to_wide_int): New.
21929 (get_value_from_alignment): Use wide-int interfaces.
21930 (get_value_for_expr): Likewise.
21931 (do_dbg_cnt): Likewise.
21932 (ccp_finalize): Likewise.
21933 (ccp_lattice_meet): Likewise.
21934 (bit_value_unop_1): Use widest_ints rather than double_ints.
21935 (bit_value_binop_1): Likewise.
21936 (bit_value_unop): Use wide-int interfaces.
21937 (bit_value_binop): Likewise.
21938 (bit_value_assume_aligned): Likewise.
21939 (evaluate_stmt): Likewise.
21940 (ccp_fold_stmt): Likewise.
21941 (visit_cond_stmt): Likewise.
21942 (ccp_visit_stmt): Likewise.
21943 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21944 (constant_pointer_difference): Likewise.
21945 (associate_pointerplus): Likewise.
21946 (combine_conversions): Likewise.
21947 * tree-ssa-loop.h: Include wide-int.h.
21948 (struct tree_niter_desc): Change type of max to widest_int.
21949 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21950 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21951 (remove_redundant_iv_tests): Likewise.
21952 (canonicalize_loop_induction_variables): Likewise.
21953 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21954 (constant_multiple_of): Take a widest_int pointer instead of
21955 a double_int pointer.
21956 (get_computation_aff): Use wide-int interfaces.
21957 (ptr_difference_cost): Likewise.
21958 (difference_cost): Likewise.
21959 (get_loop_invariant_expr_id): Likewise.
21960 (get_computation_cost_at): Likewise.
21961 (iv_elimination_compare_lt): Likewise.
21962 (may_eliminate_iv): Likewise.
21963 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21964 instead of double_int.
21965 (max_loop_iterations): Likewise.
21966 (max_stmt_executions): Likewise.
21967 (estimated_stmt_executions): Likewise.
21968 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21969 (split_to_var_and_offset): Use wide-int interfaces.
21970 (determine_value_range): Likewise.
21971 (bound_difference_of_offsetted_base): Likewise.
21972 (bounds_add): Take a widest_int instead of a double_int.
21973 (number_of_iterations_ne_max): Use wide-int interfaces.
21974 (number_of_iterations_ne): Likewise.
21975 (number_of_iterations_lt_to_ne): Likewise.
21976 (assert_loop_rolls_lt): Likewise.
21977 (number_of_iterations_lt): Likewise.
21978 (number_of_iterations_le): Likewise.
21979 (number_of_iterations_cond): Likewise.
21980 (number_of_iterations_exit): Likewise.
21981 (finite_loop_p): Likewise.
21982 (derive_constant_upper_bound_assign): Likewise.
21983 (derive_constant_upper_bound): Return a widest_int.
21984 (derive_constant_upper_bound_ops): Likewise.
21985 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21986 (record_estimate): Take a widest_int rather than a double_int.
21987 (record_nonwrapping_iv): Use wide-int interfaces.
21988 (double_int_cmp): Delete.
21989 (wide_int_cmp): New.
21990 (bound_index): Take a widest_int rather than a double_int.
21991 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21992 (maybe_lower_iteration_bound): Likewise.
21993 (estimate_numbers_of_iterations_loop): Likewise.
21994 (estimated_loop_iterations): Take a widest_int pointer than than
21995 a double_int pointer.
21996 (estimated_loop_iterations_int): Use wide-int interfaces.
21997 (max_loop_iterations): Take a widest_int pointer than than
21998 a double_int pointer.
21999 (max_loop_iterations_int): Use wide-int interfaces.
22000 (max_stmt_executions): Take a widest_int pointer than than
22001 a double_int pointer.
22002 (estimated_stmt_executions): Likewise.
22003 (n_of_executions_at_most): Use wide-int interfaces.
22004 (scev_probably_wraps_p): Likewise.
22005 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
22006 to real_to_integer.
22007 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
22008 interfaces.
22009 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
22010 double_ints. Adjust for trailing_wide_ints <3> representation.
22011 (set_nonzero_bits): Likewise.
22012 (get_range_info): Return wide_ints rather than double_ints.
22013 Adjust for trailing_wide_ints <3> representation.
22014 (get_nonzero_bits): Likewise.
22015 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
22016 representation.
22017 * tree-ssanames.h (struct range_info_def): Replace min, max and
22018 nonzero_bits with a trailing_wide_ints <3>.
22019 (set_range_info): Use wide_int_refs rather than double_ints.
22020 (set_nonzero_bits): Likewise.
22021 (get_range_info): Return wide_ints rather than double_ints.
22022 (get_nonzero_bits): Likewise.
22023 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
22024 * tree-ssa-pre.c (phi_translate_1): Likewise.
22025 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
22026 (acceptable_pow_call): Likewise.
22027 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
22028 interfaces.
22029 (vn_reference_fold_indirect): Likewise.
22030 (vn_reference_maybe_forwprop_address): Likewise.
22031 (valueize_refs_1): Likewise.
22032 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
22033 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
22034 tree_int_cst_lt and tree_int_cst_le.
22035 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
22036 interfaces.
22037 (streamer_alloc_tree): Likewise.
22038 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
22039 (streamer_write_tree_header): Likewise.
22040 (streamer_write_integer_cst): Likewise.
22041 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
22042 (build_constructors): Likewise.
22043 (array_value_type): Likewise.
22044 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
22045 (vect_check_gather): Likewise.
22046 * tree-vect-generic.c (build_replicated_const): Likewise.
22047 (expand_vector_divmod): Likewise.
22048 * tree-vect-loop.c (vect_transform_loop): Likewise.
22049 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
22050 (vect_do_peeling_for_alignment): Likewise.
22051 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
22052 * tree-vrp.c: Include wide-int.h.
22053 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
22054 (extract_range_from_assert): Use wide-int interfaces.
22055 (vrp_int_const_binop): Likewise.
22056 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
22057 double_int pointers.
22058 (ranges_from_anti_range): Use wide-int interfaces.
22059 (quad_int_cmp): Delete.
22060 (quad_int_pair_sort): Likewise.
22061 (extract_range_from_binary_expr_1): Use wide-int interfaces.
22062 (extract_range_from_unary_expr_1): Likewise.
22063 (adjust_range_with_scev): Likewise.
22064 (masked_increment): Take and return wide_ints rather than double_ints.
22065 (register_edge_assert_for_2): Use wide-int interfaces.
22066 (check_array_ref): Likewise.
22067 (search_for_addr_array): Likewise.
22068 (maybe_set_nonzero_bits): Likewise.
22069 (union_ranges): Pass an integer of the correct type instead of
22070 using integer_one_node.
22071 (intersect_ranges): Likewise.
22072 (simplify_truth_ops_using_ranges): Likewise.
22073 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
22074 (range_fits_type_p): Likewise.
22075 (simplify_cond_using_ranges): Likewise. Take a signop rather than
22076 a bool.
22077 (simplify_conversion_using_ranges): Use wide-int interfaces.
22078 (simplify_float_conversion_using_ranges): Likewise.
22079 (vrp_finalize): Likewise.
22080 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
22081 (gimple_stringops_transform): Likewise.
22082 * varasm.c (decode_addr_const): Likewise.
22083 (const_hash_1): Likewise.
22084 (const_rtx_hash_1): Likewise
22085 (output_constant): Likewise.
22086 (array_size_for_constructor): Likewise.
22087 (output_constructor_regular_field): Likewise.
22088 (output_constructor_bitfield): Likewise.
22089 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
22090 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
22091 GENERATOR_FILEs.
22092 * gencheck.c: Define BITS_PER_UNIT.
22093 * wide-int.cc: New.
22094 * wide-int.h: New.
22095 * wide-int-print.cc: New.
22096 * wide-int-print.h: New.
22097
22098 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22099
22100 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
22101
22102 2014-05-06 Richard Biener <rguenther@suse.de>
22103
22104 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22105 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22106 (TODO_verify_all): Adjust.
22107 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22108 TODO_verify_stmts and TODO_verify_rtl_sharing.
22109 * bb-reorder.c: Likewise.
22110 * cfgexpand.c: Likewise.
22111 * cprop.c: Likewise.
22112 * cse.c: Likewise.
22113 * function.c: Likewise.
22114 * fwprop.c: Likewise.
22115 * gcse.c: Likewise.
22116 * gimple-ssa-isolate-paths.c: Likewise.
22117 * gimple-ssa-strength-reduction.c: Likewise.
22118 * ipa-split.c: Likewise.
22119 * loop-init.c: Likewise.
22120 * loop-unroll.c: Likewise.
22121 * lower-subreg.c: Likewise.
22122 * modulo-sched.c: Likewise.
22123 * postreload-gcse.c: Likewise.
22124 * predict.c: Likewise.
22125 * recog.c: Likewise.
22126 * sched-rgn.c: Likewise.
22127 * store-motion.c: Likewise.
22128 * tracer.c: Likewise.
22129 * trans-mem.c: Likewise.
22130 * tree-call-cdce.c: Likewise.
22131 * tree-cfg.c: Likewise.
22132 * tree-cfgcleanup.c: Likewise.
22133 * tree-complex.c: Likewise.
22134 * tree-eh.c: Likewise.
22135 * tree-emutls.c: Likewise.
22136 * tree-if-conv.c: Likewise.
22137 * tree-into-ssa.c: Likewise.
22138 * tree-loop-distribution.c: Likewise.
22139 * tree-object-size.c: Likewise.
22140 * tree-parloops.c: Likewise.
22141 * tree-pass.h: Likewise.
22142 * tree-sra.c: Likewise.
22143 * tree-ssa-ccp.c: Likewise.
22144 * tree-ssa-copy.c: Likewise.
22145 * tree-ssa-copyrename.c: Likewise.
22146 * tree-ssa-dce.c: Likewise.
22147 * tree-ssa-dom.c: Likewise.
22148 * tree-ssa-dse.c: Likewise.
22149 * tree-ssa-forwprop.c: Likewise.
22150 * tree-ssa-ifcombine.c: Likewise.
22151 * tree-ssa-loop-ch.c: Likewise.
22152 * tree-ssa-loop-ivcanon.c: Likewise.
22153 * tree-ssa-loop.c: Likewise.
22154 * tree-ssa-math-opts.c: Likewise.
22155 * tree-ssa-phiopt.c: Likewise.
22156 * tree-ssa-phiprop.c: Likewise.
22157 * tree-ssa-pre.c: Likewise.
22158 * tree-ssa-reassoc.c: Likewise.
22159 * tree-ssa-sink.c: Likewise.
22160 * tree-ssa-strlen.c: Likewise.
22161 * tree-ssa-tail-merge.c: Likewise.
22162 * tree-ssa-uncprop.c: Likewise.
22163 * tree-switch-conversion.c: Likewise.
22164 * tree-tailcall.c: Likewise.
22165 * tree-vect-generic.c: Likewise.
22166 * tree-vectorizer.c: Likewise.
22167 * tree-vrp.c: Likewise.
22168 * tsan.c: Likewise.
22169 * var-tracking.c: Likewise.
22170 * bt-load.c: Likewise.
22171 * cfgcleanup.c: Likewise.
22172 * combine-stack-adj.c: Likewise.
22173 * combine.c: Likewise.
22174 * compare-elim.c: Likewise.
22175 * config/epiphany/resolve-sw-modes.c: Likewise.
22176 * config/i386/i386.c: Likewise.
22177 * config/mips/mips.c: Likewise.
22178 * config/s390/s390.c: Likewise.
22179 * config/sh/sh_treg_combine.cc: Likewise.
22180 * config/sparc/sparc.c: Likewise.
22181 * dce.c: Likewise.
22182 * dse.c: Likewise.
22183 * final.c: Likewise.
22184 * ifcvt.c: Likewise.
22185 * mode-switching.c: Likewise.
22186 * passes.c: Likewise.
22187 * postreload.c: Likewise.
22188 * ree.c: Likewise.
22189 * reg-stack.c: Likewise.
22190 * regcprop.c: Likewise.
22191 * regrename.c: Likewise.
22192 * web.c: Likewise.
22193
22194 2014-05-06 Richard Biener <rguenther@suse.de>
22195
22196 PR middle-end/61070
22197 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22198 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22199
22200 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22201
22202 PR ipa/60965
22203 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22204
22205 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22206 Tom de Vries <tom@codesourcery.com>
22207
22208 * target.def (call_fusage_contains_non_callee_clobbers): New
22209 DEFHOOKPOD.
22210 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22211 Hooks to @menu.
22212 (@node Miscellaneous Register Hooks): New node.
22213 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22214 * doc/tm.texi: Regenerate.
22215
22216 2014-05-05 Marek Polacek <polacek@redhat.com>
22217
22218 PR driver/61065
22219 * opts.c (common_handle_option): Call error_at instead of warning_at.
22220
22221 2014-05-05 Richard Biener <rguenther@suse.de>
22222
22223 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22224 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22225 under the TODO_verify_il umbrella.
22226
22227 2014-05-05 Richard Biener <rguenther@suse.de>
22228
22229 * passes.c (execute_function_todo): Move TODO_verify_flow under
22230 the TODO_verify_ul umbrella.
22231
22232 2014-05-05 Richard Biener <rguenther@suse.de>
22233
22234 PR middle-end/61010
22235 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22236 X & CST away from a CST that is the mask of a mode.
22237
22238 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22239
22240 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22241 int argument to enum machine_mode.
22242 (picochip_class_max_nregs): Ditto.
22243 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22244 (picochip_class_max_nregs): Ditto.
22245
22246 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22247
22248 * target.def: Add new target hook.
22249 * doc/tm.texi: Regenerate.
22250 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22251 * targhooks.c (default_keep_leaf_when_profiled): New function.
22252
22253 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22254 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22255
22256 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22257
22258 PR tree-optimization/60363
22259 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22260 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22261 (update_destination_phis): New parameter.
22262 (create_edge_and_update_destination_phis): Ditto.
22263 (ssa_fix_duplicate_block_edges): Pass new arguments.
22264 (thread_single_edge): Ditto.
22265
22266 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22267
22268 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22269 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22270 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22271 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22272 Use RS6000_BTM_HARD_FLOAT.
22273 (BU_MISC_2): Likewise.
22274 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22275 RS6000_BTM_HARD_FLOAT.
22276 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22277 is explicitly used.
22278 (rs6000_invalid_builtin): Add hard floating builtin support.
22279 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22280 hard float builtins.
22281 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22282
22283 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22284
22285 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22286 Add missing function* argument.
22287
22288 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22289
22290 * lra-constraints.c (valid_address_p): Move earlier in file.
22291 Add a constraint argument to the address_info version.
22292 (satisfies_memory_constraint_p): New function.
22293 (satisfies_address_constraint_p): Likewise.
22294 (process_alt_operands, curr_insn_transform): Use them.
22295 (process_address): Pass the constraint to valid_address_p when
22296 checking address operands.
22297
22298 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22299
22300 * config/mips/mips.c (mips_isa_rev): New variable.
22301 (mips_set_architecture): Set it.
22302 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22303 from mips_isa_rev.
22304 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22305 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22306 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22307 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22308 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22309 conditions in terms of mips_isa_rev.
22310 (mips_isa_rev): Declare.
22311
22312 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22313
22314 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22315 (prob_unlikely, prob_likely): Make variables const.
22316
22317 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22318
22319 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22320
22321 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22322
22323 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22324
22325 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22326
22327 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22328 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22329 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22330 functions.
22331 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22332 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22333 sh_pass_in_reg_p.
22334 Replace usage of ROUND_REG with sh_round_reg.
22335 Use CEIL instead of ROUND_ADVANCE.
22336
22337 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22338
22339 PR target/61026
22340 * config/sh/sh.c: Include stdlib headers before everything else.
22341
22342 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22343
22344 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22345 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22346 (gimplify_adjust_omp_clauses): Simd region is never
22347 directly nested in combined parallel. Instead, for linear
22348 with copyin/copyout, if in combined for simd loop, make decl
22349 firstprivate/lastprivate on OMP_FOR.
22350 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22351 expand_omp_for_static_chunk): When setting endvar, also set
22352 fd->loop.v to the same value.
22353
22354 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22355
22356 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22357
22358 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22359
22360 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22361 expression.
22362
22363 2014-05-02 Marek Polacek <polacek@redhat.com>
22364
22365 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22366
22367 2014-05-02 Kito Cheng <kito@0xlab.org>
22368
22369 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22370 to a C expression marco.
22371 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22372 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22373 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22374 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22375 HONOR_REG_ALLOC_ORDER.
22376 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22377
22378 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22379
22380 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22381
22382 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22383
22384 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22385
22386 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22387
22388 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22389 (convert_scalar_cond_reduction): Likewise.
22390 (predicate_scalar_phi): Add recognition and transformation
22391 of simple conditioanl reduction to be vectorizable.
22392
22393 2014-05-01 Marek Polacek <polacek@redhat.com>
22394
22395 PR c/43245
22396 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22397
22398 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22399
22400 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22401 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22402 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22403 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22404 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22405 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22406 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22407 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22408
22409 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22410
22411 * config/arc/arc.opt (mlra): Move comment above option name
22412 to avoid mis-parsing as language options.
22413
22414 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22415
22416 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22417 * config/sol2.h: ... here.
22418 * config/sol2-10.h: Remove.
22419
22420 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22421 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22422 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22423 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22424 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22425 * config/sol2.h: ... here.
22426 (SECTION_NAME_FORMAT): Don't redefine.
22427 (STARTFILE_ARCH32_SPEC): Rename to ...
22428 (STARTFILE_ARCH_SPEC): ... this.
22429 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22430 * config/sparc/sol2.h: ... here.
22431 (SECTION_NAME_FORMAT): Don't undef.
22432 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22433 (SUBTARGET_EXTRA_SPECS): Remove.
22434 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22435
22436 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22437 (MD_STARTFILE_PREFIX): Remove.
22438 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22439 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22440 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22441 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22442 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22443 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22444 * config/i386/sol2.h: ... here.
22445 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22446 * config/i386/sol2-bi.h: Remove.
22447 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22448 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22449
22450 * config/i386/t-sol2-64: Rename to ...
22451 * config/i386/t-sol2: ... this.
22452 * config/sparc/t-sol2-64: Rename to ...
22453 * config/sparc/t-sol2: ... this.
22454
22455 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22456 sol2_tm_file_head, sol2_tm_file_tail.
22457 Include ${cpu_type}/sol2.h before sol2.h.
22458 Remove sol2-10.h.
22459 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22460 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22461 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22462 Reflect i386/t-sol2-64 renaming.
22463 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22464 Reflect sparc/t-sol2-64 renaming.
22465
22466 2014-04-30 Richard Biener <rguenther@suse.de>
22467
22468 * passes.c (execute_function_todo): Move TODO_verify_stmts
22469 and TODO_verify_ssa under the TODO_verify_il umbrella.
22470 * tree-ssa.h (verify_ssa): Adjust prototype.
22471 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22472 we should verify SSA operands.
22473 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22474 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22475 whether we should verify whether not throwing stmts have EH info.
22476 * graphite-scop-detection.c (create_sese_edges): Adjust.
22477 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22478 * tree-eh.c (lower_try_finally_switch): Do not add the
22479 default case label twice.
22480
22481 2014-04-30 Marek Polacek <polacek@redhat.com>
22482
22483 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22484 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22485 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22486 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22487
22488 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22489
22490 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22491 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22492 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22493 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22494 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22495 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22496 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22497 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22498
22499 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22500
22501 * tree-cfg.c (dump_function_to_file): Dump the return type of
22502 functions, in a line to itself before the function body, mimicking
22503 the layout of a C function.
22504
22505 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22506
22507 PR tree-optimization/60971
22508 * tree-tailcall.c (process_assignment): Reject conversions which
22509 reduce precision.
22510
22511 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22512
22513 * calls.c (initialize_argument_information): Always treat
22514 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22515 (expand_call): Likewise.
22516 (emit_library_call_calue_1): Likewise.
22517 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22518 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22519 code accordingly.
22520
22521 2014-04-29 Nick Clifton <nickc@redhat.com>
22522
22523 * config/msp430/msp430.md (umulsidi): Fix typo.
22524 (mulhisi3): Enable even inside interrupt handlers.
22525 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22526 bigger return address pushed in large mode.
22527
22528 2014-04-29 Nick Clifton <nickc@redhat.com>
22529
22530 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22531 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22532 available modes.
22533 * config/m32r/m32r.c (init_reg_tables): Likewise.
22534 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22535 enum to hold the modes.
22536
22537 2014-04-29 Richard Biener <rguenther@suse.de>
22538
22539 * dominance.c (free_dominance_info): Add overload with
22540 function parameter.
22541 (dom_info_state): Likewise.
22542 (dom_info_available_p): Likewise.
22543 * basic-block.h (free_dominance_info, dom_info_state,
22544 dom_info_available_p): Declare overloads.
22545 * passes.c (execute_function_todo): Verify that verifiers
22546 don't change dominator info state. Drop dominator info
22547 for IPA pass invocations.
22548 * cgraph.c (release_function_body): Restore asserts that
22549 dominator information is released.
22550
22551 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22552
22553 * doc/invoke.texi: Fix typo.
22554 * tree-vrp.c: Fix typos.
22555 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22556
22557 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22558
22559 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22560
22561 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22562
22563 * config/aarch64/aarch64-builtins.c
22564 (aarch64_types_storestruct_lane_qualifiers): New.
22565 (TYPES_STORESTRUCT_LANE): Likewise.
22566 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22567 (st3_lane): Likewise.
22568 (st4_lane): Likewise.
22569 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22570 (vec_store_lanesci_lane<mode>): Likewise.
22571 (vec_store_lanesxi_lane<mode>): Likewise.
22572 (aarch64_st2_lane<VQ:mode>): Likewise.
22573 (aarch64_st3_lane<VQ:mode>): Likewise.
22574 (aarch64_st4_lane<VQ:mode>): Likewise.
22575 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22576 * config/aarch64/arm_neon.h
22577 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22578 use new macro arguments.
22579 (__ST3_LANE_FUNC): Likewise.
22580 (__ST4_LANE_FUNC): Likewise.
22581 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22582 (V_THREE_ELEM): Likewise.
22583 (V_FOUR_ELEM): Likewise.
22584
22585 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22586
22587 * doc/gimple.texi: Replace the description of the now-defunct
22588 union gimple_statement_d with a diagram showing the
22589 gimple_statement_base class hierarchy and its relationships to
22590 the GSS_ and GIMPLE_ enums.
22591
22592 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22593
22594 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22595 * config/aarch64/aarch64.c
22596 (aarch64_cannot_change_mode_class): Weaken conditions.
22597 (aarch64_modes_tieable_p): New.
22598 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22599
22600 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22601
22602 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22603 (loadsync_<mode>): Change mode.
22604 (load_quadpti, store_quadpti): New.
22605 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22606 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22607
22608 2014-04-28 Martin Jambor <mjambor@suse.cz>
22609
22610 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22611 same alias type as the original statement.
22612 (subreplacement_assignment_data): New type.
22613 (handle_unscalarized_data_in_subtree): New type of parameter,
22614 generate new memory accesses with same alias type as the original
22615 statement.
22616 (load_assign_lhs_subreplacements): Likewise.
22617 (sra_modify_constructor_assign): Generate new memory accesses with
22618 same alias type as the original statement.
22619
22620 2014-04-28 Richard Biener <rguenther@suse.de>
22621
22622 * tree-pass.h (TODO_verify_il): Define.
22623 (TODO_verify_all): Complete properly.
22624 * passes.c (execute_function_todo): Move existing loop-closed
22625 SSA verification under TODO_verify_il.
22626 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22627 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22628 Fix tree sharing issue.
22629
22630 2014-04-28 Richard Biener <rguenther@suse.de>
22631
22632 PR middle-end/60092
22633 * builtins.def (DEF_C11_BUILTIN): Add.
22634 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22635 * coretypes.h (enum function_class): Add function_c11_misc.
22636 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22637 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22638 (call_may_clobber_ref_p_1): Likewise.
22639 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22640 (mark_all_reaching_defs_necessary_1): Likewise.
22641 (propagate_necessity): Likewise.
22642 (eliminate_unnecessary_stmts): Likewise.
22643 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22644
22645 2014-04-28 Richard Biener <rguenther@suse.de>
22646
22647 * tree-vrp.c (vrp_var_may_overflow): Remove.
22648 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22649 with overflow immediately bump to one before that value and
22650 let iteration figure out overflow status.
22651
22652 2014-04-28 Richard Biener <rguenther@suse.de>
22653
22654 * configure.ac: Do valgrind header checks unconditionally.
22655 Add --enable-valgrind-annotations.
22656 * system.h: Guard valgrind header inclusion with
22657 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22658 * alloc-pool.c (pool_alloc, pool_free): Use
22659 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22660 to guard possibly dead code.
22661 * config.in: Regenerated.
22662 * configure: Likewise.
22663
22664 2014-04-28 Jeff Law <law@redhat.com>
22665
22666 PR tree-optimization/60902
22667 * tree-ssa-threadedge.c
22668 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22669 over real defs when invalidating outputs from statements that do not
22670 produce useful outputs for threading.
22671
22672 2014-04-28 Richard Biener <rguenther@suse.de>
22673
22674 PR tree-optimization/60979
22675 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22676 SCOPs that end in a block with a successor with abnormal
22677 predecessors.
22678
22679 2014-04-28 Richard Biener <rguenther@suse.de>
22680
22681 * tree-pass.h (execute_pass_list): Adjust prototype.
22682 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22683 (do_per_function): Change callback signature, push all actual
22684 work to the callbals.
22685 (do_per_function_toporder): Likewise.
22686 (execute_function_dump): Adjust.
22687 (execute_function_todo): Likewise.
22688 (clear_last_verified): Likewise.
22689 (verify_curr_properties): Likewise.
22690 (update_properties_after_pass): Likewise.
22691 (execute_pass_list_1): Split out from ...
22692 (execute_pass_list): ... here. Adjust.
22693 (execute_ipa_pass_list): Likewise.
22694 * cgraphunit.c (cgraph_add_new_function): Adjust.
22695 (analyze_function): Likewise.
22696 (expand_function): Likewise.
22697 * cgraph.c (release_function_body): Free dominance info
22698 here instead of asserting it was magically freed elsewhere.
22699
22700 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22701
22702 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22703 * configure: Regenerate.
22704 * config/sparc/sparc.opt (muser-mode): New option.
22705 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22706 for LEON3.
22707 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22708 * doc/invoke.texi (SPARC options): Document -muser-mode.
22709
22710 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22711
22712 * cselib.c (find_slot_memmode): Delete.
22713 (cselib_hasher): Change compare_type to a struct.
22714 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22715 constants.
22716 (preserve_constants_and_equivs): Adjust for new compare_type.
22717 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22718 (wrap_constant): Delete.
22719 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22720
22721 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22722
22723 * doc/install.texi (Building with profile feedback): Remove
22724 outdated sentence.
22725
22726 2014-04-26 Tom de Vries <tom@codesourcery.com>
22727
22728 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22729 array accesses.
22730
22731 2014-04-25 Cary Coutant <ccoutant@google.com>
22732
22733 PR debug/60929
22734 * dwarf2out.c (should_move_die_to_comdat): A type definition
22735 can contain a subprogram definition, but don't move it to a
22736 comdat unit.
22737 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22738 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22739 from original DIE.
22740 (clone_tree_hash): Rename to...
22741 (clone_tree_partial): ...this; change callers. Copy
22742 DW_TAG_subprogram DIEs as declarations.
22743 (copy_decls_walk): Don't copy children of a declaration into a
22744 type unit.
22745
22746 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22747
22748 PR target/60969
22749 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22750 alternative 12.
22751
22752 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22753
22754 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22755 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22756 reg for long_call.
22757 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22758 restriction.
22759
22760 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22761
22762 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22763
22764 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22765
22766 PR tree-optimization/60930
22767 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22768 creating a multiply candidate by folding two constant
22769 multiplicands when the result overflows.
22770
22771 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22772
22773 PR tree-optimization/60960
22774 * tree-vect-generic.c (expand_vector_operation): Only call
22775 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22776
22777 2014-04-25 Tom de Vries <tom@codesourcery.com>
22778
22779 * expr.c (clobber_reg_mode): New function.
22780 * expr.h (clobber_reg): New function.
22781
22782 2014-04-25 Tom de Vries <tom@codesourcery.com>
22783
22784 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22785 clobbers.
22786
22787 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22788 Tom de Vries <tom@codesourcery.com>
22789
22790 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22791 handle.
22792 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22793 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22794 new argument to find_all_hard_reg_sets call.
22795
22796 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22797
22798 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22799 Use HOST_WIDE_INT_C for mask literal.
22800 (aarch_rev16_shleft_mask_imm_p): Likewise.
22801
22802 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22803
22804 PR target/60941
22805 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22806
22807 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22808
22809 PR preprocessor/56540
22810 * config/i386/i386-c.c (ix86_target_macros): Define
22811 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22812
22813 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22814
22815 * configure.ac (tga_func): Remove.
22816 (LIB_TLS_SPEC): Remove.
22817 * configure: Regenerate.
22818 * config.in: Regenerate.
22819 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22820
22821 2014-04-25 Richard Biener <rguenther@suse.de>
22822
22823 PR ipa/60912
22824 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22825 call stmt use/clobber sets during stmt walk instead of
22826 walking the possibly incomplete set of caller edges.
22827
22828 2014-04-25 Richard Biener <rguenther@suse.de>
22829
22830 PR ipa/60911
22831 * passes.c (apply_ipa_transforms): Inline into only caller ...
22832 (execute_one_pass): ... here. Properly bring in function
22833 bodies for nodes we want to apply IPA transforms to.
22834
22835 2014-04-24 Cong Hou <congh@google.com>
22836
22837 PR tree-optimization/60896
22838 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22839 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22840 (vect_mark_pattern_stmts): Set the def type of all statements in
22841 PATTERN_DEF_SEQ as vect_internal_def.
22842
22843 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22844
22845 * doc/extend.texi (PowerPC Built-in Functions): Document new
22846 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22847 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22848
22849 * config/rs6000/predicates.md (const_0_to_3_operand): New
22850 predicate to match 0..3 integer constants.
22851
22852 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22853 to support adding miscellaneous builtin functions.
22854 (BU_DFP_MISC_2): Likewise.
22855 (BU_P7_MISC_1): Likewise.
22856 (BU_P7_MISC_2): Likewise.
22857 (BU_P8V_MISC_3): Likewise.
22858 (BU_MISC_1): Likewise.
22859 (BU_MISC_2): Likewise.
22860 (DIVWE): Add extended divide builtin functions.
22861 (DIVWEO): Likewise.
22862 (DIVWEU): Likewise.
22863 (DIVWEUO): Likewise.
22864 (DIVDE): Likewise.
22865 (DIVDEO): Likewise.
22866 (DIVDEU): Likewise.
22867 (DIVDEUO): Likewise.
22868 (DXEX): Add decimal floating-point builtin functions.
22869 (DXEXQ): Likewise.
22870 (DDEDPD): Likewise.
22871 (DDEDPDQ): Likewise.
22872 (DENBCD): Likewise.
22873 (DENBCDQ): Likewise.
22874 (DIEX): Likewise.
22875 (DIEXQ): Likewise.
22876 (DSCLI): Likewise.
22877 (DSCLIQ): Likewise.
22878 (DSCRI): Likewise.
22879 (DSCRIQ): Likewise.
22880 (CDTBCD): Add new BCD builtin functions.
22881 (CBCDTD): Likewise.
22882 (ADDG6S): Likewise.
22883 (BCDADD): Likewise.
22884 (BCDADD_LT): Likewise.
22885 (BCDADD_EQ): Likewise.
22886 (BCDADD_GT): Likewise.
22887 (BCDADD_OV): Likewise.
22888 (BCDSUB): Likewise.
22889 (BCDSUB_LT): Likewise.
22890 (BCDSUB_EQ): Likewise.
22891 (BCDSUB_GT): Likewise.
22892 (BCDSUB_OV): Likewise.
22893 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22894 (UNPACK_TD): Likewise.
22895 (PACK_TF): Likewise.
22896 (UNPACK_TF): Likewise.
22897 (UNPACK_TF_0): Likewise.
22898 (UNPACK_TF_1): Likewise.
22899 (PACK_V1TI): Likewise.
22900 (UNPACK_V1TI): Likewise.
22901
22902 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22903 support for decimal floating point builtin functions.
22904 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22905 functions that take constant arguments.
22906 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22907 (rs6000_init_builtins): Setup long double, _Decimal64, and
22908 _Decimal128 types for new builtin functions.
22909 (builtin_function_type): Set the unsigned flags appropriately for
22910 the new builtin functions.
22911 (rs6000_opt_masks): Add support for decimal floating point builtin
22912 functions.
22913
22914 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22915 floating point builtin functions.
22916 (RS6000_BTM_COMMON): Likewise.
22917 (RS6000_BTI_long_double): Likewise.
22918 (RS6000_BTI_dfloat64): Likewise.
22919 (RS6000_BTI_dfloat128): Likewise.
22920 (long_double_type_internal_node): Likewise.
22921 (dfloat64_type_internal_node): Likewise.
22922 (dfloat128_type_internal_node): Likewise.
22923
22924 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22925 2.07 bcd arithmetic instructions.
22926 (UNSPEC_BCDSUB): Likewise.
22927 (UNSPEC_BCD_OVERFLOW): Likewise.
22928 (UNSPEC_BCD_ADD_SUB): Likewise.
22929 (bcd_add_sub): Likewise.
22930 (BCD_TEST): Likewise.
22931 (bcd<bcd_add_sub>): Likewise.
22932 (bcd<bcd_add_sub>_test): Likewise.
22933 (bcd<bcd_add_sub>_test2): Likewise.
22934 (bcd<bcd_add_sub>_<code>): Likewise.
22935 (peephole2 for combined bcd ops): Likewise.
22936
22937 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22938 decimal floating point builtin functions.
22939 (UNSPEC_DENBCD): Likewise.
22940 (UNSPEC_DXEX): Likewise.
22941 (UNSPEC_DIEX): Likewise.
22942 (UNSPEC_DSCLI): Likewise.
22943 (UNSPEC_DSCRI): Likewise.
22944 (D64_D128): Likewise.
22945 (dfp_suffix): Likewise.
22946 (dfp_ddedpd_<mode>): Likewise.
22947 (dfp_denbcd_<mode>): Likewise.
22948 (dfp_dxex_<mode>): Likewise.
22949 (dfp_diex_<mode>): Likewise.
22950 (dfp_dscli_<mode>): Likewise.
22951 (dfp_dscri_<mode>): Likewise.
22952
22953 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22954 builtin functions.
22955 (UNSPEC_CDTBCD): Likewise.
22956 (UNSPEC_CBCDTD): Likewise.
22957 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22958 (UNSPEC_DIVEO): Likewise.
22959 (UNSPEC_DIVEU): Likewise.
22960 (UNSPEC_DIVEUO): Likewise.
22961 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22962 pack/unpack 128-bit types.
22963 (UNSPEC_PACK_128BIT): Likewise.
22964 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22965 (udiv<mode>3): Use idiv_ldiv mode attribute.
22966 (div<mode>3): Likewise.
22967 (addg6s): Add new BCD builtin functions.
22968 (cdtbcd): Likewise.
22969 (cbcdtd): Likewise.
22970 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22971 (div_extend): Likewise.
22972 (div<div_extend>_<mode>"): Likewise.
22973 (FP128_64): Add support for new builtin functions to pack/unpack
22974 128-bit types.
22975 (unpack<mode>): Likewise.
22976 (unpacktf_0): Likewise.
22977 (unpacktf_1): Likewise.
22978 (unpack<mode>_dm): Likewise.
22979 (unpack<mode>_nodm): Likewise.
22980 (pack<mode>): Likewise.
22981 (unpackv1ti): Likewise.
22982 (packv1ti): Likewise.
22983
22984 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22985
22986 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22987 is disabled.
22988
22989 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22990
22991 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22992 * gimplify.c (omp_is_private): Change last argument's type to int.
22993 Only diagnose lastprivate if the simd argument is 1, only diagnose
22994 linear if the simd argument is 2.
22995 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22996 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22997 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22998 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22999 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
23000 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23001 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
23002 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
23003 * tree-nested.c (convert_nonlocal_omp_clauses,
23004 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
23005
23006 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
23007
23008 PR target/60822
23009 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
23010 operand 1.
23011
23012 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
23013
23014 * flag-types.h (enum ivar_visibility): Add.
23015
23016 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
23017
23018 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
23019 function * argument.
23020
23021 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
23022
23023 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
23024
23025 2014-04-24 Radovan Obradovic <robradovic@mips.com>
23026 Tom de Vries <tom@codesourcery.com>
23027
23028 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
23029 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
23030 reg-note.
23031 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
23032 * emit-rtl.c (try_split): Same.
23033
23034 2014-04-24 Radovan Obradovic <robradovic@mips.com>
23035 Tom de Vries <tom@codesourcery.com>
23036
23037 * common.opt (fuse-caller-save): New option.
23038
23039 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
23040
23041 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
23042 elements for big-endian.
23043
23044 2014-04-24 Richard Biener <rguenther@suse.de>
23045
23046 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
23047 during TER and instead use the sepops interface for expanding
23048 non-GIMPLE_SINGLE_RHS.
23049
23050 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23051
23052 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
23053 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
23054
23055 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23056
23057 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
23058 assembler 64-bit option.
23059 * configure: Regenerate.
23060
23061 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23062
23063 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
23064 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
23065 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
23066 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
23067 (TARGET_CRYPTO): Take TARGET_SIMD into account.
23068
23069 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23070
23071 * config/aarch64/aarch64-builtins.c
23072 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
23073 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
23074 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
23075 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
23076 builtins.
23077 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
23078 (Vrevsuff): New mode attribute.
23079
23080 2014-04-24 Terry Guo <terry.guo@arm.com>
23081
23082 * config/arm/arm.h (machine_function): Define variable
23083 after_arm_reorg here.
23084 * config/arm/arm.c (after_arm_reorg): Remove the definition.
23085 (arm_split_constant): Update the way to access variable
23086 after_arm_reorg.
23087 (arm_reorg): Ditto.
23088 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
23089
23090 2014-04-23 Tom de Vries <tom@codesourcery.com>
23091
23092 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
23093
23094 2014-04-23 David Malcolm <dmalcolm@redhat.com>
23095
23096 * is-a.h: Update comments to reflect the following changes to the
23097 "pointerness" of the API, making the template parameter match the
23098 return type, allowing use of is-a.h with typedefs of pointers.
23099 (is_a_helper::cast): Return a T rather then a pointer to a T, so
23100 that the return type matches the parameter to the is_a_helper.
23101 (as_a): Likewise.
23102 (dyn_cast): Likewise.
23103
23104 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23105 pointer from the is-a.h API.
23106
23107 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23108 (is_a_helper <cgraph_node *>::test): ...this, matching change to
23109 is-a.h API.
23110 (is_a_helper <varpool_node>::test): Likewise, convert to...
23111 (is_a_helper <varpool_node *>::test): ...this.
23112
23113 (varpool_first_variable): Update for removal of implicit pointer
23114 from the is-a.h API.
23115 (varpool_next_variable): Likewise.
23116 (varpool_first_static_initializer): Likewise.
23117 (varpool_next_static_initializer): Likewise.
23118 (varpool_first_defined_variable): Likewise.
23119 (varpool_next_defined_variable): Likewise.
23120 (cgraph_first_defined_function): Likewise.
23121 (cgraph_next_defined_function): Likewise.
23122 (cgraph_first_function): Likewise.
23123 (cgraph_next_function): Likewise.
23124 (cgraph_first_function_with_gimple_body): Likewise.
23125 (cgraph_next_function_with_gimple_body): Likewise.
23126 (cgraph_alias_target): Likewise.
23127 (varpool_alias_target): Likewise.
23128 (cgraph_function_or_thunk_node): Likewise.
23129 (varpool_variable_node): Likewise.
23130 (symtab_real_symbol_p): Likewise.
23131 * cgraphunit.c (referred_to_p): Likewise.
23132 (analyze_functions): Likewise.
23133 (handle_alias_pairs): Likewise.
23134 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23135 * gimple-ssa.h (gimple_vuse_op): Likewise.
23136 (gimple_vdef_op): Likewise.
23137 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23138 * gimple.c (gimple_build_asm_1): Likewise.
23139 (gimple_build_try): Likewise.
23140 (gimple_build_resx): Likewise.
23141 (gimple_build_eh_dispatch): Likewise.
23142 (gimple_build_omp_for): Likewise.
23143 (gimple_omp_for_set_clauses): Likewise.
23144
23145 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23146 (is_a_helper <gimple_statement_asm *>::test): ...this.
23147 (is_a_helper <gimple_statement_bind>::test): Convert to...
23148 (is_a_helper <gimple_statement_bind *>::test): ...this.
23149 (is_a_helper <gimple_statement_call>::test): Convert to...
23150 (is_a_helper <gimple_statement_call *>::test): ...this.
23151 (is_a_helper <gimple_statement_catch>::test): Convert to...
23152 (is_a_helper <gimple_statement_catch *>::test): ...this.
23153 (is_a_helper <gimple_statement_resx>::test): Convert to...
23154 (is_a_helper <gimple_statement_resx *>::test): ...this.
23155 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23156 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23157 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23158 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23159 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23160 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23161 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23162 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23163 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23164 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23165 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23166 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23167 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23168 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23169 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23170 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23171 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23172 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23173 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23174 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23175 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23176 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23177 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23178 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23179 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23180 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23181 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23182 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23183 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23184 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23185 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23186 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23187 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23188 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23189 (is_a_helper <gimple_statement_phi>::test): Convert to...
23190 (is_a_helper <gimple_statement_phi *>::test): ...this.
23191 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23192 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23193 (is_a_helper <gimple_statement_try>::test): Convert to...
23194 (is_a_helper <gimple_statement_try *>::test): ...this.
23195 (is_a_helper <gimple_statement_wce>::test): Convert to...
23196 (is_a_helper <gimple_statement_wce *>::test): ...this.
23197 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23198 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23199 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23200 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23201 (is_a_helper <const gimple_statement_call>::test): Convert to...
23202 (is_a_helper <const gimple_statement_call *>::test): ...this.
23203 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23204 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23205 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23206 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23207 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23208 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23209 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23210 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23211 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23212 Convert to...
23213 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23214 ...this.
23215 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23216 Convert to...
23217 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23218 ...this.
23219 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23220 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23221 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23222 to...
23223 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23224 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23225 to...
23226 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23227 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23228 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23229 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23230 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23231 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23232 to...
23233 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23234 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23235 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23236 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23237 to...
23238 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23239 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23240 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23241 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23242 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23243 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23244 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23245 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23246 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23247 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23248 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23249 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23250 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23251 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23252 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23253 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23254 to...
23255 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23256 ...this.
23257 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23258 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23259
23260 (gimple_use_ops): Update for removal of implicit pointer from the
23261 is-a.h API.
23262 (gimple_set_use_ops): Likewise.
23263 (gimple_vuse): Likewise.
23264 (gimple_vdef): Likewise.
23265 (gimple_vuse_ptr): Likewise.
23266 (gimple_vdef_ptr): Likewise.
23267 (gimple_set_vuse): Likewise.
23268 (gimple_set_vdef): Likewise.
23269 (gimple_omp_return_set_lhs): Likewise.
23270 (gimple_omp_return_lhs): Likewise.
23271 (gimple_omp_return_lhs_ptr): Likewise.
23272 (gimple_call_fntype): Likewise.
23273 (gimple_call_set_fntype): Likewise.
23274 (gimple_call_set_internal_fn): Likewise.
23275 (gimple_call_use_set): Likewise.
23276 (gimple_call_clobber_set): Likewise.
23277 (gimple_bind_vars): Likewise.
23278 (gimple_bind_set_vars): Likewise.
23279 (gimple_bind_body_ptr): Likewise.
23280 (gimple_bind_set_body): Likewise.
23281 (gimple_bind_add_stmt): Likewise.
23282 (gimple_bind_block): Likewise.
23283 (gimple_bind_set_block): Likewise.
23284 (gimple_asm_ninputs): Likewise.
23285 (gimple_asm_noutputs): Likewise.
23286 (gimple_asm_nclobbers): Likewise.
23287 (gimple_asm_nlabels): Likewise.
23288 (gimple_asm_input_op): Likewise.
23289 (gimple_asm_input_op_ptr): Likewise.
23290 (gimple_asm_output_op): Likewise.
23291 (gimple_asm_output_op_ptr): Likewise.
23292 (gimple_asm_set_output_op): Likewise.
23293 (gimple_asm_clobber_op): Likewise.
23294 (gimple_asm_set_clobber_op): Likewise.
23295 (gimple_asm_label_op): Likewise.
23296 (gimple_asm_set_label_op): Likewise.
23297 (gimple_asm_string): Likewise.
23298 (gimple_catch_types): Likewise.
23299 (gimple_catch_types_ptr): Likewise.
23300 (gimple_catch_handler_ptr): Likewise.
23301 (gimple_catch_set_types): Likewise.
23302 (gimple_catch_set_handler): Likewise.
23303 (gimple_eh_filter_types): Likewise.
23304 (gimple_eh_filter_types_ptr): Likewise.
23305 (gimple_eh_filter_failure_ptr): Likewise.
23306 (gimple_eh_filter_set_types): Likewise.
23307 (gimple_eh_filter_set_failure): Likewise.
23308 (gimple_eh_must_not_throw_fndecl): Likewise.
23309 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23310 (gimple_eh_else_n_body_ptr): Likewise.
23311 (gimple_eh_else_e_body_ptr): Likewise.
23312 (gimple_eh_else_set_n_body): Likewise.
23313 (gimple_eh_else_set_e_body): Likewise.
23314 (gimple_try_eval_ptr): Likewise.
23315 (gimple_try_cleanup_ptr): Likewise.
23316 (gimple_try_set_eval): Likewise.
23317 (gimple_try_set_cleanup): Likewise.
23318 (gimple_wce_cleanup_ptr): Likewise.
23319 (gimple_wce_set_cleanup): Likewise.
23320 (gimple_phi_capacity): Likewise.
23321 (gimple_phi_num_args): Likewise.
23322 (gimple_phi_result): Likewise.
23323 (gimple_phi_result_ptr): Likewise.
23324 (gimple_phi_set_result): Likewise.
23325 (gimple_phi_arg): Likewise.
23326 (gimple_phi_set_arg): Likewise.
23327 (gimple_resx_region): Likewise.
23328 (gimple_resx_set_region): Likewise.
23329 (gimple_eh_dispatch_region): Likewise.
23330 (gimple_eh_dispatch_set_region): Likewise.
23331 (gimple_omp_critical_name): Likewise.
23332 (gimple_omp_critical_name_ptr): Likewise.
23333 (gimple_omp_critical_set_name): Likewise.
23334 (gimple_omp_for_clauses): Likewise.
23335 (gimple_omp_for_clauses_ptr): Likewise.
23336 (gimple_omp_for_set_clauses): Likewise.
23337 (gimple_omp_for_collapse): Likewise.
23338 (gimple_omp_for_index): Likewise.
23339 (gimple_omp_for_index_ptr): Likewise.
23340 (gimple_omp_for_set_index): Likewise.
23341 (gimple_omp_for_initial): Likewise.
23342 (gimple_omp_for_initial_ptr): Likewise.
23343 (gimple_omp_for_set_initial): Likewise.
23344 (gimple_omp_for_final): Likewise.
23345 (gimple_omp_for_final_ptr): Likewise.
23346 (gimple_omp_for_set_final): Likewise.
23347 (gimple_omp_for_incr): Likewise.
23348 (gimple_omp_for_incr_ptr): Likewise.
23349 (gimple_omp_for_set_incr): Likewise.
23350 (gimple_omp_for_pre_body_ptr): Likewise.
23351 (gimple_omp_for_set_pre_body): Likewise.
23352 (gimple_omp_parallel_clauses): Likewise.
23353 (gimple_omp_parallel_clauses_ptr): Likewise.
23354 (gimple_omp_parallel_set_clauses): Likewise.
23355 (gimple_omp_parallel_child_fn): Likewise.
23356 (gimple_omp_parallel_child_fn_ptr): Likewise.
23357 (gimple_omp_parallel_set_child_fn): Likewise.
23358 (gimple_omp_parallel_data_arg): Likewise.
23359 (gimple_omp_parallel_data_arg_ptr): Likewise.
23360 (gimple_omp_parallel_set_data_arg): Likewise.
23361 (gimple_omp_task_clauses): Likewise.
23362 (gimple_omp_task_clauses_ptr): Likewise.
23363 (gimple_omp_task_set_clauses): Likewise.
23364 (gimple_omp_task_child_fn): Likewise.
23365 (gimple_omp_task_child_fn_ptr): Likewise.
23366 (gimple_omp_task_set_child_fn): Likewise.
23367 (gimple_omp_task_data_arg): Likewise.
23368 (gimple_omp_task_data_arg_ptr): Likewise.
23369 (gimple_omp_task_set_data_arg): Likewise.
23370 (gimple_omp_taskreg_clauses): Likewise.
23371 (gimple_omp_taskreg_clauses_ptr): Likewise.
23372 (gimple_omp_taskreg_set_clauses): Likewise.
23373 (gimple_omp_taskreg_child_fn): Likewise.
23374 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23375 (gimple_omp_taskreg_set_child_fn): Likewise.
23376 (gimple_omp_taskreg_data_arg): Likewise.
23377 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23378 (gimple_omp_taskreg_set_data_arg): Likewise.
23379 (gimple_omp_task_copy_fn): Likewise.
23380 (gimple_omp_task_copy_fn_ptr): Likewise.
23381 (gimple_omp_task_set_copy_fn): Likewise.
23382 (gimple_omp_task_arg_size): Likewise.
23383 (gimple_omp_task_arg_size_ptr): Likewise.
23384 (gimple_omp_task_set_arg_size): Likewise.
23385 (gimple_omp_task_arg_align): Likewise.
23386 (gimple_omp_task_arg_align_ptr): Likewise.
23387 (gimple_omp_task_set_arg_align): Likewise.
23388 (gimple_omp_single_clauses): Likewise.
23389 (gimple_omp_single_clauses_ptr): Likewise.
23390 (gimple_omp_single_set_clauses): Likewise.
23391 (gimple_omp_target_clauses): Likewise.
23392 (gimple_omp_target_clauses_ptr): Likewise.
23393 (gimple_omp_target_set_clauses): Likewise.
23394 (gimple_omp_target_child_fn): Likewise.
23395 (gimple_omp_target_child_fn_ptr): Likewise.
23396 (gimple_omp_target_set_child_fn): Likewise.
23397 (gimple_omp_target_data_arg): Likewise.
23398 (gimple_omp_target_data_arg_ptr): Likewise.
23399 (gimple_omp_target_set_data_arg): Likewise.
23400 (gimple_omp_teams_clauses): Likewise.
23401 (gimple_omp_teams_clauses_ptr): Likewise.
23402 (gimple_omp_teams_set_clauses): Likewise.
23403 (gimple_omp_sections_clauses): Likewise.
23404 (gimple_omp_sections_clauses_ptr): Likewise.
23405 (gimple_omp_sections_set_clauses): Likewise.
23406 (gimple_omp_sections_control): Likewise.
23407 (gimple_omp_sections_control_ptr): Likewise.
23408 (gimple_omp_sections_set_control): Likewise.
23409 (gimple_omp_for_set_cond): Likewise.
23410 (gimple_omp_for_cond): Likewise.
23411 (gimple_omp_atomic_store_set_val): Likewise.
23412 (gimple_omp_atomic_store_val): Likewise.
23413 (gimple_omp_atomic_store_val_ptr): Likewise.
23414 (gimple_omp_atomic_load_set_lhs): Likewise.
23415 (gimple_omp_atomic_load_lhs): Likewise.
23416 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23417 (gimple_omp_atomic_load_set_rhs): Likewise.
23418 (gimple_omp_atomic_load_rhs): Likewise.
23419 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23420 (gimple_omp_continue_control_def): Likewise.
23421 (gimple_omp_continue_control_def_ptr): Likewise.
23422 (gimple_omp_continue_set_control_def): Likewise.
23423 (gimple_omp_continue_control_use): Likewise.
23424 (gimple_omp_continue_control_use_ptr): Likewise.
23425 (gimple_omp_continue_set_control_use): Likewise.
23426 (gimple_transaction_body_ptr): Likewise.
23427 (gimple_transaction_label): Likewise.
23428 (gimple_transaction_label_ptr): Likewise.
23429 (gimple_transaction_set_body): Likewise.
23430 (gimple_transaction_set_label): Likewise.
23431
23432 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23433 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23434 * ipa-ref.c (ipa_record_reference): Likewise.
23435 * ipa-reference.c (analyze_function): Likewise.
23436 (ipa_reference_write_optimization_summary): Likewise.
23437 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23438 (address_taken_from_non_vtable_p): Likewise.
23439 (comdat_can_be_unshared_p_1): Likewise.
23440 * lto-cgraph.c (lto_output_ref): Likewise.
23441 (add_references): Likewise.
23442 (compute_ltrans_boundary): Likewise.
23443 (output_symtab): Likewise.
23444 (input_ref): Likewise.
23445 (input_cgraph_1): Likewise.
23446 (output_cgraph_opt_summary): Likewise.
23447 * lto-streamer-out.c (lto_output): Likewise.
23448 (output_symbol_p): Likewise.
23449 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23450 (lsei_start_function_in_partition): Likewise.
23451 (lsei_next_variable_in_partition): Likewise.
23452 (lsei_start_variable_in_partition): Likewise.
23453 * symtab.c (insert_to_assembler_name_hash): Likewise.
23454 (unlink_from_assembler_name_hash): Likewise.
23455 (symtab_unregister_node): Likewise.
23456 (symtab_remove_node): Likewise.
23457 (dump_symtab_node): Likewise.
23458 (verify_symtab_base): Likewise.
23459 (verify_symtab_node): Likewise.
23460 (symtab_make_decl_local): Likewise.
23461 (symtab_alias_ultimate_target): Likewise.
23462 (symtab_resolve_alias): Likewise.
23463 (symtab_get_symbol_partitioning_class): Likewise.
23464 * tree-phinodes.c (allocate_phi_node): Likewise.
23465 (reserve_phi_args_for_new_edge): Likewise.
23466 (remove_phi_args): Likewise.
23467 * varpool.c (varpool_node_for_asm): Likewise.
23468 (varpool_remove_unreferenced_decls): Likewise.
23469
23470 2014-04-23 Jeff Law <law@redhat.com>
23471
23472 PR tree-optimization/60902
23473 * tree-ssa-threadedge.c
23474 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23475 invalidate outputs from statements that do not produce useful
23476 outputs for threading.
23477
23478 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23479
23480 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23481 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23482 machine descriptions for Stack Smashing Protector.
23483
23484 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23485
23486 * aarch64.md (<optab>_rol<mode>3): New pattern.
23487 (<optab>_rolsi3_uxtw): Likewise.
23488 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23489
23490 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23491
23492 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23493 (arm_cortex_a12_tune): Likewise.
23494
23495 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23496
23497 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23498
23499 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23500
23501 * config/arm/arm.md (arm_rev16si2): New pattern.
23502 (arm_rev16si2_alt): Likewise.
23503 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23504
23505 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23506
23507 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23508 (rev16<mode>2_alt): Likewise.
23509 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23510 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23511 (aarch_rev16_shleft_mask_imm_p): Likewise.
23512 (aarch_rev16_p_1): Likewise.
23513 (aarch_rev16_p): Likewise.
23514 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23515 (aarch_rev16_shright_mask_imm_p): Likewise.
23516 (aarch_rev16_shleft_mask_imm_p): Likewise.
23517
23518 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23519
23520 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23521 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23522 rev cost.
23523 (cortex_a53_extra_costs): Likewise.
23524 (cortex_a57_extra_costs): Likewise.
23525 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23526 (cortexa7_extra_costs): Likewise.
23527 (cortexa8_extra_costs): Likewise.
23528 (cortexa12_extra_costs): Likewise.
23529 (cortexa15_extra_costs): Likewise.
23530 (v7m_extra_costs): Likewise.
23531 (arm_new_rtx_costs): Handle BSWAP.
23532
23533 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23534
23535 * config/arm/arm.c (cortexa8_extra_costs): New table.
23536 (arm_cortex_a8_tune): New tuning struct.
23537 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23538
23539 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23540
23541 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23542
23543 2014-04-23 Richard Biener <rguenther@suse.de>
23544
23545 * Makefile.in (OBJS): Remove loop-unswitch.o.
23546 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23547 * passes.def (pass_rtl_unswitch): Likewise.
23548 * loop-init.c (gate_rtl_unswitch): Likewise.
23549 (rtl_unswitch): Likewise.
23550 (pass_data_rtl_unswitch): Likewise.
23551 (pass_rtl_unswitch): Likewise.
23552 (make_pass_rtl_unswitch): Likewise.
23553 * rtl.h (reversed_condition): Likewise.
23554 (compare_and_jump_seq): Likewise.
23555 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23556 and make static.
23557 * loop-unroll.c (compare_and_jump_seq): Likewise.
23558
23559 2014-04-23 Richard Biener <rguenther@suse.de>
23560
23561 PR tree-optimization/60903
23562 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23563 commented code block.
23564 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23565 loop flags to newly created BBs and edges.
23566
23567 2014-04-23 Nick Clifton <nickc@redhat.com>
23568
23569 * config/msp430/msp430.c (msp430_handle_option): Move function
23570 to msp430-common.c
23571 (msp430_option_override): Simplify mcu and mcpu option handling.
23572 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23573 support for -mhwmult command line option.
23574 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23575 -mhwmult command line option.
23576 (msp430_hwmult_enabled): Delete.
23577 (msp43o_output_labelref): Add support for -mhwmult command line option.
23578 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23579 (umulsidi3): Likewise.
23580 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23581 (mcpu, mlarge, msmall): Likewise.
23582 (mhwmult): New option.
23583 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23584 prototype.
23585 (msp430_is_f5_mcu): Remove prototype.
23586 (msp430_use_f5_series_hwmult): Add prototype.
23587 * config/msp430/msp430-opts.h: New file.
23588 * common/config/msp430: New directory.
23589 * common/config/msp430/msp430-common.c: New file.
23590 * config.gcc (msp430): Remove target_has_targetm_common.
23591 * doc/invoke.texi: Document -mhwmult command line option.
23592
23593 2014-04-23 Nick Clifton <nickc@redhat.com>
23594
23595 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23596 default-manifest.o if it can be found in the search path.
23597 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23598
23599 2014-04-23 Terry Guo <terry.guo@arm.com>
23600
23601 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23602
23603 2014-04-23 Richard Biener <rguenther@suse.de>
23604
23605 PR middle-end/60895
23606 * tree-inline.c (declare_return_variable): Use mark_addressable.
23607
23608 2014-04-23 Richard Biener <rguenther@suse.de>
23609
23610 PR middle-end/60891
23611 * loop-init.c (loop_optimizer_init): Make sure to apply
23612 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23613
23614 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23615
23616 PR sanitizer/60275
23617 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23618 New options.
23619 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23620 if flag_sanitize_undefined_trap_on_error.
23621 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23622 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23623 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23624 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23625 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23626 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23627 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23628 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23629 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23630 * ubsan.c (ubsan_instrument_unreachable): Return
23631 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23632 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23633 if flag_sanitize_undefined_trap_on_error and
23634 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23635 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23636 instrument_bool_enum_load): Emit __builtin_trap () if
23637 flag_sanitize_undefined_trap_on_error and
23638 __builtin_handle_*_abort () if !flag_sanitize_recover.
23639 * doc/invoke.texi (-fsanitize-recover,
23640 -fsanitize-undefined-trap-on-error): Document.
23641
23642 2014-04-22 Christian Bruel <christian.bruel@st.com>
23643
23644 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23645 Force immediates to SImode.
23646
23647 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23648
23649 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23650 (lroundsfsi2): New.
23651 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23652 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23653 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23654 (nios2_fpu_insn): Add entry for round.
23655 (N2FPU_NO_ERRNO_P): Define.
23656 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23657 flag_errno_math.
23658 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23659
23660 2014-04-22 Richard Henderson <rth@redhat.com>
23661
23662 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23663 (add<GPI>3_compare0): Remove leading * from name.
23664 (add<GPI>3_carryin): Likewise.
23665 (sub<GPI>3_compare0): Likewise.
23666 (sub<GPI>3_carryin): Likewise.
23667 (<su_optab>mulditi3): New expander.
23668 (multi3): New expander.
23669 (madd<GPI>): Remove leading * from name.
23670
23671 2014-04-22 Martin Jambor <mjambor@suse.cz>
23672
23673 * cgraphclones.c (cgraph_function_versioning): Copy
23674 ipa_transforms_to_apply instead of asserting it is empty.
23675
23676 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23677
23678 PR target/60868
23679 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23680 on count_exp to get mode.
23681
23682 2014-04-22 Andrew Pinski <apinski@cavium.com>
23683
23684 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23685 Handle TLS for ILP32.
23686 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23687 (tlsie_small_<mode>): this and handle PTR.
23688 (tlsie_small_sidi): New pattern.
23689 (tlsle_small): Change to an expand to handle ILP32.
23690 (tlsle_small_<mode>): New pattern.
23691 (tlsdesc_small): Rename to ...
23692 (tlsdesc_small_<mode>): this and handle PTR.
23693
23694 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23695
23696 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23697
23698 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23699
23700 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23701 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23702 (aarch64_types_signed_poly_qualifiers): Likewise.
23703 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23704 (aarch64_types_poly_signed_qualifiers): Likewise.
23705 (TYPES_REINTERP_SS): Type macro added.
23706 (TYPES_REINTERP_SU): Likewise.
23707 (TYPES_REINTERP_SP): Likewise.
23708 (TYPES_REINTERP_US): Likewise.
23709 (TYPES_REINTERP_PS): Likewise.
23710 (aarch64_fold_builtin): New expression folding added.
23711 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23712 Declarations removed.
23713 (REINTERP_SS): Declarations added.
23714 (REINTERP_US): Likewise.
23715 (REINTERP_PS): Likewise.
23716 (REINTERP_SU): Likewise.
23717 (REINTERP_SP): Likewise.
23718 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23719 (vreinterpretq_p8_f64): Likewise.
23720 (vreinterpret_p16_f64): Likewise.
23721 (vreinterpretq_p16_f64): Likewise.
23722 (vreinterpret_f32_f64): Likewise.
23723 (vreinterpretq_f32_f64): Likewise.
23724 (vreinterpret_f64_f32): Likewise.
23725 (vreinterpret_f64_p8): Likewise.
23726 (vreinterpret_f64_p16): Likewise.
23727 (vreinterpret_f64_s8): Likewise.
23728 (vreinterpret_f64_s16): Likewise.
23729 (vreinterpret_f64_s32): Likewise.
23730 (vreinterpret_f64_s64): Likewise.
23731 (vreinterpret_f64_u8): Likewise.
23732 (vreinterpret_f64_u16): Likewise.
23733 (vreinterpret_f64_u32): Likewise.
23734 (vreinterpret_f64_u64): Likewise.
23735 (vreinterpretq_f64_f32): Likewise.
23736 (vreinterpretq_f64_p8): Likewise.
23737 (vreinterpretq_f64_p16): Likewise.
23738 (vreinterpretq_f64_s8): Likewise.
23739 (vreinterpretq_f64_s16): Likewise.
23740 (vreinterpretq_f64_s32): Likewise.
23741 (vreinterpretq_f64_s64): Likewise.
23742 (vreinterpretq_f64_u8): Likewise.
23743 (vreinterpretq_f64_u16): Likewise.
23744 (vreinterpretq_f64_u32): Likewise.
23745 (vreinterpretq_f64_u64): Likewise.
23746 (vreinterpret_s64_f64): Likewise.
23747 (vreinterpretq_s64_f64): Likewise.
23748 (vreinterpret_u64_f64): Likewise.
23749 (vreinterpretq_u64_f64): Likewise.
23750 (vreinterpret_s8_f64): Likewise.
23751 (vreinterpretq_s8_f64): Likewise.
23752 (vreinterpret_s16_f64): Likewise.
23753 (vreinterpretq_s16_f64): Likewise.
23754 (vreinterpret_s32_f64): Likewise.
23755 (vreinterpretq_s32_f64): Likewise.
23756 (vreinterpret_u8_f64): Likewise.
23757 (vreinterpretq_u8_f64): Likewise.
23758 (vreinterpret_u16_f64): Likewise.
23759 (vreinterpretq_u16_f64): Likewise.
23760 (vreinterpret_u32_f64): Likewise.
23761 (vreinterpretq_u32_f64): Likewise.
23762
23763 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23764
23765 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23766 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23767 (vreinterpret_p8_s8): Likewise.
23768 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23769 (vreinterpret_p8_s16): Likewise.
23770 (vreinterpret_p8_s32): Likewise.
23771 (vreinterpret_p8_s64): Likewise.
23772 (vreinterpret_p8_f32): Likewise.
23773 (vreinterpret_p8_u8): Likewise.
23774 (vreinterpret_p8_u16): Likewise.
23775 (vreinterpret_p8_u32): Likewise.
23776 (vreinterpret_p8_u64): Likewise.
23777 (vreinterpret_p8_p16): Likewise.
23778 (vreinterpretq_p8_s8): Likewise.
23779 (vreinterpretq_p8_s16): Likewise.
23780 (vreinterpretq_p8_s32): Likewise.
23781 (vreinterpretq_p8_s64): Likewise.
23782 (vreinterpretq_p8_f32): Likewise.
23783 (vreinterpretq_p8_u8): Likewise.
23784 (vreinterpretq_p8_u16): Likewise.
23785 (vreinterpretq_p8_u32): Likewise.
23786 (vreinterpretq_p8_u64): Likewise.
23787 (vreinterpretq_p8_p16): Likewise.
23788 (vreinterpret_p16_s8): Likewise.
23789 (vreinterpret_p16_s16): Likewise.
23790 (vreinterpret_p16_s32): Likewise.
23791 (vreinterpret_p16_s64): Likewise.
23792 (vreinterpret_p16_f32): Likewise.
23793 (vreinterpret_p16_u8): Likewise.
23794 (vreinterpret_p16_u16): Likewise.
23795 (vreinterpret_p16_u32): Likewise.
23796 (vreinterpret_p16_u64): Likewise.
23797 (vreinterpret_p16_p8): Likewise.
23798 (vreinterpretq_p16_s8): Likewise.
23799 (vreinterpretq_p16_s16): Likewise.
23800 (vreinterpretq_p16_s32): Likewise.
23801 (vreinterpretq_p16_s64): Likewise.
23802 (vreinterpretq_p16_f32): Likewise.
23803 (vreinterpretq_p16_u8): Likewise.
23804 (vreinterpretq_p16_u16): Likewise.
23805 (vreinterpretq_p16_u32): Likewise.
23806 (vreinterpretq_p16_u64): Likewise.
23807 (vreinterpretq_p16_p8): Likewise.
23808 (vreinterpret_f32_s8): Likewise.
23809 (vreinterpret_f32_s16): Likewise.
23810 (vreinterpret_f32_s32): Likewise.
23811 (vreinterpret_f32_s64): Likewise.
23812 (vreinterpret_f32_u8): Likewise.
23813 (vreinterpret_f32_u16): Likewise.
23814 (vreinterpret_f32_u32): Likewise.
23815 (vreinterpret_f32_u64): Likewise.
23816 (vreinterpret_f32_p8): Likewise.
23817 (vreinterpret_f32_p16): Likewise.
23818 (vreinterpretq_f32_s8): Likewise.
23819 (vreinterpretq_f32_s16): Likewise.
23820 (vreinterpretq_f32_s32): Likewise.
23821 (vreinterpretq_f32_s64): Likewise.
23822 (vreinterpretq_f32_u8): Likewise.
23823 (vreinterpretq_f32_u16): Likewise.
23824 (vreinterpretq_f32_u32): Likewise.
23825 (vreinterpretq_f32_u64): Likewise.
23826 (vreinterpretq_f32_p8): Likewise.
23827 (vreinterpretq_f32_p16): Likewise.
23828 (vreinterpret_s64_s8): Likewise.
23829 (vreinterpret_s64_s16): Likewise.
23830 (vreinterpret_s64_s32): Likewise.
23831 (vreinterpret_s64_f32): Likewise.
23832 (vreinterpret_s64_u8): Likewise.
23833 (vreinterpret_s64_u16): Likewise.
23834 (vreinterpret_s64_u32): Likewise.
23835 (vreinterpret_s64_u64): Likewise.
23836 (vreinterpret_s64_p8): Likewise.
23837 (vreinterpret_s64_p16): Likewise.
23838 (vreinterpretq_s64_s8): Likewise.
23839 (vreinterpretq_s64_s16): Likewise.
23840 (vreinterpretq_s64_s32): Likewise.
23841 (vreinterpretq_s64_f32): Likewise.
23842 (vreinterpretq_s64_u8): Likewise.
23843 (vreinterpretq_s64_u16): Likewise.
23844 (vreinterpretq_s64_u32): Likewise.
23845 (vreinterpretq_s64_u64): Likewise.
23846 (vreinterpretq_s64_p8): Likewise.
23847 (vreinterpretq_s64_p16): Likewise.
23848 (vreinterpret_u64_s8): Likewise.
23849 (vreinterpret_u64_s16): Likewise.
23850 (vreinterpret_u64_s32): Likewise.
23851 (vreinterpret_u64_s64): Likewise.
23852 (vreinterpret_u64_f32): Likewise.
23853 (vreinterpret_u64_u8): Likewise.
23854 (vreinterpret_u64_u16): Likewise.
23855 (vreinterpret_u64_u32): Likewise.
23856 (vreinterpret_u64_p8): Likewise.
23857 (vreinterpret_u64_p16): Likewise.
23858 (vreinterpretq_u64_s8): Likewise.
23859 (vreinterpretq_u64_s16): Likewise.
23860 (vreinterpretq_u64_s32): Likewise.
23861 (vreinterpretq_u64_s64): Likewise.
23862 (vreinterpretq_u64_f32): Likewise.
23863 (vreinterpretq_u64_u8): Likewise.
23864 (vreinterpretq_u64_u16): Likewise.
23865 (vreinterpretq_u64_u32): Likewise.
23866 (vreinterpretq_u64_p8): Likewise.
23867 (vreinterpretq_u64_p16): Likewise.
23868 (vreinterpret_s8_s16): Likewise.
23869 (vreinterpret_s8_s32): Likewise.
23870 (vreinterpret_s8_s64): Likewise.
23871 (vreinterpret_s8_f32): Likewise.
23872 (vreinterpret_s8_u8): Likewise.
23873 (vreinterpret_s8_u16): Likewise.
23874 (vreinterpret_s8_u32): Likewise.
23875 (vreinterpret_s8_u64): Likewise.
23876 (vreinterpret_s8_p8): Likewise.
23877 (vreinterpret_s8_p16): Likewise.
23878 (vreinterpretq_s8_s16): Likewise.
23879 (vreinterpretq_s8_s32): Likewise.
23880 (vreinterpretq_s8_s64): Likewise.
23881 (vreinterpretq_s8_f32): Likewise.
23882 (vreinterpretq_s8_u8): Likewise.
23883 (vreinterpretq_s8_u16): Likewise.
23884 (vreinterpretq_s8_u32): Likewise.
23885 (vreinterpretq_s8_u64): Likewise.
23886 (vreinterpretq_s8_p8): Likewise.
23887 (vreinterpretq_s8_p16): Likewise.
23888 (vreinterpret_s16_s8): Likewise.
23889 (vreinterpret_s16_s32): Likewise.
23890 (vreinterpret_s16_s64): Likewise.
23891 (vreinterpret_s16_f32): Likewise.
23892 (vreinterpret_s16_u8): Likewise.
23893 (vreinterpret_s16_u16): Likewise.
23894 (vreinterpret_s16_u32): Likewise.
23895 (vreinterpret_s16_u64): Likewise.
23896 (vreinterpret_s16_p8): Likewise.
23897 (vreinterpret_s16_p16): Likewise.
23898 (vreinterpretq_s16_s8): Likewise.
23899 (vreinterpretq_s16_s32): Likewise.
23900 (vreinterpretq_s16_s64): Likewise.
23901 (vreinterpretq_s16_f32): Likewise.
23902 (vreinterpretq_s16_u8): Likewise.
23903 (vreinterpretq_s16_u16): Likewise.
23904 (vreinterpretq_s16_u32): Likewise.
23905 (vreinterpretq_s16_u64): Likewise.
23906 (vreinterpretq_s16_p8): Likewise.
23907 (vreinterpretq_s16_p16): Likewise.
23908 (vreinterpret_s32_s8): Likewise.
23909 (vreinterpret_s32_s16): Likewise.
23910 (vreinterpret_s32_s64): Likewise.
23911 (vreinterpret_s32_f32): Likewise.
23912 (vreinterpret_s32_u8): Likewise.
23913 (vreinterpret_s32_u16): Likewise.
23914 (vreinterpret_s32_u32): Likewise.
23915 (vreinterpret_s32_u64): Likewise.
23916 (vreinterpret_s32_p8): Likewise.
23917 (vreinterpret_s32_p16): Likewise.
23918 (vreinterpretq_s32_s8): Likewise.
23919 (vreinterpretq_s32_s16): Likewise.
23920 (vreinterpretq_s32_s64): Likewise.
23921 (vreinterpretq_s32_f32): Likewise.
23922 (vreinterpretq_s32_u8): Likewise.
23923 (vreinterpretq_s32_u16): Likewise.
23924 (vreinterpretq_s32_u32): Likewise.
23925 (vreinterpretq_s32_u64): Likewise.
23926 (vreinterpretq_s32_p8): Likewise.
23927 (vreinterpretq_s32_p16): Likewise.
23928 (vreinterpret_u8_s8): Likewise.
23929 (vreinterpret_u8_s16): Likewise.
23930 (vreinterpret_u8_s32): Likewise.
23931 (vreinterpret_u8_s64): Likewise.
23932 (vreinterpret_u8_f32): Likewise.
23933 (vreinterpret_u8_u16): Likewise.
23934 (vreinterpret_u8_u32): Likewise.
23935 (vreinterpret_u8_u64): Likewise.
23936 (vreinterpret_u8_p8): Likewise.
23937 (vreinterpret_u8_p16): Likewise.
23938 (vreinterpretq_u8_s8): Likewise.
23939 (vreinterpretq_u8_s16): Likewise.
23940 (vreinterpretq_u8_s32): Likewise.
23941 (vreinterpretq_u8_s64): Likewise.
23942 (vreinterpretq_u8_f32): Likewise.
23943 (vreinterpretq_u8_u16): Likewise.
23944 (vreinterpretq_u8_u32): Likewise.
23945 (vreinterpretq_u8_u64): Likewise.
23946 (vreinterpretq_u8_p8): Likewise.
23947 (vreinterpretq_u8_p16): Likewise.
23948 (vreinterpret_u16_s8): Likewise.
23949 (vreinterpret_u16_s16): Likewise.
23950 (vreinterpret_u16_s32): Likewise.
23951 (vreinterpret_u16_s64): Likewise.
23952 (vreinterpret_u16_f32): Likewise.
23953 (vreinterpret_u16_u8): Likewise.
23954 (vreinterpret_u16_u32): Likewise.
23955 (vreinterpret_u16_u64): Likewise.
23956 (vreinterpret_u16_p8): Likewise.
23957 (vreinterpret_u16_p16): Likewise.
23958 (vreinterpretq_u16_s8): Likewise.
23959 (vreinterpretq_u16_s16): Likewise.
23960 (vreinterpretq_u16_s32): Likewise.
23961 (vreinterpretq_u16_s64): Likewise.
23962 (vreinterpretq_u16_f32): Likewise.
23963 (vreinterpretq_u16_u8): Likewise.
23964 (vreinterpretq_u16_u32): Likewise.
23965 (vreinterpretq_u16_u64): Likewise.
23966 (vreinterpretq_u16_p8): Likewise.
23967 (vreinterpretq_u16_p16): Likewise.
23968 (vreinterpret_u32_s8): Likewise.
23969 (vreinterpret_u32_s16): Likewise.
23970 (vreinterpret_u32_s32): Likewise.
23971 (vreinterpret_u32_s64): Likewise.
23972 (vreinterpret_u32_f32): Likewise.
23973 (vreinterpret_u32_u8): Likewise.
23974 (vreinterpret_u32_u16): Likewise.
23975 (vreinterpret_u32_u64): Likewise.
23976 (vreinterpret_u32_p8): Likewise.
23977 (vreinterpret_u32_p16): Likewise.
23978 (vreinterpretq_u32_s8): Likewise.
23979 (vreinterpretq_u32_s16): Likewise.
23980 (vreinterpretq_u32_s32): Likewise.
23981 (vreinterpretq_u32_s64): Likewise.
23982 (vreinterpretq_u32_f32): Likewise.
23983 (vreinterpretq_u32_u8): Likewise.
23984 (vreinterpretq_u32_u16): Likewise.
23985 (vreinterpretq_u32_u64): Likewise.
23986 (vreinterpretq_u32_p8): Likewise.
23987 (vreinterpretq_u32_p16): Likewise.
23988
23989 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23990
23991 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23992 Pattern extended.
23993 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23994 (sqabs): Likewise.
23995 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23996 (vqnegd_s64): Likewise.
23997 (vqabs_s64): Likewise.
23998 (vqabsd_s64): Likewise.
23999
24000 2014-04-22 Richard Henderson <rth@redhat.com>
24001
24002 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
24003 computation to the top of the loop.
24004
24005 2014-04-22 Renlin <renlin.li@arm.com>
24006 Jiong Wang <jiong.wang@arm.com>
24007
24008 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
24009 * config/aarch64/aarch64.c (aarch64_layout_frame)
24010 (aarch64_initial_elimination_offset): Likewise.
24011
24012 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
24013
24014 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
24015 Fix indentation.
24016
24017 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
24018
24019 * machmode.h (bitwise_mode_for_mode): Declare.
24020 * stor-layout.h (bitwise_type_for_mode): Likewise.
24021 * stor-layout.c (bitwise_mode_for_mode): New function.
24022 (bitwise_type_for_mode): Likewise.
24023 * builtins.c (fold_builtin_memory_op): Use it instead of
24024 int_mode_for_mode and build_nonstandard_integer_type.
24025
24026 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24027
24028 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
24029 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
24030 (*-*-solaris2*): Simplify.
24031 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
24032 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
24033 *-*-solaris2.9* handling.
24034
24035 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
24036 as bug.
24037 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
24038 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
24039 handling, simplify.
24040 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
24041 * configure: Regenerate.
24042
24043 * config/i386/sol2-9.h: Remove.
24044
24045 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
24046 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
24047 Remove Solaris 9 references.
24048
24049 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
24050
24051 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
24052 (floatuns<GPI:mode><GPF:mode>2): Remove.
24053 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
24054 and floatuns conversions.
24055 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
24056 and floatuns conversions.
24057 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
24058 (w1,w2): New mode attributes for inequal width conversions.
24059
24060 2014-04-22 Renlin Li <Renlin.Li@arm.com>
24061
24062 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
24063 the output asm format.
24064
24065 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
24066
24067 * config/aarch64/aarch64-simd.md
24068 (aarch64_cm<optab>di): Always split.
24069 (*aarch64_cm<optab>di): New.
24070 (aarch64_cmtstdi): Always split.
24071 (*aarch64_cmtstdi): New.
24072
24073 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24074
24075 PR tree-optimization/60823
24076 * omp-low.c (ipa_simd_modify_function_body): Go through
24077 all SSA_NAMEs and for those refering to vector arguments
24078 which are going to be replaced adjust SSA_NAME_VAR and,
24079 if it is a default definition, change it into a non-default
24080 definition assigned at the beginning of function from new_decl.
24081 (ipa_simd_modify_stmt_ops): Rewritten.
24082 * tree-dfa.c (set_ssa_default_def): When removing default def,
24083 check for NULL loc instead of NULL *loc.
24084
24085 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24086
24087 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
24088 restrictions on core registers for DImode values in Thumb2.
24089
24090 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24091
24092 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
24093 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
24094
24095 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24096
24097 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
24098 (*iordi_notzesidi_di): Likewise.
24099 (*iordi_notsesidi_di): Likewise.
24100
24101 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24102
24103 * config/arm/arm-protos.h (tune_params): New struct members.
24104 * config/arm/arm.c: Initialise tune_params per processor.
24105 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24106 for speed, based on new tune_params.
24107
24108 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24109
24110 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24111 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24112 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24113 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24114 * config/aarch64/arm_neon.h (vrnd_f64): Added.
24115 (vrnda_f64): Likewise.
24116 (vrndi_f64): Likewise.
24117 (vrndm_f64): Likewise.
24118 (vrndn_f64): Likewise.
24119 (vrndp_f64): Likewise.
24120 (vrndx_f64): Likewise.
24121
24122 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24123
24124 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24125 GET_MODE_SIZE argument is enum machine_mode.
24126
24127 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24128
24129 PR target/60910
24130 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24131 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24132
24133 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
24134
24135 PR middle-end/60281
24136 * asan.c (asan_emit_stack_protection): Force the base to align to
24137 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
24138 appropriate bits if STRICT_ALIGNMENT.
24139 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24140 when asan is on.
24141 (expand_used_vars): Leave a space in the stack frame for alignment
24142 if STRICT_ALIGNMENT.
24143
24144 2014-04-21 David Malcolm <dmalcolm@redhat.com>
24145
24146 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24147 than a gimple.
24148 (gimple_store_p): Likewise.
24149 (gimple_assign_load_p): Likewise.
24150 (gimple_assign_cast_p): Likewise.
24151 (gimple_clobber_p): Likewise.
24152
24153 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24154 rather than a gimple.
24155 (gimple_assign_cast_p): Likewise.
24156
24157 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24158
24159 PR target/60735
24160 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24161 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24162
24163 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24164 more debug information for E500 if -mdebug=reg.
24165
24166 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24167
24168 PR target/60909
24169 * config/i386/i386.c (ix86_expand_builtin)
24170 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24171 register for target RTX.
24172 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24173
24174 2014-04-18 Cong Hou <congh@google.com>
24175
24176 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24177 the widen-mult pattern by handling two operands with different sizes,
24178 and operands whose size is smaller than half of the result type.
24179
24180 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24181
24182 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24183 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24184 (do_estimate_edge_time): Compute it.
24185 * ipa-inline.c (want_inline_small_function_p): Bypass
24186 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24187
24188 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24189
24190 * ipa-inline.c (spec_rem): New static variable.
24191 (dump_overall_stats): New function.
24192 (dump_inline_stats): New function.
24193
24194 2014-04-18 Richard Henderson <rth@redhat.com>
24195
24196 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24197 to GET_MODE_SIZE, not a reg_class_t.
24198
24199 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24200
24201 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24202 (vsx_xxmrglw_<mode>): Likewise.
24203
24204 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24205
24206 PR target/60876
24207 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24208 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24209 (rs6000_init_hard_regno_mode_ok): Likewise.
24210
24211 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24212
24213 * ipa-inline.c (inline_small_functions): Account only non-cold
24214 functions.
24215 * doc/invoke.texi (inline-unit-growth): Update documentation.
24216
24217 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24218
24219 * config/rs6000/rs6000.md (addti3, subti3): New.
24220
24221 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24222
24223 PR target/60863
24224 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24225 comment. Check optimize_insn_for_size_p instead of
24226 optimize_insn_for_speed_p.
24227
24228 2014-04-17 Martin Jambor <mjambor@suse.cz>
24229
24230 * gimple-iterator.c (gsi_start_edge): New function.
24231 * gimple-iterator.h (gsi_start_edge): Declare.
24232 * tree-sra.c (single_non_eh_succ): New function.
24233 (disqualify_ops_if_throwing_stmt): Renamed to
24234 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24235 having one non-EH successor BB.
24236 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24237 generate loads into replacements.
24238 (sra_modify_assign): Likewise and and also use the simple path for
24239 such statements.
24240 (sra_modify_function_body): Commit statements on edges.
24241
24242 2014-04-17 Richard Biener <rguenther@suse.de>
24243
24244 PR middle-end/60849
24245 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24246 comparison results and add clarifying comment.
24247
24248 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24249
24250 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24251 (blank_mode): Initialize it.
24252 (emit_mode_size_inline, emit_mode_nunits_inline,
24253 emit_mode_inner_inline): New functions.
24254 (emit_insn_modes_h): Call them and surround their output with
24255 #if GCC_VERSION >= 4001 ... #endif.
24256 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24257 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24258 mode_* arrays if the argument is __builtin_constant_p.
24259 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24260 is enum machine_mode.
24261
24262 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24263
24264 * passes.c (opt_pass::execute): Adjust.
24265 (pass_manager::execute_pass_mode_switching): Likewise.
24266 (early_local_passes::execute): Likewise.
24267 (execute_one_pass): Pass cfun to the pass's execute method.
24268 * tree-pass.h (opt_pass::execute): Add function * argument.
24269 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24270 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24271 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24272 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24273 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24274 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24275 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24276 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24277 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24278 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24279 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24280 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24281 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24282 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24283 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24284 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24285 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24286 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24287 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24288 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24289 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24290 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24291 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24292 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24293 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24294 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24295 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24296 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24297 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24298 Adjust.
24299
24300 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24301
24302 * passes.c (opt_pass::gate): Take function * argument.
24303 (gate_all_early_local_passes): Merge into
24304 (early_local_passes::gate): this.
24305 (gate_all_early_optimizations): Merge into
24306 (all_early_optimizations::gate): this.
24307 (gate_all_optimizations): Mege into
24308 (all_optimizations::gate): this.
24309 (gate_all_optimizations_g): Merge into
24310 (all_optimizations_g::gate): this.
24311 (gate_rest_of_compilation): Mege into
24312 (rest_of_compilation::gate): this.
24313 (gate_postreload): Merge into
24314 (postreload::gate): this.
24315 (dump_one_pass): Pass cfun to the pass's gate method.
24316 (execute_ipa_summary_passes): Likewise.
24317 (execute_one_pass): Likewise.
24318 (ipa_write_summaries_2): Likewise.
24319 (ipa_write_optimization_summaries_1): Likewise.
24320 (ipa_read_summaries_1): Likewise.
24321 (ipa_read_optimization_summaries_1): Likewise.
24322 (execute_ipa_stmt_fixups): Likewise.
24323 * tree-pass.h (opt_pass::gate): Add function * argument.
24324 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24325 combine-stack-adj.c, combine.c, compare-elim.c,
24326 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24327 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24328 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24329 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24330 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24331 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24332 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24333 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24334 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24335 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24336 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24337 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24338 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24339 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24340 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24341 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24342 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24343 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24344 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24345 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24346 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24347 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24348 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24349 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24350 var-tracking.c, vtable-verify.c, web.c: Adjust.
24351
24352 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24353
24354 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24355 * configure: Regenerate.
24356
24357 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24358
24359 * passes.c (dump_one_pass): don't check pass->has_gate.
24360 (execute_ipa_summary_passes): Likewise.
24361 (execute_one_pass): Likewise.
24362 (ipa_write_summaries_2): Likewise.
24363 (ipa_write_optimization_summaries_1): Likewise.
24364 (ipa_read_optimization_summaries_1): Likewise.
24365 (execute_ipa_stmt_fixups): Likewise.
24366 * tree-pass.h (pass_data::has_gate): Remove.
24367 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24368 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24369 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24370 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24371 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24372 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24373 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24374 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24375 gimple-low.c, gimple-ssa-isolate-paths.c,
24376 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24377 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24378 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24379 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24380 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24381 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24382 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24383 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24384 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24385 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24386 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24387 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24388 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24389 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24390 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24391 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24392 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24393 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24394 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24395 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24396 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24397 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24398 Adjust.
24399
24400 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24401
24402 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24403 declaration.
24404 * passes.c (pass_manager::register_dump_files_1): Merge into
24405 (pass_manager::register_dump_files): this, and remove its handling of
24406 properties since the pass always has the properties anyway.
24407 (pass_manager::pass_manager): Adjust.
24408
24409 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24410
24411 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24412 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24413 dealing with properties.
24414 (pass_manager::register_dump_files): Adjust.
24415
24416 2014-03-20 Mark Wielaard <mjw@redhat.com>
24417
24418 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24419 then represent the bound as normal constant value.
24420
24421 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24422
24423 PR target/60847
24424 Forward port from 4.8 branch
24425 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24426
24427 * config/i386/bmiintrin.h (_blsi_u32): New.
24428 (_blsi_u64): Ditto.
24429 (_blsr_u32): Ditto.
24430 (_blsr_u64): Ditto.
24431 (_blsmsk_u32): Ditto.
24432 (_blsmsk_u64): Ditto.
24433 (_tzcnt_u32): Ditto.
24434 (_tzcnt_u64): Ditto.
24435
24436 2014-04-17 Kito Cheng <kito@0xlab.org>
24437
24438 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24439
24440 2014-04-17 Richard Biener <rguenther@suse.de>
24441
24442 PR middle-end/60849
24443 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24444 boolean results for comparisons.
24445
24446 2014-04-17 Richard Biener <rguenther@suse.de>
24447
24448 PR tree-optimization/60836
24449 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24450 initial PHI args to be gimple values.
24451
24452 2014-04-17 Richard Biener <rguenther@suse.de>
24453
24454 PR tree-optimization/60841
24455 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24456 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24457 of stmts to SLP build.
24458 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24459 (vect_analyze_slp): Likewise.
24460 (vect_analyze_slp_instance): Likewise.
24461 (vect_build_slp_tree): Limit overall SLP tree growth.
24462 * tree-vectorizer.h (vect_analyze_data_refs,
24463 vect_analyze_slp): Adjust prototypes.
24464
24465 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24466
24467 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24468 Silvermont.
24469
24470 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24471
24472 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24473 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24474 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24475 for TARGET_SLOW_PSHUFB
24476
24477 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24478
24479 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24480 * config/i386/i386.c (intel_cost): Ditto.
24481
24482 2014-04-17 Joey Ye <joey.ye@arm.com>
24483
24484 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24485
24486 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24487
24488 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24489 with -fuse-profile.
24490
24491 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24492
24493 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24494 (type_all_derivations_known_p): New predicate.
24495 (type_all_ctors_visible_p): New predicate.
24496 (type_possibly_instantiated_p): New predicate.
24497 (get_odr_type): Compute all_derivations_known.
24498 (dump_odr_type): Dump the flag.
24499 (maybe_record_type): Cleanup.
24500 (record_target_from_binfo): Add bases_to_consider array;
24501 record bases for types w/o instances and skip CXX destructor.
24502 (possible_polymorphic_call_targets_1): Add bases_to_consider
24503 and consider_construction parameters; check if type may have instance.
24504 (get_polymorphic_call_info): Set maybe_in_construction to true
24505 when we know nothing.
24506 (record_targets_from_bases): Skip CXX destructors; they are
24507 never called for types in construction.
24508 (possible_polymorphic_call_targets): Do not record target when
24509 type may not have instance.
24510
24511 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24512
24513 PR ipa/60854
24514 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24515 external aliases alive, too.
24516
24517 2014-04-16 Andrew Pinski <apinski@cavium.com>
24518
24519 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24520 definition.
24521
24522 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24523
24524 * final.c (compute_alignments): Do not apply loop alignment to a block
24525 falling through to the exit.
24526
24527 2014-04-16 Catherine Moore <clm@codesourcery.com>
24528
24529 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24530 Adjust constraints for microMIPS store patterns.
24531
24532 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24533
24534 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24535
24536 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24537
24538 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24539 (append_use): Run at -O0.
24540 (append_vdef): Likewise.
24541 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24542 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24543
24544 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24545
24546 PR tree-optimization/60844
24547 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24548 (propagate_op_to_single_use, remove_visited_stmt_chain,
24549 linearize_expr, repropagate_negates, reassociate_bb): Use it
24550 instead of gsi_remove.
24551
24552 2014-04-16 Martin Jambor <mjambor@suse.cz>
24553
24554 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24555 ipa_transforms_to_apply.
24556 (cgraph_function_versioning): Assert that old_node has empty
24557 ipa_transforms_to_apply.
24558 * trans-mem.c (ipa_tm_create_version): Likewise.
24559 * tree-inline.c (tree_function_versioning): Do not duplicate
24560 ipa_transforms_to_apply.
24561
24562 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24563
24564 PR target/60817
24565 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24566 x86_64-*-* cases.
24567 Pass necessary as flags on 64-bit Solaris/x86.
24568 Use lowercase relocs for x86_64-*-*.
24569 * configure: Regenerate.
24570
24571 2014-04-15 Jan Hubicka <jh@suse.cz>
24572
24573 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24574 (maybe_record_node, likely_target_p): Use it.
24575
24576 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24577
24578 PR target/60839
24579 Revert following patch
24580
24581 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24582
24583 PR target/60735
24584 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24585 software floating point or no floating point registers, do not
24586 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24587 in GPRs that occurs after we tested for GPRs that would never be
24588 true.
24589
24590 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24591 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24592 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24593 specifically allow DDmode, since that does not use the SPE SIMD
24594 instructions.
24595
24596 2014-03-21 Mark Wielaard <mjw@redhat.com>
24597
24598 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24599 as unsigned or int depending on type and value used.
24600
24601 2014-04-15 Richard Biener <rguenther@suse.de>
24602
24603 PR rtl-optimization/56965
24604 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24605 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24606 ... here.
24607 * alias.c (true_dependence_1): Do not call
24608 nonoverlapping_component_refs_p.
24609 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24610 nonoverlapping_component_refs_p.
24611 (indirect_refs_may_alias_p): Likewise.
24612
24613 2014-04-15 Teresa Johnson <tejohnson@google.com>
24614
24615 * cfg.c (dump_bb_info): Fix flags check.
24616 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24617
24618 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24619
24620 PR rtl-optimization/60663
24621 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24622 avoid 0 cost.
24623
24624 2014-04-15 Richard Biener <rguenther@suse.de>
24625
24626 * lto-streamer.h (LTO_major_version): Bump to 4.
24627
24628 2014-04-15 Richard Biener <rguenther@suse.de>
24629
24630 * common.opt (lto_partition_model): New enum.
24631 (flto-partition=): Merge separate options with a single with argument,
24632 add -flto-partition=one support.
24633 * flag-types.h (enum lto_partition_model): Declare.
24634 * opts.c (finish_options): Remove duplicate -flto-partition=
24635 option check.
24636 * lto-wrapper.c (run_gcc): Adjust.
24637
24638 2014-04-15 Richard Biener <rguenther@suse.de>
24639
24640 * alias.c (ncr_compar): New function.
24641 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24642
24643 2014-04-15 Richard Biener <rguenther@suse.de>
24644
24645 * alias.c (record_component_aliases): Do not walk BINFOs.
24646
24647 2014-04-15 Richard Biener <rguenther@suse.de>
24648
24649 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24650 Add struct function argument and adjust.
24651 (find_func_aliases_for_call): Likewise.
24652 (find_func_aliases): Likewise.
24653 (find_func_clobbers): Likewise.
24654 (intra_create_variable_infos): Likewise.
24655 (compute_points_to_sets): Likewise.
24656 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24657
24658 2014-04-15 Richard Biener <rguenther@suse.de>
24659
24660 * tree.c (iterative_hash_expr): Use enum tree_code_class
24661 to store TREE_CODE_CLASS.
24662 (tree_block): Likewise.
24663 (tree_set_block): Likewise.
24664 * tree.h (fold_build_pointer_plus_loc): Use
24665 convert_to_ptrofftype_loc.
24666
24667 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24668
24669 PR plugins/59335
24670 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24671 added in 4.9.
24672
24673 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24674
24675 * cfgloop.h (struct loop): Move force_vectorize down.
24676 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24677 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24678 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24679 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24680 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24681 * tree-core.h (enum annot_expr_kind): Add new kind values.
24682 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24683 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24684 kinds.
24685 * tree.def (ANNOTATE_EXPR): Tweak comment.
24686
24687 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24688
24689 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24690 cxa_pure_virtual).
24691
24692 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24693
24694 * tree.h (TYPE_IDENTIFIER): Declare.
24695 * tree.c (subrange_type_for_debug_p): Use it.
24696 * godump.c (go_format_type): Likewise.
24697 * dwarf2out.c (is_cxx_auto, modified_type_die,
24698 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24699 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24700
24701 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24702
24703 PR lto/60820
24704 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24705
24706 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24707
24708 * config/i386/i386.c (examine_argument): Return bool. Return true if
24709 parameter should be passed in memory.
24710 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24711 (construct_container): Update calls to examine_argument.
24712 (function_arg_advance_64): Ditto.
24713 (return_in_memory_32): Merge with ix86_return_in_memory.
24714 (return_in_memory_64): Ditto.
24715 (return_in_memory_ms_64): Ditto.
24716
24717 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24718
24719 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24720 * coverage.c (coverage_compute_profile_id): Handle externally visible
24721 symbols.
24722
24723 2014-04-14 Martin Jambor <mjambor@suse.cz>
24724
24725 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24726 DECL_DISREGARD_INLINE_LIMITS functions.
24727
24728 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24729
24730 PR target/60827
24731 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24732
24733 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24734
24735 PR target/60827
24736 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24737 optimize_insn_for_speed_p instead of
24738 optimize_function_for_speed_p.
24739
24740 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24741
24742 * doc/invoke.texi (free): Document AArch64.
24743
24744 2014-04-14 Richard Biener <rguenther@suse.de>
24745
24746 PR tree-optimization/60042
24747 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24748 (insert_into_preds_of_block): Do not prevent PHI insertion
24749 for REFERENCE exprs here ...
24750 (eliminate_dom_walker::before_dom_children): ... but prevent
24751 their use here under similar conditions when applied to the
24752 IL after PRE optimizations.
24753
24754 2014-04-14 Richard Biener <rguenther@suse.de>
24755
24756 * passes.def: Move early points-to after early SRA.
24757
24758 2014-04-14 Richard Biener <rguenther@suse.de>
24759
24760 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24761 check for which sign-changes we allow when forwarding
24762 a converted value into a switch.
24763
24764 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24765
24766 * stor-layout.c (place_field): Finalize non-constant offset for the
24767 field, if any.
24768
24769 2014-04-14 Richard Biener <rguenther@suse.de>
24770
24771 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24772 as argument.
24773 (expand_switch_using_bit_tests_p): Likewise.
24774 (process_switch): Compute and pass on speed_p based on the
24775 switch stmt.
24776 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24777 optimize_bb_for_speed_p.
24778
24779 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24780
24781 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24782 * function.h (struct function): Rename has_force_vect_loops into
24783 has_force_vectorize_loops.
24784 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24785 (input_struct_function_base): Likewise.
24786 * lto-streamer-out.c (output_cfg): Likewise.
24787 (output_struct_function_base): Likewise.
24788 * omp-low.c (expand_omp_simd): Likewise.
24789 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24790 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24791 (version_loop_for_if_conversion): Likewise.
24792 (tree_if_conversion): Likewise.
24793 (main_tree_if_conversion): Likewise.
24794 (gate_tree_if_conversion): Likewise.
24795 * tree-inline.c (copy_loops): Likewise.
24796 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24797 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24798 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24799 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24800 * tree-vectorizer.c (vectorize_loops): Likewise.
24801 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24802
24803 2014-04-14 Richard Biener <rguenther@suse.de>
24804
24805 PR lto/60720
24806 * lto-streamer-out.c (wrap_refs): New function.
24807 (lto_output): Wrap symbol references in global initializes in
24808 type-preserving MEM_REFs.
24809
24810 2014-04-14 Christian Bruel <christian.bruel@st.com>
24811
24812 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24813
24814 2014-04-14 Christian Bruel <christian.bruel@st.com>
24815
24816 * config/sh/sh.md (setmemqi): New expand pattern.
24817 * config/sh/sh.h (CLEAR_RATIO): Define.
24818 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24819 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24820
24821 2014-04-14 Richard Biener <rguenther@suse.de>
24822
24823 PR middle-end/55022
24824 * fold-const.c (negate_expr_p): Don't negate directional rounding
24825 division.
24826 (fold_negate_expr): Likewise.
24827
24828 2014-04-14 Richard Biener <rguenther@suse.de>
24829
24830 PR tree-optimization/59817
24831 PR tree-optimization/60453
24832 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24833 recursion to catch all CHRECs in the scalar evolution and restrict
24834 the predicate for the remains appropriately.
24835
24836 2014-04-12 Catherine Moore <clm@codesourcery.com>
24837
24838 * config/mips/constraints.md: Add new register constraint "kb".
24839 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24840 (*movhi_internal): Likewise.
24841 (*movqi_internal): Likewise.
24842 * config/mips/mips.h (M16_STORE_REGS): New register class.
24843 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24844 (REG_CLASS_CONTENTS): Likewise.
24845 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24846
24847 2014-04-11 Tobias Burnus <burnus@net-b.de>
24848
24849 PR c/60194
24850 * doc/invoke.texi (-Wformat-signedness): Document it.
24851 (Wformat=2): Mention that this enables -Wformat-signedness.
24852
24853 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24854
24855 * common/config/epiphany/epiphany-common.c
24856 (epiphany_option_optimization_table): Enable section anchors by
24857 default at -O1 or higher.
24858 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24859 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24860 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24861 carries no extra cost.
24862 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24863 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24864 * config/epiphany/predicates.md (memclob_operand): New predicate.
24865 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24866 Use memclob_operand predicate and X constraint for operand 3.
24867
24868 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24869
24870 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24871 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24872 its operands.
24873
24874 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24875
24876 PR rtl-optimization/60651
24877 * mode-switching.c (optimize_mode_switching): Make sure to emit
24878 sets of a lower numbered entity before sets of a higher numbered
24879 entity to a mode of the same or lower priority.
24880 When creating a seginfo for a basic block that starts with a code
24881 label, move the insertion point past the code label.
24882 (new_seginfo): Document and enforce requirement that
24883 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24884 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24885 * doc/tm.texi: Regenerate.
24886
24887 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24888
24889 PR target/60811
24890 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24891
24892 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24893
24894 * BASE-VER: Set to 4.10.0.
24895
24896 2014-04-11 Tobias Burnus <burnus@net-b.de>
24897
24898 PR other/59055
24899 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24900 * doc/gcc.texi (Service): Update description in the @menu
24901 * doc/invoke.texi (Option Summary): Remove misplaced and
24902 duplicated @menu.
24903
24904 2014-04-11 Steve Ellcey <sellcey@mips.com>
24905 Jakub Jelinek <jakub@redhat.com>
24906
24907 PR middle-end/60556
24908 * expr.c (convert_move): Use emit_store_flag_force instead of
24909 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24910 argument to it.
24911
24912 2014-04-11 Richard Biener <rguenther@suse.de>
24913
24914 PR middle-end/60797
24915 * varasm.c (assemble_alias): Avoid endless error reporting
24916 recursion by setting TREE_ASM_WRITTEN.
24917
24918 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24919
24920 * config/s390/s390.md: Add a splitter for NOT rtx.
24921
24922 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24923
24924 PR rtl-optimization/60663
24925 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24926
24927 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24928 Jakub Jelinek <jakub@redhat.com>
24929
24930 PR lto/60567
24931 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24932 flag from decl_node to node.
24933
24934 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24935
24936 PR debug/60655
24937 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24938 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24939 ameliorating the cases where it can be.
24940
24941 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24942
24943 Revert
24944 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24945
24946 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24947 (loadsync_<mode>): Change mode.
24948 (load_quadpti, store_quadpti): New.
24949 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24950 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24951 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24952
24953 2014-04-09 Cong Hou <congh@google.com>
24954
24955 PR testsuite/60773
24956 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24957 documentation.
24958
24959 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24960
24961 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24962 instead of vnor to exploit possible fusion opportunity in the
24963 future.
24964 (altivec_expand_vec_perm_const_le): Likewise.
24965
24966 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24967
24968 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24969 (loadsync_<mode>): Change mode.
24970 (load_quadpti, store_quadpti): New.
24971 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24972 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24973
24974 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24975
24976 PR target/60763
24977 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24978 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24979 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24980
24981 2014-04-08 Richard Biener <rguenther@suse.de>
24982
24983 PR middle-end/60706
24984 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24985 a 64bit widest int print double-int similar to on HWI64 hosts.
24986
24987 2014-04-08 Richard Biener <rguenther@suse.de>
24988
24989 PR tree-optimization/60785
24990 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24991 default defs properly.
24992
24993 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24994
24995 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24996 (Weffc++): Likewise.
24997
24998 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24999
25000 * ipa-devirt.c (maybe_record_node): When node is not recorded,
25001 set completep to false rather than true.
25002
25003 2014-04-07 Douglas B Rupp <rupp@adacore.com>
25004
25005 PR target/60504
25006 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
25007 ARM_TARGET2_DWARF_FORMAT.
25008
25009 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
25010
25011 PR target/60609
25012 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
25013 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
25014 ADDR_DIFF_VEC.
25015
25016 2014-04-07 Richard Biener <rguenther@suse.de>
25017
25018 PR tree-optimization/60766
25019 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
25020 (may_eliminate_iv): Convert cand_value_at result to desired type.
25021
25022 2014-04-07 Jason Merrill <jason@redhat.com>
25023
25024 PR c++/60731
25025 * common.opt (-fno-gnu-unique): Add.
25026 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
25027
25028 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25029
25030 * haifa-sched.c: Fix outdated function reference and minor
25031 grammar errors in introductory comment.
25032
25033 2014-04-07 Richard Biener <rguenther@suse.de>
25034
25035 PR middle-end/60750
25036 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
25037 for noreturn calls.
25038 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
25039
25040 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
25041
25042 PR debug/55794
25043 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
25044 size accounting for thunks.
25045 (pa_asm_output_mi_thunk): Use final_start_function() and
25046 final_end_function() to output function start and end directives.
25047
25048 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
25049
25050 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
25051 device specific ISA/ feature information. Remove short_sp and
25052 errata_skip ds. Add avr_device_specific_features enum to have device
25053 specific info.
25054 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
25055 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
25056 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
25057 updated device specific info.
25058 * config/avr/avr-mcus.def: Merge device specific details to
25059 dev_attribute field.
25060 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
25061 errata_skip.
25062 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
25063 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
25064 assembler if RMW isa supported by current device.
25065 * config/avr/genmultilib.awk: Update as device info structure changed.
25066 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
25067
25068 2014-04-04 Cong Hou <congh@google.com>
25069
25070 PR tree-optimization/60656
25071 * tree-vect-stmts.c (supportable_widening_operation):
25072 Fix a bug that elements in a vector with vect_used_by_reduction
25073 property are incorrectly reordered when the operation on it is not
25074 consistant with the one in reduction operation.
25075
25076 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
25077
25078 PR rtl-optimization/60155
25079 * gcse.c (record_set_data): New function.
25080 (single_set_gcse): New function.
25081 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
25082 (hoist_code): Likewise.
25083 (get_pressure_class_and_nregs): Likewise.
25084
25085 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
25086
25087 * explow.c (probe_stack_range): Emit a final optimization blockage.
25088
25089 2014-04-04 Anthony Green <green@moxielogic.com>
25090
25091 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
25092 typos.
25093
25094 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
25095
25096 PR ipa/59626
25097 * lto-cgraph.c (input_overwrite_node): Check that partitioning
25098 flags are set only during streaming.
25099 * ipa.c (process_references, walk_polymorphic_call_targets,
25100 symtab_remove_unreachable_nodes): Drop bodies of always inline
25101 after early inlining.
25102 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25103
25104 2014-04-04 Jakub Jelinek <jakub@redhat.com>
25105 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25106
25107 PR debug/60655
25108 * dwarf2out.c (const_ok_for_output_1): Reject expressions
25109 containing a NOT.
25110
25111 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25112
25113 PR bootstrap/60743
25114 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25115 duration.
25116 (cortex_a53_fdivd): Likewise.
25117
25118 2014-04-04 Martin Jambor <mjambor@suse.cz>
25119
25120 PR ipa/60640
25121 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25122 Adjust all callers.
25123 * cgraph.c (clone_of_p): Also return true if thunks match.
25124 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25125 cgraph_function_or_thunk_node and an obsolete comment.
25126 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25127 file.
25128 (build_function_decl_skip_args): Likewise.
25129 (set_new_clone_decl_and_node_flags): New function.
25130 (duplicate_thunk_for_node): Likewise.
25131 (redirect_edge_duplicating_thunks): Likewise.
25132 (cgraph_clone_node): New parameter args_to_skip, pass it to
25133 redirect_edge_duplicating_thunks which is called instead of
25134 cgraph_redirect_edge_callee.
25135 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25136 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25137
25138 2014-04-04 Jeff Law <law@redhat.com>
25139
25140 PR target/60657
25141 * config/arm/predicates.md (const_int_I_operand): New predicate.
25142 (const_int_M_operand): Similarly.
25143 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25144 const_int_operand.
25145 (insv_t2, extv_reg, extzv_t2): Likewise.
25146 (load_multiple_with_writeback): Similarly for const_int_I_operand.
25147 (pop_multiple_with_writeback_and_return): Likewise.
25148 (vfp_pop_multiple_with_writeback): Likewise
25149
25150 2014-04-04 Richard Biener <rguenther@suse.de>
25151
25152 PR ipa/60746
25153 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25154 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25155 non-GIMPLE_LABELs.
25156 * gimplify.h (gimple_add_tmp_var_fn): Declare.
25157 * gimplify.c (gimple_add_tmp_var_fn): New function.
25158 * gimple-expr.h (create_tmp_reg_fn): Declare.
25159 * gimple-expr.c (create_tmp_reg_fn): New function.
25160 * gimple-low.c (record_vars_into): Don't change cfun.
25161 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25162 code generation without cfun.
25163
25164 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25165
25166 PR bootstrap/60719
25167 * Makefile.in (install-driver): Fix shell scripting.
25168
25169 2014-04-03 Cong Hou <congh@google.com>
25170
25171 PR tree-optimization/60505
25172 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25173 threshold of number of iterations below which no vectorization
25174 will be done.
25175 * tree-vect-loop.c (new_loop_vec_info):
25176 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25177 * tree-vect-loop.c (vect_analyze_loop_operations):
25178 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25179 * tree-vect-loop.c (vect_transform_loop):
25180 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25181 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25182 of iterations of the loop and see if we should build the epilogue.
25183
25184 2014-04-03 Richard Biener <rguenther@suse.de>
25185
25186 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25187 (streamer_tree_cache_create): Adjust.
25188 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25189 to allow optional nodes array.
25190 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25191 (streamer_tree_cache_append): Likewise.
25192 (streamer_tree_cache_create): Create nodes array optionally
25193 as specified by parameter.
25194 * lto-streamer-out.c (create_output_block): Avoid maintaining
25195 the node array in the writer cache.
25196 (DFS_write_tree): Remove assertion.
25197 (produce_asm_for_decls): Free the out decl state hash table early.
25198 * lto-streamer-in.c (lto_data_in_create): Adjust for
25199 streamer_tree_cache_create prototype change.
25200
25201 2014-04-03 Richard Biener <rguenther@suse.de>
25202
25203 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25204 set TREE_CHAIN to NULL_TREE.
25205
25206 2014-04-03 Richard Biener <rguenther@suse.de>
25207
25208 PR tree-optimization/60740
25209 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25210 over all GIMPLE_COND operands.
25211
25212 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25213
25214 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25215 (Weffc++): Remove Scott's numbering, merge lists and reference
25216 Wnon-virtual-dtor.
25217
25218 2014-04-03 Nick Clifton <nickc@redhat.com>
25219
25220 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25221 properly.
25222
25223 2014-04-03 Martin Jambor <mjambor@suse.cz>
25224
25225 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25226 mention gcc_unreachable before failing.
25227 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25228 removed symbols.
25229
25230 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25231
25232 PR ipa/60659
25233 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25234 inconsistent code and instead mark the context inconsistent.
25235 (possible_polymorphic_call_targets): For inconsistent contexts
25236 return empty complete list.
25237
25238 2014-04-02 Anthony Green <green@moxielogic.com>
25239
25240 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25241 (extendqisi2, extendhisi2): Define.
25242 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25243 (WCHAR_TYPE): Change to unsigned int.
25244
25245 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25246
25247 PR tree-optimization/60733
25248 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25249 insertion point for PHI candidates to be the end of the feeding
25250 block for the PHI argument.
25251
25252 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25253
25254 PR rtl-optimization/60650
25255 * lra-constraints.c (process_alt_operands): Decrease reject for
25256 earlyclobber matching.
25257
25258 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25259
25260 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25261
25262 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25263
25264 * config/spu/spu.c (pad_bb): Do not crash when the last
25265 insn is CODE_FOR_blockage.
25266
25267 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25268
25269 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25270 lies outside the target mode.
25271
25272 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25273
25274 PR target/60735
25275 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25276 software floating point or no floating point registers, do not
25277 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25278 in GPRs that occurs after we tested for GPRs that would never be
25279 true.
25280
25281 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25282 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25283 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25284 specifically allow DDmode, since that does not use the SPE SIMD
25285 instructions.
25286
25287 2014-04-02 Richard Biener <rguenther@suse.de>
25288
25289 PR middle-end/60729
25290 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25291 MODE_INTs. Properly use negv_optab.
25292 (expand_abs): Likewise.
25293
25294 2014-04-02 Richard Biener <rguenther@suse.de>
25295
25296 PR bootstrap/60719
25297 * Makefile.in (install-driver): Guard extra installs with special
25298 names properly.
25299
25300 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25301
25302 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25303 Document vec_vgbbd.
25304
25305 2014-04-01 Richard Henderson <rth@redhat.com>
25306
25307 PR target/60704
25308 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25309 alternative enabled before register allocation.
25310
25311 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25312
25313 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25314 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25315 typo.
25316 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25317 (nios2_got_address): Update nios2_large_got_address call site.
25318 (nios2_delegitimize_address): New function.
25319 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25320 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25321 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25322
25323 2014-04-01 Martin Husemann <martin@duskware.de>
25324
25325 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25326 for -mabi=32.
25327
25328 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25329
25330 PR rtl-optimization/60604
25331 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25332 check from register_operand.
25333 (register_operand): Redefine in terms of general_operand.
25334 (nonmemory_operand): Use register_operand for the non-constant cases.
25335
25336 2014-04-01 Richard Biener <rguenther@suse.de>
25337
25338 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25339
25340 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25341
25342 * doc/invoke.texi (mapp-regs): Clarify.
25343
25344 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25345
25346 * config/i386/avx512fintrin.h (__v32hi): Define type.
25347 (__v64qi): Likewise.
25348 (_mm512_set1_epi8): Define.
25349 (_mm512_set1_epi16): Define.
25350 (_mm512_set4_epi32): Define.
25351 (_mm512_set4_epi64): Define.
25352 (_mm512_set4_pd): Define.
25353 (_mm512_set4_ps): Define.
25354 (_mm512_setr4_epi64): Define.
25355 (_mm512_setr4_epi32): Define.
25356 (_mm512_setr4_pd): Define.
25357 (_mm512_setr4_ps): Define.
25358 (_mm512_setzero_epi32): Define.
25359
25360 2014-03-31 Martin Jambor <mjambor@suse.cz>
25361
25362 PR middle-end/60647
25363 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25364 callsite_arguments_match_p. Updated all callers. Also check types of
25365 corresponding formal parameters and actual arguments.
25366 (not_all_callers_have_enough_arguments_p) Renamed to
25367 some_callers_have_mismatched_arguments_p.
25368
25369 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25370
25371 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25372
25373 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25374
25375 PR target/60034
25376 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25377 section anchor.
25378
25379 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25380
25381 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25382 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25383 Split out
25384 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25385 Use FMAMODE_NOVF512 mode iterator.
25386 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25387 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25388 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25389 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25390 Split out
25391 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25392 Use VF_128_256 mode iterator.
25393 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25394 Ditto.
25395
25396 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25397
25398 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25399 static chain if needed.
25400
25401 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25402
25403 PR target/60697
25404 * lra-constraints.c (index_part_to_reg): New.
25405 (process_address): Use it.
25406
25407 2014-03-27 Jeff Law <law@redhat.com>
25408 Jakub Jelinek <jakub@redhat.com>
25409
25410 PR target/60648
25411 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25412 gen_rtx_{PLUS,MULT} to build up the address expression.
25413
25414 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25415 creating non-canonical RTL.
25416
25417 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25418
25419 PR ipa/60243
25420 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25421 functions; reorganize to make cheap checks first.
25422 (inline_small_functions): Do not estimate growth when dumping;
25423 it is expensive.
25424 * ipa-inline.h (inline_summary): Add min_size.
25425 (growth_likely_positive): New function.
25426 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25427 (set_cond_stmt_execution_predicate): Cleanup.
25428 (estimate_edge_size_and_time): Compute min_size.
25429 (estimate_calls_size_and_time): Likewise.
25430 (estimate_node_size_and_time): Likewise.
25431 (inline_update_overall_summary): Update min_size.
25432 (do_estimate_edge_time): Likewise.
25433 (do_estimate_edge_size): Update.
25434 (do_estimate_edge_hints): Update.
25435 (growth_likely_positive): New function.
25436
25437 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25438
25439 PR target/60693
25440 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25441 also if addr has VOIDmode.
25442
25443 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25444
25445 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25446 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25447 Declare extern.
25448 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25449 instructions as well as AdvancedSIMD loads.
25450
25451 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25452
25453 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25454 Use crypto_aese type.
25455 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25456 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25457 crypto_aese, crypto_aesmc. Move to types.md.
25458 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25459 crypto_aesmc.
25460 * config/arm/iterators.md (crypto_type): Likewise.
25461
25462 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25463
25464 * cgraph.c: Include expr.h and tree-dfa.h.
25465 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25466 remove LHS.
25467
25468 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25469
25470 PR target/60675
25471 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25472 regs from checking multi-reg pseudos.
25473
25474 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25475
25476 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25477
25478 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25479
25480 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25481 if it would clobber the stack pointer, even temporarily.
25482
25483 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25484
25485 * mode-switching.c: Make small adjustments to the top comment.
25486
25487 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25488
25489 * config/rs6000/constraints.md (wD constraint): New constraint to
25490 match the constant integer to get the top DImode/DFmode out of a
25491 vector in a VSX register.
25492
25493 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25494 match the constant integer to get the top DImode/DFmode out of a
25495 vector in a VSX register.
25496
25497 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25498 for ISA 2.07.
25499
25500 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25501 vbpermq builtins.
25502
25503 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25504 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25505
25506 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25507 Optimize vec_extract of 64-bit values, where the value being
25508 extracted is in the top word, where we can use scalar
25509 instructions. Add direct move and store support. Combine the big
25510 endian/little endian vector select load support into a single insn.
25511 (vsx_extract_<mode>_internal1): Likewise.
25512 (vsx_extract_<mode>_internal2): Likewise.
25513 (vsx_extract_<mode>_load): Likewise.
25514 (vsx_extract_<mode>_store): Likewise.
25515 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25516 combined into vsx_extract_<mode>_load.
25517 (vsx_extract_<mode>_one_le): Likewise.
25518
25519 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25520 define the top 64-bit vector element.
25521
25522 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25523 constraint.
25524
25525 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25526 Document vec_vbpermq builtin.
25527
25528 PR target/60672
25529 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25530 enable use of xxsldwi and xxpermdi builtin functions.
25531 (vec_xxpermdi): Likewise.
25532
25533 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25534 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25535
25536 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25537
25538 PR rtl-optimization/60650
25539 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25540 first_p. Use it.
25541 (find_spills_for): New.
25542 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25543 Spill all pseudos on the second iteration.
25544
25545 2014-03-27 Marek Polacek <polacek@redhat.com>
25546
25547 PR c/50347
25548 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25549 types.
25550
25551 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25552
25553 * config/s390/s390.c (s390_can_use_return_insn): Check for
25554 call-saved FPRs on 31 bit.
25555
25556 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25557
25558 PR middle-end/60682
25559 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25560 if they need regimplification, just drop them instead of
25561 calling gimple_regimplify_operands on them.
25562
25563 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25564
25565 PR target/60580
25566 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25567 (aarch64_frame_pointer_required): Adjust logic.
25568 (aarch64_can_eliminate): Adjust logic.
25569 (aarch64_override_options_after_change): Adjust logic.
25570
25571 2014-03-27 Dehao Chen <dehao@google.com>
25572
25573 * ipa-inline.c (early_inliner): Update node's inline info.
25574
25575 2014-03-26 Dehao Chen <dehao@google.com>
25576
25577 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25578 compiler inserted conditional jumps for NAN float check.
25579
25580 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25581
25582 * ubsan.h (ubsan_create_data): Change second argument's type
25583 to const location_t *.
25584 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25585 _("<unknown>").
25586 (ubsan_create_data): Change second argument to const location_t *PLOC.
25587 Create Loc field whenever PLOC is non-NULL.
25588 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25589 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25590 callers.
25591
25592 PR other/59545
25593 * real.c (real_to_integer2): Change type of low to UHWI.
25594
25595 2014-03-26 Tobias Burnus <burnus@net-b.de>
25596
25597 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25598 (CILK_SELF_SPECS): New define.
25599 (driver_self_specs): Use it.
25600
25601 2014-03-26 Richard Biener <rguenther@suse.de>
25602
25603 * tree-pretty-print.c (percent_K_format): Implement special
25604 case for LTO and its stripped down BLOCK tree.
25605
25606 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25607
25608 PR sanitizer/60636
25609 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25610
25611 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25612 one range is range_int_cst_p, but not both, at least optimize
25613 addition/subtraction of 0 and multiplication by 0 or 1.
25614 * gimple-fold.c (gimple_fold_call): Fold
25615 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25616 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25617 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25618
25619 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25620
25621 PR rtl-optimization/60452
25622 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25623 <case REG>: Return 1 for invalid offsets from the frame pointer.
25624
25625 2014-03-26 Marek Polacek <polacek@redhat.com>
25626
25627 PR c/37428
25628 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25629 a structure/union.
25630
25631 2014-03-26 Marek Polacek <polacek@redhat.com>
25632
25633 PR c/39525
25634 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25635 field members.
25636
25637 2014-03-26 Marek Polacek <polacek@redhat.com>
25638
25639 PR other/59545
25640 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25641 multiplication in unsigned type.
25642
25643 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25644
25645 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25646
25647 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25648
25649 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25650
25651 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25652
25653 PR ipa/60315
25654 * cif-code.def (UNREACHABLE) New code.
25655 * ipa-inline.c (inline_small_functions): Skip edges to
25656 __builtlin_unreachable.
25657 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25658 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25659 predicate to __bulitin_unreachable.
25660 (set_cond_stmt_execution_predicate): Fix issue when
25661 invert_tree_comparison returns ERROR_MARK.
25662 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25663 propagate to inline clones.
25664 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25665 to unreachable.
25666 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25667 * cgraphclones.c (cgraph_clone_node): If call destination is already
25668 ureachable, do not redirect it back.
25669 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25670 unreachable.
25671
25672 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25673
25674 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25675 Do not modify inline clones.
25676
25677 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25678
25679 * config/i386/i386.md (general_sext_operand): New mode attr.
25680 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25681 don't generate (sign_extend (const_int)).
25682 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25683 operands[2]. Use We constraint instead of <i> and
25684 <general_sext_operand> predicate instead of <general_operand>.
25685 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25686 * config/i386/constraints.md (We): New constraint.
25687 * config/i386/predicates.md (x86_64_sext_operand,
25688 sext_operand): New predicates.
25689
25690 2014-03-25 Martin Jambor <mjambor@suse.cz>
25691
25692 PR ipa/60600
25693 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25694 inconsistent devirtualizations to __builtin_unreachable.
25695
25696 2014-03-25 Marek Polacek <polacek@redhat.com>
25697
25698 PR c/35449
25699 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25700
25701 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25702
25703 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25704 order of elements for big-endian.
25705
25706 2014-03-25 Richard Biener <rguenther@suse.de>
25707
25708 PR middle-end/60635
25709 * gimplify-me.c (gimple_regimplify_operands): Update the
25710 re-gimplifed stmt.
25711
25712 2014-03-25 Martin Jambor <mjambor@suse.cz>
25713
25714 PR ipa/59176
25715 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25716 (lto_output_varpool_node): Likewise.
25717 (input_overwrite_node): Likewise.
25718 (input_varpool_node): Likewise.
25719
25720 2014-03-25 Richard Biener <rguenther@suse.de>
25721
25722 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25723 (run_gcc): Likewise.
25724
25725 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25726
25727 * combine.c (simplify_compare_const): Add MODE argument.
25728 Handle mode_width 0 as very large mode_width.
25729 (try_combine, simplify_comparison): Adjust callers.
25730
25731 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25732 type to avoid signed integer overflow.
25733 * explow.c (plus_constant): Likewise.
25734
25735 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25736
25737 * doc/generic.texi: Correct typos.
25738
25739 2014-03-24 Tobias Burnus <burnus@net-b.de>
25740
25741 * doc/invoke.texi (-flto): Expand section about
25742 using static libraries with LTO.
25743
25744 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25745
25746 PR rtl-optimization/60501
25747 * optabs.def (addptr3_optab): New optab.
25748 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25749 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25750 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25751
25752 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25753
25754 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25755
25756 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25757
25758 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25759 _mm512_set1_pd.
25760
25761 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25762 (_mm256_undefined_ps): Define.
25763 (_mm256_undefined_pd): Define.
25764 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25765 (_mm_undefined_pd): Define.
25766 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25767 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25768 (_mm512_undefined_ps): Define.
25769 (_mm512_undefined_pd): Define.
25770 Use _mm*_undefined_*.
25771 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25772
25773 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25774
25775 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25776 (lshr_simd): DI mode added.
25777 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25778 (aarch64_ushr_simddi): Likewise.
25779 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25780 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25781 (vshrd_n_u64): Likewise.
25782
25783 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25784
25785 * Makefile.in (s-macro_list): Depend on cc1.
25786
25787 2014-03-23 Teresa Johnson <tejohnson@google.com>
25788
25789 * ipa-utils.c (ipa_print_order): Use specified dump file.
25790
25791 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25792
25793 PR rtl-optimization/60601
25794 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25795
25796 * gcc.c (eval_spec_function): Initialize save_growing_value.
25797
25798 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25799
25800 PR sanitizer/60613
25801 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25802 code == MINUS_EXPR, never swap op0 with op1.
25803
25804 * toplev.c (init_local_tick): Avoid signed integer multiplication
25805 overflow.
25806 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25807 shift by first operand's bitsize.
25808
25809 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25810
25811 PR target/60610
25812 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25813 redefine to 1 or 0.
25814 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25815 TARGET_ISA_64BIT_P(x).
25816
25817 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25818
25819 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25820 pattern for vector nor instead of subtract from splat(-1).
25821 (altivec_expand_vec_perm_const_le): Likewise.
25822
25823 2014-03-21 Richard Henderson <rth@twiddle.net>
25824
25825 PR target/60598
25826 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25827 related insns after epilogue_completed.
25828
25829 2014-03-21 Martin Jambor <mjambor@suse.cz>
25830
25831 PR ipa/59176
25832 * cgraph.h (symtab_node): New flag body_removed.
25833 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25834 when removing bodies.
25835 * symtab.c (dump_symtab_base): Dump body_removed flag.
25836 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25837 had their bodies removed.
25838
25839 2014-03-21 Martin Jambor <mjambor@suse.cz>
25840
25841 PR ipa/60419
25842 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25843 in the border.
25844
25845 2014-03-21 Richard Biener <rguenther@suse.de>
25846
25847 PR tree-optimization/60577
25848 * tree-core.h (struct tree_base): Document nothrow_flag use
25849 in DECL_NONALIASED.
25850 * tree.h (DECL_NONALIASED): New.
25851 (may_be_aliased): Adjust.
25852 * coverage.c (build_var): Set DECL_NONALIASED.
25853
25854 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25855
25856 * expr.c (expand_expr_real_1): Remove outdated comment.
25857
25858 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25859
25860 PR middle-end/60597
25861 * ira.c (adjust_cleared_regs): Call copy_rtx on
25862 *reg_equiv[REGNO (loc)].src_p before passing it to
25863 simplify_replace_fn_rtx.
25864
25865 PR target/60568
25866 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25867 into CONST, put pic register as first operand of PLUS. Use
25868 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25869
25870 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25871
25872 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25873
25874 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25875
25876 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25877 around for store forwarding issue in the FPU on the UT699.
25878 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25879 loads and operations if -mfix-ut699 is specified.
25880 (divtf3_hq): Tweak attribute.
25881 (sqrttf2_hq): Likewise.
25882
25883 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25884
25885 * calls.c (store_one_arg): Remove incorrect const qualification on the
25886 type of the temporary.
25887 * cfgexpand.c (expand_return): Likewise.
25888 * expr.c (expand_constructor): Likewise.
25889 (expand_expr_real_1): Likewise.
25890
25891 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25892
25893 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25894 of parts.
25895
25896 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25897
25898 PR target/60039
25899 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25900
25901 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25902
25903 * config/arm/aarch-common-protos.h
25904 (alu_cost_table): Fix spelling of "extend".
25905 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25906
25907 2014-03-19 Richard Biener <rguenther@suse.de>
25908
25909 PR middle-end/60553
25910 * tree-core.h (tree_type_common): Re-order pointer members
25911 to reduce recursion depth during GC walks.
25912
25913 2014-03-19 Marek Polacek <polacek@redhat.com>
25914
25915 PR sanitizer/60569
25916 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25917 before accessing it.
25918
25919 2014-03-19 Richard Biener <rguenther@suse.de>
25920
25921 PR lto/59543
25922 * lto-streamer-in.c (input_function): In WPA stage do not drop
25923 debug stmts.
25924
25925 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25926
25927 PR tree-optimization/60559
25928 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25929 with build_zero_cst assignment.
25930
25931 2014-03-18 Kai Tietz <ktietz@redhat.com>
25932
25933 PR rtl-optimization/56356
25934 * sdbout.c (sdbout_parms): Verify that parms'
25935 incoming argument is valid.
25936 (sdbout_reg_parms): Likewise.
25937
25938 2014-03-18 Richard Henderson <rth@redhat.com>
25939
25940 PR target/60562
25941 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25942 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25943 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25944
25945 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25946
25947 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25948 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25949 Italicize plugin event names in description. Explain that
25950 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25951 Remind that no GCC functions should be called after PLUGIN_FINISH.
25952 Explain what pragmas with expansion are.
25953
25954 2014-03-18 Martin Liska <mliska@suse.cz>
25955
25956 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25957 gimple call statement is update.
25958 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25959 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25960
25961 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25962
25963 PR sanitizer/60557
25964 * ubsan.c (ubsan_instrument_unreachable): Call
25965 initialize_sanitizer_builtins.
25966 (ubsan_pass): Likewise.
25967
25968 PR sanitizer/60535
25969 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25970 varpool_finalize_decl instead of rest_of_decl_compilation.
25971
25972 2014-03-18 Richard Biener <rguenther@suse.de>
25973
25974 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25975 by using bitmap_and_compl instead of bitmap_and_compl_into.
25976 (df_rd_transfer_function): Likewise.
25977
25978 2014-03-18 Richard Biener <rguenther@suse.de>
25979
25980 * doc/lto.texi (fresolution): Fix typo.
25981
25982 2014-03-18 Richard Biener <rguenther@suse.de>
25983
25984 * doc/invoke.texi (flto): Update for changes in 4.9.
25985
25986 2014-03-18 Richard Biener <rguenther@suse.de>
25987
25988 * doc/loop.texi: Remove section on the removed lambda framework.
25989 Update loop docs with recent changes in preserving loop structure.
25990
25991 2014-03-18 Richard Biener <rguenther@suse.de>
25992
25993 * doc/lto.texi (-fresolution): Document.
25994
25995 2014-03-18 Richard Biener <rguenther@suse.de>
25996
25997 * doc/contrib.texi: Adjust my name.
25998
25999 2014-03-18 Jakub Jelinek <jakub@redhat.com>
26000
26001 PR ipa/58721
26002 * internal-fn.c: Include diagnostic-core.h.
26003 (expand_BUILTIN_EXPECT): New function.
26004 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
26005 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
26006 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
26007 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
26008 IFN_BUILTIN_EXPECT.
26009 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
26010 Revert 3 argument __builtin_expect code.
26011 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
26012 * gimple-fold.c (gimple_fold_call): Likewise.
26013 * tree.h (fold_builtin_expect): New prototype.
26014 * builtins.c (build_builtin_expect_predicate): Add predictor
26015 argument, if non-NULL, create 3 argument __builtin_expect.
26016 (fold_builtin_expect): No longer static. Add ARG2 argument,
26017 pass it through to build_builtin_expect_predicate.
26018 (fold_builtin_2): Adjust caller.
26019 (fold_builtin_3): Handle BUILT_IN_EXPECT.
26020 * internal-fn.def (BUILTIN_EXPECT): New.
26021
26022 2014-03-18 Tobias Burnus <burnus@net-b.de>
26023
26024 PR ipa/58721
26025 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
26026 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
26027 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
26028
26029 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
26030
26031 PR ipa/58721
26032 * predict.c (combine_predictions_for_bb): Fix up formatting.
26033 (expr_expected_value_1, expr_expected_value): Add predictor argument,
26034 fill what it points to if non-NULL.
26035 (tree_predict_by_opcode): Adjust caller, use the predictor.
26036 * predict.def (PRED_COMPARE_AND_SWAP): Add.
26037
26038 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
26039
26040 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
26041 proper constant for the store mode.
26042
26043 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
26044
26045 * symtab.c (change_decl_assembler_name): Fix transparent alias
26046 chain construction.
26047
26048 2014-03-16 Renlin Li <Renlin.Li@arm.com>
26049
26050 * config/aarch64/aarch64.c: Correct the comments about the
26051 aarch64 stack layout.
26052
26053 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
26054
26055 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
26056 check for GF_OMP_FOR_KIND_FOR.
26057
26058 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
26059
26060 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
26061 ymm and zmm register names.
26062
26063 2014-03-17 Jakub Jelinek <jakub@redhat.com>
26064
26065 PR target/60516
26066 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
26067 note creation for the 2010-08-31 changes.
26068
26069 2014-03-17 Marek Polacek <polacek@redhat.com>
26070
26071 PR middle-end/60534
26072 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
26073 as -fno-tree-loop-vectorize.
26074 (expand_omp_simd): Likewise.
26075
26076 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
26077
26078 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
26079 (eligible_for_call_delay): New prototype.
26080 * config/sparc/sparc.c (tls_call_delay): Rename into...
26081 (eligible_for_call_delay): ...this. Return false if the instruction
26082 cannot be put in the delay slot of a branch.
26083 (eligible_for_restore_insn): Simplify.
26084 (eligible_for_return_delay): Return false if the instruction cannot be
26085 put in the delay slot of a branch and simplify.
26086 (eligible_for_sibcall_delay): Return false if the instruction cannot be
26087 put in the delay slot of a branch.
26088 * config/sparc/sparc.md (fix_ut699): New attribute.
26089 (tls_call_delay): Delete.
26090 (in_call_delay): Reimplement.
26091 (eligible_for_sibcall_delay): Rename into...
26092 (in_sibcall_delay): ...this.
26093 (eligible_for_return_delay): Rename into...
26094 (in_return_delay): ...this.
26095 (in_branch_delay): Reimplement.
26096 (in_uncond_branch_delay): Delete.
26097 (in_annul_branch_delay): Delete.
26098
26099 2014-03-14 Richard Henderson <rth@redhat.com>
26100
26101 PR target/60525
26102 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26103 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26104 (*floathi<X87MODEF>2_i387_with_temp): Remove.
26105 (floathi splitters): Remove.
26106 (float<SWI48x>xf2): New pattern.
26107 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
26108 code that tried to handle DImode for 32-bit, but which was excluded
26109 by the pattern's condition. Drop allocation of stack temporary.
26110 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26111 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26112 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26113 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26114 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26115 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26116 (*float<SWI48><MODEF>2_sse_interunit): Remove.
26117 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26118 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26119 (*float<SWI48x><X87MODEF>2_i387): Remove.
26120 (all float _with_temp splitters): Remove.
26121 (*float<SWI48x><MODEF>2_i387): New pattern.
26122 (*float<SWI48><MODEF>2_sse): New pattern.
26123 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26124 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26125
26126 2014-03-14 Jakub Jelinek <jakub@redhat.com>
26127 Marek Polacek <polacek@redhat.com>
26128
26129 PR middle-end/60484
26130 * common.opt (dump_base_name_prefixed): New Variable.
26131 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26132 if x_dump_base_name_prefixed is already set, set it at the end.
26133
26134 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
26135
26136 PR rtl-optimization/60508
26137 * lra-constraints.c (get_reload_reg): Add new parameter
26138 in_subreg_p.
26139 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26140 Pass the new parameter values.
26141
26142 2014-03-14 Richard Biener <rguenther@suse.de>
26143
26144 * common.opt: Revert unintented changes from r205065.
26145 * opts.c: Likewise.
26146
26147 2014-03-14 Richard Biener <rguenther@suse.de>
26148
26149 PR middle-end/60518
26150 * cfghooks.c (split_block): Properly adjust all loops the
26151 block was a latch of.
26152
26153 2014-03-14 Martin Jambor <mjambor@suse.cz>
26154
26155 PR lto/60461
26156 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26157 and simplify it.
26158
26159 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26160
26161 PR target/59396
26162 * config/avr/avr.c (avr_set_current_function): Pass function name
26163 through default_strip_name_encoding before sanity checking instead
26164 of skipping the first char of the assembler name.
26165
26166 2014-03-13 Richard Henderson <rth@redhat.com>
26167
26168 PR debug/60438
26169 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26170 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26171 * config/i386/i386-protos.h: Likewise.
26172 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26173 in the expander instead of a splitter.
26174 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26175 any possibility of requiring a memory.
26176 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26177 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26178 (fp branch splitters): Update for ix86_split_fp_branch.
26179 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26180 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26181 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26182 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26183 (*fop_<MODEF>_3_i387): Likewise.
26184 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26185 (splitters for the fop_* register patterns): Remove.
26186 (fscalexf4_i387): Rename from *fscalexf4_i387.
26187 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26188
26189 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26190
26191 PR tree-optimization/59779
26192 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26193 type for bitsize and maxsize instead of HOST_WIDE_INT.
26194
26195 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26196
26197 PR rtl-optimization/57320
26198 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26199 the CFG after thread_prologue_and_epilogue_insns.
26200
26201 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26202
26203 PR rtl-optimization/57189
26204 * lra-constraints.c (process_alt_operands): Disfavor spilling
26205 vector pseudos.
26206
26207 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26208
26209 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26210
26211 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26212
26213 PR tree-optimization/59025
26214 PR middle-end/60418
26215 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26216 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26217
26218 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26219
26220 PR target/60486
26221 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26222 calls of avr_out_plus_1.
26223
26224 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26225
26226 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26227 BB's single pred and update the father loop's latch info later.
26228
26229 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26230
26231 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26232 (VEC_M): Likewise.
26233 (VEC_N): Likewise.
26234 (VEC_R): Likewise.
26235 (VEC_base): Likewise.
26236 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26237 registers, we need to swap double words in little endian mode.
26238
26239 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26240 to be a container mode for 128-bit integer operations added in ISA
26241 2.07. Unlike TImode and PTImode, the preferred register set is
26242 the Altivec/VMX registers for the 128-bit operations.
26243
26244 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26245 declarations.
26246 (rs6000_split_128bit_ok_p): Likewise.
26247
26248 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26249 macros for creating ISA 2.07 normal and overloaded builtin
26250 functions with 3 arguments.
26251 (BU_P8V_OVERLOAD_3): Likewise.
26252 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26253 for use as overloaded functions.
26254 (VPERM_1TI_UNS): Likewise.
26255 (VSEL_1TI): Likewise.
26256 (VSEL_1TI_UNS): Likewise.
26257 (ST_INTERNAL_1ti): Likewise.
26258 (LD_INTERNAL_1ti): Likewise.
26259 (XXSEL_1TI): Likewise.
26260 (XXSEL_1TI_UNS): Likewise.
26261 (VPERM_1TI): Likewise.
26262 (VPERM_1TI_UNS): Likewise.
26263 (XXPERMDI_1TI): Likewise.
26264 (SET_1TI): Likewise.
26265 (LXVD2X_V1TI): Likewise.
26266 (STXVD2X_V1TI): Likewise.
26267 (VEC_INIT_V1TI): Likewise.
26268 (VEC_SET_V1TI): Likewise.
26269 (VEC_EXT_V1TI): Likewise.
26270 (EQV_V1TI): Likewise.
26271 (NAND_V1TI): Likewise.
26272 (ORC_V1TI): Likewise.
26273 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26274 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26275 overloaded builtin.
26276 (VADDUQM): Likewise.
26277 (VSUBCUQ): Likewise.
26278 (VADDEUQM): Likewise.
26279 (VADDECUQ): Likewise.
26280 (VSUBEUQM): Likewise.
26281 (VSUBECUQ): Likewise.
26282
26283 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26284 __int128_t and __uint128_t types.
26285 (__uint128_type): Likewise.
26286 (altivec_categorize_keyword): Add support for vector __int128_t,
26287 vector __uint128_t, vector __int128, and vector unsigned __int128
26288 as a container type for TImode operations that need to be done in
26289 VSX/Altivec registers.
26290 (rs6000_macro_to_expand): Likewise.
26291 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26292 to support 128-bit integer instructions vaddcuq, vadduqm,
26293 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26294 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26295
26296 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26297 for V1TImode, and set up preferences to use VSX/Altivec registers.
26298 Setup VSX reload handlers.
26299 (rs6000_debug_reg_global): Likewise.
26300 (rs6000_init_hard_regno_mode_ok): Likewise.
26301 (rs6000_preferred_simd_mode): Likewise.
26302 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26303 (easy_altivec_constant): Likewise.
26304 (output_vec_const_move): Likewise.
26305 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26306 simple move.
26307 (rs6000_expand_vector_extract): Likewise.
26308 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26309 addressing.
26310 (rs6000_const_vec): Add support for V1TImode.
26311 (rs6000_emit_le_vsx_load): Swap double words when loading or
26312 storing TImode/V1TImode.
26313 (rs6000_emit_le_vsx_store): Likewise.
26314 (rs6000_emit_le_vsx_move): Likewise.
26315 (rs6000_emit_move): Add support for V1TImode.
26316 (altivec_expand_ld_builtin): Likewise.
26317 (altivec_expand_st_builtin): Likewise.
26318 (altivec_expand_vec_init_builtin): Likewise.
26319 (altivec_expand_builtin): Likewise.
26320 (rs6000_init_builtins): Add support for V1TImode type. Add
26321 support for ISA 2.07 128-bit integer builtins. Define type names
26322 for the VSX/Altivec vector types.
26323 (altivec_init_builtins): Add support for overloaded vector
26324 functions with V1TImode type.
26325 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26326 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26327 external function.
26328 (rs6000_split_128bit_ok_p): Likewise.
26329 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26330 __int128_t and vector __uint128_t.
26331
26332 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26333 and mode attributes.
26334 (VSX_M): Likewise.
26335 (VSX_M2): Likewise.
26336 (VSm): Likewise.
26337 (VSs): Likewise.
26338 (VSr): Likewise.
26339 (VSv): Likewise.
26340 (VS_scalar): Likewise.
26341 (VS_double): Likewise.
26342 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26343
26344 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26345 we support the ISA 2.07 128-bit integer arithmetic instructions.
26346 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26347 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26348 and TImode types for use with the builtin functions.
26349 (V1TI_type_node): Likewise.
26350 (unsigned_V1TI_type_node): Likewise.
26351 (intTI_type_internal_node): Likewise.
26352 (uintTI_type_internal_node): Likewise.
26353
26354 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26355 128-bit builtin functions.
26356 (UNSPEC_VADDEUQM): Likewise.
26357 (UNSPEC_VADDECUQ): Likewise.
26358 (UNSPEC_VSUBCUQ): Likewise.
26359 (UNSPEC_VSUBEUQM): Likewise.
26360 (UNSPEC_VSUBECUQ): Likewise.
26361 (VM): Add V1TImode to vector mode iterators.
26362 (VM2): Likewise.
26363 (VI_unit): Likewise.
26364 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26365 (altivec_vaddcuq): Likewise.
26366 (altivec_vsubuqm): Likewise.
26367 (altivec_vsubcuq): Likewise.
26368 (altivec_vaddeuqm): Likewise.
26369 (altivec_vaddecuq): Likewise.
26370 (altivec_vsubeuqm): Likewise.
26371 (altivec_vsubecuq): Likewise.
26372
26373 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26374 mode iterators.
26375 (BOOL_128): Likewise.
26376 (BOOL_REGS_OUTPUT): Likewise.
26377 (BOOL_REGS_OP1): Likewise.
26378 (BOOL_REGS_OP2): Likewise.
26379 (BOOL_REGS_UNARY): Likewise.
26380 (BOOL_REGS_AND_CR0): Likewise.
26381
26382 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26383 128-bit integer builtin support.
26384 (vec_vadduqm): Likewise.
26385 (vec_vaddecuq): Likewise.
26386 (vec_vaddeuqm): Likewise.
26387 (vec_vsubecuq): Likewise.
26388 (vec_vsubeuqm): Likewise.
26389 (vec_vsubcuq): Likewise.
26390 (vec_vsubuqm): Likewise.
26391
26392 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26393 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26394 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26395 128-bit integer add/subtract to ISA 2.07.
26396
26397 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26398
26399 * config/arc/arc.c (arc_predicate_delay_insns):
26400 Fix third argument passed to conditionalize_nonjump.
26401
26402 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26403
26404 * config/aarch64/aarch64-builtins.c
26405 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26406 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26407 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26408 instead of __builtin_lfloor.
26409 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26410
26411 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26412
26413 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26414 (tree_ssa_ifcombine_bb_1): New function.
26415 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26416 is an empty forwarder block to then_bb or vice versa and then_bb
26417 and else_bb are effectively swapped.
26418
26419 2014-03-12 Christian Bruel <christian.bruel@st.com>
26420
26421 PR target/60264
26422 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26423 REG_CFA_DEF_CFA note.
26424 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26425 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26426
26427 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26428
26429 PR tree-optimization/60454
26430 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26431
26432 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26433
26434 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26435 Do not define target_cpu_default2 to generic.
26436 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26437 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26438 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26439
26440 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26441 Marc Glisse <marc.glisse@inria.fr>
26442
26443 PR tree-optimization/60502
26444 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26445 instead of build_low_bits_mask.
26446
26447 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26448
26449 PR middle-end/60482
26450 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26451 if there are multiple uses, but op doesn't live on E edge.
26452 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26453 clobber stmts before __builtin_unreachable.
26454
26455 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26456
26457 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26458 hard_frame_pointer_rtx.
26459 * cse.c (cse_insn): Remove volatile check.
26460 * cselib.c (cselib_process_insn): Likewise.
26461 * dse.c (scan_insn): Likewise.
26462
26463 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26464
26465 * config/arc/arc.c (conditionalize_nonjump): New function,
26466 broken out of ...
26467 (arc_ifcvt): ... this.
26468 (arc_predicate_delay_insns): Use it.
26469
26470 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26471
26472 * config/arc/predicates.md (extend_operand): During/after reload,
26473 allow const_int_operand.
26474 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26475 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26476 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26477 to "i".
26478 (umulsi3_highpart_i): Likewise.
26479
26480 2014-03-11 Richard Biener <rguenther@suse.de>
26481
26482 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26483 Add asserts to guard possible wrong-code bugs.
26484
26485 2014-03-11 Richard Biener <rguenther@suse.de>
26486
26487 PR tree-optimization/60429
26488 PR tree-optimization/60485
26489 * tree-ssa-structalias.c (set_union_with_increment): Properly
26490 take into account all fields that overlap the shifted vars.
26491 (do_sd_constraint): Likewise.
26492 (do_ds_constraint): Likewise.
26493 (get_constraint_for_ptr_offset): Likewise.
26494
26495 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26496
26497 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26498 (nios2_compute_frame_layout):
26499 Add calculation of cfun->machine->fp_save_offset.
26500 (nios2_expand_prologue): Correct setting of frame pointer register
26501 in prologue.
26502 (nios2_expand_epilogue): Update recovery of stack pointer from
26503 frame pointer accordingly.
26504 (nios2_initial_elimination_offset): Update calculation of offset
26505 for eliminating to HARD_FRAME_POINTER_REGNUM.
26506
26507 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26508
26509 PR ipa/60457
26510 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26511 cgraph_get_create_node on VAR_DECLs.
26512
26513 2014-03-10 Richard Biener <rguenther@suse.de>
26514
26515 PR middle-end/60474
26516 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26517
26518 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26519
26520 * config/vms/vms.opt (vms_float_format): New variable.
26521
26522 2014-03-08 Tobias Burnus <burnus@net-b.de>
26523
26524 * doc/invoke.texi (-fcilkplus): Update implementation status.
26525
26526 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26527 Richard Biener <rguenther@suse.de>
26528
26529 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26530 consistently accross all TUs.
26531 (run_gcc): Enable -fshort-double automatically at link at link-time
26532 and disallow override.
26533
26534 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26535
26536 PR target/58271
26537 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26538 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26539 if they can't be used.
26540
26541 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26542
26543 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26544 for Solaris 11/x86 ld.
26545 * configure: Regenerate.
26546
26547 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26548
26549 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26550 (LIB_TLS_SPEC): Save as ld_tls_libs.
26551 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26552 (HAVE_AS_IX86_TLSLDM): New test.
26553 * configure, config.in: Regenerate.
26554 * config/i386/i386.c (legitimize_tls_address): Fall back to
26555 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26556 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26557 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26558 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26559
26560 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26561
26562 * common.opt (fira-loop-pressure): Mark as optimization.
26563
26564 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26565
26566 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26567 an OpenMP mappable type.
26568
26569 2014-03-06 Matthias Klose <doko@ubuntu.com>
26570
26571 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26572 MULTILIB_OSDIRNAMES is not defined.
26573
26574 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26575 Meador Inge <meadori@codesourcery.com>
26576
26577 PR target/58595
26578 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26579 (arm_legitimize_address): Call legitimize_tls_address for any
26580 arm_tls_referenced_p expression, handle constant addend. Call it
26581 before testing for !TARGET_ARM.
26582 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26583
26584 2014-03-06 Richard Biener <rguenther@suse.de>
26585
26586 PR middle-end/60445
26587 PR lto/60424
26588 PR lto/60427
26589 Revert
26590 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26591
26592 * tree-streamer.c (record_common_node): Assert we don't record
26593 nodes with type double.
26594 (preload_common_node): Skip type double, complex double and double
26595 pointer since it is now frontend dependent due to fshort-double option.
26596
26597 2014-03-06 Richard Biener <rguenther@suse.de>
26598
26599 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26600 or -fno-lto is specified and the linker has full plugin support.
26601 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26602 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26603 * lto-wrapper.c (merge_and_complain): Merge compile-time
26604 optimization levels.
26605 (run_gcc): And pass it through to the link options.
26606
26607 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26608
26609 PR debug/60381
26610 Revert:
26611 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26612 PR debug/59992
26613 * cselib.c (remove_useless_values): Skip to avoid quadratic
26614 behavior if the condition moved from...
26615 (cselib_process_insn): ... here holds.
26616
26617 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26618
26619 PR plugins/59335
26620 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26621 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26622
26623 PR plugins/59335
26624 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26625 (TM_H): Add x86-tune.def.
26626
26627 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26628
26629 * config/aarch64/aarch64.c (generic_tunings):
26630 Use cortexa57_extra_costs.
26631
26632 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26633
26634 PR lto/60404
26635 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26636 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26637 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26638 cost for in_lto_p.
26639
26640 2014-03-04 Heiher <r@hev.cc>
26641
26642 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26643 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26644
26645 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26646
26647 * config/i386/predicates.md (const2356_operand): Change to ...
26648 (const2367_operand): ... this.
26649 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26650 const2367_operand.
26651 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26652 (*avx512pf_scatterpf<mode>sf): Ditto.
26653 (avx512pf_scatterpf<mode>df): Ditto.
26654 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26655 (*avx512pf_scatterpf<mode>df): Ditto.
26656 * config/i386/i386.c (ix86_expand_builtin): Update
26657 incorrect hint operand error message.
26658
26659 2014-03-04 Richard Biener <rguenther@suse.de>
26660
26661 * lto-section-in.c (lto_get_section_data): Fix const cast.
26662
26663 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26664
26665 * tree-streamer.c (record_common_node): Assert we don't record
26666 nodes with type double.
26667 (preload_common_node): Skip type double, complex double and double
26668 pointer since it is now frontend dependent due to fshort-double option.
26669
26670 2014-03-04 Richard Biener <rguenther@suse.de>
26671
26672 PR lto/60405
26673 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26674 (lto_input_toplevel_asms): Likewise.
26675 * lto-section-in.c (lto_get_section_data): Instead do it here
26676 for every section.
26677
26678 2014-03-04 Richard Biener <rguenther@suse.de>
26679
26680 PR tree-optimization/60382
26681 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26682 dead PHIs a reduction.
26683
26684 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26685
26686 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26687 hint value.
26688 (_mm_prefetch): Move out of GCC target("sse") pragma.
26689 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26690 GCC target("prfchw") pragma.
26691 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26692 for locality <= 2.
26693 * config/i386/i386.c (ix86_option_override_internal): Enable
26694 -mprfchw with -mprefetchwt1.
26695
26696 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26697
26698 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26699 Mark as varying.
26700
26701 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26702
26703 * opts.h (CL_PCH_IGNORE): Define.
26704 * targhooks.c (option_affects_pch_p):
26705 Return false for options that have CL_PCH_IGNORE set.
26706 * opt-functions.awk: Process PchIgnore.
26707 * doc/options.texi: Document PchIgnore.
26708
26709 * config/arc/arc.opt (misize): Add PchIgnore property.
26710
26711 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26712
26713 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26714 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26715 constraint on constants to permit them being loaded into
26716 GENERAL_REGS or BASE_REGS.
26717
26718 2014-03-03 Nick Clifton <nickc@redhat.com>
26719
26720 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26721 anti-cacnonical alternatives.
26722 (negandhi3_real): New pattern.
26723 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26724
26725 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26726
26727 * config/avr/avr-mcus.def: Remove atxmega16x1.
26728 * config/avr/avr-tables.opt: Regenerate.
26729 * config/avr/t-multilib: Regenerate.
26730 * doc/avr-mmcu.texi: Regenerate.
26731
26732 2014-03-03 Tobias Grosser <tobias@grosser.es>
26733 Mircea Namolaru <mircea.namolaru@inria.fr>
26734
26735 PR tree-optimization/58028
26736 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26737 scalar dimensions.
26738
26739 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26740
26741 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26742 not handled by recognizers.
26743
26744 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26745
26746 PR middle-end/60175
26747 * function.c (expand_function_end): Don't emit
26748 clobber_return_register sequence if clobber_after is a BARRIER.
26749 * cfgexpand.c (construct_exit_block): Append instructions before
26750 return_label to prev_bb.
26751
26752 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26753
26754 * config/rs6000/constraints.md: Document reserved use of "wc".
26755
26756 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26757
26758 PR ipa/60150
26759 * ipa.c (function_and_variable_visibility): When dissolving comdat
26760 group, also set all symbols to local.
26761
26762 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26763
26764 PR ipa/60306
26765
26766 Revert:
26767 2013-12-14 Jan Hubicka <jh@suse.cz>
26768 PR middle-end/58477
26769 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26770
26771 2014-03-02 Jon Beniston <jon@beniston.com>
26772
26773 PR bootstrap/48230
26774 PR bootstrap/50927
26775 PR bootstrap/52466
26776 PR target/46898
26777 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26778 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26779 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26780 (simple_return, *simple_return): New patterns
26781 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26782 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26783
26784 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26785
26786 * dwarf2out.c (gen_subprogram_die): Tidy.
26787
26788 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26789
26790 PR target/60071
26791 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26792 (*mov_t_msb_neg_negc): ... this new insn.
26793
26794 2014-02-28 Jason Merrill <jason@redhat.com>
26795
26796 PR c++/58678
26797 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26798 function.
26799
26800 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26801
26802 PR c++/60314
26803 * dwarf2out.c (decltype_auto_die): New static.
26804 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26805 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26806 (is_cxx_auto): Likewise.
26807
26808 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26809
26810 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26811 we are not using general regs only.
26812
26813 2014-02-28 Richard Biener <rguenther@suse.de>
26814
26815 PR target/60280
26816 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26817 previous fix and only allow to remove trivial pre-headers
26818 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26819 (remove_forwarder_block): Properly update the latch of a loop.
26820
26821 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26822
26823 PR debug/59992
26824 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26825 (cselib_preserved_hash_table): New.
26826 (preserve_constants_and_equivs): Move preserved vals to it.
26827 (cselib_find_slot): Look it up first.
26828 (cselib_init): Initialize it.
26829 (cselib_finish): Release it.
26830 (dump_cselib_table): Dump it.
26831
26832 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26833
26834 PR debug/59992
26835 * cselib.c (remove_useless_values): Skip to avoid quadratic
26836 behavior if the condition moved from...
26837 (cselib_process_insn): ... here holds.
26838
26839 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26840
26841 PR debug/57232
26842 * var-tracking.c (vt_initialize): Apply the same condition to
26843 preserve the CFA base value.
26844
26845 2014-02-28 Joey Ye <joey.ye@arm.com>
26846
26847 PR target/PR60169
26848 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26849 if reload in progress or completed.
26850
26851 2014-02-28 Tobias Burnus <burnus@net-b.de>
26852
26853 PR middle-end/60147
26854 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26855 NAMELIST_DECL.
26856
26857 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26858
26859 * doc/tm.texi.in (Condition Code Status): Update documention for
26860 relative locations of cc0-setter and cc0-user.
26861
26862 2014-02-27 Jeff Law <law@redhat.com>
26863
26864 PR rtl-optimization/52714
26865 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26866 into two independent simple sets, if I3 is a jump, ensure the
26867 pattern we place into I3 is a (set (pc) ...).
26868
26869 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26870 Jeff Law <law@redhat.com>
26871
26872 PR rtl-optimization/49847
26873 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26874 are in different blocks.
26875 * doc/tm.texi (Condition Code Status): Update documention for
26876 relative locations of cc0-setter and cc0-user.
26877
26878 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26879
26880 PR target/59222
26881 * lra.c (lra_emit_add): Check SUBREG too.
26882
26883 2014-02-27 Andreas Schwab <schwab@suse.de>
26884
26885 * config/m68k/m68k.c (m68k_option_override): Disable
26886 -flive-range-shrinkage for classic m68k.
26887 (m68k_override_options_after_change): Likewise.
26888
26889 2014-02-27 Marek Polacek <polacek@redhat.com>
26890
26891 PR middle-end/59223
26892 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26893 -Wmaybe-uninitialized.
26894
26895 2014-02-27 Alan Modra <amodra@gmail.com>
26896
26897 PR target/57936
26898 * reload1.c (emit_input_reload_insns): When reload_override_in,
26899 set old to rl->in_reg when rl->in_reg is a subreg.
26900
26901 2014-02-26 Richard Biener <rguenther@suse.de>
26902
26903 PR bootstrap/60343
26904 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26905
26906 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26907
26908 * common/config/i386/predicates.md (const1256_operand): Remove.
26909 (const2356_operand): New.
26910 (const_1_to_2_operand): Remove.
26911 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26912 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26913 (*avx512pf_gatherpf<mode>sf): Ditto.
26914 (avx512pf_gatherpf<mode>df): Ditto.
26915 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26916 (*avx512pf_gatherpf<mode>df): Ditto.
26917 (avx512pf_scatterpf<mode>sf): Ditto.
26918 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26919 (*avx512pf_scatterpf<mode>sf): Ditto.
26920 (avx512pf_scatterpf<mode>df): Ditto.
26921 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26922 (*avx512pf_scatterpf<mode>df): Ditto.
26923 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26924
26925 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26926
26927 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26928 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26929 (_mm512_mask_testn_epi64_mask): Move to ...
26930 * config/i386/avx512cdintrin.h: Here.
26931 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26932 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26933 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26934 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26935 TARGET_AVX512F from TARGET_AVX512CD.
26936
26937 2014-02-26 Richard Biener <rguenther@suse.de>
26938
26939 PR ipa/60327
26940 * ipa.c (walk_polymorphic_call_targets): Properly guard
26941 call to inline_update_overall_summary.
26942
26943 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26944
26945 PR target/60280
26946 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26947 and latches only if requested. Fix latch if it is removed.
26948 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26949 LOOPS_HAVE_PREHEADERS.
26950
26951 2014-02-25 Andrew Pinski <apinski@cavium.com>
26952
26953 * builtins.c (expand_builtin_thread_pointer): Create a new target
26954 when the target is NULL.
26955
26956 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26957
26958 PR rtl-optimization/60317
26959 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26960 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26961 * lra-assigns.c: Include params.h.
26962 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26963 other reload pseudos considerations.
26964
26965 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26966
26967 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26968 to use canonical form for nor<mode>3.
26969
26970 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26971
26972 PR target/55426
26973 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26974 conversions.
26975
26976 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26977
26978 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26979 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26980 (ix86_handle_option): Handle OPT_mprefetchwt1.
26981 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26982 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26983 PREFETCHWT1 CPUID.
26984 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26985 OPTION_MASK_ISA_PREFETCHWT1.
26986 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26987 (PTA_PREFETCHWT1): New.
26988 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26989 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26990 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26991 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26992 (*prefetch_avx512pf_<mode>_: Change into ...
26993 (*prefetch_prefetchwt1_<mode>: This.
26994 * config/i386/i386.opt (mprefetchwt1): New.
26995 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26996 (_mm_prefetch): Handle intent to write.
26997 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26998
26999 2014-02-25 Richard Biener <rguenther@suse.de>
27000
27001 PR middle-end/60291
27002 * emit-rtl.c (mem_attrs_htab): Remove.
27003 (mem_attrs_htab_hash): Likewise.
27004 (mem_attrs_htab_eq): Likewise.
27005 (set_mem_attrs): Always allocate new mem-attrs when something changed.
27006 (init_emit_once): Do not allocate mem_attrs_htab.
27007
27008 2014-02-25 Richard Biener <rguenther@suse.de>
27009
27010 PR lto/60319
27011 * lto-opts.c (lto_write_options): Output non-explicit conservative
27012 -fwrapv, -fno-trapv and -fno-strict-overflow.
27013 * lto-wrapper.c (merge_and_complain): Handle merging those options.
27014 (run_gcc): And pass them through.
27015
27016 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
27017
27018 * sel-sched.c (calculate_new_fences): New parameter ptime.
27019 Calculate it as a maximum over all fence cycles.
27020 (sel_sched_region_2): Adjust the call to calculate_new_fences.
27021 Print the final schedule timing when sched_verbose.
27022
27023 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
27024
27025 PR rtl-optimization/60292
27026 * sel-sched.c (fill_vec_av_set): Do not reset target availability
27027 bit fot the fence instruction.
27028
27029 2014-02-24 Alangi Derick <alangiderick@gmail.com>
27030
27031 * calls.h: Fix typo in comment.
27032
27033 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
27034
27035 * config/pa/pa.c (pa_output_move_double): Don't valididate when
27036 adjusting offsetable addresses.
27037
27038 2014-02-24 Guozhi Wei <carrot@google.com>
27039
27040 * sparseset.h (sparseset_pop): Fix the wrong index.
27041
27042 2014-02-24 Walter Lee <walt@tilera.com>
27043
27044 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
27045 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
27046 triplet.
27047 * common/config/tilegx/tilegx-common.c
27048 (TARGET_DEFAULT_TARGET_FLAGS): Define.
27049 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
27050 (LINK_SPEC): Ditto.
27051 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
27052 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
27053 (tilegx_gimplify_va_arg_expr): Handle big endian.
27054 (tilegx_expand_unaligned_load): Ditto.
27055 (tilegx_expand_unaligned_store): Ditto.
27056 (TARGET_RETURN_IN_MSB): New.
27057 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
27058 (TARGET_ENDIAN_DEFAULT): New.
27059 (TARGET_BIG_ENDIAN): Handle big endian.
27060 (BYTES_BIG_ENDIAN): Ditto.
27061 (WORDS_BIG_ENDIAN): Ditto.
27062 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
27063 (ENDIAN_SPEC): New.
27064 (EXTRA_SPECS): New.
27065 * config/tilegx/tilegx.md (extv): Handle big endian.
27066 (extzv): Ditto.
27067 (insn_st<n>): Ditto.
27068 (insn_st<n>_add<bitsuffix>): Ditto.
27069 (insn_stnt<n>): Ditto.
27070 (insn_stnt<n>_add<bitsuffix>):Ditto.
27071 (vec_interleave_highv8qi): Handle big endian.
27072 (vec_interleave_highv8qi_be): New.
27073 (vec_interleave_highv8qi_le): New.
27074 (insn_v1int_h): Handle big endian.
27075 (vec_interleave_lowv8qi): Handle big endian.
27076 (vec_interleave_lowv8qi_be): New.
27077 (vec_interleave_lowv8qi_le): New.
27078 (insn_v1int_l): Handle big endian.
27079 (vec_interleave_highv4hi): Handle big endian.
27080 (vec_interleave_highv4hi_be): New.
27081 (vec_interleave_highv4hi_le): New.
27082 (insn_v2int_h): Handle big endian.
27083 (vec_interleave_lowv4hi): Handle big endian.
27084 (vec_interleave_lowv4hi_be): New.
27085 (vec_interleave_lowv4hi_le): New.
27086 (insn_v2int_l): Handle big endian.
27087 (vec_interleave_highv2si): Handle big endian.
27088 (vec_interleave_highv2si_be): New.
27089 (vec_interleave_highv2si_le): New.
27090 (insn_v4int_h): Handle big endian.
27091 (vec_interleave_lowv2si): Handle big endian.
27092 (vec_interleave_lowv2si_be): New.
27093 (vec_interleave_lowv2si_le): New.
27094 (insn_v4int_l): Handle big endian.
27095 * config/tilegx/tilegx.opt (mbig-endian): New option.
27096 (mlittle-endian): New option.
27097 * doc/install.texi: Document tilegxbe-linux.
27098 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
27099
27100 2014-02-24 Martin Jambor <mjambor@suse.cz>
27101
27102 PR ipa/60266
27103 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27104 there are no parameter descriptors.
27105
27106 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
27107
27108 PR rtl-optimization/60268
27109 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27110 initialization to ...
27111 (sched_rgn_init): ... here.
27112 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27113
27114 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27115
27116 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27117 names.
27118
27119 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27120
27121 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27122 definition.
27123
27124 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27125
27126 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27127 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27128
27129 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27130
27131 * config/microblaze/predicates.md: Add cmp_op predicate.
27132 * config/microblaze/microblaze.md: Add branch_compare instruction
27133 which uses cmp_op predicate and emits cmp insn before branch.
27134 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27135 to microblaze_expand_conditional_branch and consolidate logic.
27136 (microblaze_expand_conditional_branch): emit branch_compare
27137 insn instead of handling cmp op separate from branch insn.
27138
27139 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27140
27141 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27142 to permit subregs.
27143
27144 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27145
27146 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27147 define_insn with define_expand and new define_insn
27148 *altivec_lve<VI_char>x_internal.
27149 (altivec_stve<VI_char>x): Replace define_insn with define_expand
27150 and new define_insn *altivec_stve<VI_char>x_internal.
27151 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27152 prototype.
27153 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27154 lve*x built-ins.
27155 (altivec_expand_stvex_be): New function.
27156
27157 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27158
27159 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27160 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27161 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27162 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27163
27164 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27165
27166 PR target/60298
27167 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27168 instead of emit_move_insn.
27169
27170 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27171
27172 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27173 vspltw with vsldoi.
27174 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27175 gen_altivec_vsumsws.
27176
27177 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27178
27179 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27180 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27181 (altivec_lvxl_<mode>): New define_expand incorporating
27182 -maltivec=be semantics where needed.
27183 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27184 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27185 semantics where needed.
27186 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27187 (altivec_stvx_<mode>): New define_expand incorporating
27188 -maltivec=be semantics where needed.
27189 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27190 VM2 iterator instead of V4SI.
27191 (altivec_stvxl_<mode>): New define_expand incorporating
27192 -maltivec=be semantics where needed.
27193 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27194 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27195 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27196 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27197 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27198 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27199 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27200 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27201 ALTIVEC_BUILTIN_STVXL.
27202 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27203 (altivec_expand_stvx_be): Likewise.
27204 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27205 (altivec_expand_lvx_be): Likewise.
27206 (altivec_expand_stvx_be): Likewise.
27207 (altivec_expand_builtin): Add cases for
27208 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27209 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27210 (altivec_init_builtins): Add definitions for
27211 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27212 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27213
27214 2014-02-21 Catherine Moore <clm@codesourcery.com>
27215
27216 * doc/invoke.texi (mvirt, mno-virt): Document.
27217 * config/mips/mips.opt (mvirt): New option.
27218 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27219
27220 2014-02-21 Richard Biener <rguenther@suse.de>
27221
27222 PR tree-optimization/60276
27223 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27224 (STMT_VINFO_MIN_NEG_DIST): New macro.
27225 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27226 STMT_VINFO_MIN_NEG_DIST.
27227 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27228 made for negative dependence distances still hold.
27229
27230 2014-02-21 Richard Biener <rguenther@suse.de>
27231
27232 PR middle-end/60291
27233 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27234 DECL_INITIAL for globals not in the current function context.
27235
27236 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27237
27238 PR tree-optimization/56490
27239 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27240 * tree-ssa-uninit.c: Include params.h.
27241 (compute_control_dep_chain): Add num_calls argument, return false
27242 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27243 num_calls to recursive call.
27244 (find_predicates): Change dep_chain into normal array,
27245 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27246 variable and adjust compute_control_dep_chain caller.
27247 (find_def_preds): Likewise.
27248
27249 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27250
27251 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27252 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27253
27254 2014-02-21 Nick Clifton <nickc@redhat.com>
27255
27256 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27257 (pushhi1): Likewise.
27258 (popqi1): Add mode to pre_dec.
27259 (pophi1): Likewise.
27260
27261 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27262
27263 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27264 mode for mask of V8SFmode permutation.
27265
27266 2014-02-20 Richard Henderson <rth@redhat.com>
27267
27268 PR c++/60272
27269 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27270 a new pseudo for OLDVAL.
27271
27272 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27273
27274 PR target/57896
27275 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27276 gen_reg_rtx if d->testing_p.
27277 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27278 if d->testing_p and we will certainly return true.
27279 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27280 if d->testing_p.
27281
27282 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27283
27284 * emit-rtl.c (gen_reg_rtx): Assert that
27285 crtl->emit.regno_pointer_align_length is non-zero.
27286
27287 2014-02-20 Richard Henderson <rth@redhat.com>
27288
27289 PR c++/60272
27290 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27291 on failure the store back into EXPECT.
27292
27293 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27294 Sandra Loosemore <sandra@codesourcery.com>
27295
27296 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27297 * config/nios2/nios2.c (nios2_function_profiler): Add
27298 -fPIC (flag_pic == 2) support.
27299 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27300 (nios2_large_offset_p): New function.
27301 (nios2_unspec_reloc_p): Move up position, update to use
27302 nios2_large_offset_p.
27303 (nios2_unspec_address): Remove function.
27304 (nios2_unspec_offset): New function.
27305 (nios2_large_got_address): New function.
27306 (nios2_got_address): Add large offset support.
27307 (nios2_legitimize_tls_address): Update usage of removed and new
27308 functions.
27309 (nios2_symbol_binds_local_p): New function.
27310 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27311 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27312 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27313 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27314 processing for (const (unspec ...)).
27315 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27316
27317 2014-02-20 Richard Biener <rguenther@suse.de>
27318
27319 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27320 doing the substitution.
27321 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27322
27323 2014-02-20 Martin Jambor <mjambor@suse.cz>
27324
27325 PR ipa/55260
27326 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27327 info when checking whether lattices are bottom.
27328
27329 2014-02-20 Richard Biener <rguenther@suse.de>
27330
27331 PR middle-end/60221
27332 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27333 regions at -O0.
27334
27335 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27336
27337 PR ipa/58555
27338 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27339 parameter specifying the scaling.
27340 (inline_call): Update.
27341 (want_inline_recursively): Guard division by zero.
27342 (recursive_inlining): Update.
27343 * ipa-inline.h (clone_inlined_nodes): Update.
27344
27345 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27346
27347 PR target/60204
27348 * config/i386/i386.c (classify_argument): Pass structures of size
27349 64 bytes or less in register.
27350
27351 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27352 Kirill Yukhin <kirill.yukhin@intel.com>
27353
27354 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27355 (_mm_rcp28_round_ss): Ditto.
27356 (_mm_rsqrt28_round_sd): Ditto.
27357 (_mm_rsqrt28_round_ss): Ditto.
27358 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27359 (_mm_rcp14_round_ss): Ditto.
27360 (_mm_rsqrt14_round_sd): Ditto.
27361 (_mm_rsqrt14_round_ss): Ditto.
27362 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27363 the first input operand, get rid of match_dup.
27364 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27365 attribute to sse.
27366 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27367 Ditto.
27368 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27369 operand as the first input operand, set type attribute.
27370 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27371 Set type attribute.
27372 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27373 operand as the first input operand, set type attribute.
27374
27375 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27376
27377 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27378 bit of zero.
27379
27380 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27381
27382 PR target/60207
27383 * config/i386/i386.c (construct_container): Remove TFmode check
27384 for X86_64_INTEGER_CLASS.
27385
27386 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27387
27388 PR target/59794
27389 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27390 only when -Wpsabi is enabled.
27391
27392 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27393
27394 PR target/59799
27395 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27396 passing arrays in registers are the same as for structs, so remove the
27397 special case for them.
27398
27399 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27400
27401 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27402 destination type, extract only the valid bits if the source type is not
27403 integral and has a different mode.
27404
27405 2014-02-19 Richard Biener <rguenther@suse.de>
27406
27407 PR ipa/60243
27408 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27409 for all calls.
27410
27411 2014-02-19 Richard Biener <rguenther@suse.de>
27412
27413 PR ipa/60243
27414 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27415 (ipa_modify_call_arguments): Emit an argument load explicitely and
27416 preserve virtual SSA form there and for the replacement call.
27417 Do not update SSA form nor free dominance info.
27418
27419 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27420
27421 * ipa.c (function_and_variable_visibility): Also clear WEAK
27422 flag when disolving COMDAT_GROUP.
27423
27424 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27425
27426 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27427 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27428 not devirtualizing.
27429 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27430 do more sanity checks.
27431 (detect_type_change): Return true when giving up early.
27432 (compute_complex_assign_jump_func): Fix type parameter of
27433 ipa_set_ancestor_jf.
27434 (compute_complex_ancestor_jump_func): Likewise.
27435 (update_jump_functions_after_inlining): Fix updating of
27436 ancestor function.
27437 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27438
27439 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27440
27441 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27442 inline clones when edge disappears.
27443
27444 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27445
27446 PR target/60203
27447 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27448 Split 64-bit moves into 2 patterns. Do not allow the use of
27449 direct move for TDmode in little endian, since the decimal value
27450 has little endian bytes within a word, but the 64-bit pieces are
27451 ordered in a big endian fashion, and normal subreg's of TDmode are
27452 not allowed.
27453 (mov<mode>_64bit_dm): Likewise.
27454 (movtd_64bit_nodm): Likewise.
27455
27456 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27457
27458 PR tree-optimization/60174
27459 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27460 statement of an SSA_NAME that occurs in an abnormal PHI node.
27461
27462 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27463
27464 PR sanitizer/60142
27465 * final.c (SEEN_BB): Remove.
27466 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27467 (final_scan_insn): Don't force_source_line on second
27468 NOTE_INSN_BASIC_BLOCK.
27469
27470 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27471
27472 PR target/60205
27473 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27474 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27475 (type_natural_mode): Warn ABI change when %zmm register is not
27476 available for AVX512F vector value passing.
27477
27478 2014-02-18 Kai Tietz <ktietz@redhat.com>
27479
27480 PR target/60193
27481 * config/i386/i386.c (ix86_expand_prologue): Use value in
27482 rax register as displacement when restoring %r10 or %rax.
27483 Fix wrong offset when restoring both registers.
27484
27485 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27486
27487 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27488 assertion with conditional return.
27489
27490 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27491 Uros Bizjak <ubizjak@gmail.com>
27492
27493 PR driver/60233
27494 * config/i386/driver-i386.c (host_detect_local_cpu): If
27495 YMM state is not saved by the OS, also clear has_f16c. Move
27496 CPUID 0x80000001 handling before YMM state saving checking.
27497
27498 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27499
27500 PR rtl-optimization/58960
27501 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27502 factored out from ...
27503 (sched_init): ... here.
27504 (free_global_sched_pressure_data): New, factored out from ...
27505 (sched_finish): ... here.
27506 * sched-int.h (free_global_sched_pressure_data): Declare.
27507 * sched-rgn.c (nr_regions_initial): New static global.
27508 (haifa_find_rgns): Initialize it.
27509 (schedule_region): Disable sched-pressure for the newly
27510 generated regions.
27511
27512 2014-02-17 Richard Biener <rguenther@suse.de>
27513
27514 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27515 release SSA defs of pattern stmts.
27516
27517 2014-02-17 Richard Biener <rguenther@suse.de>
27518
27519 * tree-inline.c (expand_call_inline): Release the virtual
27520 operand defined by the call we are about to inline.
27521
27522 2014-02-17 Richard Biener <rguenther@suse.de>
27523
27524 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27525
27526 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27527 Ilya Tocar <ilya.tocar@intel.com>
27528
27529 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27530 arguments order in builtin.
27531 (_mm512_permutexvar_epi64): Ditto.
27532 (_mm512_mask_permutexvar_epi64): Ditto
27533 (_mm512_maskz_permutexvar_epi32): Ditto
27534 (_mm512_permutexvar_epi32): Ditto
27535 (_mm512_mask_permutexvar_epi32): Ditto
27536
27537 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27538
27539 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27540 (p8_vmrgow): Likewise.
27541
27542 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27543
27544 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27545 endian targets.
27546
27547 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27548
27549 PR target/60203
27550 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27551 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27552 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27553 using direct move instructions on ISA 2.07. Also adjust
27554 instruction length for 64-bit.
27555 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27556 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27557
27558 2014-02-15 Alan Modra <amodra@gmail.com>
27559
27560 PR target/58675
27561 PR target/57935
27562 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27563 find_replacement on parts of insn rtl that might be reloaded.
27564
27565 2014-02-15 Richard Biener <rguenther@suse.de>
27566
27567 PR tree-optimization/60183
27568 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27569 (tree_ssa_phiprop): Calculate and free post-dominators.
27570
27571 2014-02-14 Jeff Law <law@redhat.com>
27572
27573 PR rtl-optimization/60131
27574 * ree.c (get_extended_src_reg): New function.
27575 (combine_reaching_defs): Use it rather than assuming location of REG.
27576 (find_and_remove_re): Verify first operand of extension is
27577 a REG before adding the insns to the copy list.
27578
27579 2014-02-14 Roland McGrath <mcgrathr@google.com>
27580
27581 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27582 * configure: Regenerated.
27583 * config.in: Regenerated.
27584 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27585 instead of ASM_SHORT.
27586
27587 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27588 Richard Earnshaw <rearnsha@arm.com>
27589
27590 PR rtl-optimization/59535
27591 * lra-constraints.c (process_alt_operands): Encourage alternative
27592 when unassigned pseudo class is superset of the alternative class.
27593 (inherit_reload_reg): Don't inherit when optimizing for code size.
27594 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27595 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27596 modes not less than 4 for Thumb1.
27597
27598 2014-02-14 Kyle McMartin <kyle@redhat.com>
27599
27600 PR pch/60010
27601 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27602
27603 2014-02-14 Richard Biener <rguenther@suse.de>
27604
27605 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27606 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27607 Do not strip INDIRECT_REFs.
27608
27609 2014-02-14 Richard Biener <rguenther@suse.de>
27610
27611 PR lto/60179
27612 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27613 DECL_FUNCTION_SPECIFIC_TARGET.
27614 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27615 * tree-streamer-out.c (pack_ts_target_option): Remove.
27616 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27617 (write_ts_function_decl_tree_pointers): Do not stream
27618 DECL_FUNCTION_SPECIFIC_TARGET.
27619 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27620 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27621 (lto_input_ts_function_decl_tree_pointers): Do not stream
27622 DECL_FUNCTION_SPECIFIC_TARGET.
27623
27624 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27625
27626 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27627 (get_initial_def_for_induction, vectorizable_induction): Ignore
27628 debug stmts when looking for exit_phi.
27629 (vectorizable_live_operation): Fix up condition.
27630
27631 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27632
27633 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27634 nreverse() because it changes the content of original tree list.
27635
27636 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27637
27638 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27639 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27640
27641 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27642
27643 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27644 GNU coding standards.
27645
27646 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27647
27648 PR debug/60152
27649 * dwarf2out.c (gen_subprogram_die): Don't call
27650 add_calling_convention_attribute if subr_die is old_die.
27651
27652 2014-02-13 Sharad Singhai <singhai@google.com>
27653
27654 * doc/optinfo.texi: Fix order of nodes.
27655
27656 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27657
27658 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27659 operands[2], not operands[3].
27660
27661 2014-02-13 Richard Biener <rguenther@suse.de>
27662
27663 PR bootstrap/59878
27664 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27665 mention the possibility of an in-tree build.
27666 (CLooG): Update recommended version to 0.18.1, mention the
27667 possibility of an in-tree build and clarify that the ISL
27668 bundled with CLooG does not work.
27669
27670 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27671
27672 PR target/43546
27673 * expr.c (compress_float_constant): If x is a hard register,
27674 extend into a pseudo and then move to x.
27675
27676 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27677
27678 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27679 caused by bad second argument to warning_at() with -mhotpatch and
27680 nested functions (e.g. with gfortran).
27681
27682 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27683
27684 * opts.c (option_name): Remove "enabled by default" rider.
27685
27686 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27687
27688 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27689
27690 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27691 Uros Bizjak <ubizjak@gmail.com>
27692
27693 PR target/60151
27694 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27695 * configure: Regenerated.
27696
27697 2014-02-12 Richard Biener <rguenther@suse.de>
27698
27699 * vec.c (vec_prefix::calculate_allocation): Move as
27700 inline variant to vec.h.
27701 (vec_prefix::calculate_allocation_1): New out-of-line version.
27702 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27703 (vec_prefix::m_has_auto_buf): Rename to ...
27704 (vec_prefix::m_using_auto_storage): ... this.
27705 (vec_prefix::calculate_allocation): Inline the easy cases
27706 and dispatch to calculate_allocation_1 which doesn't need the
27707 prefix address.
27708 (va_heap::reserve): Use gcc_checking_assert.
27709 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27710 m_using_auto_storage.
27711 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27712 member and adjust.
27713 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27714 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27715 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27716
27717 2014-02-12 Richard Biener <rguenther@suse.de>
27718
27719 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27720 when we found a dependence.
27721
27722 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27723
27724 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27725 common code...
27726 (maybe_fold_stmt): ... into this new function.
27727 * omp-low.c (lower_omp): Update comment.
27728
27729 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27730 last use.
27731
27732 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27733 dereference.
27734
27735 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27736
27737 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27738 identifiers in comments.
27739 (cortexa53_extra_costs): Likewise.
27740 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27741 (cortexa7_extra_costs): Likewise.
27742 (cortexa12_extra_costs): Likewise.
27743 (cortexa15_extra_costs): Likewise.
27744 (v7m_extra_costs): Likewise.
27745
27746 2014-02-12 Richard Biener <rguenther@suse.de>
27747
27748 PR middle-end/60092
27749 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27750 of posix_memalign being successful.
27751 (lower_stmt): Restrict lowering of posix_memalign to when
27752 -ftree-bit-ccp is enabled.
27753
27754 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27755
27756 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27757 arg_loc.
27758 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27759
27760 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27761
27762 PR rtl-optimization/60116
27763 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27764 other_insn once the combination has been validated.
27765
27766 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27767
27768 PR lto/59468
27769 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27770 and wrapper.
27771 * ipa-devirt.c: Include demangle.h
27772 (odr_violation_reported): New static variable.
27773 (add_type_duplicate): Update odr_violations.
27774 (maybe_record_node): Add completep parameter; update it.
27775 (record_target_from_binfo): Add COMPLETEP parameter;
27776 update it as needed.
27777 (possible_polymorphic_call_targets_1): Likewise.
27778 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27779 rename FINAL to COMPLETE.
27780 (record_targets_from_bases): Sanity check we found the binfo;
27781 fix COMPLETEP updating.
27782 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27783 parameter, fix computing of COMPLETEP.
27784 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27785 at LTO time do demangling.
27786 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27787 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27788 parameter.
27789 (gimple_get_virt_method_for_binfo): Likewise.
27790 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27791 gimple_get_virt_method_for_vtable): Update prototypes.
27792
27793 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27794
27795 PR target/49008
27796 * genautomata.c (add_presence_absence): Fix typo with
27797 {final_}presence_list.
27798
27799 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27800
27801 PR target/60137
27802 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27803 for VSX/Altivec vectors that land in GPR registers.
27804
27805 2014-02-11 Richard Henderson <rth@redhat.com>
27806 Jakub Jelinek <jakub@redhat.com>
27807
27808 PR debug/59776
27809 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27810 around drhs if type conversion to lacc->type is not useless.
27811
27812 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27813
27814 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27815 tuning struct.
27816 (cortex-a57.cortex-a53): Likewise.
27817 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27818
27819 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27820
27821 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27822 arm_restrict_it.
27823
27824 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27825
27826 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27827 add_options_for_arm_vfp3.
27828
27829 2014-02-11 Jeff Law <law@redhat.com>
27830
27831 PR middle-end/54041
27832 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27833 object with an undesirable mode.
27834
27835 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27836
27837 PR libgomp/60107
27838 * config/i386/sol2-9.h: New file.
27839 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27840 *-*-solaris2.9*): Use it.
27841
27842 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27843
27844 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27845 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27846
27847 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27848
27849 * config/microblaze/microblaze.c: Extend mcpu version format
27850
27851 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27852
27853 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27854
27855 2014-02-10 Richard Henderson <rth@redhat.com>
27856
27857 PR target/59927
27858 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27859 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27860 ms-abi vs -mno-accumulate-outgoing-args.
27861 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27862 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27863 respect to ms-abi.
27864
27865 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27866
27867 PR middle-end/60080
27868 * cfgexpand.c (expand_asm_operands): Attach source location to
27869 ASM_INPUT rtx objects.
27870 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27871
27872 2014-02-10 Nick Clifton <nickc@redhat.com>
27873
27874 * config/mn10300/mn10300.c (popcount): New function.
27875 (mn10300_expand_prologue): Include saved registers in stack usage
27876 count.
27877
27878 2014-02-10 Jeff Law <law@redhat.com>
27879
27880 PR middle-end/52306
27881 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27882 when changing the SET_DEST of a prior insn to avoid an input reload.
27883
27884 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27885
27886 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27887 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27888 -mcall-openbsd, or -mcall-linux.
27889 (CC1_ENDIAN_BIG_SPEC): Remove.
27890 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27891 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27892 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27893 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27894 and %cc1_endian_default.
27895 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27896
27897 2014-02-10 Richard Biener <rguenther@suse.de>
27898
27899 PR tree-optimization/60115
27900 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27901 MEM_REF handling. Properly verify that the accesses are not
27902 out of the objects bound.
27903
27904 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27905
27906 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27907 coretex to cortex.
27908
27909 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27910
27911 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27912 proper constants and fix formatting.
27913 (possible_polymorphic_call_targets): Fix formatting.
27914
27915 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27916 Ilya Tocar <ilya.tocar@intel.com>
27917
27918 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27919 (_mm512_loadu_epi32): Renamed into...
27920 (_mm512_loadu_si512): This.
27921 (_mm512_storeu_epi32): Renamed into...
27922 (_mm512_storeu_si512): This.
27923 (_mm512_maskz_ceil_ps): Removed.
27924 (_mm512_maskz_ceil_pd): Ditto.
27925 (_mm512_maskz_floor_ps): Ditto.
27926 (_mm512_maskz_floor_pd): Ditto.
27927 (_mm512_floor_round_ps): Ditto.
27928 (_mm512_floor_round_pd): Ditto.
27929 (_mm512_ceil_round_ps): Ditto.
27930 (_mm512_ceil_round_pd): Ditto.
27931 (_mm512_mask_floor_round_ps): Ditto.
27932 (_mm512_mask_floor_round_pd): Ditto.
27933 (_mm512_mask_ceil_round_ps): Ditto.
27934 (_mm512_mask_ceil_round_pd): Ditto.
27935 (_mm512_maskz_floor_round_ps): Ditto.
27936 (_mm512_maskz_floor_round_pd): Ditto.
27937 (_mm512_maskz_ceil_round_ps): Ditto.
27938 (_mm512_maskz_ceil_round_pd): Ditto.
27939 (_mm512_expand_pd): Ditto.
27940 (_mm512_expand_ps): Ditto.
27941 * config/i386/i386.c (ix86_builtins): Remove
27942 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27943 (bdesc_args): Ditto.
27944 * config/i386/predicates.md (const1256_operand): New.
27945 (const_1_to_2_operand): Ditto.
27946 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27947 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27948 (*avx512pf_gatherpf<mode>sf): Ditto.
27949 (avx512pf_gatherpf<mode>df): Ditto.
27950 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27951 (*avx512pf_gatherpf<mode>df): Ditto.
27952 (avx512pf_scatterpf<mode>sf): Ditto.
27953 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27954 (*avx512pf_scatterpf<mode>sf): Ditto.
27955 (avx512pf_scatterpf<mode>df): Ditto.
27956 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27957 (*avx512pf_scatterpf<mode>df): Ditto.
27958 (avx512f_expand<mode>): Removed.
27959 (<shift_insn><mode>3<mask_name>): Change predicate type.
27960
27961 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27962
27963 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27964 not at the end of datarefs vector use ordered_remove to avoid
27965 reordering datarefs vector.
27966
27967 PR c/59984
27968 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27969 mark local addressable non-static vars as GOVD_PRIVATE
27970 instead of GOVD_LOCAL.
27971 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27972 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27973 than copying them.
27974
27975 PR middle-end/60092
27976 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27977 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27978 assume_aligned or alloc_align attributes.
27979 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27980 arguments. Handle also assume_aligned and alloc_align attributes.
27981 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27982 calls to functions with assume_aligned or alloc_align attributes.
27983 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27984
27985 2014-02-08 Terry Guo <terry.guo@arm.com>
27986
27987 * doc/invoke.texi: Document ARM -march=armv7e-m.
27988
27989 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27990
27991 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27992 flag on __cilkrts_rethrow builtin.
27993
27994 PR ipa/60026
27995 * ipa-cp.c (determine_versionability): Fail at -O0
27996 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27997 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27998
27999 Revert:
28000 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28001
28002 PR ipa/60026
28003 * tree-inline.c (copy_forbidden): Fail for
28004 __attribute__((optimize (0))) functions.
28005
28006 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
28007
28008 * varpool.c: Include pointer-set.h.
28009 (varpool_remove_unreferenced_decls): Variables in other partitions
28010 will not be output; be however careful to not lose information
28011 about partitioning.
28012
28013 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
28014
28015 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
28016 lookup in the vtable constructor.
28017
28018 2014-02-07 Jeff Law <law@redhat.com>
28019
28020 PR target/40977
28021 * config/m68k/m68k.md (ashldi_extsi): Turn into a
28022 define_insn_and_split.
28023
28024 * ipa-inline.c (inline_small_functions): Fix typos.
28025
28026 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28027
28028 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
28029 (s390_can_use_return_insn): Declare.
28030 * config/s390/s390.h (EPILOGUE_USES): Define.
28031 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
28032 instructions.
28033 (s390_chunkify_start): Handle return JUMP_LABELs.
28034 (s390_early_mach): Emit a main_pool instruction on the entry edge.
28035 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
28036 (s390_can_use_return_insn): New functions.
28037 (s390_fix_long_loop_prediction): Handle conditional returns.
28038 (TARGET_SET_UP_BY_PROLOGUE): Define.
28039 * config/s390/s390.md (ANY_RETURN): New code iterator.
28040 (*creturn, *csimple_return, return, simple_return): New patterns.
28041
28042 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28043
28044 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
28045 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
28046 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
28047 REG_CFA_RESTORE list when deciding not to restore a register.
28048
28049 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28050
28051 * config/s390/s390.c: Include tree-pass.h and context.h.
28052 (s390_early_mach): New function, split out from...
28053 (s390_emit_prologue): ...here.
28054 (pass_data_s390_early_mach): New pass structure.
28055 (pass_s390_early_mach): New class.
28056 (s390_option_override): Create and register early_mach pass.
28057 Move to end of file.
28058
28059 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
28060
28061 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
28062 to match for the exit block.
28063
28064 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28065
28066 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
28067 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
28068 Reject misaligned operands.
28069
28070 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
28071
28072 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
28073
28074 2014-02-07 Richard Biener <rguenther@suse.de>
28075
28076 PR middle-end/60092
28077 * gimple-low.c (lower_builtin_posix_memalign): New function.
28078 (lower_stmt): Call it to lower posix_memalign in a way
28079 to make alignment info accessible.
28080
28081 2014-02-07 Jakub Jelinek <jakub@redhat.com>
28082
28083 PR c++/60082
28084 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
28085 __builtin_setjmp_receiver.
28086
28087 2014-02-07 Richard Biener <rguenther@suse.de>
28088
28089 PR middle-end/60092
28090 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
28091 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
28092 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
28093 Handle BUILT_IN_POSIX_MEMALIGN.
28094 (find_func_clobbers): Likewise.
28095 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
28096 (call_may_clobber_ref_p_1): Likewise.
28097
28098 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28099
28100 PR ipa/59918
28101 * ipa-devirt.c (record_target_from_binfo): Remove overactive
28102 sanity check.
28103
28104 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28105
28106 PR ipa/59469
28107 * lto-cgraph.c (lto_output_node): Use
28108 symtab_get_symbol_partitioning_class.
28109 (lto_output_varpool_node): likewise.
28110 (symtab_get_symbol_partitioning_class): Move here from
28111 lto/lto-partition.c
28112 * cgraph.h (symbol_partitioning_class): Likewise.
28113 (symtab_get_symbol_partitioning_class): Declare.
28114
28115 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28116
28117 * ggc.h (ggc_internal_cleared_alloc): New macro.
28118 * vec.h (vec_safe_copy): Handle memory stats.
28119 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28120 * target-globals.c (save_target_globals): Likewise.
28121
28122 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28123
28124 PR target/60077
28125 * expr.c (emit_move_resolve_push): Export; be bit more selective
28126 on when to clear alias set.
28127 * expr.h (emit_move_resolve_push): Declare.
28128 * function.h (struct function): Add tail_call_marked.
28129 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28130 * config/i386/i386-protos.h (ix86_expand_push): Remove.
28131 * config/i386/i386.md (TImode move expander): De not call
28132 ix86_expand_push.
28133 (FP push expanders): Preserve memory attributes.
28134 * config/i386/sse.md (push<mode>1): Remove.
28135 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28136 (ix86_expand_push): Remove.
28137 * config/i386/mmx.md (push<mode>1): Remove.
28138
28139 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28140
28141 PR rtl-optimization/60030
28142 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28143 lopart with paradoxical subreg before shifting it up by hprec.
28144
28145 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28146
28147 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28148 Remove extra newline at end of file.
28149 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28150 (arm_issue_rate): Handle cortexa57.
28151 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28152 (cortex-a57.cortex-a53): Likewise.
28153
28154 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28155
28156 PR target/59575
28157 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28158 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28159 bitmask.
28160 (arm_expand_prologue): Adjust all callers.
28161 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28162 info, registers also at the lowest numbered registers side. Use
28163 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28164 XEXP.
28165
28166 PR debug/59992
28167 * var-tracking.c (adjust_mems): Before adding a SET to
28168 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28169
28170 2014-02-06 Alan Modra <amodra@gmail.com>
28171
28172 PR target/60032
28173 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28174 change SDmode to DDmode when lra_in_progress.
28175
28176 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28177
28178 PR middle-end/59150
28179 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28180 free_data_ref on the dr first, and before goto again also set dr
28181 to the next dr. For simd_lane_access, free old datarefs[i] before
28182 overwriting it. For get_vectype_for_scalar_type failure, don't
28183 free_data_ref if simd_lane_access.
28184
28185 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28186
28187 PR target/60062
28188 * tree.h (opts_for_fn): New inline function.
28189 (opt_for_fn): Define.
28190 * config/i386/i386.c (ix86_function_regparm): Use
28191 opt_for_fn (decl, optimize) instead of optimize.
28192
28193 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28194
28195 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28196 for SYMBOL_REF in large memory model.
28197
28198 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28199
28200 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28201 and crypto support.
28202 (cortex-a57): Likewise.
28203 (cortex-a57.cortex-a53): Likewise.
28204
28205 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28206 Kugan Vivekanandarajah <kuganv@linaro.org>
28207
28208 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28209 unaligned_access.
28210 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28211
28212 2014-02-06 Richard Biener <rguenther@suse.de>
28213
28214 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28215 set_loop_copy and initialize_original_copy_tables.
28216
28217 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28218
28219 * config/aarch64/aarch64-simd.md
28220 (aarch64_ashr_simddi): Change QI to SI.
28221
28222 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28223 Jakub Jelinek <jakub@redhat.com>
28224
28225 PR middle-end/60013
28226 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28227 of the dataflow.
28228
28229 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28230
28231 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28232 CODE_FOR_altivec_vpku[hw]um to
28233 CODE_FOR_altivec_vpku[hw]um_direct.
28234 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28235 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28236 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28237 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28238
28239 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28240
28241 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28242 generation for -maltivec=be.
28243 (altivec_vsumsws): Simplify redundant test.
28244
28245 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28246
28247 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28248 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28249 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28250 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28251 gen_altivec_vpkuwum.
28252 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28253 BYTES_BIG_ENDIAN.
28254 (altivec_vpks<VI_char>ss): Likewise.
28255 (altivec_vpks<VI_char>us): Likewise.
28256 (altivec_vpku<VI_char>us): Likewise.
28257 (altivec_vpku<VI_char>um): Likewise.
28258 (altivec_vpku<VI_char>um_direct): New (copy of
28259 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28260 internal use).
28261 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28262 target is little endian and -maltivec=be is not specified.
28263 (*altivec_vupkhs<VU_char>_direct): New (copy of
28264 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28265 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28266 target is little endian and -maltivec=be is not specified.
28267 (*altivec_vupkls<VU_char>_direct): New (copy of
28268 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28269 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28270 little endian and -maltivec=be is not specified.
28271 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28272 little endian and -maltivec=be is not specified.
28273
28274 2014-02-05 Richard Henderson <rth@redhat.com>
28275
28276 PR debug/52727
28277 * combine-stack-adj.c: Revert r206943.
28278 * sched-int.h (struct deps_desc): Add last_args_size.
28279 * sched-deps.c (init_deps): Initialize it.
28280 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28281 contain REG_ARGS_SIZE notes.
28282
28283 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28284
28285 * lto-cgraph.c (asm_nodes_output): Make global.
28286 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28287 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28288 (driver_handle_option): Handle OPT_fwpa.
28289
28290 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28291
28292 PR ipa/59947
28293 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28294 a comment typo and formatting issue. If odr_hash hasn't been
28295 created, return vNULL and set *completep to false.
28296
28297 PR middle-end/57499
28298 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28299 bb with no successors.
28300
28301 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28302
28303 PR target/59718
28304 * doc/invoke.texi (-march): Clarify documentation for ARM.
28305 (-mtune): Likewise.
28306 (-mcpu): Likewise.
28307
28308 2014-02-05 Richard Biener <rguenther@suse.de>
28309
28310 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28311 when not vectorizing because of too many alias checks.
28312 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28313 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28314
28315 2014-02-05 Nick Clifton <nickc@redhat.com>
28316
28317 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28318 accept extended registers in any mode when compiling for the MN10300.
28319
28320 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28321
28322 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28323 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28324 sanitization attributes.
28325 (can_inline_edge_p): Likewise.
28326 (sanitize_attrs_match_for_inline_p): New function.
28327
28328 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28329
28330 * ipa-prop.c (detect_type_change): Shor circuit testing of
28331 type changes on THIS pointer.
28332
28333 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28334
28335 PR target/59777
28336 * config/pa/pa.c (legitimize_tls_address): Return original address
28337 if not passed a SYMBOL_REF rtx.
28338 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28339 addresses.
28340 (pa_emit_move_sequence): Simplify TLS source operands.
28341 (pa_legitimate_constant_p): Reject all TLS constants.
28342 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28343 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28344
28345 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28346
28347 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28348 groups when we know they are controlled by LTO.
28349 * varasm.c (default_binds_local_p_1): If object is in other partition,
28350 it will be resolved locally.
28351
28352 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28353
28354 * config/host-linux.c (linux_gt_pch_use_address): Don't
28355 use SSIZE_MAX because it is not always defined.
28356
28357 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28358
28359 PR bootstrap/59913
28360 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28361 threshold for pseudo splitting.
28362 (update_ebb_live_info): Process call argument hard registers and
28363 hard registers from insn definition too.
28364 (max_small_class_regs_num): New constant.
28365 (inherit_in_ebb): Update live hard regs through EBBs. Update
28366 reloads_num only for small register classes. Don't split for
28367 outputs of jumps.
28368
28369 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28370
28371 PR ipa/60058
28372 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28373 is non-null.
28374
28375 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28376
28377 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28378 visibility is safe.
28379
28380 2014-02-04 Marek Polacek <polacek@redhat.com>
28381
28382 * gdbinit.in (pel): Define.
28383
28384 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28385
28386 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28387 behavior.
28388
28389 2014-02-04 Richard Biener <rguenther@suse.de>
28390
28391 PR lto/59723
28392 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28393 in function context local.
28394 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28395 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28396 similar to LTO_imported_decl_ref.
28397
28398 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28399
28400 PR tree-optimization/60002
28401 * cgraphclones.c (build_function_decl_skip_args): Clear
28402 DECL_LANG_SPECIFIC.
28403
28404 PR tree-optimization/60023
28405 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28406 false to gsi_replace.
28407 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28408 has been in some EH region and vec_stmt could throw, add
28409 vec_stmt into the same EH region.
28410 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28411 has no lhs, ignore it.
28412 * internal-fn.c (expand_MASK_LOAD): Likewise.
28413
28414 PR ipa/60026
28415 * tree-inline.c (copy_forbidden): Fail for
28416 __attribute__((optimize (0))) functions.
28417
28418 PR other/58712
28419 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28420 is set, copy one less argument.
28421 (expand_simd_clones): Don't subtract clone_info->inbranch
28422 from simd_clone_struct_alloc argument.
28423
28424 PR rtl-optimization/57915
28425 * recog.c (simplify_while_replacing): If all unary/binary/relational
28426 operation arguments are constant, attempt to simplify those.
28427
28428 PR middle-end/59261
28429 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28430 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28431
28432 2014-02-04 Richard Biener <rguenther@suse.de>
28433
28434 PR tree-optimization/60012
28435 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28436 TBAA disambiguation to all DDRs.
28437
28438 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28439
28440 PR target/59788
28441 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28442 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28443
28444 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28445
28446 PR ipa/59882
28447 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28448
28449 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28450
28451 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28452 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28453
28454 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28455
28456 PR ipa/59831
28457 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28458 to figure out targets of polymorphic calls with known decl.
28459 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28460 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28461 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28462 (get_polymorphic_call_info): ... here.
28463 (get_polymorphic_call_info_from_invariant): New function.
28464
28465 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28466
28467 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28468 lookup via vtable pointer; check for type consistency
28469 and turn inconsitent facts into UNREACHABLE.
28470 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28471 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28472 type inconsistent querries; return UNREACHABLE instead.
28473
28474 2014-02-03 Richard Henderson <rth@twiddle.net>
28475
28476 PR tree-opt/59924
28477 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28478 already processed this node.
28479 (normalize_one_pred_1): Pass along mark_set.
28480 (normalize_one_pred): Create and destroy a pointer_set_t.
28481 (normalize_one_pred_chain): Likewise.
28482
28483 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28484
28485 PR gcov-profile/58602
28486 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28487
28488 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28489
28490 PR ipa/59831
28491 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28492 -fno-devirtualize; try to devirtualize by the knowledge of
28493 virtual table pointer given by aggregate propagation.
28494 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28495 (ipa_print_node_jump_functions): Dump also offset that
28496 is relevant for polymorphic calls.
28497 (determine_known_aggregate_parts): Add arg_type parameter; use it
28498 instead of determining the type from pointer type.
28499 (ipa_compute_jump_functions_for_edge): Update call of
28500 determine_known_aggregate_parts.
28501 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28502 (gimple_get_virt_method_for_binfo): ... here; simplify using
28503 vtable_pointer_value_to_vtable.
28504 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28505 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28506 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28507 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28508 POINTER_PLUS_EXPR.
28509 (vtable_pointer_value_to_binfo): ... here.
28510 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28511
28512 2014-02-03 Teresa Johnson <tejohnson@google.com>
28513
28514 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28515 redef of outer loop index variable.
28516
28517 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28518
28519 PR c++/53017
28520 PR c++/59211
28521 * doc/extend.texi (Function Attributes): Typo.
28522
28523 2014-02-03 Cong Hou <congh@google.com>
28524
28525 PR tree-optimization/60000
28526 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28527 if the vectorized statement is a store. A store statement can only
28528 appear at the end of pattern statements.
28529
28530 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28531
28532 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28533 (ix86_option_override_internal): Default long double to 64-bit for
28534 32-bit Bionic and to 128-bit for 64-bit Bionic.
28535
28536 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28537 TARGET_LONG_DOUBLE_128 is true.
28538 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28539
28540 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28541 (mlong-double-64): Negate -mlong-double-128.
28542 (mlong-double-128): New option.
28543
28544 * config/i386/i386-c.c (ix86_target_macros): Define
28545 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28546
28547 * doc/invoke.texi: Document -mlong-double-128.
28548
28549 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28550
28551 PR rtl-optimization/60024
28552 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28553
28554 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28555
28556 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28557
28558 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28559
28560 PR rtl-optimization/57662
28561 * sel-sched.c (code_motion_path_driver): Do not mark already not
28562 existing blocks in the visiting bitmap.
28563
28564 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28565
28566 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28567 on the insn being emitted.
28568
28569 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28570 Will Deacon <will.deacon@arm.com>
28571
28572 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28573
28574 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28575
28576 * config/arm/arm-tables.opt: Regenerate.
28577
28578 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28579
28580 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28581 for vector types other than V16QImode.
28582 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28583 define_expand, and call altivec_expand_vec_perm_le when producing
28584 code with little endian element order.
28585 (*altivec_vperm_<mode>_internal): New insn having previous
28586 behavior of altivec_vperm_<mode>.
28587 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28588 altivec_expand_vec_perm_le when producing code with little endian
28589 element order.
28590 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28591 behavior of altivec_vperm_<mode>_uns.
28592
28593 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28594
28595 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28596 (altivec_vsumsws): Add handling for -maltivec=be with a little
28597 endian target.
28598 (altivec_vsumsws_direct): New.
28599 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28600 gen_altivec_vsumsws.
28601
28602 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28603
28604 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28605 vtable_pointer_value_to_binfo): New functions.
28606 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28607 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28608
28609 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28610
28611 * config/nios2/nios2.md (load_got_register): Initialize GOT
28612 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28613 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28614
28615 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28616
28617 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28618 preserverd by passthrough, do not propagate the type.
28619
28620 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28621
28622 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28623 (mips_atomic_assign_expand_fenv): New function.
28624 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28625
28626 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28627
28628 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28629 (__builtin_mips_set_fcsr): Likewise.
28630 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28631 MIPS_USI_FTYPE_VOID.
28632 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28633 (mips16_expand_set_fcsr): Likewise.
28634 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28635 (mips16_set_fcsr_stub): Likewise.
28636 (mips16_get_fcsr_one_only_stub): New class.
28637 (mips16_set_fcsr_one_only_stub): Likewise.
28638 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28639 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28640 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28641 (hard_float): New availability predicate.
28642 (mips_builtins): Add get_fcsr and set_fcsr.
28643 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28644 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28645 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28646 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28647 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28648 patterns.
28649
28650 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28651
28652 * config/mips/mips.c (mips_one_only_stub): New class.
28653 (mips_need_mips16_rdhwr_p): Replace with...
28654 (mips16_rdhwr_stub): ...this new variable.
28655 (mips16_stub_call_address): New function.
28656 (mips16_rdhwr_one_only_stub): New class.
28657 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28658 (mips_output_mips16_rdhwr): Delete.
28659 (mips_finish_stub): New function.
28660 (mips_code_end): Use it to handle rdhwr stubs.
28661
28662 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28663
28664 PR target/60017
28665 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28666 when calculating size of integer atomic types.
28667
28668 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28669
28670 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28671
28672 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28673
28674 PR tree-optimization/60003
28675 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28676 * profile.c (branch_prob): Use gimple_call_builtin_p
28677 to check for BUILT_IN_SETJMP_RECEIVER.
28678 * tree-inline.c (copy_bb): Call notice_special_calls.
28679
28680 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28681
28682 PR bootstrap/59985
28683 * lra-constraints.c (process_alt_operands): Update reload_sum only
28684 on the first pass.
28685
28686 2014-01-31 Richard Henderson <rth@redhat.com>
28687
28688 PR middle-end/60004
28689 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28690 until after else_eh is processed.
28691
28692 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28693
28694 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28695 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28696 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28697 in smmintrin.h, remove them.
28698 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28699 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28700 * config/i386/i386.md (ROUND_SAE): Fix value.
28701 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28702 (const48_operand): New.
28703 * config/i386/subst.md (round), (round_expand): Use
28704 const_4_or_8_to_11_operand.
28705 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28706
28707 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28708
28709 * config/i386/constraints.md (Yk): Swap meaning with k.
28710 * config/i386/i386.md (movhi_internal): Change Yk to k.
28711 (movqi_internal): Ditto.
28712 (*k<logic><mode>): Ditto.
28713 (*andhi_1): Ditto.
28714 (*andqi_1): Ditto.
28715 (kandn<mode>): Ditto.
28716 (*<code>hi_1): Ditto.
28717 (*<code>qi_1): Ditto.
28718 (kxnor<mode>): Ditto.
28719 (kortestzhi): Ditto.
28720 (kortestchi): Ditto.
28721 (kunpckhi): Ditto.
28722 (*one_cmplhi2_1): Ditto.
28723 (*one_cmplqi2_1): Ditto.
28724 * config/i386/sse.md (): Change k to Yk.
28725 (avx512f_load<mode>_mask): Ditto.
28726 (avx512f_blendm<mode>): Ditto.
28727 (avx512f_store<mode>_mask): Ditto.
28728 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28729 (avx512f_storedqu<mode>_mask): Ditto.
28730 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28731 Ditto.
28732 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28733 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28734 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28735 (avx512f_maskcmp<mode>3): Ditto.
28736 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28737 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28738 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28739 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28740 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28741 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28742 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28743 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28744 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28745 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28746 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28747 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28748 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28749 (vec_extract_lo_<mode>_maskm): Ditto.
28750 (vec_extract_hi_<mode>_maskm): Ditto.
28751 (avx512f_vternlog<mode>_mask): Ditto.
28752 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28753 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28754 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28755 (avx512f_<code>v8div16qi2_mask): Ditto.
28756 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28757 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28758 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28759 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28760 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28761 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28762 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28763 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28764 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28765 (avx512cd_maskb_vec_dupv8di): Ditto.
28766 (avx512cd_maskw_vec_dupv16si): Ditto.
28767 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28768 (avx512f_vpermi2var<mode>3_mask): Ditto.
28769 (avx512f_vpermi2var<mode>3_mask): Ditto.
28770 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28771 (*avx512f_gathersi<mode>): Ditto.
28772 (*avx512f_gathersi<mode>_2): Ditto.
28773 (*avx512f_gatherdi<mode>): Ditto.
28774 (*avx512f_gatherdi<mode>_2): Ditto.
28775 (*avx512f_scattersi<mode>): Ditto.
28776 (*avx512f_scatterdi<mode>): Ditto.
28777 (avx512f_compress<mode>_mask): Ditto.
28778 (avx512f_compressstore<mode>_mask): Ditto.
28779 (avx512f_expand<mode>_mask): Ditto.
28780 * config/i386/subst.md (mask): Change k to Yk.
28781 (mask_scalar_merge): Ditto.
28782 (sd): Ditto.
28783
28784 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28785
28786 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28787
28788 2014-01-31 Richard Biener <rguenther@suse.de>
28789
28790 PR middle-end/59990
28791 * builtins.c (fold_builtin_memory_op): Make sure to not
28792 use a floating-point mode or a boolean or enumeral type for
28793 the copy operation.
28794
28795 2014-01-30 DJ Delorie <dj@redhat.com>
28796
28797 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28798 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28799 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28800 whenever main() has an epilogue.
28801
28802 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28803
28804 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28805 unused variable "field".
28806 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28807 (vsx_mergeh_<mode>): Likewise.
28808 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28809 (altivec_vmrghh): Likewise.
28810 (altivec_vmrghw): Likewise.
28811 (altivec_vmrglb): Likewise.
28812 (altivec_vmrglh): Likewise.
28813 (altivec_vmrglw): Likewise.
28814 (altivec_vspltb): Add missing uses.
28815 (altivec_vsplth): Likewise.
28816 (altivec_vspltw): Likewise.
28817 (altivec_vspltsf): Likewise.
28818
28819 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28820
28821 PR target/59923
28822 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28823 frame related instructions.
28824
28825 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28826
28827 PR rtl-optimization/59959
28828 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28829 any reload of register whose subreg is invalid.
28830
28831 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28832
28833 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28834 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28835 Add missing return type - void.
28836
28837 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28838
28839 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28840 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28841 remove element index adjustment for endian (now handled in vsx.md
28842 and altivec.md).
28843 (altivec_expand_vec_perm_const): Use
28844 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28845 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28846 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28847 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28848 define_expand and a new define_insn *altivec_vspltb_internal;
28849 adjust for -maltivec=be on a little endian target.
28850 (altivec_vspltb_direct): New.
28851 (altivec_vsplth): Divide into a define_expand and a new
28852 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28853 little endian target.
28854 (altivec_vsplth_direct): New.
28855 (altivec_vspltw): Divide into a define_expand and a new
28856 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28857 little endian target.
28858 (altivec_vspltw_direct): New.
28859 (altivec_vspltsf): Divide into a define_expand and a new
28860 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28861 a little endian target.
28862
28863 2014-01-30 Richard Biener <rguenther@suse.de>
28864
28865 PR tree-optimization/59993
28866 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28867 can propagate form the earlier stmt and avoid the transform
28868 when the intermediate result is needed.
28869
28870 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28871
28872 * README.Portability: Fix typo.
28873
28874 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28875
28876 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28877 comparison_operator with ordered_comparison_operator.
28878
28879 2014-01-30 Nick Clifton <nickc@redhat.com>
28880
28881 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28882 Rename to mn10300_store_multiple_regs.
28883 * config/mn10300/mn10300.c: Likewise.
28884 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28885 store_multiple_regs.
28886 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28887 Call mn10300_store_multiple_regs.
28888
28889 2014-01-30 Nick Clifton <nickc@redhat.com>
28890 DJ Delorie <dj@redhat.com>
28891
28892 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28893 %fp 2 to keep registers after it properly word-aligned.
28894 (rl78_alloc_physical_registers_umul): Handle the case where both
28895 input operands are the same.
28896
28897 2014-01-30 Richard Biener <rguenther@suse.de>
28898
28899 PR tree-optimization/59903
28900 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28901 check properly.
28902
28903 2014-01-30 Jason Merrill <jason@redhat.com>
28904
28905 PR c++/59633
28906 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28907
28908 PR c++/59645
28909 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28910
28911 2014-01-30 Richard Biener <rguenther@suse.de>
28912
28913 PR tree-optimization/59951
28914 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28915
28916 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28917
28918 PR target/59784
28919 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28920 SFmode to DFmode case.
28921
28922 2014-01-29 DJ Delorie <dj@redhat.com>
28923
28924 * config/msp430/msp430.opt (-minrt): New.
28925 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28926 if -minrt given.
28927 (ENDFILE_SPEC): Likewise.
28928
28929 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28930
28931 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28932 (estimate_function_body_sizes): Use it.
28933
28934 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28935
28936 PR c++/58561
28937 * dwarf2out.c (is_cxx_auto): New.
28938 (is_base_type): Use it.
28939 (gen_type_die_with_usage): Likewise.
28940
28941 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28942
28943 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28944 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28945 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28946 -maltivec=be with LE targets.
28947 (vsx_mergeh_<mode>): Likewise.
28948 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28949 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28950 (altivec_vmrghb): Replace with define_expand and new
28951 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28952 (altivec_vmrghb_direct): New define_insn.
28953 (altivec_vmrghh): Replace with define_expand and new
28954 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28955 (altivec_vmrghh_direct): New define_insn.
28956 (altivec_vmrghw): Replace with define_expand and new
28957 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28958 (altivec_vmrghw_direct): New define_insn.
28959 (*altivec_vmrghsf): Adjust for endianness.
28960 (altivec_vmrglb): Replace with define_expand and new
28961 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28962 (altivec_vmrglb_direct): New define_insn.
28963 (altivec_vmrglh): Replace with define_expand and new
28964 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28965 (altivec_vmrglh_direct): New define_insn.
28966 (altivec_vmrglw): Replace with define_expand and new
28967 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28968 (altivec_vmrglw_direct): New define_insn.
28969 (*altivec_vmrglsf): Adjust for endianness.
28970 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28971 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28972 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28973 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28974 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28975 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28976 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28977 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28978
28979 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28980
28981 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28982 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28983 whitespace.
28984
28985 2014-01-29 Richard Biener <rguenther@suse.de>
28986
28987 PR tree-optimization/58742
28988 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28989 associate_pointerplus_align.
28990 (associate_pointerplus_diff): New function.
28991 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28992 and associate_pointerplus_diff.
28993
28994 2014-01-29 Richard Biener <rguenther@suse.de>
28995
28996 * lto-streamer.h (LTO_major_version): Bump to 3.
28997 (LTO_minor_version): Reset to 0.
28998
28999 2014-01-29 Renlin Li <Renlin.Li@arm.com>
29000
29001 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
29002 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
29003 (arm_file_start): Generate correct asm header for armv7ve.
29004 * config/arm/bpabi.h: Add multilib support for armv7ve.
29005 * config/arm/driver-arm.c: Change the architectures of cortex-a7
29006 and cortex-a15 to armv7ve.
29007 * config/arm/t-aprofile: Add multilib support for armv7ve.
29008 * doc/invoke.texi: Document -march=armv7ve.
29009
29010 2014-01-29 Richard Biener <rguenther@suse.de>
29011
29012 PR tree-optimization/58742
29013 * tree-ssa-forwprop.c (associate_plusminus): Return true
29014 if we changed sth, defer EH cleanup to ...
29015 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
29016 (simplify_mult): New function.
29017
29018 2014-01-29 Jakub Jelinek <jakub@redhat.com>
29019
29020 PR middle-end/59917
29021 PR tree-optimization/59920
29022 * tree.c (build_common_builtin_nodes): Remove
29023 __builtin_setjmp_dispatcher initialization.
29024 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
29025 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
29026 instead of gsi_after_labels + manually skipping debug stmts.
29027 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
29028 ignore bbs with IFN_ABNORMAL_DISPATCHER.
29029 * tree-inline.c (copy_edges_for_bb): Remove
29030 can_make_abnormal_goto argument, instead add abnormal_goto_dest
29031 argument. Ignore computed_goto_p stmts. Don't call
29032 make_abnormal_goto_edges. If a call might need abnormal edges
29033 for non-local gotos, see if it already has an edge to
29034 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
29035 with true argument, don't do anything then, otherwise add
29036 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
29037 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
29038 caller.
29039 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
29040 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
29041 (lower_stmt): Don't set data->calls_builtin_setjmp.
29042 (lower_builtin_setjmp): Adjust comment.
29043 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
29044 * tree-cfg.c (found_computed_goto): Remove.
29045 (factor_computed_gotos): Remove.
29046 (make_goto_expr_edges): Return bool, true for computed gotos.
29047 Don't call make_abnormal_goto_edges.
29048 (build_gimple_cfg): Don't set found_computed_goto, don't call
29049 factor_computed_gotos.
29050 (computed_goto_p): No longer static.
29051 (make_blocks): Don't set found_computed_goto.
29052 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
29053 (make_edges): If make_goto_expr_edges returns true, push bb
29054 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
29055 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
29056 vector. Record mapping between bbs and OpenMP regions if there
29057 are any, adjust make_gimple_omp_edges caller. Call
29058 handle_abnormal_edges.
29059 (make_abnormal_goto_edges): Remove.
29060 * tree-cfg.h (make_abnormal_goto_edges): Remove.
29061 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
29062 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
29063 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
29064 * internal-fn.def (ABNORMAL_DISPATCHER): New.
29065 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
29066 filling *region also set *region_idx to (*region)->entry->index.
29067
29068 PR other/58712
29069 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
29070 For REGs set ORIGINAL_REGNO.
29071
29072 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
29073
29074 * doc/md.texi: Mention that a target shouldn't implement
29075 vec_widen_(s|u)mul_even/odd pair if it is less efficient
29076 than hi/lo pair.
29077
29078 2014-01-29 Jakub Jelinek <jakub@redhat.com>
29079
29080 PR tree-optimization/59594
29081 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
29082 a copy of the datarefs vector rather than the vector itself.
29083
29084 2014-01-28 Jason Merrill <jason@redhat.com>
29085
29086 PR c++/53756
29087 * dwarf2out.c (auto_die): New static.
29088 (gen_type_die_with_usage): Handle C++1y 'auto'.
29089 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
29090 on definition.
29091
29092 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
29093
29094 PR target/59672
29095 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
29096 (SPEC_X32): Likewise.
29097 (SPEC_64): Likewise.
29098 * config/i386/i386.c (ix86_option_override_internal): Turn off
29099 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
29100 for TARGET_16BIT.
29101 (x86_file_start): Output .code16gcc for TARGET_16BIT.
29102 * config/i386/i386.h (TARGET_16BIT): New macro.
29103 (TARGET_16BIT_P): Likewise.
29104 * config/i386/i386.opt: Add m16.
29105 * doc/invoke.texi: Document -m16.
29106
29107 2014-01-28 Jakub Jelinek <jakub@redhat.com>
29108
29109 PR preprocessor/59935
29110 * input.c (location_get_source_line): Bail out on when line number
29111 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29112
29113 2014-01-28 Richard Biener <rguenther@suse.de>
29114
29115 PR tree-optimization/58742
29116 * tree-ssa-forwprop.c (associate_plusminus): Handle
29117 pointer subtraction of the form (T)(P + A) - (T)P.
29118
29119 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29120
29121 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29122 at const_int_cost.
29123
29124 2014-01-28 Richard Biener <rguenther@suse.de>
29125
29126 Revert
29127 2014-01-28 Richard Biener <rguenther@suse.de>
29128
29129 PR rtl-optimization/45364
29130 PR rtl-optimization/59890
29131 * var-tracking.c (local_get_addr_clear_given_value): Handle
29132 already cleared slot.
29133 (val_reset): Handle not allocated local_get_addr_cache.
29134 (vt_find_locations): Use post-order on the inverted CFG.
29135
29136 2014-01-28 Richard Biener <rguenther@suse.de>
29137
29138 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29139
29140 2014-01-28 Richard Biener <rguenther@suse.de>
29141
29142 PR rtl-optimization/45364
29143 PR rtl-optimization/59890
29144 * var-tracking.c (local_get_addr_clear_given_value): Handle
29145 already cleared slot.
29146 (val_reset): Handle not allocated local_get_addr_cache.
29147 (vt_find_locations): Use post-order on the inverted CFG.
29148
29149 2014-01-28 Alan Modra <amodra@gmail.com>
29150
29151 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29152 * configure.ac <recursive call for build != host>: Define
29153 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29154 and LD_FOR_BUILD too.
29155 * configure: Regenerate.
29156
29157 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29158
29159 * config/i386/i386.c (get_builtin_code_for_version): Separate
29160 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29161 Broadwell from Haswell.
29162
29163 2014-01-27 Steve Ellcey <sellcey@mips.com>
29164
29165 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29166 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29167 * config/mips/mips.c (mips_option_override): Change setting
29168 of TARGET_DSP.
29169 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29170 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29171 Change from Mask to Var.
29172
29173 2014-01-27 Jeff Law <law@redhat.com>
29174
29175 * ipa-inline.c (inline_small_functions): Fix typo.
29176
29177 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29178
29179 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29180 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29181 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29182 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29183 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29184 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29185 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29186 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29187 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29188 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29189 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29190 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29191 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29192 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29193 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29194 (_mm512_storeu_epi64): Ditto.
29195 (_mm512_cmpge_epi32_mask): Ditto.
29196 (_mm512_cmpge_epu32_mask): Ditto.
29197 (_mm512_cmpge_epi64_mask): Ditto.
29198 (_mm512_cmpge_epu64_mask): Ditto.
29199 (_mm512_cmple_epi32_mask): Ditto.
29200 (_mm512_cmple_epu32_mask): Ditto.
29201 (_mm512_cmple_epi64_mask): Ditto.
29202 (_mm512_cmple_epu64_mask): Ditto.
29203 (_mm512_cmplt_epi32_mask): Ditto.
29204 (_mm512_cmplt_epu32_mask): Ditto.
29205 (_mm512_cmplt_epi64_mask): Ditto.
29206 (_mm512_cmplt_epu64_mask): Ditto.
29207 (_mm512_cmpneq_epi32_mask): Ditto.
29208 (_mm512_cmpneq_epu32_mask): Ditto.
29209 (_mm512_cmpneq_epi64_mask): Ditto.
29210 (_mm512_cmpneq_epu64_mask): Ditto.
29211 (_mm512_expand_pd): Ditto.
29212 (_mm512_expand_ps): Ditto.
29213 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29214 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29215 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29216 * config/i386/i386.c (ix86_builtins): Add
29217 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29218 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29219 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29220 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29221 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29222 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29223 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29224 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29225 IX86_BUILTIN_PMOVUSQW512_MEM.
29226 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29227 __builtin_ia32_pmovsqd512mem_mask,
29228 __builtin_ia32_pmovqd512mem_mask,
29229 __builtin_ia32_pmovusqw512mem_mask,
29230 __builtin_ia32_pmovsqw512mem_mask,
29231 __builtin_ia32_pmovqw512mem_mask,
29232 __builtin_ia32_pmovusdw512mem_mask,
29233 __builtin_ia32_pmovsdw512mem_mask,
29234 __builtin_ia32_pmovdw512mem_mask,
29235 __builtin_ia32_pmovqb512mem_mask,
29236 __builtin_ia32_pmovusqb512mem_mask,
29237 __builtin_ia32_pmovsqb512mem_mask,
29238 __builtin_ia32_pmovusdb512mem_mask,
29239 __builtin_ia32_pmovsdb512mem_mask,
29240 __builtin_ia32_pmovdb512mem_mask.
29241 (bdesc_args): Add __builtin_ia32_expanddf512,
29242 __builtin_ia32_expandsf512.
29243 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29244 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29245 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29246 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29247 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29248 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29249 (avx512f_<code>v8div16qi2_mask_store): This.
29250 (avx512f_expand<mode>): New.
29251
29252 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29253
29254 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29255 New.
29256 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29257 (_mm512_prefetch_i32scatter_pd): Ditto.
29258 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29259 (_mm512_prefetch_i64scatter_pd): Ditto.
29260 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29261 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29262 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29263 (_mm512_prefetch_i32scatter_ps): Ditto.
29264 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29265 (_mm512_prefetch_i64scatter_ps): Ditto.
29266 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29267 * config/i386/i386-builtin-types.def: Define
29268 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29269 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29270 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29271 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29272 IX86_BUILTIN_SCATTERPFQPD.
29273 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29274 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29275 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29276 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29277 __builtin_ia32_scatterpfqps.
29278 (ix86_expand_builtin): Expand new built-ins.
29279 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29280 fix memory access data type.
29281 (*avx512pf_gatherpf<mode>_mask): Ditto.
29282 (*avx512pf_gatherpf<mode>): Ditto.
29283 (avx512pf_scatterpf<mode>): Ditto.
29284 (*avx512pf_scatterpf<mode>_mask): Ditto.
29285 (*avx512pf_scatterpf<mode>): Ditto.
29286 (GATHER_SCATTER_SF_MEM_MODE): New.
29287 (avx512pf_gatherpf<mode>df): Ditto.
29288 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29289 (*avx512pf_scatterpf<mode>df): Ditto.
29290
29291 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29292
29293 PR bootstrap/59934
29294 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29295 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29296 reached.
29297
29298 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29299
29300 * common/config/arm/arm-common.c
29301 (arm_rewrite_mcpu): Handle multiple names.
29302 * config/arm/arm.h
29303 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29304
29305 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29306
29307 * gimple-builder.h (create_gimple_tmp): Delete.
29308
29309 2014-01-27 Christian Bruel <christian.bruel@st.com>
29310
29311 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29312 words comparisons.
29313
29314 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29315
29316 * config/pa/pa.md (call): Generate indirect long calls to non-local
29317 functions when outputing 32-bit code.
29318 (call_value): Likewise except for special call to buggy powf function.
29319
29320 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29321 portable runtime and PIC indirect calls.
29322 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29323 and PIC call sequences. Use ldo instead of blr to set return register
29324 in PIC call sequence.
29325
29326 2014-01-25 Walter Lee <walt@tilera.com>
29327
29328 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29329 avoid clobbering a live register.
29330
29331 2014-01-25 Walter Lee <walt@tilera.com>
29332
29333 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29334 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29335 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29336 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29337
29338 2014-01-25 Walter Lee <walt@tilera.com>
29339
29340 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29341 arguments on even registers.
29342 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29343 STACK_BOUNDARY.
29344 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29345 (BIGGEST_ALIGNMENT): Ditto.
29346 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29347
29348 2014-01-25 Walter Lee <walt@tilera.com>
29349
29350 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29351 insns before bundling.
29352 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29353
29354 2014-01-25 Walter Lee <walt@tilera.com>
29355
29356 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29357 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29358 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29359
29360 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29361
29362 * config/mips/constraints.md (kl): Delete.
29363 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29364 define expands, using...
29365 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29366 instructions for MIPS16.
29367 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29368 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29369
29370 2014-01-25 Walter Lee <walt@tilera.com>
29371
29372 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29373 (clzdi2): Ditto.
29374 (ffsdi2): Ditto.
29375
29376 2014-01-25 Walter Lee <walt@tilera.com>
29377
29378 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29379 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29380
29381 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29382
29383 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29384 Handle XOR.
29385
29386 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29387
29388 * print-rtl.c (in_call_function_usage): New var.
29389 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29390 EXPR_LIST mode as mode and not as reg note name.
29391
29392 PR middle-end/59561
29393 * cfgloopmanip.c (copy_loop_info): If
29394 loop->warned_aggressive_loop_optimizations, make sure
29395 the flag is set in target loop too.
29396
29397 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29398
29399 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29400 flag_cilkplus.
29401 * builtins.def: Likewise.
29402 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29403 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29404 * ira.c (ira_setup_eliminable_regset): Likewise.
29405 * omp-low.c (gate_expand_omp): Likewise.
29406 (execute_lower_omp): Likewise.
29407 (diagnose_sb_0): Likewise.
29408 (gate_diagnose_omp_blocks): Likewise.
29409 (simd_clone_clauses_extract): Likewise.
29410 (gate): Likewise.
29411
29412 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29413
29414 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29415 correction for little endian...
29416 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29417 here.
29418
29419 2014-01-24 Jeff Law <law@redhat.com>
29420
29421 PR tree-optimization/59919
29422 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29423 for non-returning calls.
29424
29425 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29426
29427 * common/config/aarch64/aarch64-common.c
29428 (aarch64_rewrite_mcpu): Handle multiple names.
29429 * config/aarch64/aarch64.h
29430 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29431
29432 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29433
29434 * input.c (add_file_to_cache_tab): Handle the case where fopen
29435 returns NULL.
29436
29437 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29438
29439 PR target/59929
29440 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29441 from push operand if code of push isn't PRE_DEC.
29442
29443 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29444
29445 PR target/59909
29446 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29447 -mquad-memory-atomic. Update -mquad-memory documentation to say
29448 it is only used for non-atomic loads/stores.
29449
29450 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29451 -mquad-memory or -mquad-memory-atomic switches.
29452
29453 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29454 -mquad-memory-atomic to ISA 2.07 support.
29455
29456 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29457 to separate support of normal quad word memory operations (ldq, stq)
29458 from the atomic quad word memory operations.
29459
29460 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29461 support to separate non-atomic quad word operations from atomic
29462 quad word operations. Disable non-atomic quad word operations in
29463 little endian mode so that we don't have to swap words after the
29464 load and before the store.
29465 (quad_load_store_p): Add comment about atomic quad word support.
29466 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29467 options printed with -mdebug=reg.
29468
29469 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29470 -mquad-memory-atomic as the test for whether we have quad word
29471 atomic instructions.
29472 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29473 or -mp8-vector are used, allow byte/half-word atomic operations.
29474
29475 * config/rs6000/sync.md (load_lockedti): Insure that the address
29476 is a proper indexed or indirect address for the lqarx instruction.
29477 On little endian systems, swap the hi/lo registers after the lqarx
29478 instruction.
29479 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29480 insure the address is valid for the lqarx instruction.
29481 (store_conditionalti): Insure that the address is a proper indexed
29482 or indirect address for the stqcrx. instruction. On little endian
29483 systems, swap the hi/lo registers before doing the stqcrx.
29484 instruction.
29485 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29486 insure the address is valid for the stqcrx. instruction.
29487
29488 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29489 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29490 type of quad memory support is available.
29491
29492 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29493
29494 PR regression/59915
29495 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29496 there is a danger of looping.
29497
29498 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29499
29500 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29501 force flag_ira_loop_pressure if set via command line.
29502
29503 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29504
29505 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29506 (ashr_simd): New builtin handling DI mode.
29507 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29508 (aarch64_sshr_simddi): New match pattern.
29509 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29510 (vshrd_n_s64): Likewise.
29511 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29512
29513 2014-01-23 Nick Clifton <nickc@redhat.com>
29514
29515 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29516 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29517 favour of mcu specific scripts.
29518 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29519 430x multilibs.
29520
29521 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29522 Alex Velenko <Alex.Velenko@arm.com>
29523
29524 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29525 (vaddv_s16): Likewise.
29526 (vaddv_s32): Likewise.
29527 (vaddv_u8): Likewise.
29528 (vaddv_u16): Likewise.
29529 (vaddv_u32): Likewise.
29530 (vaddvq_s8): Likewise.
29531 (vaddvq_s16): Likewise.
29532 (vaddvq_s32): Likewise.
29533 (vaddvq_s64): Likewise.
29534 (vaddvq_u8): Likewise.
29535 (vaddvq_u16): Likewise.
29536 (vaddvq_u32): Likewise.
29537 (vaddvq_u64): Likewise.
29538 (vaddv_f32): Likewise.
29539 (vaddvq_f32): Likewise.
29540 (vaddvq_f64): Likewise.
29541 (vmaxv_f32): Likewise.
29542 (vmaxv_s8): Likewise.
29543 (vmaxv_s16): Likewise.
29544 (vmaxv_s32): Likewise.
29545 (vmaxv_u8): Likewise.
29546 (vmaxv_u16): Likewise.
29547 (vmaxv_u32): Likewise.
29548 (vmaxvq_f32): Likewise.
29549 (vmaxvq_f64): Likewise.
29550 (vmaxvq_s8): Likewise.
29551 (vmaxvq_s16): Likewise.
29552 (vmaxvq_s32): Likewise.
29553 (vmaxvq_u8): Likewise.
29554 (vmaxvq_u16): Likewise.
29555 (vmaxvq_u32): Likewise.
29556 (vmaxnmv_f32): Likewise.
29557 (vmaxnmvq_f32): Likewise.
29558 (vmaxnmvq_f64): Likewise.
29559 (vminv_f32): Likewise.
29560 (vminv_s8): Likewise.
29561 (vminv_s16): Likewise.
29562 (vminv_s32): Likewise.
29563 (vminv_u8): Likewise.
29564 (vminv_u16): Likewise.
29565 (vminv_u32): Likewise.
29566 (vminvq_f32): Likewise.
29567 (vminvq_f64): Likewise.
29568 (vminvq_s8): Likewise.
29569 (vminvq_s16): Likewise.
29570 (vminvq_s32): Likewise.
29571 (vminvq_u8): Likewise.
29572 (vminvq_u16): Likewise.
29573 (vminvq_u32): Likewise.
29574 (vminnmv_f32): Likewise.
29575 (vminnmvq_f32): Likewise.
29576 (vminnmvq_f64): Likewise.
29577
29578 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29579
29580 * config/aarch64/aarch64-simd.md
29581 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29582 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29583 (*aarch64_mul3_elt<mode>): Likewise.
29584 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29585 (*aarch64_mul3_elt_to_64v2df): Likewise.
29586 (*aarch64_mla_elt<mode>): Likewise.
29587 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29588 (*aarch64_mls_elt<mode>): Likewise.
29589 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29590 (*aarch64_fma4_elt<mode>): Likewise.
29591 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29592 (*aarch64_fma4_elt_to_64v2df): Likewise.
29593 (*aarch64_fnma4_elt<mode>): Likewise.
29594 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29595 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29596 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29597 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29598 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29599 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29600 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29601 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29602 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29603
29604 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29605
29606 * config/aarch64/aarch64-simd.md
29607 (aarch64_be_checked_get_lane<mode>): New define_expand.
29608 * config/aarch64/aarch64-simd-builtins.def
29609 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29610 New builtin definition.
29611 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29612 Use new safe be builtin.
29613
29614 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29615
29616 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29617 New define_insn.
29618 (aarch64_be_st1<mode>): Likewise.
29619 (aarch_ld1<VALL:mode>): Define_expand modified.
29620 (aarch_st1<VALL:mode>): Likewise.
29621 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29622 (UNSPEC_ST1): Likewise.
29623
29624 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29625
29626 * config/microblaze/microblaze.md: Add trap insn and attribute
29627
29628 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29629
29630 PR preprocessor/58580
29631 * input.h (location_get_source_line): Take an additional line_size
29632 parameter.
29633 (void diagnostics_file_cache_fini): Declare new function.
29634 * input.c (struct fcache): New type.
29635 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29636 New static constants.
29637 (diagnostic_file_cache_init, total_lines_num)
29638 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29639 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29640 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29641 (get_next_line, read_next_line, goto_next_line, read_line_num):
29642 New static function definitions.
29643 (diagnostic_file_cache_fini): New function.
29644 (location_get_source_line): Take an additional output line_len
29645 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29646 read_line_num.
29647 * diagnostic.c (diagnostic_finish): Call
29648 diagnostic_file_cache_fini.
29649 (adjust_line): Take an additional input parameter for the length
29650 of the line, rather than calculating it with strlen.
29651 (diagnostic_show_locus): Adjust the use of
29652 location_get_source_line and adjust_line with respect to their new
29653 signature. While displaying a line now, do not stop at the first
29654 null byte. Rather, display the zero byte as a space and keep
29655 going until we reach the size of the line.
29656 * Makefile.in: Add vec.o to OBJS-libcommon
29657
29658 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29659 Ilya Tocar <ilya.tocar@intel.com>
29660
29661 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29662 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29663 (__builtin_ia32_kmov16): Ditto.
29664 * config/i386/i386.md (UNSPEC_KMOV): New.
29665 (kmovw): Ditto.
29666
29667 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29668
29669 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29670 (_mm512_storeu_si512): Ditto.
29671
29672 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29673
29674 PR target/52125
29675 * rtl.h (get_referenced_operands): Declare.
29676 * recog.c (get_referenced_operands): New function.
29677 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29678 operands have been referenced when recording LO_SUM references.
29679
29680 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29681
29682 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29683
29684 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29685
29686 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29687 Enable for generic and recent AMD targets.
29688
29689 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29690
29691 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29692 ARG_SIZE note when adjustment was eliminated.
29693
29694 2014-01-22 Jeff Law <law@redhat.com>
29695
29696 PR tree-optimization/59597
29697 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29698 in file. Accept new argument REGISTERING and use it to modify
29699 dump output appropriately.
29700 (register_jump_thread): Corresponding changes.
29701 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29702 thread paths involving joiner blocks. Add code to dump cancelled
29703 jump threading paths.
29704
29705 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29706
29707 PR rtl-optimization/59477
29708 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29709 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29710
29711 2014-01-22 Tom Tromey <tromey@redhat.com>
29712
29713 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29714 PARAMS.
29715 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29716
29717 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29718
29719 PR rtl-optimization/59896
29720 * lra-constraints.c (process_alt_operands): Check unused note for
29721 matched operands of insn with no output reloads.
29722
29723 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29724
29725 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29726 (mips_move_from_gpr_cost): Likewise.
29727
29728 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29729
29730 PR rtl-optimization/59858
29731 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29732 ira_class_hard_regs_num.
29733 (process_alt_operands): Increase reject for dying matched operand.
29734
29735 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29736
29737 PR target/59003
29738 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29739 smaller than size, perform several stores or loads and stores
29740 at dst + count - size to store or copy all of size bytes, rather
29741 than just last modesize bytes.
29742
29743 2014-01-20 DJ Delorie <dj@redhat.com>
29744
29745 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29746 that CLOBBERs are REGs before propogating their values.
29747
29748 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29749
29750 PR middle-end/59789
29751 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29752 (cgraph_inline_failed_type): New function.
29753 * cgraph.h (DEFCIFCODE): Add type.
29754 (cgraph_inline_failed_type_t): New enum.
29755 (cgraph_inline_failed_type): New prototype.
29756 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29757 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29758 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29759 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29760 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29761 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29762 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29763 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29764 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29765 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29766 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29767 OPTIMIZATION_MISMATCH.
29768 * tree-inline.c (expand_call_inline): Emit errors during
29769 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29770
29771 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29772
29773 PR target/59685
29774 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29775 mode attribute in insn output.
29776
29777 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29778
29779 * output.h (output_constant): Delete.
29780 * varasm.c (output_constant): Make private.
29781
29782 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29783
29784 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29785
29786 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29787
29788 PR middle-end/59860
29789 * tree.h (fold_builtin_strcat): New prototype.
29790 * builtins.c (fold_builtin_strcat): No longer static. Add len
29791 argument, if non-NULL, don't call c_strlen. Optimize
29792 directly into __builtin_memcpy instead of __builtin_strcpy.
29793 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29794 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29795
29796 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29797
29798 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29799 for SImode_address_operand operands, having only a REG argument.
29800
29801 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29802
29803 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29804 loader name using mbig-endian.
29805 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29806
29807 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29808
29809 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29810 (-mtune): Likewise.
29811 (-mcpu): Likewise.
29812
29813 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29814
29815 * config/aarch64/aarch64-protos.h
29816 (aarch64_cannot_change_mode_class_ptr): Declare.
29817 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29818 aarch64_cannot_change_mode_class_ptr): New.
29819 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29820 backend hook aarch64_cannot_change_mode_class.
29821
29822 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29823
29824 * common/config/aarch64/aarch64-common.c
29825 (aarch64_handle_option): Don't handle any option order logic here.
29826 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29827 selected_cpu, warn on architecture version mismatch.
29828 (aarch64_override_options): Fix parsing order for option strings.
29829
29830 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29831 Iain Sandoe <iain@codesourcery.com>
29832
29833 PR bootstrap/59496
29834 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29835 warning. Amend comment to reflect current functionality.
29836
29837 2014-01-20 Richard Biener <rguenther@suse.de>
29838
29839 PR middle-end/59860
29840 * builtins.c (fold_builtin_strcat): Remove case better handled
29841 by tree-ssa-strlen.c.
29842
29843 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29844
29845 * config/aarch64/aarch64.opt
29846 (mcpu, march, mtune): Make case-insensitive.
29847
29848 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29849
29850 PR target/59880
29851 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29852 if operands[1] is a REG or ZERO_EXTEND of a REG.
29853
29854 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29855
29856 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29857
29858 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29859
29860 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29861 long non-pic millicode calls.
29862
29863 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29864
29865 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29866
29867 2014-01-19 Kito Cheng <kito@0xlab.org>
29868
29869 * builtins.c (expand_movstr): Check movstr expand done or fail.
29870
29871 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29872 H.J. Lu <hongjiu.lu@intel.com>
29873
29874 PR target/59379
29875 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29876 to DImode for zero-extended addresses.
29877
29878 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29879
29880 PR rtl-optimization/57763
29881 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29882 on the new indirect jump_insn and increment LABEL_NUSES (label).
29883
29884 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29885
29886 PR bootstrap/59580
29887 PR bootstrap/59583
29888 * config.gcc (x86_archs): New variable.
29889 (x86_64_archs): Likewise.
29890 (x86_cpus): Likewise.
29891 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29892 --with-arch/--with-cpu= options.
29893 Support --with-arch=/--with-cpu={nehalem,westmere,
29894 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29895
29896 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29897
29898 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29899 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29900
29901 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29902
29903 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29904
29905 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29906
29907 PR target/58944
29908 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29909 clear cpp_get_options (parse_in)->warn_unused_macros for
29910 ix86_target_macros_internal with cpp_define.
29911
29912 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29913
29914 * jump.c (delete_related_insns): Keep (use (insn))s.
29915 * reorg.c (redundant_insn): Check for barriers too.
29916
29917 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29918
29919 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29920
29921 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29922
29923 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29924 call to $$dyncall when TARGET_LONG_CALLS is true.
29925
29926 2014-01-17 Jeff Law <law@redhat.com>
29927
29928 * ree.c (combine_set_extension): Temporarily disable test for
29929 changing number of hard registers.
29930
29931 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29932
29933 PR middle-end/58125
29934 * ipa-inline-analysis.c (inline_free_summary):
29935 Do not free summary of aliases.
29936
29937 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29938
29939 PR middle-end/59706
29940 * gimplify.c (gimplify_expr): Use create_tmp_var
29941 instead of create_tmp_var_raw. If cond doesn't have
29942 integral type, don't add the IFN_ANNOTATE builtin at all.
29943
29944 2014-01-17 Martin Jambor <mjambor@suse.cz>
29945
29946 PR ipa/59736
29947 * ipa-cp.c (prev_edge_clone): New variable.
29948 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29949 Also resize prev_edge_clone vector.
29950 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29951 (ipcp_edge_removal_hook): New function.
29952 (ipcp_driver): Register ipcp_edge_removal_hook.
29953
29954 2014-01-17 Andrew Pinski <apinski@cavium.com>
29955 Steve Ellcey <sellcey@mips.com>
29956
29957 PR target/59462
29958 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29959 of operator mode.
29960
29961 2014-01-17 Jeff Law <law@redhat.com>
29962
29963 PR middle-end/57904
29964 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29965 so that pass_ccp runs first.
29966
29967 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29968
29969 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29970 (ix86_adjust_cost): Use !TARGET_XXX.
29971 (do_reorder_for_imul): Likewise.
29972 (swap_top_of_ready_list): Likewise.
29973 (ix86_sched_reorder): Likewise.
29974
29975 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29976
29977 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29978 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29979 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29980 (intel_memset): New. Duplicate slm_memset.
29981 (intel_cost): New. Duplicate slm_cost.
29982 (m_INTEL): New macro.
29983 (processor_target_table): Add "intel".
29984 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29985 with PROCESSOR_INTEL for "intel".
29986 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29987 PROCESSOR_SILVERMONT.
29988 (ix86_issue_rate): Likewise.
29989 (ix86_adjust_cost): Likewise.
29990 (ia32_multipass_dfa_lookahead): Likewise.
29991 (swap_top_of_ready_list): Likewise.
29992 (ix86_sched_reorder): Likewise.
29993 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29994 instead of TARGET_OPT_AGU.
29995 * config/i386/i386.h (TARGET_INTEL): New.
29996 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29997 (processor_type): Add PROCESSOR_INTEL.
29998 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29999 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
30000
30001 2014-01-17 Marek Polacek <polacek@redhat.com>
30002
30003 PR c/58346
30004 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
30005 size is zero.
30006
30007 2014-01-17 Richard Biener <rguenther@suse.de>
30008
30009 PR tree-optimization/46590
30010 * opts.c (default_options_table): Add entries for
30011 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
30012 all enabled at -O1 but not for -Og.
30013 * common.opt (fbranch-count-reg): Remove Init(1).
30014 (fmove-loop-invariants): Likewise.
30015 (ftree-pta): Likewise.
30016
30017 2014-01-17 Jakub Jelinek <jakub@redhat.com>
30018
30019 * config/i386/i386.c (ix86_data_alignment): For compatibility with
30020 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
30021 decls to at least the GCC 4.8 used alignments.
30022
30023 PR fortran/59440
30024 * tree-nested.c (convert_nonlocal_reference_stmt,
30025 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
30026 of GIMPLE_BIND stmts, adjust associated decls.
30027
30028 2014-01-17 Richard Biener <rguenther@suse.de>
30029
30030 PR tree-optimization/46590
30031 * vec.h (vec<>::bseach): New member function implementing
30032 binary search according to C89 bsearch.
30033 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
30034 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
30035 bitmap pointer again. Make accesses_in_loop a flat array.
30036 (mem_ref_obstack): New global.
30037 (outermost_indep_loop): Adjust for mem_ref->stored changes.
30038 (mark_ref_stored): Likewise.
30039 (ref_indep_loop_p_2): Likewise.
30040 (set_ref_stored_in_loop): New helper function.
30041 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
30042 (memref_free): Adjust.
30043 (record_mem_ref_loc): Simplify.
30044 (gather_mem_refs_stmt): Adjust.
30045 (sort_locs_in_loop_postorder_cmp): New function.
30046 (analyze_memory_references): Sort accesses_in_loop after
30047 loop postorder number.
30048 (find_ref_loc_in_loop_cmp): New function.
30049 (for_all_locs_in_loop): Find relevant cluster of locs in
30050 accesses_in_loop and iterate without recursion.
30051 (execute_sm): Avoid uninit warning.
30052 (struct ref_always_accessed): Simplify.
30053 (ref_always_accessed::operator ()): Likewise.
30054 (ref_always_accessed_p): Likewise.
30055 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
30056 loop postorder numbers here.
30057 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
30058 numbers.
30059
30060 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
30061
30062 PR c++/57945
30063 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
30064 on decls for which assemble_alias has been called.
30065
30066 2014-01-17 Nick Clifton <nickc@redhat.com>
30067
30068 * config/msp430/msp430.opt: (mcpu): New option.
30069 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
30070 (msp430_option_override): Parse target_cpu. If the MCU name
30071 matches a generic string, clear target_mcu.
30072 (msp430_attr): Allow numeric interrupt values up to 63.
30073 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
30074 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
30075 option.
30076 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
30077 Add mcpu matches.
30078 * config/msp430/msp430.md (popm): Use %J rather than %I.
30079 (addsi3): Use msp430_nonimmediate_operand for operand 2.
30080 (addhi_cy_i): Use immediate_operand for operand 2.
30081 * doc/invoke.texi: Document -mcpu option.
30082
30083 2014-01-17 Richard Biener <rguenther@suse.de>
30084
30085 PR rtl-optimization/38518
30086 * df.h (df_analyze_loop): Declare.
30087 * df-core.c: Include cfgloop.h.
30088 (df_analyze_1): Split out main part of df_analyze.
30089 (df_analyze): Adjust.
30090 (loop_inverted_post_order_compute): New function.
30091 (loop_post_order_compute): Likewise.
30092 (df_analyze_loop): New function avoiding whole-function
30093 postorder computes.
30094 * loop-invariant.c (find_defs): Use df_analyze_loop.
30095 (find_invariants): Adjust.
30096 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
30097
30098 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
30099
30100 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
30101 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30102
30103 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30104
30105 * ipa-ref.c (ipa_remove_stmt_references): Fix references
30106 traversal when removing references.
30107
30108 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
30109
30110 PR ipa/59775
30111 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30112
30113 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
30114
30115 PR middle-end/56791
30116 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30117 pushing a reload for an autoinc when we had previously reloaded an
30118 inner part of the address.
30119
30120 2014-01-16 Jakub Jelinek <jakub@redhat.com>
30121
30122 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30123 field.
30124 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30125 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30126 when not giving up or versioning for alias only because of
30127 loop->safelen.
30128 (vect_analyze_data_ref_dependences): Set to true.
30129 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30130 is a GIMPLE_PHI.
30131 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30132 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30133 to the condition.
30134
30135 PR middle-end/58344
30136 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30137
30138 PR target/59839
30139 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30140 operand 0 predicate for gathers, use a new pseudo as subtarget.
30141
30142 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30143
30144 PR middle-end/59609
30145 * lra-constraints.c (process_alt_operands): Add printing debug info.
30146 Check absence of input/output reloads for matched operands too.
30147
30148 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30149
30150 PR rtl-optimization/59835
30151 * ira.c (ira_init_register_move_cost): Increase cost for
30152 impossible modes.
30153
30154 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
30155
30156 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30157
30158 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30159
30160 PR target/59780
30161 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30162 non-register objects. Use gen_(high/low)part more consistently.
30163 Fix assertions.
30164
30165 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30166
30167 PR target/59844
30168 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30169 endian support, remove tests for WORDS_BIG_ENDIAN.
30170 (p8_mfvsrd_3_<mode>): Likewise.
30171 (reload_gpr_from_vsx<mode>): Likewise.
30172 (reload_gpr_from_vsxsf): Likewise.
30173 (p8_mfvsrd_4_disf): Likewise.
30174
30175 2014-01-16 Richard Biener <rguenther@suse.de>
30176
30177 PR rtl-optimization/46590
30178 * lcm.c (compute_antinout_edge): Use postorder iteration.
30179 (compute_laterin): Use inverted postorder iteration.
30180
30181 2014-01-16 Nick Clifton <nickc@redhat.com>
30182
30183 PR middle-end/28865
30184 * varasm.c (output_constant): Return the number of bytes actually
30185 emitted.
30186 (output_constructor_array_range): Update the field size with the
30187 number of bytes emitted by output_constant.
30188 (output_constructor_regular_field): Likewise. Also do not
30189 complain if the total number of bytes emitted is now greater
30190 than the expected fieldpos.
30191 * output.h (output_constant): Update prototype and descriptive comment.
30192
30193 2014-01-16 Marek Polacek <polacek@redhat.com>
30194
30195 PR middle-end/59827
30196 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30197 it is error_mark_node.
30198
30199 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30200
30201 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30202 VALID_AVX256_REG_OR_OI_MODE.
30203
30204 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30205
30206 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30207 current procedure should be profiled.
30208
30209 2014-01-15 Andrew Pinski <apinski@cavium.com>
30210
30211 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30212 of moving from/to the STACK_REG register class.
30213
30214 2014-01-15 Richard Henderson <rth@redhat.com>
30215
30216 PR debug/54694
30217 * reginfo.c (global_regs_decl): Globalize.
30218 * rtl.h (global_regs_decl): Declare.
30219 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30220 reserved via global_regs.
30221
30222 2014-01-15 Teresa Johnson <tejohnson@google.com>
30223
30224 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30225
30226 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30227
30228 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30229 and vmulosh rather than call gen_vec_widen_smult_*.
30230 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30231 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30232 (vec_widen_smult_even_v16qi): Likewise.
30233 (vec_widen_umult_even_v8hi): Likewise.
30234 (vec_widen_smult_even_v8hi): Likewise.
30235 (vec_widen_umult_odd_v16qi): Likewise.
30236 (vec_widen_smult_odd_v16qi): Likewise.
30237 (vec_widen_umult_odd_v8hi): Likewise.
30238 (vec_widen_smult_odd_v8hi): Likewise.
30239 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30240 vmuloub rather than call gen_vec_widen_umult_*.
30241 (vec_widen_umult_lo_v16qi): Likewise.
30242 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30243 vmulosb rather than call gen_vec_widen_smult_*.
30244 (vec_widen_smult_lo_v16qi): Likewise.
30245 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30246 rather than call gen_vec_widen_umult_*.
30247 (vec_widen_umult_lo_v8hi): Likewise.
30248 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30249 rather than call gen_vec_widen_smult_*.
30250 (vec_widen_smult_lo_v8hi): Likewise.
30251
30252 2014-01-15 Jeff Law <law@redhat.com>
30253
30254 PR tree-optimization/59747
30255 * ree.c (find_and_remove_re): Properly handle case where a second
30256 eliminated extension requires widening a copy created for elimination
30257 of a prior extension.
30258 (combine_set_extension): Ensure that the number of hard regs needed
30259 for a destination register does not change when we widen it.
30260
30261 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30262
30263 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30264 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30265 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30266 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30267 (avr-*-rtems*): Likewise.
30268 (bfin*-rtems*): Likewise.
30269 (moxie-*-rtems*): Likewise.
30270 (h8300-*-rtems*): Likewise.
30271 (i[34567]86-*-rtems*): Likewise.
30272 (lm32-*-rtems*): Likewise.
30273 (m32r-*-rtems*): Likewise.
30274 (m68k-*-rtems*): Likewise.
30275 (microblaze*-*-rtems*): Likewise.
30276 (mips*-*-rtems*): Likewise.
30277 (powerpc-*-rtems*): Likewise.
30278 (sh-*-rtems*): Likewise.
30279 (sparc-*-rtems*): Likewise.
30280 (sparc64-*-rtems*): Likewise.
30281 (v850-*-rtems*): Likewise.
30282 (m32c-*-rtems*): Likewise.
30283
30284 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30285
30286 PR rtl-optimization/59511
30287 * ira.c (ira_init_register_move_cost): Use memory costs for some
30288 cases of register move cost calculations.
30289 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30290 instead of BB frequency.
30291 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30292 * lra-assigns.c (find_hard_regno_for): Ditto.
30293
30294 2014-01-15 Richard Biener <rguenther@suse.de>
30295
30296 PR tree-optimization/59822
30297 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30298 (vectorizable_load): Use it to hoist defs of uses of invariant
30299 loads out of the loop.
30300
30301 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30302 Kugan Vivekanandarajah <kuganv@linaro.org>
30303
30304 PR target/59695
30305 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30306 truncation.
30307
30308 2014-01-15 Richard Biener <rguenther@suse.de>
30309
30310 PR rtl-optimization/59802
30311 * lcm.c (compute_available): Use inverted postorder to seed
30312 the initial worklist.
30313
30314 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30315
30316 PR target/59803
30317 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30318 ADDR_REGS for invalid symrefs in non-PIC code.
30319
30320 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30321
30322 PR other/58712
30323 * builtins.c (determine_block_size): Initialize *probable_max_size
30324 even if len_rtx is CONST_INT.
30325
30326 2014-01-14 Andrew Pinski <apinski@cavium.com>
30327
30328 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30329 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30330 (cortexa53_tunings): Likewise.
30331 (aarch64_sched_issue_rate): New function.
30332 (TARGET_SCHED_ISSUE_RATE): Define.
30333
30334 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30335
30336 * ira-costs.c (find_costs_and_classes): Add missed
30337 ira_init_register_move_cost_if_necessary.
30338
30339 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30340
30341 PR target/59787
30342 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30343
30344 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30345
30346 PR target/59794
30347 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30348 to indicate if type is used for function return value. Warn ABI
30349 change if the vector mode isn't available for function return value.
30350 (ix86_function_arg_advance): Pass false to type_natural_mode.
30351 (ix86_function_arg): Likewise.
30352 (ix86_gimplify_va_arg): Likewise.
30353 (function_arg_32): Don't warn ABI change.
30354 (ix86_function_value): Pass true to type_natural_mode.
30355 (ix86_return_in_memory): Likewise.
30356 (ix86_struct_value_rtx): Removed.
30357 (TARGET_STRUCT_VALUE_RTX): Likewise.
30358
30359 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30360
30361 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30362 converting a conditional jump into a conditional return.
30363
30364 2014-01-14 Richard Biener <rguenther@suse.de>
30365
30366 PR tree-optimization/58921
30367 PR tree-optimization/59006
30368 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30369 hoisting invariant stmts.
30370 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30371 invariant loads on the preheader edge if possible.
30372
30373 2014-01-14 Joey Ye <joey.ye@arm.com>
30374
30375 * doc/plugin.texi (Building GCC plugins): Update to C++.
30376
30377 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30378
30379 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30380 (_mm_rcp28_round_ss): Ditto.
30381 (_mm_rsqrt28_round_sd): Ditto.
30382 (_mm_rsqrt28_round_ss): Ditto.
30383 (_mm_rcp28_sd): Ditto.
30384 (_mm_rcp28_ss): Ditto.
30385 (_mm_rsqrt28_sd): Ditto.
30386 (_mm_rsqrt28_ss): Ditto.
30387 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30388 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30389 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30390 (IX86_BUILTIN_RCP28SD): Ditto.
30391 (IX86_BUILTIN_RCP28SS): Ditto.
30392 (IX86_BUILTIN_RSQRT28SD): Ditto.
30393 (IX86_BUILTIN_RSQRT28SS): Ditto.
30394 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30395 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30396 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30397 (ix86_expand_special_args_builtin): Expand new FTYPE.
30398 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30399 (srcp14<mode>): Make insn unary.
30400 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30401 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30402 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30403 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30404 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30405 Fix rounding: make it SAE only.
30406 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30407 Ditto.
30408 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30409 Ditto.
30410 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30411 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30412 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30413 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30414 (round_saeonly_mask_scalar_operand4): Ditto.
30415 (round_saeonly_mask_scalar_op3): Ditto.
30416 (round_saeonly_mask_scalar_op4): Ditto.
30417
30418 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30419
30420 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30421 Implement -maltivec=be for vec_insert and vec_extract.
30422
30423 2014-01-10 DJ Delorie <dj@redhat.com>
30424
30425 * config/msp430/msp430.md (call_internal): Don't allow memory
30426 references with SP as the base register.
30427 (call_value_internal): Likewise.
30428 * config/msp430/constraints.md (Yc): New. For memory references
30429 that don't use SP as a base register.
30430
30431 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30432 "an integer without a # prefix"
30433 * config/msp430/msp430.md (epilogue_helper): Use it.
30434
30435 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30436
30437 PR target/59617
30438 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30439 AVX512F gather builtins.
30440 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30441 on gather decls with INTEGER_TYPE masktype.
30442 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30443 directly into the builtin rather than hoisting it before loop.
30444
30445 PR tree-optimization/59387
30446 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30447 (scev_const_prop): If folded_casts and type has undefined overflow,
30448 use force_gimple_operand instead of force_gimple_operand_gsi and
30449 for each added stmt if it is assign with
30450 arith_code_with_undefined_signed_overflow, call
30451 rewrite_to_defined_overflow.
30452 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30453 gimple-fold.h instead.
30454 (arith_code_with_undefined_signed_overflow,
30455 rewrite_to_defined_overflow): Moved to ...
30456 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30457 rewrite_to_defined_overflow): ... here. No longer static.
30458 Include gimplify-me.h.
30459 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30460 rewrite_to_defined_overflow): New prototypes.
30461
30462 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30463
30464 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30465
30466 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30467
30468 * builtins.c (get_object_alignment_2): Minor tweak.
30469 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30470
30471 2014-01-13 Christian Bruel <christian.bruel@st.com>
30472
30473 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30474 optimized non constant lengths.
30475
30476 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30477
30478 PR libgomp/59194
30479 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30480 load as __atomic_load_N if possible.
30481
30482 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30483
30484 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30485 target parameter.
30486 (rs6000_expand_builtin): Adjust call.
30487
30488 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30489
30490 PR target/58115
30491 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30492 * config/rs6000/rs6000.c: Include target-globals.h.
30493 (rs6000_set_current_function): Instead of doing target_reinit
30494 unconditionally, use save_target_globals_default_opts and
30495 restore_target_globals.
30496
30497 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30498 FPSCR.
30499 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30500 (rs6000_expand_builtin): Handle mffs and mtfsf.
30501 (rs6000_init_builtins): Define mffs and mtfsf.
30502 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30503 (rs6000_mffs): New pattern.
30504 (rs6000_mtfsf): New pattern.
30505
30506 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30507
30508 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30509 Start narrowing with START. Apply candidate-use pair
30510 and check overall cost in narrowing.
30511 (iv_ca_prune): Pass new argument.
30512
30513 2014-01-10 Jeff Law <law@redhat.com>
30514
30515 PR middle-end/59743
30516 * ree.c (combine_reaching_defs): Ensure the defining statement
30517 occurs before the extension when optimizing extensions with
30518 different source and destination hard registers.
30519
30520 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30521
30522 PR ipa/58585
30523 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30524 vtables into the type inheritance graph.
30525
30526 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30527
30528 PR rtl-optimization/59754
30529 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30530 modes in the REGNO != REGNO case.
30531
30532 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30533
30534 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30535
30536 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30537
30538 PR tree-optimization/59745
30539 * tree-predcom.c (tree_predictive_commoning_loop): Call
30540 free_affine_expand_cache if giving up because components is NULL.
30541
30542 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30543 GC in payload of target_globals struct instead of allocating them on
30544 the heap and the larger structs separately using GC.
30545 * target-globals.h (struct target_globals): Make regs, hard_regs,
30546 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30547 of GTY((skip)) and change type to void *.
30548 (reset_target_globals): Cast loads from those fields to corresponding
30549 types.
30550
30551 2014-01-10 Steve Ellcey <sellcey@mips.com>
30552
30553 PR plugins/59335
30554 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30555 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30556 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30557
30558 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30559
30560 PR target/59744
30561 * aarch64-modes.def (CC_Zmode): New flags mode.
30562 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30563 represents an equality.
30564 (aarch64_get_condition_code): Handle CC_Zmode.
30565 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30566
30567 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30568
30569 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30570 extraction in good case.
30571
30572 2014-01-10 Richard Biener <rguenther@suse.de>
30573
30574 PR tree-optimization/59374
30575 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30576 checking after SLP discovery. Mark stmts not participating
30577 in any SLP instance properly.
30578
30579 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30580
30581 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30582 when handling a SET rtx.
30583
30584 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30585
30586 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30587 (cortex-a57): Likewise.
30588 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30589
30590 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30591
30592 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30593 non-iwmmxt builtins.
30594
30595 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30596
30597 PR ipa/58252
30598 PR ipa/59226
30599 * ipa-devirt.c record_target_from_binfo): Take as argument
30600 stack of binfos and lookup matching one for virtual inheritance.
30601 (possible_polymorphic_call_targets_1): Update.
30602
30603 2014-01-10 Huacai Chen <chenhc@lemote.com>
30604
30605 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30606 kernel strings for Loongson-2E/2F/3A.
30607
30608 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30609
30610 PR middle-end/59670
30611 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30612 is_gimple_call before calling gimple_call_internal_p.
30613
30614 2014-01-09 Steve Ellcey <sellcey@mips.com>
30615
30616 * Makefile.in (TREE_FLOW_H): Remove.
30617 (TREE_SSA_H): Add file names from tree-flow.h.
30618 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30619 * tree.h: Remove tree-flow.h reference.
30620 * hash-table.h: Remove tree-flow.h reference.
30621 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30622 reference with tree-ssa-loop.h.
30623
30624 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30625
30626 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30627 default element-order behavior for -maltivec.
30628 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30629 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30630 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30631 when targeting big endian, at least for now.
30632 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30633
30634 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30635
30636 PR middle-end/47735
30637 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30638 var satisfies use_register_for_decl, just take into account type
30639 alignment, rather than decl alignment.
30640
30641 PR tree-optimization/59622
30642 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30643 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30644 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30645 Don't devirtualize for inplace at all. For targets.length () == 1,
30646 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30647
30648 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30649
30650 * config/i386/i386.md (cpu): Remove the unused btver1.
30651
30652 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30653
30654 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30655
30656 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30657
30658 PR target/58115
30659 * tree-core.h (struct target_globals): New forward declaration.
30660 (struct tree_target_option): Add globals field.
30661 * tree.h (TREE_TARGET_GLOBALS): Define.
30662 (prepare_target_option_nodes_for_pch): New prototype.
30663 * target-globals.h (struct target_globals): Define even if
30664 !SWITCHABLE_TARGET.
30665 * tree.c (prepare_target_option_node_for_pch,
30666 prepare_target_option_nodes_for_pch): New functions.
30667 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30668 * config/i386/i386.c: Include target-globals.h.
30669 (ix86_set_current_function): Instead of doing target_reinit
30670 unconditionally, use save_target_globals_default_opts and
30671 restore_target_globals.
30672
30673 2014-01-09 Richard Biener <rguenther@suse.de>
30674
30675 PR tree-optimization/59715
30676 * tree-cfg.h (split_critical_edges): Declare.
30677 * tree-cfg.c (split_critical_edges): Export.
30678 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30679
30680 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30681
30682 * cfgexpand.c (expand_stack_vars): Optionally disable
30683 asan stack protection.
30684 (expand_used_vars): Likewise.
30685 (partition_stack_vars): Likewise.
30686 * asan.c (asan_emit_stack_protection): Optionally disable
30687 after return stack usage.
30688 (instrument_derefs): Optionally disable memory access instrumentation.
30689 (instrument_builtin_call): Likewise.
30690 (instrument_strlen_call): Likewise.
30691 (asan_protect_global): Optionally disable global variables protection.
30692 * doc/invoke.texi: Added doc for new options.
30693 * params.def: Added new options.
30694 * params.h: Likewise.
30695
30696 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30697
30698 PR rtl-optimization/59724
30699 * ifcvt.c (cond_exec_process_if_block): Don't call
30700 flow_find_head_matching_sequence with 0 longest_match.
30701 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30702 non-active insns if !stop_after.
30703 (try_head_merge_bb): Revert 2014-01-07 changes.
30704
30705 2014-01-08 Jeff Law <law@redhat.com>
30706
30707 * ree.c (get_sub_rtx): New function, extracted from...
30708 (merge_def_and_ext): Here.
30709 (combine_reaching_defs): Use get_sub_rtx.
30710
30711 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30712
30713 * cgraph.h (varpool_variable_node): Do not choke on null node.
30714
30715 2014-01-08 Catherine Moore <clm@codesourcery.com>
30716
30717 * config/mips/mips.md (simple_return): Attempt to use JRC
30718 for microMIPS.
30719 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30720
30721 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30722
30723 PR rtl-optimization/59137
30724 * reorg.c (steal_delay_list_from_target): Call update_block for
30725 elided insns.
30726 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30727
30728 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30729
30730 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30731 two duplicate entries.
30732
30733 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30734
30735 Revert:
30736 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30737
30738 * config/mips/mips.c (mips_truncated_op_cost): New function.
30739 (mips_rtx_costs): Adjust test for BADDU.
30740 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30741
30742 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30743
30744 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30745 (*baddu_si): ...this new pattern.
30746
30747 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30748
30749 PR ipa/59722
30750 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30751
30752 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30753
30754 PR middle-end/57748
30755 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30756 inner_reference_p.
30757 (expand_expr, expand_normal): Adjust.
30758 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30759 inner_reference_p. Use inner_reference_p to expand inner references.
30760 (store_expr): Adjust.
30761 * cfgexpand.c (expand_call_stmt): Adjust.
30762
30763 2014-01-08 Rong Xu <xur@google.com>
30764
30765 * gcov-io.c (gcov_var): Move from gcov-io.h.
30766 (gcov_position): Ditto.
30767 (gcov_is_error): Ditto.
30768 (gcov_rewrite): Ditto.
30769 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30770 only part to libgcc/libgcov.h.
30771
30772 2014-01-08 Marek Polacek <polacek@redhat.com>
30773
30774 PR middle-end/59669
30775 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30776
30777 2014-01-08 Marek Polacek <polacek@redhat.com>
30778
30779 PR sanitizer/59667
30780 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30781
30782 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30783
30784 PR rtl-optimization/59649
30785 * stor-layout.c (get_mode_bounds): For BImode return
30786 0 and STORE_FLAG_VALUE.
30787
30788 2014-01-08 Richard Biener <rguenther@suse.de>
30789
30790 PR middle-end/59630
30791 * gimple.h (is_gimple_builtin_call): Remove.
30792 (gimple_builtin_call_types_compatible_p): New.
30793 (gimple_call_builtin_p): New overload.
30794 * gimple.c (is_gimple_builtin_call): Remove.
30795 (validate_call): Rename to ...
30796 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30797 check return types.
30798 (validate_type): New static function.
30799 (gimple_call_builtin_p): New overload and adjust.
30800 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30801 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30802 (gimple_fold_stmt_to_constant_1): Likewise.
30803 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30804
30805 2014-01-08 Richard Biener <rguenther@suse.de>
30806
30807 PR middle-end/59471
30808 * gimplify.c (gimplify_expr): Gimplify register-register type
30809 VIEW_CONVERT_EXPRs to separate stmts.
30810
30811 2014-01-07 Jeff Law <law@redhat.com>
30812
30813 PR middle-end/53623
30814 * ree.c (combine_set_extension): Handle case where source
30815 and destination registers in an extension insn are different.
30816 (combine_reaching_defs): Allow source and destination registers
30817 in extension to be different under limited circumstances.
30818 (add_removable_extension): Remove restriction that the
30819 source and destination registers in the extension are the same.
30820 (find_and_remove_re): Emit a copy from the extension's
30821 destination to its source after the defining insn if
30822 the source and destination registers are different.
30823
30824 PR middle-end/59285
30825 * ifcvt.c (merge_if_block): If we are merging a block with more than
30826 one successor with a block with no successors, remove any BARRIER
30827 after the second block.
30828
30829 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30830
30831 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30832
30833 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30834
30835 PR target/59652
30836 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30837 for 14-bit register offsets when INT14_OK_STRICT is false.
30838
30839 2014-01-07 Roland Stigge <stigge@antcom.de>
30840 Michael Meissner <meissner@linux.vnet.ibm.com>
30841
30842 PR 57386/target
30843 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30844 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30845
30846 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30847
30848 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30849 -mcpu.
30850
30851 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30852
30853 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30854 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30855 rtx is const0_rtx or not.
30856
30857 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30858
30859 PR target/58115
30860 * target-globals.c (save_target_globals): Remove this_fn_optab
30861 handling.
30862 * toplev.c: Include optabs.h.
30863 (target_reinit): Temporarily restore the global options if another
30864 set of options are in force.
30865
30866 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30867
30868 PR rtl-optimization/58668
30869 * cfgcleanup.c (flow_find_cross_jump): Don't count
30870 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30871 to determine what is counted.
30872 (flow_find_head_matching_sequence): Use active_insn_p to determine
30873 what is counted.
30874 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30875 counting change.
30876 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30877 determine what is counted.
30878
30879 PR tree-optimization/59643
30880 * tree-predcom.c (split_data_refs_to_components): If one dr is
30881 read and one write, determine_offset fails and the write isn't
30882 in the bad component, just put the read into the bad component.
30883
30884 2014-01-07 Mike Stump <mikestump@comcast.net>
30885 Jakub Jelinek <jakub@redhat.com>
30886
30887 PR pch/59436
30888 * tree-core.h (struct tree_optimization_option): Change optabs
30889 type from unsigned char * to void *.
30890 * optabs.c (init_tree_optimization_optabs): Adjust
30891 TREE_OPTIMIZATION_OPTABS initialization.
30892
30893 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30894
30895 PR target/59644
30896 * config/i386/i386.h (struct machine_function): Add
30897 no_drap_save_restore field.
30898 * config/i386/i386.c (ix86_save_reg): Use
30899 !cfun->machine->no_drap_save_restore instead of
30900 crtl->stack_realign_needed.
30901 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30902 this function clears frame_pointer_needed. Set
30903 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30904 and DRAP reg is needed.
30905
30906 2014-01-06 Marek Polacek <polacek@redhat.com>
30907
30908 PR c/57773
30909 * doc/implement-c.texi: Mention that other integer types are
30910 permitted as bit-field types in strictly conforming mode.
30911
30912 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30913
30914 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30915 is newly allocated.
30916
30917 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30918
30919 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30920
30921 2014-01-06 Martin Jambor <mjambor@suse.cz>
30922
30923 PR ipa/59008
30924 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30925 to int.
30926 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30927
30928 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30929
30930 PR debug/59350
30931 PR debug/59510
30932 * var-tracking.c (add_stores): Preserve the value of the source even if
30933 we don't record the store.
30934
30935 2014-01-06 Terry Guo <terry.guo@arm.com>
30936
30937 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30938
30939 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30940
30941 PR bootstrap/59541
30942 * config/darwin.c (darwin_function_section): Adjust return values to
30943 correspond to optimisation changes made in r206070.
30944
30945 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30946
30947 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30948 from prefetch_block tune setting.
30949 (nocona_cost): Correct size of prefetch block to 64.
30950
30951 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30952
30953 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30954 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30955 used to save the static chain register in the computation of the offset
30956 from which the FP registers need to be restored.
30957
30958 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30959
30960 PR tree-optimization/59519
30961 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30962 ICE if get_current_def (current_new_name) is already non-NULL, as long
30963 as it is a phi result of some other phi in *new_exit_bb that has
30964 the same argument.
30965
30966 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30967 or vmovdqu* for misaligned_operand.
30968 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30969 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30970 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30971 aligned_mem for AVX512F masked aligned load and store builtins and for
30972 non-temporal moves.
30973
30974 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30975
30976 PR tree-optimization/59651
30977 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30978 Address range for negative step should be added by TYPE_SIZE_UNIT.
30979
30980 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30981
30982 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30983 overlapping registers also for registers other than the stack pointer.
30984
30985 2014-01-03 Marek Polacek <polacek@redhat.com>
30986
30987 PR other/59661
30988 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30989 __builtin_FILE.
30990
30991 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30992
30993 PR target/59625
30994 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30995 asm goto as jump.
30996
30997 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30998 (push splitter): Use <P:MODE_SIZE> instead of
30999 GET_MODE_SIZE (<P:MODE>mode).
31000 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
31001 (mov -1, reg peephole2): Likewise.
31002 * config/i386/sse.md (*mov<mode>_internal,
31003 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
31004 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
31005 *<code><mode>3, *andnot<mode>3<mask_name>,
31006 <mask_codefor><code><mode>3<mask_name>): Likewise.
31007 * config/i386/subst.md (mask_mode512bit_condition,
31008 sd_mask_mode512bit_condition): Likewise.
31009
31010 2014-01-02 Xinliang David Li <davidxl@google.com>
31011
31012 PR tree-optimization/59303
31013 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
31014 (dump_predicates): Better output format.
31015 (pred_equal_p): New function.
31016 (is_neq_relop_p): Ditto.
31017 (is_neq_zero_form_p): Ditto.
31018 (pred_expr_equal_p): Ditto.
31019 (pred_neg_p): Ditto.
31020 (simplify_pred): Ditto.
31021 (simplify_preds_2): Ditto.
31022 (simplify_preds_3): Ditto.
31023 (simplify_preds_4): Ditto.
31024 (simplify_preds): Ditto.
31025 (push_pred): Ditto.
31026 (push_to_worklist): Ditto.
31027 (get_pred_info_from_cmp): Ditto.
31028 (is_degenerated_phi): Ditto.
31029 (normalize_one_pred_1): Ditto.
31030 (normalize_one_pred): Ditto.
31031 (normalize_one_pred_chain): Ditto.
31032 (normalize_preds): Ditto.
31033 (normalize_cond_1): Remove function.
31034 (normalize_cond): Ditto.
31035 (is_gcond_subset_of): Ditto.
31036 (is_subset_of_any): Ditto.
31037 (is_or_set_subset_of): Ditto.
31038 (is_and_set_subset_of): Ditto.
31039 (is_norm_cond_subset_of): Ditto.
31040 (pred_chain_length_cmp): Ditto.
31041 (convert_control_dep_chain_into_preds): Type change.
31042 (find_predicates): Ditto.
31043 (find_def_preds): Ditto.
31044 (destroy_predicates_vecs): Ditto.
31045 (find_matching_predicates_in_rest_chains): Ditto.
31046 (use_pred_not_overlap_with_undef_path_pred): Ditto.
31047 (is_pred_expr_subset): Ditto.
31048 (is_pred_chain_subset_of): Ditto.
31049 (is_included_in): Ditto.
31050 (is_superset_of): Ditto.
31051
31052 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31053
31054 Update copyright years.
31055
31056 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
31057
31058 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
31059 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
31060 config/arc/arc.md, config/arc/arc.opt,
31061 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
31062 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
31063 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
31064 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
31065 config/linux-protos.h, config/linux.c, config/winnt-c.c,
31066 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
31067 vtable-verify.c, vtable-verify.h: Use the standard form for the
31068 copyright notice.
31069
31070 2014-01-02 Tobias Burnus <burnus@net-b.de>
31071
31072 * gcc.c (process_command): Update copyright notice dates.
31073 * gcov-dump.c: Ditto.
31074 * gcov.c: Ditto.
31075 * doc/cpp.texi: Bump @copying's copyright year.
31076 * doc/cppinternals.texi: Ditto.
31077 * doc/gcc.texi: Ditto.
31078 * doc/gccint.texi: Ditto.
31079 * doc/gcov.texi: Ditto.
31080 * doc/install.texi: Ditto.
31081 * doc/invoke.texi: Ditto.
31082
31083 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
31084
31085 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
31086
31087 2014-01-01 Jakub Jelinek <jakub@redhat.com>
31088
31089 * config/i386/sse.md (*mov<mode>_internal): Guard
31090 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
31091
31092 PR rtl-optimization/59647
31093 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
31094 new_rtx into UNSIGNED_FLOAT rtxes.
31095 \f
31096 Copyright (C) 2014 Free Software Foundation, Inc.
31097
31098 Copying and distribution of this file, with or without modification,
31099 are permitted in any medium without royalty provided the copyright
31100 notice and this notice are preserved.