1 2014-09-12 Trevor Saunders <tsaunders@mozilla.com>
3 * hash-table.h (gt_pch_nx): don't call gt_pch_note_object within an
6 2014-09-12 Joseph Myers <joseph@codesourcery.com>
8 * target.def (libgcc_floating_mode_supported_p): New hook.
9 * targhooks.c (default_libgcc_floating_mode_supported_p): New
11 * targhooks.h (default_libgcc_floating_mode_supported_p): Declare.
12 * doc/tm.texi.in (LIBGCC2_HAS_DF_MODE, LIBGCC2_HAS_XF_MODE)
13 (LIBGCC2_HAS_TF_MODE): Remove.
14 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): New @hook.
15 * doc/tm.texi: Regenerate.
16 * genmodes.c (emit_insn_modes_h): Define HAVE_%smode for each
18 * system.h (LIBGCC2_HAS_SF_MODE, LIBGCC2_HAS_DF_MODE)
19 (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE): Poison.
20 * config/i386/cygming.h (LIBGCC2_HAS_TF_MODE): Remove.
21 * config/i386/darwin.h (LIBGCC2_HAS_TF_MODE): Remove.
22 * config/i386/djgpp.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
23 * config/i386/dragonfly.h (LIBGCC2_HAS_TF_MODE): Remove.
24 * config/i386/freebsd.h (LIBGCC2_HAS_TF_MODE): Remove.
25 * config/i386/gnu-user-common.h (LIBGCC2_HAS_TF_MODE): Remove.
26 * config/i386/i386-interix.h (IX86_NO_LIBGCC_TFMODE): Define.
27 * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p): New
29 (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Define.
30 * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
31 * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
32 * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
33 * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
34 * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
35 * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
36 * config/i386/openbsdelf.h (LIBGCC2_HAS_TF_MODE): Remove.
37 * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Define.
38 * config/i386/sol2.h (LIBGCC2_HAS_TF_MODE): Remove.
39 * config/i386/vx-common.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Define.
40 * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Define.
41 * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Define.
42 * config/ia64/hpux.h (LIBGCC2_HAS_XF_MODE, LIBGCC2_HAS_TF_MODE):
44 * config/ia64/ia64.c (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P):
46 (ia64_libgcc_floating_mode_supported_p): New function.
47 * config/ia64/linux.h (LIBGCC2_HAS_TF_MODE): Remove.
48 * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
49 (IA64_NO_LIBGCC_TFMODE): Define.
50 * config/msp430/msp430.h (LIBGCC2_HAS_DF_MODE): Remove.
51 * config/pdp11/pdp11.c (TARGET_SCALAR_MODE_SUPPORTED_P): New
53 (pdp11_scalar_mode_supported_p): New function.
54 * config/rl78/rl78.h (LIBGCC2_HAS_DF_MODE): Remove.
55 * config/rx/rx.h (LIBGCC2_HAS_DF_MODE): Remove.
56 2014-09-12 Richard Biener <rguenther@suse.de>
59 * gimple-fold.c (get_maxval_strlen): Gimplify string length.
61 2014-09-12 Marc Glisse <marc.glisse@inria.fr>
63 * tree.c (integer_each_onep): New function.
64 * tree.h (integer_each_onep): Declare it.
65 * fold-const.c (fold_binary_loc): Use it for ~A + 1 to -A and
66 -A - 1 to ~A. Disable (X & 1) ^ 1, (X ^ 1) & 1 and ~X & 1 to
67 (X & 1) == 0 for vector and complex.
69 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
71 * gcc/config/aarch64/aarch64.c (cortexa57_regmove_cost): New cost table
73 (cortexa53_regmove_cost): New cost table for A53. Increase GP2FP/FP2GP
74 cost to spilling from integer to FP registers.
76 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
78 * config/aarch64/aarch64.c (aarch64_register_move_cost): Fix Q register
80 (generic_regmove_cost): Undo raised FP2FP move cost as Q register moves
81 are now handled correctly.
83 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
85 * config/aarch64/aarch64.c (aarch64_register_move_cost): Add cost
86 handling of CALLER_SAVE_REGS and POINTER_REGS.
88 2014-09-12 Wilco Dijkstra <wilco.dijkstra@arm.com>
90 * gcc/ree.c (combine_reaching_defs): Ensure inserted copy don't change
91 the number of hard registers.
93 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
94 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
95 Anna Tikhonova <anna.tikhonova@intel.com>
96 Ilya Tocar <ilya.tocar@intel.com>
97 Andrey Turetskiy <andrey.turetskiy@intel.com>
98 Ilya Verbin <ilya.verbin@intel.com>
99 Kirill Yukhin <kirill.yukhin@intel.com>
100 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
103 (define_mode_iterator VI48_AVX512VL): New.
104 (define_expand "<avx512>_vternlog<mode>_maskz"): Rename from
105 "avx512f_vternlog<mode>_maskz" and update mode iterator.
106 (define_insn "<avx512>_vternlog<mode><sd_maskz_name>"): Rename
107 from "avx512f_vternlog<mode><sd_maskz_name>" and update mode iterator.
108 (define_insn "<avx512>_vternlog<mode>_mask"): Rename from
109 "avx512f_vternlog<mode>_mask" and update mode iterator.
110 (define_insn "<mask_codefor><avx512>_align<mode><mask_name>"): Rename
111 from "<mask_codefor>avx512f_align<mode><mask_name>" and update mode
113 (define_insn "<avx512>_<rotate>v<mode><mask_name>"): Rename from
114 "avx512f_<rotate>v<mode><mask_name>" and update mode iterator.
115 (define_insn "<avx512>_<rotate><mode><mask_name>"): Rename from
116 "avx512f_<rotate><mode><mask_name>" and update mode iterator.
117 (define_insn "clz<mode>2<mask_name>"): Use VI48_AVX512VL mode iterator.
118 (define_insn "<mask_codefor>conflict<mode><mask_name>"): Ditto.
120 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
121 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
122 Anna Tikhonova <anna.tikhonova@intel.com>
123 Ilya Tocar <ilya.tocar@intel.com>
124 Andrey Turetskiy <andrey.turetskiy@intel.com>
125 Ilya Verbin <ilya.verbin@intel.com>
126 Kirill Yukhin <kirill.yukhin@intel.com>
127 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
129 * config/i386/sse.md (VI128_256): Delete.
130 (define_mode_iterator VI124_256): New.
131 (define_mode_iterator VI124_256_AVX512F_AVX512BW): Ditto.
132 (define_expand "<code><mode>3<mask_name><round_name>"): Delete.
133 (define_expand "<code><VI124_256_AVX512F_AVX512BW:mode>3"): New.
134 (define_insn "*avx2_<code><VI124_256:mode>3"): Rename from
135 "*avx2_<code><mode>3<mask_name><round_name>" and update mode iterator.
136 (define_expand "<code><VI48_AVX512VL:mode>3_mask"): New.
137 (define_insn "*avx512bw_<code><VI48_AVX512VL:mode>3<mask_name>"): Ditto.
138 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Update mode
140 (define_expand "<code><VI8_AVX2:mode>3"): Update pettern generation
141 in presence of AVX-512.
143 2014-09-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
144 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
145 Anna Tikhonova <anna.tikhonova@intel.com>
146 Ilya Tocar <ilya.tocar@intel.com>
147 Andrey Turetskiy <andrey.turetskiy@intel.com>
148 Ilya Verbin <ilya.verbin@intel.com>
149 Kirill Yukhin <kirill.yukhin@intel.com>
150 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
153 (define_expand "<avx512>_gathersi<mode>"): Rename from
154 "avx512f_gathersi<mode>".
155 (define_insn "*avx512f_gathersi<mode>"): Use VI48F.
156 (define_insn "*avx512f_gathersi<mode>_2"): Ditto.
157 (define_expand "<avx512>_gatherdi<mode>"): Rename from
158 "avx512f_gatherdi<mode>".
159 (define_insn "*avx512f_gatherdi<mode>"): Use VI48F.
160 (define_insn "*avx512f_gatherdi<mode>_2"): Use VI48F, add 128/256-bit
162 (define_expand "<avx512>_scattersi<mode>"): Rename from
163 "avx512f_scattersi<mode>".
164 (define_insn "*avx512f_scattersi<mode>"): Use VI48F.
165 (define_expand "<avx512>_scatterdi<mode>"): Rename from
166 "avx512f_scatterdi<mode>".
167 (define_insn "*avx512f_scatterdi<mode>"): Use VI48F.
169 2014-09-12 Richard Sandiford <richard.sandiford@arm.com>
171 * ira.h (ira_finish_once): Delete.
172 * ira-int.h (target_ira_int::~target_ira_int): Declare.
173 (target_ira_int::free_ira_costs): Likewise.
174 (target_ira_int::free_register_move_costs): Likewise.
175 (ira_finish_costs_once): Delete.
176 * ira.c (free_register_move_costs): Replace with...
177 (target_ira_int::free_register_move_costs): ...this new function.
178 (target_ira_int::~target_ira_int): Define.
179 (ira_init): Call free_register_move_costs as a member function rather
180 than a global function.
181 (ira_finish_once): Delete.
182 * ira-costs.c (free_ira_costs): Replace with...
183 (target_ira_int::free_ira_costs): ...this new function.
184 (ira_init_costs): Call free_ira_costs as a member function rather
185 than a global function.
186 (ira_finish_costs_once): Delete.
187 * target-globals.c (target_globals::~target_globals): Call the
188 target_ira_int destructor.
189 * toplev.c: Include lra.h.
190 (finalize): Call lra_finish_once rather than ira_finish_once.
192 2014-09-11 Jan Hubicka <hubicka@ucw.cz>
194 * common.opt (flto-odr-type-merging): New flag.
195 * ipa-deivrt.c (hash_type_name): Use ODR names for hasing if availale.
196 (types_same_for_odr): Likewise.
197 (odr_subtypes_equivalent_p): Likewise.
198 (add_type_duplicate): Do not walk type variants.
199 (register_odr_type): New function.
200 * ipa-utils.h (register_odr_type): Declare.
201 (odr_type_p): New function.
202 * langhooks.c (lhd_set_decl_assembler_name): Do not compute
204 * doc/invoke.texi (-flto-odr-type-merging): Document.
205 * tree.c (need_assembler_name_p): Compute ODR names when asked
207 * tree.h (DECL_ASSEMBLER_NAME): Update comment.
209 2014-09-11 H.J. Lu <hongjiu.lu@intel.com>
212 * config/i386/i386.c (ix86_option_override_internal): Also turn
213 off OPTION_MASK_ABI_X32 for -m16.
215 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
217 * config/rs6000/rs6000.md (rs6000_mftb_<mode>): Use mode iterator
220 2014-09-11 Marc Glisse <marc.glisse@inria.fr>
223 * ginclude/float.h (FLT_TRUE_MIN, DBL_TRUE_MIN, LDBL_TRUE_MIN):
224 Directly forward to __*_DENORM_MIN__.
226 2014-09-11 David Malcolm <dmalcolm@redhat.com>
228 * rtl.h (LABEL_REF_LABEL): New macro.
230 * alias.c (rtx_equal_for_memref_p): Use LABEL_REF_LABEL in place
231 of XEXP (, 0), where we know that we have a LABEL_REF.
232 * cfgbuild.c (make_edges): Likewise.
233 (purge_dead_tablejump_edges): Likewise.
234 * cfgexpand.c (convert_debug_memory_address): Likewise.
235 * cfgrtl.c (patch_jump_insn): Likewise.
236 * combine.c (distribute_notes): Likewise.
237 * cse.c (hash_rtx_cb): Likewise.
238 (exp_equiv_p): Likewise.
239 (fold_rtx): Likewise.
240 (check_for_label_ref): Likewise.
241 * cselib.c (rtx_equal_for_cselib_1): Likewise.
242 (cselib_hash_rtx): Likewise.
243 * emit-rtl.c (mark_label_nuses): Likewise.
244 * explow.c (convert_memory_address_addr_space): Likewise.
245 * final.c (output_asm_label): Likewise.
246 (output_addr_const): Likewise.
247 * gcse.c (add_label_notes): Likewise.
248 * genconfig.c (walk_insn_part): Likewise.
249 * genrecog.c (validate_pattern): Likewise.
250 * ifcvt.c (cond_exec_get_condition): Likewise.
251 (noce_emit_store_flag): Likewise.
252 (noce_get_alt_condition): Likewise.
253 (noce_get_condition): Likewise.
254 * jump.c (maybe_propagate_label_ref): Likewise.
255 (mark_jump_label_1): Likewise.
256 (redirect_exp_1): Likewise.
257 (rtx_renumbered_equal_p): Likewise.
258 * lra-constraints.c (operands_match_p): Likewise.
259 * reload.c (operands_match_p): Likewise.
260 (find_reloads): Likewise.
261 * reload1.c (set_label_offsets): Likewise.
262 * reorg.c (get_branch_condition): Likewise.
263 * rtl.c (rtx_equal_p_cb): Likewise.
264 (rtx_equal_p): Likewise.
265 * rtlanal.c (reg_mentioned_p): Likewise.
266 (rtx_referenced_p): Likewise.
267 (get_condition): Likewise.
268 * sched-vis.c (print_value): Likewise.
269 * varasm.c (const_hash_1): Likewise.
270 (compare_constant): Likewise.
271 (const_rtx_hash_1): Likewise.
272 (output_constant_pool_1): Likewise.
274 2014-09-11 Segher Boessenkool <segher@kernel.crashing.org>
276 * config/rs6000/htm.md (tabort, tabortdc, tabortdci, tabortwc,
277 tabortwci, tbegin, tcheck, tend, trechkpt, treclaim, tsr): Use xor
279 * config/rs6000/vector.md (cr6_test_for_zero_reverse,
280 cr6_test_for_lt_reverse): Ditto.
282 2014-09-11 Paolo Carlini <paolo.carlini@oracle.com>
285 * doc/invoke.texi ([-Wmissing-field-initializers]): Update.
287 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
289 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_su_qualifiers,
290 TYPES_REINTERP_SU, aarch64_types_unop_sp_qualifiers, TYPE_REINTERP_SP,
291 aarch64_types_unop_us_qualifiers, TYPES_REINTERP_US,
292 aarch64_types_unop_ps_qualifiers, TYPES_REINTERP_PS, BUILTIN_VD):
295 (aarch64_fold_builtin): Remove all reinterpret cases.
297 * config/aarch64/aarch64-protos.h (aarch64_simd_reinterpret): Delete.
299 * config/aarch64/aarch64-simd-builtins.def (reinterpret*) : Delete.
301 * config/aarch64/aarch64-simd.md (aarch64_reinterpretv8qi<mode>,
302 aarch64_reinterpretv4hi<mode>, aarch64_reinterpretv2si<mode>,
303 aarch64_reinterpretv2sf<mode>, aarch64_reinterpretdi<mode>,
304 aarch64_reinterpretv1df<mode>, aarch64_reinterpretv16qi<mode>,
305 aarch64_reinterpretv8hi<mode>, aarch64_reinterpretv4si<mode>,
306 aarch64_reinterpretv4sf<mode>, aarch64_reinterpretv2di<mode>,
307 aarch64_reinterpretv2df<mode>): Delete.
309 * config/aarch64/aarch64.c (aarch64_simd_reinterpret): Delete.
311 * config/aarch64/arm_neon.h (vreinterpret_p8_f64,
312 vreinterpret_p16_f64, vreinterpret_f32_f64, vreinterpret_f64_f32,
313 vreinterpret_f64_p8, vreinterpret_f64_p16, vreinterpret_f64_s8,
314 vreinterpret_f64_s16, vreinterpret_f64_s32, vreinterpret_f64_u8,
315 vreinterpret_f64_u16, vreinterpret_f64_u32, vreinterpret_s64_f64,
316 vreinterpret_u64_f64, vreinterpret_s8_f64, vreinterpret_s16_f64,
317 vreinterpret_s32_f64, vreinterpret_u8_f64, vreinterpret_u16_f64,
318 vreinterpret_u32_f64): Use cast.
320 * config/aarch64/iterators.md (VD_RE): Delete.
322 2014-09-11 Alan Lawrence <alan.lawrence@arm.com>
324 * config/aarch64/arm_neon.h (aarch64_vset_lane_any): New (*2).
325 (vset_lane_f32, vset_lane_f64, vset_lane_p8, vset_lane_p16,
326 vset_lane_s8, vset_lane_s16, vset_lane_s32, vset_lane_s64,
327 vset_lane_u8, vset_lane_u16, vset_lane_u32, vset_lane_u64,
328 vsetq_lane_f32, vsetq_lane_f64, vsetq_lane_p8, vsetq_lane_p16,
329 vsetq_lane_s8, vsetq_lane_s16, vsetq_lane_s32, vsetq_lane_s64,
330 vsetq_lane_u8, vsetq_lane_u16, vsetq_lane_u32, vsetq_lane_u64):
331 Replace inline assembler with __aarch64_vset_lane_any.
333 2014-09-11 James Greenhalgh <james.greenhalgh@arm.com>
335 * config/aarch64/arm_neon.h (vmull_high_lane_s16): Fix argument
337 (vmull_high_lane_s32): Likewise.
338 (vmull_high_lane_u16): Likewise.
339 (vmull_high_lane_u32): Likewise.
341 2014-09-11 Jason Merrill <jason@redhat.com>
344 * ipa-devirt.c (ipa_devirt): Don't check DECL_COMDAT.
346 2014-09-11 Georg-Johann Lay <avr@gjlay.de>
349 * config/avr/avr.md (*tablejump.3byte-pc): New insn.
350 (*tablejump): Restrict to !AVR_HAVE_EIJMP_EICALL. Add void clobber.
351 (casesi): Expand to *tablejump.3byte-pc if AVR_HAVE_EIJMP_EICALL.
353 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
354 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
355 Anna Tikhonova <anna.tikhonova@intel.com>
356 Ilya Tocar <ilya.tocar@intel.com>
357 Andrey Turetskiy <andrey.turetskiy@intel.com>
358 Ilya Verbin <ilya.verbin@intel.com>
359 Kirill Yukhin <kirill.yukhin@intel.com>
360 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
363 (define_expand "<avx512>_vpermi2var<VI48F:mode>3_maskz"): Rename from
364 "avx512f_vpermi2var<mode>3_maskz" and update mode iterator.
365 (define_expand "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_maskz"):
367 (define_insn "<avx512>_vpermi2var<VI48F:mode>3<sd_maskz_name>"): Rename
368 from "avx512f_vpermi2var<mode>3<sd_maskz_name>" and update mode
370 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
372 (define_insn "<avx512>_vpermi2var<VI48F:mode>3_mask"): Rename from
373 "avx512f_vpermi2var<mode>3_mask" and update mode iterator.
374 (define_insn "<avx512>_vpermi2var<VI2_AVX512VL:mode>3_mask"): New.
375 (define_expand "<avx512>_vpermt2var<VI48F:mode>3_maskz"): Rename from
376 "avx512f_vpermt2var<mode>3_maskz" and update mode iterator.
377 (define_expand "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_maskz"): New.
378 (define_insn "<avx512>_vpermt2var<VI48F:mode>3<sd_maskz_name>"): Rename
379 from "avx512f_vpermt2var<mode>3<sd_maskz_name>" and update mode
381 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3<sd_maskz_name>"):
383 (define_insn "<avx512>_vpermt2var<VI48F:mode>3_mask"): Rename from
384 "avx512f_vpermt2var<mode>3_mask" and update mode iterator.
385 (define_insn "<avx512>_vpermt2var<VI2_AVX512VL:mode>3_mask"): New.
387 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
389 * varpool.c (varpool_node::ctor_useable_for_folding_p): Do not try
390 to access removed nodes.
392 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
394 PR tree-optimization/63186
395 * ipa-split.c (test_nonssa_use): Skip nonforced labels.
396 (mark_nonssa_use): Likewise.
397 (verify_non_ssa_vars): Verify all header blocks for label
400 2014-09-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
401 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
402 Anna Tikhonova <anna.tikhonova@intel.com>
403 Ilya Tocar <ilya.tocar@intel.com>
404 Andrey Turetskiy <andrey.turetskiy@intel.com>
405 Ilya Verbin <ilya.verbin@intel.com>
406 Kirill Yukhin <kirill.yukhin@intel.com>
407 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
410 (define_mode_attr avx2_avx512): Rename from avx2_avx512bw.
411 (define_mode_iterator VI48F_256_512): Extend to AVX-512VL.
412 (define_insn "<avx2_avx512>_permvar<mode><mask_name>"): Rename from
413 "<avx2_avx512f>_permvar<mode><mask_name>".
414 (define_insn "<avx512>_permvar<mode><mask_name>"): New.
415 (define_insn "<avx2_avx512>_ashrv<VI48_AVX512F_AVX512VL:mode><mask_name>"):
416 Rename from "<avx2_avx512f>_ashrv<mode><mask_name>".
417 (define_insn "<avx2_avx512>_ashrv<VI2_AVX512VL:mode><mask_name>"):
419 (define_insn "<avx2_avx512>_<shift_insn>v<VI48_AVX512F:mode><mask_name>"):
420 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
421 (define_insn "<avx2_avx512>_<shift_insn>v<VI2_AVX512VL:mode><mask_name>"):
422 Rename from "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>".
424 2014-09-10 Michael Meissner <meissner@linux.vnet.ibm.com>
426 * config/rs6000/vsx.md (vsx_fmav4sf4): Use correct constraints for
427 V2DF, V4SF, DF, and DI modes.
428 (vsx_fmav2df2): Likewise.
429 (vsx_float_fix_<mode>2): Likewise.
430 (vsx_reduc_<VEC_reduc_name>_v2df_scalar): Likewise.
432 2014-09-10 Xinliang David Li <davidxl@google.com>
435 * config/arm/arm.md (movcond_addsi): Handle case where source
436 and target operands are the same.
438 2014-09-10 David Malcolm <dmalcolm@redhat.com>
440 * final.c (this_is_asm_operands): Strengthen this variable from
441 rtx to const rtx_insn *.
442 * output.h (this_is_asm_operands): Likewise.
443 * rtl-error.c (location_for_asm): Strengthen param "insn" from
444 const_rtx to const rtx_insn *.
445 (diagnostic_for_asm): Likewise.
446 * rtl-error.h (error_for_asm): Likewise.
447 (warning_for_asm): Likewise.
449 2014-09-10 David Malcolm <dmalcolm@redhat.com>
451 * genextract.c (print_header): When writing out insn_extract to
452 insn-extract.c, strengthen the param "insn" from rtx to rtx_insn *.
453 * recog.h (insn_extract): Strengthen the param from rtx to
456 2014-09-10 Mike Stump <mikestump@comcast.net>
458 * doc/install.texi (Prerequisites): Note Tcl 8.6 bug fixed in
461 2014-09-10 Martin Jambor <mjambor@suse.cz>
463 * cgraphunit.c (expand_thunk): If not expanding, set analyzed flag.
464 (analyze): Do not set analyze flag if expand_thunk returns false;.
465 (create_wrapper): Likewise.
466 * cgraphclones.c (duplicate_thunk_for_node): Likewise.
468 2014-09-10 Martin Jambor <mjambor@suse.cz>
471 * cgraphclones.c (duplicate_thunk_for_node): Copy arguments of the
472 new decl properly. Analyze the new thunk if it is expanded.
474 2014-09-10 Andreas Schwab <schwab@suse.de>
476 * coretypes.h (struct _dont_use_rtx_insn_here_, rtx_insn)
477 [USED_FOR_TARGET]: Define.
479 2014-09-10 Matthew Fortune <matthew.fortune@imgtec.com>
481 * config/mips/mips.c (mips_secondary_reload_class): Handle
484 2014-09-10 Robert Suchanek <robert.suchanek@imgtec.com>
486 * lra-lives.c (process_bb_lives): Replace assignment with bitwise OR
489 2014-09-10 Jakub Jelinek <jakub@redhat.com>
491 * flag-types.h (enum sanitize_code): Add SANITIZE_NONNULL_ATTRIBUTE
492 and SANITIZE_RETURNS_NONNULL_ATTRIBUTE, or them into SANITIZE_UNDEFINED.
493 * opts.c (common_handle_option): Handle SANITIZE_NONNULL_ATTRIBUTE and
494 SANITIZE_RETURNS_NONNULL_ATTRIBUTE and disable
495 flag_delete_null_pointer_checks for them.
496 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_NONNULL_ARG,
497 BUILT_IN_UBSAN_HANDLE_NONNULL_ARG_ABORT,
498 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN,
499 BUILT_IN_UBSAN_HANDLE_NONNULL_RETURN_ABORT): New.
500 * ubsan.c (instrument_bool_enum_load): Set *gsi back to
502 (instrument_nonnull_arg, instrument_nonnull_return): New functions.
503 (pass_ubsan::gate): Return true even for SANITIZE_NONNULL_ATTRIBUTE
504 or SANITIZE_RETURNS_NONNULL_ATTRIBUTE.
505 (pass_ubsan::execute): Call instrument_nonnull_{arg,return}.
506 * doc/invoke.texi (-fsanitize=nonnull-attribute,
507 -fsanitize=returns-nonnull-attribute): Document.
509 * ubsan.h (struct ubsan_mismatch_data): Removed.
510 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
511 * ubsan.c (ubsan_source_location): For unknown locations,
512 pass { NULL, 0, 0 } instead of { "<unknown>", x, y }.
513 (ubsan_create_data): Remove MISMATCH argument, add LOCCNT argument.
514 Allow more than one location and arbitrary extra arguments passed
515 in ... instead of through MISMATCH pointer.
516 (ubsan_instrument_unreachable, ubsan_expand_bounds_ifn,
517 ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
518 instrument_bool_enum_load, ubsan_instrument_float_cast): Adjust
521 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
522 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
523 Anna Tikhonova <anna.tikhonova@intel.com>
524 Ilya Tocar <ilya.tocar@intel.com>
525 Andrey Turetskiy <andrey.turetskiy@intel.com>
526 Ilya Verbin <ilya.verbin@intel.com>
527 Kirill Yukhin <kirill.yukhin@intel.com>
528 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
531 (define_mode_iterator VI48F): New.
532 (define_insn "<avx512>_compress<mode>_mask"): Rename from
533 "avx512f_compress<mode>_mask" and update mode iterator.
534 (define_insn "<avx512>_compressstore<mode>_mask"): Rename from
535 "avx512f_compressstore<mode>_mask" and update mode iterator.
536 (define_expand "<avx512>_expand<mode>_maskz"): Rename from
537 "avx512f_expand<mode>_maskz" and update mode iterator.
538 (define_insn "<avx512>_expand<mode>_mask"): Rename from
539 "avx512f_expand<mode>_mask" and update mode iterator.
541 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
542 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
543 Anna Tikhonova <anna.tikhonova@intel.com>
544 Ilya Tocar <ilya.tocar@intel.com>
545 Andrey Turetskiy <andrey.turetskiy@intel.com>
546 Ilya Verbin <ilya.verbin@intel.com>
547 Kirill Yukhin <kirill.yukhin@intel.com>
548 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
551 (ix86_expand_args_builtin): Handle avx512dq_rangepv8df_mask_round,
552 avx512dq_rangepv16sf_mask_round, avx512dq_rangepv4df_mask,
553 avx512dq_rangepv8sf_mask, avx512dq_rangepv2df_mask,
554 avx512dq_rangepv4sf_mask.
556 (define_c_enum "unspec"): Add UNSPEC_REDUCE, UNSPEC_FPCLASS,
558 (define_insn "<mask_codefor>reducep<mode><mask_name>"): New.
559 (define_insn "reduces<mode>"): Ditto.
560 (define_insn "avx512dq_rangep<mode><mask_name><round_saeonly_name>"):
562 (define_insn "avx512dq_ranges<mode><round_saeonly_name>"): Ditto.
563 (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Ditto.
564 (define_insn "avx512dq_vmfpclass<mode>"): Ditto..
566 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
567 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
568 Anna Tikhonova <anna.tikhonova@intel.com>
569 Ilya Tocar <ilya.tocar@intel.com>
570 Andrey Turetskiy <andrey.turetskiy@intel.com>
571 Ilya Verbin <ilya.verbin@intel.com>
572 Kirill Yukhin <kirill.yukhin@intel.com>
573 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
576 (avx512f_vgetmantv2df_round): Rename from "avx512f_getmantv2df_round".
577 (avx512f_vgetmantv4sf_round): Rename from "avx512f_vgetmantv4sf_round".
578 (ix86_expand_args_builtin): Handle avx512vl_getmantv8sf_mask,
579 avx512vl_getmantv4df_mask, avx512vl_getmantv4sf_mask,
580 avx512vl_getmantv2df_mask.
581 (ix86_expand_round_builtin): Handle avx512f_vgetmantv2df_round,
582 avx512f_vgetmantv4sf_round.
584 (define_insn "<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask"):
585 Rename from "avx512f_storeu<ssemodesuffix>512_mask" and update
587 (define_insn "<mask_codefor>rcp14<mode><mask_name>"): Use VF_AVX512VL.
588 (define_insn "<mask_codefor>rsqrt14<mode><mask_name>"): Ditto.
589 (define_insn "<avx512>_scalef<mode><mask_name><round_name>"): Rename
590 from "avx512f_scalef<mode><mask_name><round_name>" and update mode
592 (define_insn "<avx512>_getexp<mode><mask_name><round_saeonly_name>"):
593 Rename from "avx512f_getexp<mode><mask_name><round_saeonly_name>" and
594 update mode iterator.
596 "<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>"): Rename from
597 "avx512f_fixupimm<mode>_maskz<round_saeonly_expand_name>" and update
600 "<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>"): Rename
601 from "avx512f_fixupimm<mode><sd_maskz_name><round_saeonly_name>" and
602 update mode iterator.
603 (define_insn "<avx512>_fixupimm<mode>_mask<round_saeonly_name>"): Rename
604 from "avx512f_fixupimm<mode>_mask<round_saeonly_name>" and update mode
607 "<avx512>_rndscale<mode><mask_name><round_saeonly_name>"): rename from
608 "avx512f_rndscale<mode><mask_name><round_saeonly_name>" and update
610 (define_insn "<avx512>_getmant<mode><mask_name><round_saeonly_name>"):
611 Rename from "avx512f_getmant<mode><mask_name><round_saeonly_name>" and
612 update mode iterator.
613 (define_insn "avx512f_vgetmant<mode><round_saeonly_name>"): Rename from
614 "avx512f_getmant<mode><round_saeonly_name>".
616 2014-09-10 Jan Hubicka <hubicka@ucw.cz>
619 * ipa-prop.c (compute_known_type_jump_func): Fix conditional.
621 2014-09-10 Alexander Ivchenko <alexander.ivchenko@intel.com>
622 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
623 Anna Tikhonova <anna.tikhonova@intel.com>
624 Ilya Tocar <ilya.tocar@intel.com>
625 Andrey Turetskiy <andrey.turetskiy@intel.com>
626 Ilya Verbin <ilya.verbin@intel.com>
627 Kirill Yukhin <kirill.yukhin@intel.com>
628 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
630 * config/i386/sse.md (define_mode_iterator VF_AVX512VL): New.
631 (define_mode_iterator FMAMODEM): Allow 128/256bit EVEX version.
632 (define_mode_iterator FMAMODE_AVX512): New.
633 (define_mode_iterator FMAMODE): Remove conditions.
634 (define_expand "fma4i_fmadd_<mode>"): Use FMAMODE_AVX512 mode iterator.
635 (define_expand "<avx512>_fmadd_<mode>_maskz<round_expand_name>"): Rename
636 from "<avx512>_fmadd_<mode>_maskz<round_expand_name>" and use VF_AVX512VL
638 (define_mode_iterator FMAMODE_NOVF512): Remove.
639 (define_insn "*fma_fmadd_<mode>"): Rename from
640 "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>" and use
641 FMAMODE mode iterator.
642 (define_mode_iterator VF_SF_AVX512VL): New.
643 (define_insn "<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>"):
644 Use VF_SF_AVX512VL mode iterator.
645 (define_insn "<avx512>_fmadd_<mode>_mask<round_name>"): Rename from
646 "avx512f_fmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
648 (define_insn "<avx512>_fmadd_<mode>_mask3<round_name>"): Rename from
649 "avx512f_fmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
651 (define_insn "*fma_fmsub_<mode>"): Rename from
652 "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>" and use
653 FMAMODE mode iterator.
654 (define_insn "<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>"):
655 Use VF_SF_AVX512VL mode iterator.
656 (define_insn "<avx512>_fmsub_<mode>_mask<round_name>"): Rename from
657 "avx512f_fmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
659 (define_insn "<avx512>_fmsub_<mode>_mask3<round_name>"): Rename from
660 "avx512f_fmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
662 (define_insn "*fma_fnmadd_<mode>"): Rename from
663 "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>" and
664 use FMAMODE mode iterator.
665 (define_insn "<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>"):
666 Use VF_SF_AVX512VL mode iterator.
667 (define_insn "<avx512>_fnmadd_<mode>_mask<round_name>"): Rename from
668 "avx512f_fnmadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
670 (define_insn "<avx512>_fnmadd_<mode>_mask3<round_name>"): Rename from
671 "avx512f_fnmadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
673 (define_insn "*fma_fnmsub_<mode>"): Rename from
674 "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>" and use
675 FMAMODE mode iterator.
676 (define_insn "<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>"):
677 Use VF_SF_AVX512VL mode iterator.
678 (define_insn "<avx512>_fnmsub_<mode>_mask<round_name>"): Rename from
679 "avx512f_fnmsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
681 (define_insn "<avx512>_fnmsub_<mode>_mask3<round_name>"): Rename from
682 "avx512f_fnmsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
684 (define_expand "<avx512>_fmaddsub_<mode>_maskz<round_expand_name>"):
685 Rename from "avx512f_fmaddsub_<mode>_maskz<round_expand_name>" and
686 use VF_AVX512VL mode iterator.
687 (define_insn "*fma_fmaddsub_<mode>"): Rename from
688 "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>" and
690 (define_insn "<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>"):
691 Use VF_SF_AVX512VL mode iterator.
692 (define_insn "<avx512>_fmaddsub_<mode>_mask<round_name>"): Rename from
693 "avx512f_fmaddsub_<mode>_mask<round_name>" and use VF_AVX512VL mode
695 (define_insn "<avx512>_fmaddsub_<mode>_mask3<round_name>"): Rename from
696 "avx512f_fmaddsub_<mode>_mask3<round_name>" and use VF_AVX512VL mode
698 (define_insn "*fma_fmsubadd_<mode>"): Rename from
699 "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>" and
700 remove usage of subst.
701 (define_insn "<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>"):
702 Use VF_SF_AVX512VL mode iterator.
703 (define_insn "<avx512>_fmsubadd_<mode>_mask<round_name>"): Rename from
704 "avx512f_fmsubadd_<mode>_mask<round_name>" and use VF_AVX512VL mode
706 (define_insn "<avx512>_fmsubadd_<mode>_mask3<round_name>"): Rename from
707 "avx512f_fmsubadd_<mode>_mask3<round_name>" and use VF_AVX512VL mode
710 2014-09-10 Kugan Vivekanandarajah <kuganv@linaro.org>
713 * calls.c (precompute_arguments): Check
714 promoted_for_signed_and_unsigned_p and set the promoted mode.
715 (promoted_for_signed_and_unsigned_p): New function.
716 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
717 and set the promoted mode.
718 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
719 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
720 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
722 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
724 * opth-gen.awk: Generate mapping from cpp message reasons to the
725 options that enable them.
726 * doc/options.texi (CppReason): Document.
728 2014-09-09 Manuel López-Ibáñez <manu@gcc.gnu.org>
730 * doc/invoke.texi (Wnormalized=): Update.
732 2014-09-09 Segher Boessenkool <segher@kernel.crashing.org>
735 * config/rs6000/rs6000.md (*bool<mode>3): Allow only register
736 operands. Split off the constant operand alternative to ...
737 (*bool<mode>3_imm): New.
739 2014-09-09 David Malcolm <dmalcolm@redhat.com>
741 * rtl.h (single_set_2): Strengthen first param from const_rtx to
742 const rtx_insn *, and move prototype to above...
743 (single_set): ...this. Convert this from a macro to an inline
744 function, enforcing the requirement that the param is a const
746 (find_args_size_adjust): Strengthen param from rtx to rtx_insn *.
748 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
749 Strengthen both params from rtx to rtx_insn *.
750 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
751 Likewise; introduce locals "producer_set", "consumer_set", using
752 them in place of "producer" and "consumer" when dealing with SET
754 * config/avr/avr.c (avr_out_plus): Add checked cast to rtx_insn *
755 when invoking single_set in region guarded by INSN_P.
756 (avr_out_bitop): Likewise.
757 (_reg_unused_after): Introduce local rtx_sequence * "seq" in
758 region guarded by GET_CODE check, using methods to strengthen
759 local "this_insn" from rtx to rtx_insn *, and for clarity.
760 * config/avr/avr.md (define_insn_and_split "xload8<mode>_A"):
761 Strengthen local "insn" from rtx to rtx_insn *.
762 (define_insn_and_split "xload<mode>_A"): Likewise.
763 * config/bfin/bfin.c (trapping_loads_p): Likewise for param
765 (find_load): Likewise for return type.
766 (workaround_speculation): Likewise for both locals named
768 * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise for
770 * config/cris/cris.md (define_peephole2 ; moversideqi): Likewise
772 * config/h8300/h8300-protos.h (notice_update_cc): Likewise for
774 * config/h8300/h8300.c (notice_update_cc): Likewise.
775 * config/i386/i386.c (ix86_flags_dependent): Likewise for params
776 "insn" and "dep_insn".
777 (exact_store_load_dependency): Likewise for both params.
778 (ix86_macro_fusion_pair_p): Eliminate local named "single_set"
779 since this now clashes with inline function. Instead, delay
780 calling single_set until the point where its needed, and then
781 assign the result to "compare_set" and rework the conditional that
783 * config/ia64/ia64.md (define_expand "tablejump"): Strengthen
784 local "last" from rtx to rtx_insn *.
785 * config/mips/mips-protos.h (mips_load_store_insns): Likewise for
787 (mips_store_data_bypass_p): Likewise for both params.
788 * config/mips/mips.c (mips_load_store_insns): Likewise for second
790 (mips_store_data_bypass_p): Likewise for both params.
791 (mips_orphaned_high_part_p): Likewise for param "insn".
792 * config/mn10300/mn10300.c (extract_bundle): Likewise.
793 (mn10300_bundle_liw): Likewise for locals "r", "insn1", "insn2".
794 Introduce local rtx "insn2_pat".
795 * config/rl78/rl78.c (move_elim_pass): Likewise for locals "insn",
797 (rl78_remove_unused_sets): Likewise for locals "insn", "ninsn".
798 Introduce local rtx "set", using it in place of "insn" for the
799 result of single_set. This appears to fix a bug, since the call
800 to find_regno_note on a SET does nothing.
801 * config/rs6000/rs6000.c (set_to_load_agen): Strengthen both
802 params from rtx to rtx_insn *.
803 (set_to_load_agen): Likewise.
804 * config/s390/s390.c (s390_label_align): Likewise for local
805 "prev_insn". Introduce new rtx locals "set" and "src", using
806 them in place of "prev_insn" for the results of single_set
807 and SET_SRC respectively.
808 (s390_swap_cmp): Strengthen local "jump" from rtx to rtx_insn *.
809 Introduce new rtx local "set" using in place of "jump" for the
810 result of single_set. Use SET_SRC (set) rather than plain
812 * config/sh/sh.c (noncall_uses_reg): Strengthen param 2from
814 (noncall_uses_reg): Likewise.
815 (reg_unused_after): Introduce local rtx_sequence * "seq" in region
816 guarded by GET_CODE check, using its methods for clarity, and to
817 enable strengthening local "this_insn" from rtx to rtx_insn *.
818 * config/sh/sh.md (define_expand "mulhisi3"): Strengthen local
819 "insn" from rtx to rtx_insn *.
820 (define_expand "umulhisi3"): Likewise.
821 (define_expand "smulsi3_highpart"): Likewise.
822 (define_expand "umulsi3_highpart"): Likewise.
823 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
824 local "after". Replace GET_CODE check with a dyn_cast,
825 introducing new local rtx_sequence * "seq", using insn method for
828 * dwarf2cfi.c (dwarf2out_frame_debug): Strengthen param "insn"
829 from rtx to rtx_insn *. Introduce local rtx "pat", using it in
830 place of "insn" once we're dealing with patterns rather than the
832 (scan_insn_after): Strengthen param "insn" from rtx to rtx_insn *.
833 (scan_trace): Likewise for local "elt", updating lookups within
834 sequence to use insn method rather than element method.
835 * expr.c (find_args_size_adjust): Strengthen param "insn" from rtx
837 * gcse.c (gcse_emit_move_after): Likewise for local "new_rtx".
838 * ifcvt.c (noce_try_abs): Likewise for local "insn".
839 * ira.c (fix_reg_equiv_init): Add checked cast to rtx_insn * when
841 * lra-constraints.c (insn_rhs_dead_pseudo_p): Strengthen param
842 "insn" from rtx to rtx_insn *.
843 (skip_usage_debug_insns): Likewise for return type, adding a
845 (check_secondary_memory_needed_p): Likewise for local "insn".
846 (inherit_reload_reg): Likewise.
847 * modulo-sched.c (sms_schedule): Likewise for local "count_init".
848 * recog.c (peep2_attempt): Likewise for local "old_insn", adding
850 (store_data_bypass_p): Likewise for both params.
851 (if_test_bypass_p): Likewise.
852 * recog.h (store_data_bypass_p): Likewise for both params.
853 (if_test_bypass_p): Likewise.
854 * reload.c (find_equiv_reg): Likewise for local "where".
855 * reorg.c (delete_jump): Likewise for param "insn".
856 * rtlanal.c (single_set_2): Strenghen param "insn" from const_rtx
858 * store-motion.c (replace_store_insn): Likewise for param "del".
859 (delete_store): Strengthen local "i" from rtx to rtx_insn_list *,
860 and use its methods for clarity, and to strengthen local "del"
861 from rtx to rtx_insn *.
862 (build_store_vectors): Use insn method of "st" when calling
863 replace_store_insn for typesafety and clarity.
865 2014-09-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
867 * config/rs6000/rs6000.c (rtx_is_swappable_p): Add
868 UNSPEC_VSX_CVDPSPN as an unswappable operand, and add commentary
869 on how to make it legal in future.
871 2014-09-09 David Malcolm <dmalcolm@redhat.com>
873 * caller-save.c (rtx saveinsn): Strengthen this variable from rtx
875 (restinsn): Likewise.
876 * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
878 * config/aarch64/aarch64.c (aarch64_simd_attr_length_move):
880 * config/arc/arc-protos.h (arc_adjust_insn_length): Likewise for
882 (arc_hazard): Likewise for both params.
883 * config/arc/arc.c (arc600_corereg_hazard): Likewise, adding
884 checked casts to rtx_sequence * and uses of the insn method for
886 (arc_hazard): Strengthen both params from rtx to rtx_insn *.
887 (arc_adjust_insn_length): Likewise for param "insn".
888 (struct insn_length_parameters_s): Likewise for first param of
889 "get_variants" callback field.
890 (arc_get_insn_variants): Likewise for first param and local
891 "inner". Replace a check of GET_CODE with a dyn_cast to
892 rtx_sequence *, using methods for type-safety and clarity.
893 * config/arc/arc.h (ADJUST_INSN_LENGTH): Use casts to
894 rtx_sequence * and uses of the insn method for type-safety when
895 invoking arc_adjust_insn_length.
896 * config/arm/arm-protos.h (arm_attr_length_move_neon): Likewise
898 (arm_address_offset_is_imm): Likewise.
899 (struct tune_params): Likewise for params 1 and 3 of the
900 "sched_adjust_cost" callback field.
901 * config/arm/arm.c (cortex_a9_sched_adjust_cost): Likewise for
902 params 1 and 3 ("insn" and "dep").
903 (xscale_sched_adjust_cost): Likewise.
904 (fa726te_sched_adjust_cost): Likewise.
905 (cortexa7_older_only): Likewise for param "insn".
906 (cortexa7_younger): Likewise.
907 (arm_attr_length_move_neon): Likewise.
908 (arm_address_offset_is_imm): Likewise.
909 * config/avr/avr-protos.h (avr_notice_update_cc): Likewise.
910 * config/avr/avr.c (avr_notice_update_cc): Likewise.
911 * config/bfin/bfin.c (hwloop_pattern_reg): Likewise.
912 (workaround_speculation): Likewise for local "last_condjump".
913 * config/c6x/c6x.c (shadow_p): Likewise for param "insn".
914 (shadow_or_blockage_p): Likewise.
915 (get_unit_reqs): Likewise.
916 (get_unit_operand_masks): Likewise.
917 (c6x_registers_update): Likewise.
918 (returning_call_p): Likewise.
919 (can_use_callp): Likewise.
920 (convert_to_callp): Likewise.
921 (find_last_same_clock): Likwise for local "t".
922 (reorg_split_calls): Likewise for local "shadow".
923 (hwloop_pattern_reg): Likewise for param "insn".
924 * config/frv/frv-protos.h (frv_final_prescan_insn): Likewise.
925 * config/frv/frv.c (frv_final_prescan_insn): Likewise.
926 (frv_extract_membar): Likewise.
927 (frv_optimize_membar_local): Strengthen param "last_membar" from
928 rtx * to rtx_insn **.
929 (frv_optimize_membar_global): Strengthen param "membar" from rtx
931 (frv_optimize_membar): Strengthen local "last_membar" from rtx *
933 * config/ia64/ia64-protos.h (ia64_st_address_bypass_p): Strengthen
934 both params from rtx to rtx_insn *.
935 (ia64_ld_address_bypass_p): Likewise.
936 * config/ia64/ia64.c (ia64_safe_itanium_class): Likewise for param
938 (ia64_safe_type): Likewise.
939 (group_barrier_needed): Likewise.
940 (safe_group_barrier_needed): Likewise.
941 (ia64_single_set): Likewise.
942 (is_load_p): Likewise.
943 (record_memory_reference): Likewise.
944 (get_mode_no_for_insn): Likewise.
945 (important_for_bundling_p): Likewise.
946 (unknown_for_bundling_p): Likewise.
947 (ia64_st_address_bypass_p): Likewise for both params.
948 (ia64_ld_address_bypass_p): Likewise.
949 (expand_vselect): Introduce new local rtx_insn * "insn", using it
950 in place of rtx "x" after the emit_insn call.
951 * config/i386/i386-protos.h (x86_extended_QIreg_mentioned_p):
952 Strengthen param from rtx to rtx_insn *.
953 (ix86_agi_dependent): Likewise for both params.
954 (ix86_attr_length_immediate_default): Likewise for param 1.
955 (ix86_attr_length_address_default): Likewise for param.
956 (ix86_attr_length_vex_default): Likewise for param 1.
957 * config/i386/i386.c (ix86_attr_length_immediate_default):
958 Likewise for param "insn".
959 (ix86_attr_length_address_default): Likewise.
960 (ix86_attr_length_vex_default): Likewise.
961 (ix86_agi_dependent): Likewise for both params.
962 (x86_extended_QIreg_mentioned_p): Likewise for param "insn".
963 (vselect_insn): Likewise for this variable.
964 * config/m68k/m68k-protos.h (m68k_sched_attr_opx_type): Likewise
966 (m68k_sched_attr_opy_type): Likewise.
967 * config/m68k/m68k.c (sched_get_operand): Likewise.
968 (sched_attr_op_type): Likewise.
969 (m68k_sched_attr_opx_type): Likewise.
970 (m68k_sched_attr_opy_type): Likewise.
971 (sched_get_reg_operand): Likewise.
972 (sched_get_mem_operand): Likewise.
973 (m68k_sched_address_bypass_p): Likewise for both params.
974 (sched_get_indexed_address_scale): Likewise.
975 (m68k_sched_indexed_address_bypass_p): Likewise.
976 * config/m68k/m68k.h (m68k_sched_address_bypass_p): Likewise.
977 (m68k_sched_indexed_address_bypass_p): Likewise.
978 * config/mep/mep.c (mep_jmp_return_reorg): Strengthen locals
979 "label", "ret" from rtx to rtx_insn *, adding a checked cast and
981 * config/mips/mips-protos.h (mips_linked_madd_p): Strengthen both
982 params from rtx to rtx_insn *.
983 (mips_fmadd_bypass): Likewise.
984 * config/mips/mips.c (mips_fmadd_bypass): Likewise.
985 (mips_linked_madd_p): Likewise.
986 (mips_macc_chains_last_hilo): Likewise for this variable.
987 (mips_macc_chains_record): Likewise for param.
988 (vr4130_last_insn): Likewise for this variable.
989 (vr4130_swap_insns_p): Likewise for both params.
990 (mips_ls2_variable_issue): Likewise for param.
991 (mips_need_noat_wrapper_p): Likewise for param "insn".
992 (mips_expand_vselect): Add a new local rtx_insn * "insn", using it
993 in place of "x" after the emit_insn.
994 * config/pa/pa-protos.h (pa_fpstore_bypass_p): Strengthen both
995 params from rtx to rtx_insn *.
996 * config/pa/pa.c (pa_fpstore_bypass_p): Likewise.
997 (pa_combine_instructions): Introduce local "par" for result of
998 gen_rtx_PARALLEL, moving decl and usage of new_rtx for after call
1000 (pa_can_combine_p): Strengthen param "new_rtx" from rtx to rtx_insn *.
1001 * config/rl78/rl78.c (insn_ok_now): Likewise for param "insn".
1002 (rl78_alloc_physical_registers_op1): Likewise.
1003 (rl78_alloc_physical_registers_op2): Likewise.
1004 (rl78_alloc_physical_registers_ro1): Likewise.
1005 (rl78_alloc_physical_registers_cmp): Likewise.
1006 (rl78_alloc_physical_registers_umul): Likewise.
1007 (rl78_alloc_address_registers_macax): Likewise.
1008 (rl78_alloc_physical_registers): Likewise for locals "insn", "curr".
1009 * config/s390/predicates.md (execute_operation): Likewise for
1011 * config/s390/s390-protos.h (s390_agen_dep_p): Likewise for both
1013 * config/s390/s390.c (s390_safe_attr_type): Likewise for param.
1014 (addr_generation_dependency_p): Likewise for param "insn".
1015 (s390_agen_dep_p): Likewise for both params.
1016 (s390_fpload_toreg): Likewise for param "insn".
1017 * config/sh/sh-protos.h (sh_loop_align): Likewise for param.
1018 * config/sh/sh.c (sh_loop_align): Likewise for param and local
1020 * config/sh/sh.md (define_peephole2): Likewise for local "insn2".
1021 * config/sh/sh_treg_combine.cc
1022 (sh_treg_combine::make_inv_ccreg_insn): Likewise for return type
1024 (sh_treg_combine::try_eliminate_cstores): Likewise for local "i".
1025 * config/stormy16/stormy16.c (combine_bnp): Likewise for locals
1026 "and_insn", "load", "shift".
1027 * config/tilegx/tilegx.c (match_pcrel_step2): Likewise for param
1029 * final.c (final_scan_insn): Introduce local rtx_insn * "other"
1030 for XEXP (note, 0) of the REG_CC_SETTER note.
1031 (cleanup_subreg_operands): Strengthen param "insn" from rtx to
1032 rtx_insn *, eliminating a checked cast made redundant by this.
1033 * gcse.c (process_insert_insn): Strengthen local "insn" from rtx
1035 * genattr.c (main): When writing out the prototype to
1036 const_num_delay_slots, strengthen the param from rtx to
1038 * genattrtab.c (write_const_num_delay_slots): Likewise when
1039 writing out the implementation of const_num_delay_slots.
1040 * hw-doloop.h (struct hw_doloop_hooks): Strengthen the param
1041 "insn" of callback field "end_pattern_reg" from rtx to rtx_insn *.
1042 * ifcvt.c (noce_emit_store_flag): Eliminate local rtx "tmp" in
1043 favor of new rtx locals "src" and "set" and new local rtx_insn *
1045 (noce_emit_move_insn): Strengthen locals "seq" and "insn" from rtx
1047 (noce_emit_cmove): Eliminate local rtx "tmp" in favor of new rtx
1048 locals "cond", "if_then_else", "set" and new rtx_insn * locals
1050 (noce_try_cmove_arith): Strengthen locals "insn_a" and "insn_b",
1051 "last" from rtx to rtx_insn *. Likewise for a local "tmp",
1052 renaming to "tmp_insn". Eliminate the other local rtx "tmp" from
1053 the top-level scope, replacing with new more tightly-scoped rtx
1054 locals "reg", "pat", "mem" and rtx_insn * "insn", "copy_of_a",
1055 "new_insn", "copy_of_insn_b", and make local rtx "set" more
1057 * ira-int.h (ira_setup_alts): Strengthen param "insn" from rtx to
1059 * ira.c (setup_prohibited_mode_move_regs): Likewise for local
1061 (ira_setup_alts): Likewise for param "insn".
1062 * lra-constraints.c (emit_inc): Likewise for local "add_insn".
1063 * lra.c (emit_add3_insn): Split local rtx "insn" in two, an rtx
1065 (lra_emit_add): Eliminate top-level local rtx "insn" in favor of
1066 new more-tightly scoped rtx locals "add3_insn", "insn",
1067 "add2_insn" and rtx_insn * "move_insn".
1068 * postreload-gcse.c (eliminate_partially_redundant_load): Add
1069 checked cast on result of gen_move_insn when invoking
1071 * recog.c (insn_invalid_p): Strengthen param "insn" from rtx to
1073 (verify_changes): Add a checked cast on "object" when invoking
1075 (extract_insn_cached): Strengthen param "insn" from rtx to
1077 (extract_constrain_insn_cached): Likewise.
1078 (extract_insn): Likewise.
1079 * recog.h (insn_invalid_p): Likewise for param 1.
1080 (recog_memoized): Likewise for param.
1081 (extract_insn): Likewise.
1082 (extract_constrain_insn_cached): Likewise.
1083 (extract_insn_cached): Likewise.
1084 * reload.c (can_reload_into): Likewise for local "test_insn".
1085 * reload.h (cleanup_subreg_operands): Likewise for param.
1086 * reload1.c (emit_insn_if_valid_for_reload): Rename param from
1087 "insn" to "pat", reintroducing "insn" as an rtx_insn * on the
1088 result of emit_insn. Remove a checked cast made redundant by this
1090 * sel-sched-ir.c (sel_insn_rtx_cost): Strengthen param "insn" from
1092 * sel-sched.c (get_reg_class): Likewise.
1094 2014-09-09 Marcus Shawcroft <marcus.shawcroft@arm.com>
1095 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
1097 * config/aarch64/aarch64-elf-raw.h (ENDFILE_SPEC): Add crtfastmath.o.
1098 * config/aarch64/aarch64-linux.h (GNU_USER_TARGET_MATH_ENDFILE_SPEC):
1100 (ENDFILE_SPEC): Define and use GNU_USER_TARGET_MATH_ENDFILE_SPEC.
1102 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1104 * rtl.h (INSN_LOCATION): Strengthen param from const_rtx to
1105 const rtx_insn *, and from rtx to rtx_insn * for the other
1107 (RTL_LOCATION): Add a checked cast to rtx_insn * when invoking
1108 INSN_LOCATION, since we know INSN_P holds.
1109 (insn_line): Strengthen param from const_rtx to const rtx_insn *.
1110 (insn_file): Likewise.
1111 (insn_scope): Likewise.
1112 (insn_location): Likewise.
1114 * config/mips/mips.c (mips16_gp_pseudo_reg): Strengthen local
1115 "insn" from rtx to rtx_insn *, introducing a new local rtx "set"
1116 for the result of gen_load_const_gp.
1117 * config/rs6000/rs6000-protos.h (output_call): Strengthen first
1118 param from rtx to rtx_insn *.
1119 * config/rs6000/rs6000.c (output_call): Likewise.
1120 * dwarf2out.c (dwarf2out_var_location): Likewise for local "prev",
1121 introducing a checked cast to rtx_sequence * and use of the insn
1123 * emit-rtl.c (emit_copy_of_insn_after): Strengthen both params
1124 from rtx to rtx_insn *.
1125 (insn_scope): Strengthen param from const_rtx to const rtx_insn *.
1126 (insn_line): Likewise.
1127 (insn_file): Likewise.
1128 (insn_location): Likewise.
1129 * emit-rtl.h (emit_copy_of_insn_after): Strengthen both params
1130 from rtx to rtx_insn *.
1131 * print-rtl.c (print_rtx): Introduce local "in_insn" via a checked
1132 cast, using it for calls to INSN_HAS_LOCATION and insn_location.
1133 * recog.c (peep2_attempt): Introduce local rtx_insn * "peepinsn"
1135 * reorg.c (relax_delay_slots): Strengthen locals named "after"
1136 from rtx to rtx_insn *; use methods of "pat" for type-safety.
1138 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1140 * combine.c (try_combine): Eliminate checked cast on result of
1142 * emit-rtl.c (gen_rtx_INSN): New function, improving over the prior
1143 autogenerated one by strengthening the return type and params 2 and 3
1144 from rtx to rtx_insn *, and by naming the params.
1145 * gengenrtl.c (special_rtx): Add INSN to those that are
1147 * rtl.h (gen_rtx_INSN): New prototype.
1149 2014-09-09 David Malcolm <dmalcolm@redhat.com>
1151 * ira.c (ira_update_equiv_info_by_shuffle_insn): Use NULL rather
1153 (no_equiv): Likewise.
1154 (update_equiv_regs): Likewise.
1155 (setup_reg_equiv): Likewise. Strengthen locals "elem",
1156 "prev_elem", "next_elem" from rtx to rtx_insn_list *, and "insn"
1157 from rtx to rtx_insn *. Use methods of "elem" for typesafety and
1159 * ira.h (struct ira_reg_equiv_s): Strengthen field "init_insns"
1160 from rtx to rtx_insn_list *.
1161 * lra-assigns.c (spill_for): Strengthen local "x" from rtx to
1162 rtx_insn_list * and use methods for clarity and typesafety.
1163 * lra-constraints.c (contains_deleted_insn_p): Likewise for param
1165 (init_insn_rhs_dead_pseudo_p): Likewise for local "insns". Remove
1166 redundant check on INSN_P (insns): this cannot hold, as "insns" is
1167 an INSN_LIST, not an insn.
1168 (reverse_equiv_p): Strengthen local "insns" from rtx to
1169 rtx_insn_list * and use methods for clarity and typesafety.
1170 (contains_reloaded_insn_p): Likewise for local "list".
1172 2014-09-09 Jiong Wang <jiong.wang@arm.com>
1174 * config/arm/arm.c (NEON_COPYSIGNF): New enum.
1175 (arm_init_neon_builtins): Support NEON_COPYSIGNF.
1176 (arm_builtin_vectorized_function): Likewise.
1177 * config/arm/arm_neon_builtins.def: New macro for copysignf.
1178 * config/arm/neon.md (neon_copysignf<mode>): New pattern for vector copysignf.
1180 2014-09-09 Richard Sandiford <richard.sandiford@arm.com>
1182 * bb-reorder.h (default_target_bb_reorder): Remove redundant GTY.
1183 * builtins.h (default_target_builtins): Likewise.
1184 * gcse.h (default_target_gcse): Likewise.
1185 * target-globals.h (target_globals): Add a destructor. Convert
1186 void-pointer fields back to their real type and change from
1187 GTY((atomic)) to GTY((skip)).
1188 (restore_target_globals): Remove casts accordingly.
1189 * target-globals.c (save_target_globals): Use XCNEW rather than
1190 ggc_internal_cleared_alloc to allocate non-GC structures.
1191 Use ggc_cleared_alloc to allocate the target_globals structure
1193 (target_globals::~target_globals): Define.
1195 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1197 * config/arm/arm.md (vfp_pop_multiple_with_writeback): Use vldm
1198 mnemonic instead of fldmfdd.
1199 * config/arm/arm.c (vfp_output_fstmd): Rename to...
1200 (vfp_output_vstmd): ... This. Convert output to UAL syntax.
1201 Output vpush when address register is SP.
1202 * config/arm/arm-protos.h (vfp_output_fstmd): Rename to...
1203 (vfp_output_vstmd): ... This.
1204 * config/arm/vfp.md (push_multi_vfp): Update call to
1207 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1209 * config/arm/vfp.md (*movcc_vfp): Use UAL syntax.
1211 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1213 * config/arm/vfp.md (*sqrtsf2_vfp): Use UAL assembly syntax.
1214 (*sqrtdf2_vfp): Likewise.
1215 (*cmpsf_vfp): Likewise.
1216 (*cmpsf_trap_vfp): Likewise.
1217 (*cmpdf_vfp): Likewise.
1218 (*cmpdf_trap_vfp): Likewise.
1220 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1222 * config/arm/vfp.md (*extendsfdf2_vfp): Use UAL assembly syntax.
1223 (*truncdfsf2_vfp): Likewise.
1224 (*truncsisf2_vfp): Likewise.
1225 (*truncsidf2_vfp): Likewise.
1226 (fixuns_truncsfsi2): Likewise.
1227 (fixuns_truncdfsi2): Likewise.
1228 (*floatsisf2_vfp): Likewise.
1229 (*floatsidf2_vfp): Likewise.
1230 (floatunssisf2): Likewise.
1231 (floatunssidf2): Likewise.
1233 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1235 * config/arm/vfp.md (*mulsf3_vfp): Use UAL assembly syntax.
1236 (*muldf3_vfp): Likewise.
1237 (*mulsf3negsf_vfp): Likewise.
1238 (*muldf3negdf_vfp): Likewise.
1239 (*mulsf3addsf_vfp): Likewise.
1240 (*muldf3adddf_vfp): Likewise.
1241 (*mulsf3subsf_vfp): Likewise.
1242 (*muldf3subdf_vfp): Likewise.
1243 (*mulsf3negsfaddsf_vfp): Likewise.
1244 (*fmuldf3negdfadddf_vfp): Likewise.
1245 (*mulsf3negsfsubsf_vfp): Likewise.
1246 (*muldf3negdfsubdf_vfp): Likewise.
1248 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1250 * config/arm/vfp.md (*abssf2_vfp): Use UAL assembly syntax.
1251 (*absdf2_vfp): Likewise.
1252 (*negsf2_vfp): Likewise.
1253 (*negdf2_vfp): Likewise.
1254 (*addsf3_vfp): Likewise.
1255 (*adddf3_vfp): Likewise.
1256 (*subsf3_vfp): Likewise.
1257 (*subdf3_vfp): Likewise.
1258 (*divsf3_vfp): Likewise.
1259 (*divdf3_vfp): Likewise.
1261 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1263 * config/arm/arm.c (output_move_vfp): Use UAL syntax for load/store
1265 (arm_print_operand): Don't convert real values to decimal
1266 representation in default case.
1267 (fp_immediate_constant): Delete.
1268 * config/arm/arm-protos.h (fp_immediate_constant): Likewise.
1269 * config/arm/vfp.md (*arm_movsi_vfp): Convert to VFP moves to UAL
1271 (*thumb2_movsi_vfp): Likewise.
1272 (*movdi_vfp): Likewise.
1273 (*movdi_vfp_cortexa8): Likewise.
1274 (*movhf_vfp_neon): Likewise.
1275 (*movhf_vfp): Likewise.
1276 (*movsf_vfp): Likewise.
1277 (*thumb2_movsf_vfp): Likewise.
1278 (*movdf_vfp): Likewise.
1279 (*thumb2_movdf_vfp): Likewise.
1280 (*movsfcc_vfp): Likewise.
1281 (*thumb2_movsfcc_vfp): Likewise.
1282 (*movdfcc_vfp): Likewise.
1283 (*thumb2_movdfcc_vfp): Likewise.
1285 2014-09-09 James Greenhalgh <james.greenhalgh@arm.com>
1287 * doc/invoke.texi (-march): Use GNU/Linux rather than Linux.
1291 2014-09-09 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1294 * config/aarch64/aarch64-builtins.c (aarch64_types_quadop_qualifiers):
1295 Use qualifier_immediate for last operand. Rename to...
1296 (aarch64_types_ternop_lane_qualifiers): ... This.
1297 (TYPES_QUADOP): Rename to...
1298 (TYPES_TERNOP_LANE): ... This.
1299 (aarch64_simd_expand_args): Return const0_rtx when encountering user
1300 error. Change return of 0 to return of NULL_RTX.
1301 (aarch64_crc32_expand_builtin): Likewise.
1302 (aarch64_expand_builtin): Return NULL_RTX instead of 0.
1303 ICE when expanding unknown builtin.
1304 * config/aarch64/aarch64-simd-builtins.def (sqdmlal_lane): Use
1305 TERNOP_LANE qualifiers.
1306 (sqdmlsl_lane): Likewise.
1307 (sqdmlal_laneq): Likewise.
1308 (sqdmlsl_laneq): Likewise.
1309 (sqdmlal2_lane): Likewise.
1310 (sqdmlsl2_lane): Likewise.
1311 (sqdmlal2_laneq): Likewise.
1312 (sqdmlsl2_laneq): Likewise.
1314 2014-09-09 Nick Clifton <nickc@redhat.com>
1316 * doc/invoke.texi (Optimization Options): Add missing @gol to the
1318 (S/390 and zSeries Options): Remove superfluous word from the
1319 description of the -mhotpatch option.
1321 2014-09-09 Zhenqiang Chen <zhenqiang.chen@arm.com>
1323 * shrink-wrap.h: #define SHRINK_WRAPPING_ENABLED.
1324 * ira.c: #include "shrink-wrap.h"
1325 (split_live_ranges_for_shrink_wrap): Use SHRINK_WRAPPING_ENABLED.
1326 * ifcvt.c: #include "shrink-wrap.h"
1327 (dead_or_predicable): Use SHRINK_WRAPPING_ENABLED.
1329 2014-09-08 Trevor Saunders <tsaunders@mozilla.com>
1331 * common/config/picochip/picochip-common.c: Remove.
1332 * config.gcc: Remove support for picochip.
1333 * config/picochip/constraints.md: Remove.
1334 * config/picochip/dfa_space.md: Remove.
1335 * config/picochip/dfa_speed.md: Remove.
1336 * config/picochip/picochip-protos.h: Remove.
1337 * config/picochip/picochip.c: Remove.
1338 * config/picochip/picochip.h: Remove.
1339 * config/picochip/picochip.md: Remove.
1340 * config/picochip/picochip.opt: Remove.
1341 * config/picochip/predicates.md: Remove.
1342 * config/picochip/t-picochip: Remove.
1343 * doc/md.texi: Don't document picochi.
1345 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1347 * basic-block.h (control_flow_insn_p): Strengthen param from
1348 const_rtx to const rtx_insn *.
1349 * cfgbuild.c (control_flow_insn_p): Likewise.
1351 2014-09-08 David Malcolm <dmalcolm@redhat.com>
1353 * gcse.c (modify_mem_list): Strengthen this variable from
1354 vec<rtx> * to vec<rtx_insn *> *.
1355 (vec_rtx_heap): Strengthen this typedef from vec<rtx> to
1357 (load_killed_in_block_p): Strengthen local "list" from vec<rtx> to
1358 vec<rtx_insn *>, and local "setter" from rtx to rtx_insn *.
1359 (record_last_mem_set_info): Strengthen param "insn" from rtx to
1361 (record_last_set_info): Likewise for local "last_set_insn".
1363 2014-09-08 DJ Delorie <dj@redhat.com>
1365 * doc/invoke.texi (MSP430 Options): Add -minrt.
1367 2014-09-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1369 * config/rs6000/rs6000.c (special_handling_values): Add SH_SPLAT.
1370 (rtx_is_swappable_p): Convert UNSPEC cascading ||s to a switch
1371 statement; allow optimization of UNSPEC_VSPLT_DIRECT with special
1373 (adjust_extract): Fix test for VEC_DUPLICATE case; fix adjustment
1375 (adjust_splat): New function.
1376 (handle_special_swappables): Call adjust_splat for SH_SPLAT.
1377 (dump_swap_insn_table): Add case for SH_SPLAT.
1379 2014-09-08 Richard Biener <rguenther@suse.de>
1382 * tree-inline.c (copy_loops): The source loop header should
1384 (tree_function_versioning): If loops need fixup after removing
1385 unreachable blocks fix them.
1386 * omp-low.c (simd_clone_adjust): Do not add incr block to
1387 loop under construction.
1389 2014-09-08 Alan Lawrence <alan.lawrence@arm.com>
1391 * config/aarch64/aarch64-builtins.c
1392 (aarch64_types_cmtst_qualifiers, TYPES_TST): Remove as unused.
1394 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1396 * config/i386/cygming.h (TF_SIZE): Remove.
1397 * config/i386/darwin.h (TF_SIZE): Remove.
1398 * config/i386/dragonfly.h (TF_SIZE): Remove.
1399 * config/i386/freebsd.h (TF_SIZE): Remove.
1400 * config/i386/gnu-user-common.h (TF_SIZE): Remove.
1401 * config/i386/openbsdelf.h (TF_SIZE): Remove.
1402 * config/i386/sol2.h (TF_SIZE): Remove.
1403 * config/ia64/hpux.h (XF_SIZE, TF_SIZE): Remove.
1404 * config/ia64/linux.h (TF_SIZE): Remove.
1405 * doc/tm.texi.in (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Remove.
1406 * doc/tm.texi: Regenerate.
1407 * system.h (SF_SIZE, DF_SIZE, XF_SIZE, TF_SIZE): Poison.
1409 2014-09-08 Joseph Myers <joseph@codesourcery.com>
1411 * defaults.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1413 * doc/tm.texi.in (ROUND_TOWARDS_ZERO, LARGEST_EXPONENT_IS_NORMAL):
1415 * doc/tm.texi: Regenerate.
1416 * system.h (LARGEST_EXPONENT_IS_NORMAL, ROUND_TOWARDS_ZERO):
1418 * config/arm/arm.h (LARGEST_EXPONENT_IS_NORMAL): Remove.
1419 * config/cris/cris.h (__make_dp): Remove.
1421 2014-09-08 Richard Biener <rguenther@suse.de>
1424 * cfgloop.c (mark_loop_for_removal): Track former header
1426 * cfgloop.h (struct loop): Add former_header member unconditionally.
1427 * loop-init.c (fix_loop_structure): Enable bogus loop removal
1428 diagnostic unconditionally.
1430 2014-09-07 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
1433 * config/aarch64/aarch64.md (stack_protect_test_<mode>) Add register
1434 constraint for operand0 and remove write only modifier from operand3.
1436 2014-09-07 Richard Sandiford <richard.sandiford@arm.com>
1438 PR rtl-optimization/62208
1439 * simplify-rtx.c (simplify_relational_operation_1): Use CONST0_RTX
1440 rather than const0_rtx in eq/ne-xor simplifications.
1442 2014-09-06 Joern Rennecke <joern.rennecke@embecosm.com>
1444 * config/arc/arc.c (arc_print_operand): Fix format for HOST_WIDE_INT.
1445 (arc_output_mi_thunk): Likewise.
1447 * config/arc/arc.c (arc_predicate_delay_insns): Swap comparison
1448 arguments to silence bogus warning.
1450 2014-09-06 Richard Sandiford <richard.sandiford@arm.com>
1453 * rtlanal.c (tls_referenced_p): Don't skip constant subrtxes.
1455 2014-09-06 Tom de Vries <tom@codesourcery.com>
1457 * ira-costs.c (ira_tune_allocno_costs): Don't conditionalize
1458 IRA_HARD_REGNO_ADD_COST_MULTIPLIER code on
1459 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1461 2014-09-05 Dominique Dhumieres <dominiq@lps.ens.fr>
1464 * config/darwin.h (INIT_SECTION_ASM_OP): Define to "".
1465 * config/pa/pa64-hpux.h (INIT_SECTION_ASM_OP): Likewise.
1467 2014-09-05 Easwaran Raman <eraman@google.com>
1469 PR rtl-optimization/62146
1470 * ifcvt.c (dead_or_predicable): Make removal of REG_EQUAL note of
1471 hoisted instruction unconditional.
1473 2014-09-05 Segher Boessenkool <segher@kernel.crashing.org>
1476 * config/rs6000/rs6000.md (*and<mode>3_imm_dot, *and<mode>3_imm_dot2):
1477 Do not allow any_mask_operand for operands[2].
1478 (*and<mode>3_imm_mask_dot, *and<mode>3_imm_mask_dot2): New.
1480 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1482 * config/arc/arc.c (arc_print_operand): Use insn method of
1483 final_sequence for type-safety.
1484 * config/bfin/bfin.c (bfin_hardware_loop): Strengthen param
1485 "insn" from rtx to rtx_insn *.
1486 * config/frv/frv.c (frv_print_operand_jump_hint): Likewise.
1487 * config/mn10300/mn10300.c (mn10300_scan_for_setlb_lcc):
1488 Likewise for locals "branch", "label".
1489 * config/h8300/h8300.c (same_cmp_preceding_p): Likewise for
1490 locals "i1", "i2". Use NULL rather than NULL_RTX in comparisons.
1491 (same_cmp_following_p): Likewise for locals "i2", "i3".
1492 * config/sh/sh_optimize_sett_clrt.cc
1493 (sh_optimize_sett_clrt::sh_cbranch_ccreg_value): Likewise for
1494 param "cbranch_insn".
1495 * function.c (convert_jumps_to_returns): Likewis for local "jump".
1496 * ifcvt.c (cond_exec_get_condition): Likewise for param "jump".
1497 * jump.c (simplejump_p): Strengthen param "insn" from const_rtx to
1499 (condjump_p): Likewise.
1500 (condjump_in_parallel_p): Likewise.
1502 (any_uncondjump_p): Likewise.
1503 (any_condjump_p): Likewise.
1504 (condjump_label): Likewise.
1505 (returnjump_p): Strengthen param "insn" from rtx to
1507 (onlyjump_p): Strengthen param "insn" from const_rtx to
1509 (jump_to_label_p): Likewise.
1510 (invert_jump_1): Strengthen param "jump" from rtx to rtx_insn *.
1511 (invert_jump): Likewise.
1512 * reorg.c (simplejump_or_return_p): Add checked cast when calling
1514 (get_jump_flags): Strengthen param "insn" from rtx to
1516 (get_branch_condition): Likewise.
1517 (condition_dominates_p): Likewise.
1518 (make_return_insns): Move declaration of local "pat" earlier, to
1519 after we've handled NONJUMP_INSN_P and non-sequences, using its
1520 methods to simplify the code and for type-safety.
1521 * rtl.h (find_constant_src): Strengthen param from const_rtx to
1523 (jump_to_label_p): Strengthen param from rtx to const rtx_insn *.
1524 (condjump_p): Strengthen param from const_rtx to
1526 (any_condjump_p): Likewise.
1527 (any_uncondjump_p): Likewise.
1529 (condjump_label): Likewise.
1530 (simplejump_p): Likewise.
1531 (returnjump_p): Likewise.
1532 (onlyjump_p): Likewise.
1533 (invert_jump_1): Strengthen param 1 from rtx to rtx_insn *.
1534 (invert_jump): Likewise.
1535 (condjump_in_parallel_p): Strengthen param from const_rtx to
1537 * rtlanal.c (find_constant_src): Strengthen param from const_rtx
1538 to const rtx_insn *.
1539 * sel-sched-ir.c (fallthru_bb_of_jump): Strengthen param from rtx
1540 to const rtx_insn *.
1541 * sel-sched-ir.h (fallthru_bb_of_jump): Likewise.
1543 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1545 * reorg.c (relax_delay_slots): Move declaration of "trial_seq"
1546 above the conditional, and convert the check on GET_CODE to a
1547 dyn_cast, so that "trial_seq" is available as an rtx_sequence * in
1548 the conditional. Simplify the conditional by using methods of
1551 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1553 * haifa-sched.c (check_clobbered_conditions): Strengthen local
1554 "link" from rtx to rtx_insn_list *, and use its methods for
1555 clarity and type-safety.
1556 (toggle_cancelled_flags): Likewise.
1557 (restore_last_backtrack_point): Likewise.
1558 (queue_to_ready): Use insn method of "link" in one place.
1559 (schedule_block): Strengthen local "link" from rtx to
1560 rtx_insn_list *, and use its methods for clarity and type-safety.
1562 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1564 * sched-deps.c (sched_get_condition_with_rev_uncached): Strengthen
1565 param "insn" from const_rtx to const rtx_insn *.
1566 (sched_get_reverse_condition_uncached): Likewise.
1567 (sched_get_condition_with_rev): Likewise.
1568 (sched_has_condition_p): Likewise.
1569 (sched_insns_conditions_mutex_p): Likewise for both params.
1570 (sched_insn_is_legitimate_for_speculation_p): Likewise for param
1571 "insn"; conver use of CONST_CAST_RTX to CONST_CAST_RTX_INSN.
1572 (setup_insn_reg_uses): Move local "list" to be more tightly
1573 scoped, strengthening it from an rtx to an rtx_insn_list *. Use
1574 its methods for clarity and type-safety.
1575 (sched_analyze_1): Strengthen local "pending" from rtx to
1576 rtx_insn_list *, and local "pending_mem" from rtx to
1577 rtx_expr_list *. Use methods of each for clarity and type-safety.
1578 (sched_analyze_2): Likewise.
1579 (sched_analyze_insn): Likewise.
1581 * sched-int.h (sched_get_reverse_condition_uncached): Strengthen
1582 param from const_rtx to const rtx_insn *.
1583 (sched_insns_conditions_mutex_p): Likewise for both params.
1584 (sched_insn_is_legitimate_for_speculation_p): Likewise for first
1587 * system.h (CONST_CAST_RTX_INSN): New macro.
1589 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1591 * recog.c (peep2_attempt): Strengthen return type from rtx to
1593 (peep2_update_life): Likewise for params "last", "prev", removing
1594 a checked cast made redundant by this.
1595 (peephole2_optimize): Likewise for local "last".
1597 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1599 * basic-block.h (set_block_for_insn): Eliminate this macro in
1601 * rtl.h (set_block_for_insn): New inline function, imposing the
1602 requirement that the "insn" param is an rtx_insn *.
1604 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1606 * caller-save.c (setup_save_areas): Strengthen local "insn" from
1608 * final.c (get_call_reg_set_usage): Likewise for first param,
1609 eliminating a checked cast.
1610 * regs.h (get_call_reg_set_usage): Likewise for first param.
1611 * resource.c (mark_set_resources): Introduce local rtx_call_insn *
1612 "call_insn" for the case of a MARK_SRC_DEST_CALL via a checked
1613 cast, replacing references to "x" with "call_insn" where
1615 (mark_target_live_regs): Strengthen local "real_insn" from rtx to
1616 rtx_insn *, adding a checked cast.
1618 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1620 * output.h (final_scan_insn): Strengthen first param from rtx to
1623 * final.c (final_scan_insn): Likewise, renaming it back from
1624 "uncast_insn" to "insn", eliminating the checked cast.
1626 * config/h8300/h8300.md (define_insn "jump"): Replace local rtx
1627 "vec" with an rtx_sequence * "seq", taking a copy of
1628 "final_sequence", and using methods of "seq" for clarity, and for
1629 type-safety in the calls to final_scan_insn.
1630 * config/mips/mips.c (mips_output_conditional_branch): Use methods
1631 of "final_sequence" for clarity, and for type-safety in the call to
1633 * config/sh/sh.c (print_slot): Strengthen param from rtx to
1634 rtx_sequence * and rename from "insn" to "seq".
1636 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1638 * jump.c (delete_related_insns): Introduce a new local "table" by
1639 replacing JUMP_TABLE_DATA_P with a dyn_cast, then use the
1640 get_labels method of "table" to simplify access to the labels in
1643 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1645 * config/arm/cortex-a53.md (cortex_a53_fpalu): Add f_rints, f_rintd,
1646 f_minmaxs, f_minmaxd types.
1648 2014-09-05 Richard Biener <rguenther@suse.de>
1650 * cfgloop.c (mark_loop_for_removal): Record former header
1651 when ENABLE_CHECKING.
1652 * cfgloop.h (strut loop): Add former_header member when
1654 * loop-init.c (fix_loop_structure): Sanity check loops
1655 marked for removal if they re-appeared.
1657 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1659 * config/aarch64/arm_neon.h (int32x1_t, int16x1_t, int8x1_t,
1660 uint32x1_t, uint16x1_t, uint8x1_t): Remove typedefs.
1662 (vqabsb_s8, vqabsh_s16, vqabss_s32, vqaddb_s8, vqaddh_s16, vqadds_s32,
1663 vqaddb_u8, vqaddh_u16, vqadds_u32, vqdmlalh_s16, vqdmlalh_lane_s16,
1664 vqdmlals_s32, vqdmlslh_s16, vqdmlslh_lane_s16, vqdmlsls_s32,
1665 vqdmulhh_s16, vqdmulhh_lane_s16, vqdmulhs_s32, vqdmulhs_lane_s32,
1666 vqdmullh_s16, vqdmullh_lane_s16, vqdmulls_s32, vqdmulls_lane_s32,
1667 vqmovnh_s16, vqmovns_s32, vqmovnd_s64, vqmovnh_u16, vqmovns_u32,
1668 vqmovnd_u64, vqmovunh_s16, vqmovuns_s32, vqmovund_s64, vqnegb_s8,
1669 vqnegh_s16, vqnegs_s32, vqrdmulhh_s16, vqrdmulhh_lane_s16,
1670 vqrdmulhs_s32, vqrdmulhs_lane_s32, vqrshlb_s8, vqrshlh_s16,
1671 vqrshls_s32, vqrshlb_u8, vqrshlh_u16, vqrshls_u32, vqrshrnh_n_s16,
1672 vqrshrns_n_s32, vqrshrnd_n_s64, vqrshrnh_n_u16, vqrshrns_n_u32,
1673 vqrshrnd_n_u64, vqrshrunh_n_s16, vqrshruns_n_s32, vqrshrund_n_s64,
1674 vqshlb_s8, vqshlh_s16, vqshls_s32, vqshlb_u8, vqshlh_u16, vqshls_u32,
1675 vqshlb_n_s8, vqshlh_n_s16, vqshls_n_s32, vqshlb_n_u8, vqshlh_n_u16,
1676 vqshls_n_u32, vqshlub_n_s8, vqshluh_n_s16, vqshlus_n_s32,
1677 vqshrnh_n_s16, vqshrns_n_s32, vqshrnd_n_s64, vqshrnh_n_u16,
1678 vqshrns_n_u32, vqshrnd_n_u64, vqshrunh_n_s16, vqshruns_n_s32,
1679 vqshrund_n_s64, vqsubb_s8, vqsubh_s16, vqsubs_s32, vqsubb_u8,
1680 vqsubh_u16, vqsubs_u32, vsqaddb_u8, vsqaddh_u16, vsqadds_u32,
1681 vuqaddb_s8, vuqaddh_s16, vuqadds_s32): Replace all int{32,16,8}x1_t
1682 with int{32,16,8}_t.
1684 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1686 * config/aarch64/arm_neon.h (__GET_HIGH): New macro.
1687 (vget_high_f32, vget_high_f64, vget_high_p8, vget_high_p16,
1688 vget_high_s8, vget_high_s16, vget_high_s32, vget_high_s64,
1689 vget_high_u8, vget_high_u16, vget_high_u32, vget_high_u64):
1690 Remove temporary __asm__ and reimplement.
1692 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1694 * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Remove code
1695 handling cmge, cmgt, cmeq, cmtst.
1697 * config/aarch64/aarch64-simd-builtins.def (cmeq, cmge, cmgt, cmle,
1698 cmlt, cmgeu, cmgtu, cmtst): Remove.
1700 * config/aarch64/arm_neon.h (vceq_*, vceqq_*, vceqz_*, vceqzq_*,
1701 vcge_*, vcgeq_*, vcgez_*, vcgezq_*, vcgt_*, vcgtq_*, vcgtz_*,
1702 vcgtzq_*, vcle_*, vcleq_*, vclez_*, vclezq_*, vclt_*, vcltq_*,
1703 vcltz_*, vcltzq_*, vtst_*, vtstq_*): Use gcc vector extensions.
1705 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1707 * config/aarch64/aarch64-builtins.c (aarch64_types_cmtst_qualifiers,
1709 (aarch64_fold_builtin): Update pattern for cmtst.
1711 * config/aarch64/aarch64-protos.h (aarch64_const_vec_all_same_int_p):
1714 * config/aarch64/aarch64-simd-builtins.def (cmtst): Update qualifiers.
1716 * config/aarch64/aarch64-simd.md (aarch64_vcond_internal<mode><mode>):
1717 Switch operands, separate out more cases, refactor.
1719 (aarch64_cmtst<mode>): Rewrite pattern to match (plus ... -1).
1721 * config/aarch64.c (aarch64_const_vec_all_same_int_p): Take single
1722 argument; rename old version to...
1723 (aarch64_const_vec_all_same_in_range_p): ...this.
1724 (aarch64_print_operand, aarch64_simd_shift_imm_p): Follow renaming.
1726 * config/aarch64/predicates.md (aarch64_simd_imm_minus_one): Define.
1728 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1730 * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
1731 Remove qualifier_const_pointer, update comment.
1733 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1735 * config/aarch64/aarch64.md (adddi3_aarch64): set type to neon_add.
1737 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1739 * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Replace
1740 varargs with pointer parameter.
1741 (aarch64_simd_expand_builtin): pass pointer into previous.
1743 2014-09-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1745 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Add alu_ext,
1748 2014-09-05 Alan Lawrence <alan.lawrence@arm.com>
1750 * config/aarch64/aarch64-simd.md (aarch64_rbit<mode>): New pattern.
1751 * config/aarch64/aarch64-simd-builtins.def (rbit): New builtin.
1752 * config/aarch64/arm_neon.h (vrbit_s8, vrbit_u8, vrbitq_s8, vrbitq_u8):
1753 Replace temporary asm with call to builtin.
1754 (vrbit_p8, vrbitq_p8): New functions.
1756 2014-09-05 Richard Biener <rguenther@suse.de>
1758 * cfgloop.c (mark_loop_for_removal): New function.
1759 * cfgloop.h (mark_loop_for_removal): Declare.
1760 * cfghooks.c (delete_basic_block): Use mark_loop_for_removal.
1761 (merge_blocks): Likewise.
1762 (duplicate_block): Likewise.
1763 * except.c (sjlj_emit_dispatch_table): Likewise.
1764 * tree-eh.c (cleanup_empty_eh_merge_phis): Likewise.
1765 * tree-ssa-threadupdate.c (ssa_redirect_edges): Likewise.
1766 (thread_through_loop_header): Likewise.
1768 2014-09-05 Richard Biener <rguenther@suse.de>
1771 * fold-const.c (try_move_mult_to_index): Remove.
1772 (fold_binary_loc): Do not call it.
1773 * tree-data-ref.c (dr_analyze_indices): Strip conversions
1774 from the base object again.
1776 2014-09-05 James Greenhalgh <james.greenhalgh@arm.com>
1778 * config/aarch64/aarch64.md (sibcall_value_insn): Give operand 1
1781 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1784 * config/arm/arm.md (setmem): New pattern.
1785 * config/arm/arm-protos.h (struct tune_params): New fields.
1786 (arm_gen_setmem): New prototype.
1787 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
1788 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
1789 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
1790 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
1791 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
1792 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
1793 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
1794 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
1795 (arm_const_inline_cost): New function.
1796 (arm_block_set_max_insns): New function.
1797 (arm_block_set_non_vect_profit_p): New function.
1798 (arm_block_set_vect_profit_p): New function.
1799 (arm_block_set_unaligned_vect): New function.
1800 (arm_block_set_aligned_vect): New function.
1801 (arm_block_set_unaligned_non_vect): New function.
1802 (arm_block_set_aligned_non_vect): New function.
1803 (arm_block_set_vect, arm_gen_setmem): New functions.
1805 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1807 * config/arm/arm.md (arm_movqi_insn): Use Uh instead of m constraint.
1809 2014-09-05 Bin Cheng <bin.cheng@arm.com>
1811 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
1813 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1815 * valtrack.c (dead_debug_insert_temp): Take an rtx_insn * instead of
1817 * valtrack.h: Adjust.
1819 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1821 * emit-rtl.c (emit_insn_before_noloc): Take an rtx_insn * instead of
1823 (emit_jump_insn_before_noloc): Likewise.
1824 (emit_call_insn_before_noloc): Likewise.
1825 (emit_label_before): Likewise.
1826 (emit_label_after): Likewise.
1827 (emit_insn_before_setloc): Likewise.
1828 (emit_jump_insn_before_setloc): Likewise.
1829 (emit_call_insn_before_setloc): Likewise.
1830 (emit_call_insn_before): Likewise.
1833 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1835 * cse.c (cse_insn): Strengthen local "new_rtx" from rtx to
1836 rtx_insn *, eliminating a checked cast.
1838 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1840 * rtl.h (modified_between_p): Strengthen params 2 and 3 from
1841 const_rtx to const rtx_insn *.
1842 * rtlanal.c (modified_between_p): Likewise, eliminating a checked
1845 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1847 * emit-rtl.c (try_split): Update NULL_RTX to NULL in call to
1848 fixup_args_size_notes.
1849 * expr.c (fixup_args_size_notes): Strengthen first two params from
1850 rtx to rtx_insn *, eliminating a checked cast.
1851 * rtl.h (fixup_args_size_notes): Strengthen first two params from
1854 2014-09-05 David Malcolm <dmalcolm@redhat.com>
1856 * haifa-sched.c (get_ready_element): Strengthen return type from
1858 * sched-int.h (get_ready_element): Likewise.
1860 2014-09-04 Segher Boessenkool <segher@kernel.crashing.org>
1863 * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax_mem): Use
1864 indexed_or_indirect_operand instead of memory_operand.
1865 (floatsi<mode>2_lfiwzx_mem): Ditto.
1867 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1869 * config/bfin/bfin.c, config/c6x/c6x.c, config/m32c/m32c.c,
1870 config/mn10300/mn10300.c, config/s390/s390.c, config/sh/sh.c,
1871 ifcvt.c, reorg.c: Change types of variables from rtx to rtx_insn *.
1873 2014-09-04 Trevor Saunders <tsaunders@mozilla.com>
1875 * emit-rtl.c (get_first_nonnote_insn): Return rtx_insn * instead of
1877 (get_last_nonnote_insn): Likewise.
1878 (next_nonnote_insn_bb): Take rtx_insn * instead of rtx.
1879 * resource.c (find_basic_block): Likewise.
1881 * rtlanal.c (keep_with_call_p): Take const rtx_insn * instead of
1884 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1886 * genattr.c (main): Within the prototype of insn_latency written
1887 out to insn-attr.h, strengthen both params from rtx to rtx_insn *.
1888 * genautomata.c (output_internal_maximal_insn_latency_func):
1889 Within the implementation of insn_latency written out to
1890 insn-automata.c, strengthen both params from rtx to rtx_insn *,
1891 eliminating a pair of checked casts.
1893 2014-09-04 David Malcolm <dmalcolm@redhat.com>
1895 * jump.c (eh_returnjump_p): Strengthen param "insn" from rtx to
1898 * rtl.h (eh_returnjump_p): Likewise.
1900 2014-09-04 Aldy Hernandez <aldyh@redhat.com>
1902 * Makefile.in (TAGS): Handle constructs in timevar.def.
1904 2014-09-04 Guozhi Wei <carrot@google.com>
1907 * config/aarch64/iterators.md (VQ_NO2E, VQ_2E): New iterators.
1908 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): Split
1909 it into two patterns.
1910 (move_lo_quad_internal_be_<mode>): Likewise.
1912 2014-09-04 Manuel López-Ibáñez <manu@gcc.gnu.org>
1914 * doc/options.texi: Document that Var and Init are required if CPP
1916 * optc-gen.awk: Require Var and Init if CPP is given.
1917 * common.opt (Wpedantic): Use Init.
1919 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1921 * config/rs6000/rs6000.c (special_handling_values): Add
1923 (rtx_is_swappable_p): Look for patterns with a VEC_SELECT, perhaps
1924 wrapped in a VEC_DUPLICATE, representing an extract. Mark these
1925 as swappable with special handling SH_EXTRACT. Remove
1926 UNSPEC_VSX_XXSPLTW from the list of disallowed unspecs for the
1928 (adjust_extract): New function.
1929 (handle_special_swappables): Add default to case statement; add
1930 case for SH_EXTRACT that calls adjust_extract.
1931 (dump_swap_insn_table): Handle SH_EXTRACT.
1933 2014-09-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1935 * config/rs6000/vsx.md (*vsx_extract_<mode>_load): Always match
1936 selection of 0th memory doubleword, regardless of endianness.
1938 2014-09-04 Jan-Benedict Glaw <jbglaw@lug-owl.de>
1940 * config/rx/rx.h (HARD_REGNO_MODE_OK): Add braces.
1942 2014-09-04 Alan Modra <amodra@gmail.com>
1945 * dwarf2out.c (mem_loc_descriptor <PLUS>): Return NULL if addend
1948 2014-09-03 Matthew Fortune <matthew.fortune@imgtec.com>
1950 * target.def (TARGET_DWARF_FRAME_REG_MODE): New target hook.
1951 * targhooks.c (default_dwarf_frame_reg_mode): New function.
1952 * targhooks.h (default_dwarf_frame_reg_mode): New prototype.
1953 * doc/tm.texi.in (TARGET_DWARF_FRAME_REG_MODE): Document.
1954 * doc/tm.texi: Regenerate.
1955 * dwarf2cfi.c (expand_builtin_init_dwarf_reg_sizes): Abstract mode
1956 selection logic to default_dwarf_frame_reg_mode.
1958 2014-09-03 Marek Polacek <polacek@redhat.com>
1960 * doc/invoke.texi: Document that -Wlogical-not-parentheses is enabled
1963 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1965 * doc/rtl.texi (RTX_AUTOINC): Document that the first operand is
1966 the automodified register.
1968 2014-09-03 Richard Sandiford <richard.sandiford@arm.com>
1970 * output.h (get_some_local_dynamic_name): Declare.
1971 * final.c (some_local_dynamic_name): New variable.
1972 (get_some_local_dynamic_name): New function.
1973 (final_end_function): Clear some_local_dynamic_name.
1974 * config/alpha/alpha.c (machine_function): Remove some_ld_name.
1975 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1976 (print_operand): Report an error if '%&' is used inappropriately.
1977 * config/i386/i386.c (get_some_local_dynamic_name): Delete.
1978 (get_some_local_dynamic_name_1): Delete.
1979 * config/rs6000/rs6000.c (machine_function): Remove some_ld_name.
1980 (rs6000_get_some_local_dynamic_name): Delete.
1981 (rs6000_get_some_local_dynamic_name_1): Delete.
1982 (print_operand): Report an error if '%&' is used inappropriately.
1983 * config/s390/s390.c (machine_function): Remove some_ld_name.
1984 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1985 (print_operand): Assert that get_some_local_dynamic_name is nonnull.
1986 * config/sparc/sparc.c: Include rtl-iter.h.
1987 (machine_function): Remove some_ld_name.
1988 (sparc_print_operand): Report an error if '%&' is used inappropriately.
1989 (get_some_local_dynamic_name, get_some_local_dynamic_name_1): Delete.
1991 2014-09-03 Richard Henderson <rth@redhat.com>
1993 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): Remove.
1994 (aarch64_popwb_pair_reg): Remove.
1995 (aarch64_set_frame_expr): Remove.
1996 (aarch64_restore_callee_saves): Add CFI_OPS argument; fill it with
1997 the restore ops performed by the insns generated.
1998 (aarch64_expand_epilogue): Attach CFI_OPS to the stack deallocation
1999 insn. Perform the calls_eh_return addition later; do not attempt to
2000 preserve the CFA in that case. Don't use aarch64_set_frame_expr.
2001 (aarch64_expand_prologue): Use REG_CFA_ADJUST_CFA directly, or no
2002 special markup at all. Load cfun->machine->frame.hard_fp_offset
2003 into a local variable.
2004 (aarch64_frame_pointer_required): Don't check calls_alloca.
2006 2014-09-03 Richard Biener <rguenther@suse.de>
2008 * opts.c (default_options_optimization): Adjust
2009 max-combine-insns to 2 for -Og.
2011 2014-09-03 Martin Jambor <mjambor@suse.cz>
2014 * ipa-cp.c (intersect_aggregates_with_edge): Handle impermissible
2015 pass-trough jump functions correctly.
2017 2014-09-03 Martin Jambor <mjambor@suse.cz>
2020 * ipa-cp.c (find_aggregate_values_for_callers_subset): Chain
2021 created replacements in ascending order of offsets.
2022 (known_aggs_to_agg_replacement_list): Likewise.
2024 2014-09-03 Martin Liska <mliska@suse.cz>
2026 * tree-ssa-sccvn.c (vn_reference_lookup_call): default (NULL) value
2027 is set to set uninitialized value for vnresult.
2029 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2031 * config/nds32/nds32.c (nds32_must_pass_in_stack): New implementation
2032 for TARGET_MUST_PASS_IN_STACK.
2034 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2036 * config/nds32/nds32.c (nds32_arg_partial_bytes): New implementation
2037 for TARGET_ARG_PARTIAL_BYTES.
2039 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2041 * config/nds32/nds32.c (nds32_expand_prologue): Emit stack push
2042 instructions for varargs implementation.
2043 (nds32_expand_epilogue): Emit stack adjustment instructions for
2044 varargs implementation.
2046 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2048 * config/nds32/nds32.c (nds32_expand_prologue): Suppress fp-as-gp
2049 optimization detection.
2051 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2053 * config/nds32/nds32.c (nds32_function_arg): Deal with nameless
2055 (nds32_function_arg_advance): Deal with nameless arguments.
2056 * config/nds32/nds32.h (NDS32_ARG_PASS_IN_REG_P): Split it into ...
2057 (NDS32_ARG_ENTIRE_IN_GPR_REG_P): ... this one and ...
2058 (NDS32_ARG_PARTIAL_IN_GPR_REG_P): ... this one.
2060 2014-09-03 Richard Biener <rguenther@suse.de>
2062 * tree-ssa-pre.c (alloc_expression_id): Use quick_grow_cleared.
2063 (struct bb_bitmap_sets): Remove deferred member.
2064 (BB_DEFERRED): Remove.
2065 (defer_or_phi_translate_block): Remove.
2066 (compute_antic_aux): Remove deferring of blocks, assert
2067 proper iteration order.
2068 (compute_antic): Do not set BB_DEFERRED.
2069 (eliminate): Allocate el_avail of proper size initially.
2071 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2073 * config/nds32/nds32.h (FIRST_PARM_OFFSET): Set proper location
2074 according to the value of crtl->args.pretend_args_size.
2076 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2078 * config/nds32/nds32.c (nds32_compute_stack_frame): Prepare necessary
2079 varargs information.
2081 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2083 * config/nds32/nds32.c (nds32_setup_incoming_varargs): New
2084 implementation for TARGET_SETUP_INCOMING_VARARGS.
2085 (nds32_strict_argument_naming): Refine comment.
2086 * config/nds32/nds32.h (TARGET_SOFT_FLOAT, TARGET_HARD_FLOAT):
2087 Define for future implementation.
2089 2014-09-03 Ilya Tocar <ilya.tocar@intel.com>
2091 * config/i386/adxintrin.h (_subborrow_u32): New.
2092 (_addcarry_u32): Ditto.
2093 (_subborrow_u64): Ditto.
2094 (_addcarry_u64): Ditto.
2095 * config/i386/i386.c (ix86_builtins): Add IX86_BUILTIN_SBB32,
2097 (ix86_init_mmx_sse_builtins): Handle __builtin_ia32_sbb_u32,
2098 __builtin_ia32_sbb_u64
2100 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2102 * config/nds32/nds32.c (nds32_function_arg): Define and rename some
2104 (nds32_function_arg_advance): Likewise.
2105 (nds32_init_cumulative_args): Likewise.
2106 * config/nds32/nds32.h (NDS32_MAX_GPR_REGS_FOR_ARGS): Define.
2107 (NDS32_FIRST_GPR_REGNUM): Define.
2108 (NDS32_LAST_GPR_REGNUM): Define.
2109 (NDS32_AVAILABLE_REGNUM_FOR_GPR_ARG): Define.
2110 (NDS32_ARG_PASS_IN_REG_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2111 (FUNCTION_ARG_REGNO_P): Use NDS32_MAX_GPR_REGS_FOR_ARGS.
2112 (machine_function): Use GRP-specific stuff.
2114 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2116 * config/nds32/nds32.c (nds32_expand_prologue): Remove unused variables.
2117 (nds32_expand_epilogue): Likewise.
2118 (nds32_expand_prologue_v3push): Likewise.
2119 (nds32_expand_epilogue_v3pop): Likewise.
2121 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2123 * config/nds32/nds32.c (nds32_compute_stack_frame): Do not use
2124 v3push/v3pop for variadic function.
2125 * config/nds32/nds32.md (prologue, epilogue): Likewise.
2127 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2129 * config/nds32/nds32-md-auxiliary.c (nds32_output_stack_push):
2130 Check rtx for varargs implementation.
2131 (nds32_output_stack_pop): Likewise.
2132 * config/nds32/nds32-protos.h: Have a rtx argument for
2133 nds32_output_stack_push and nds32_output_stack_pop.
2134 * config/nds32/nds32.md: Likewise.
2136 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2138 * config/nds32/nds32-isr.c (nds32_isr_function_p): Define new function
2139 to check if FUNC is an interrupt service routine.
2140 * config/nds32/nds32-protos.h (nds32_isr_function_p): Declaration.
2142 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2144 * config/nds32/nds32.h (machine_function): Add some fields for variadic
2145 arguments implementation.
2147 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2149 * config/nds32/nds32-predicates.c
2150 (nds32_valid_stack_push_pop): Rename to ...
2151 (nds32_valid_stack_push_pop_p): ... this.
2152 * config/nds32/nds32-protos.h: Likewise.
2153 * config/nds32/predicates.md: Likewise.
2155 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2157 * config/nds32/nds32.c (nds32_gen_stack_v3push): Rename to ...
2158 (nds32_emit_stack_v3push): ... this.
2159 (nds32_gen_stack_v3pop): Rename to ...
2160 (nds32_emit_stack_v3pop): ... this and consider CFA restore
2163 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2165 * config/nds32/nds32.c (nds32_gen_stack_push_multiple): Rename to ...
2166 (nds32_emit_stack_push_multiple): ... this.
2167 (nds32_gen_stack_pop_multiple): Rename to ...
2168 (nds32_emit_stack_pop_multiple): ... this and consider CFA restore
2171 2014-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2174 * config/s390/s390.md ("*negdi2_31"): Add s390_split_ok_p check
2175 and add a second splitter to handle the remaining cases.
2177 2014-09-03 Chung-Ju Wu <jasonwucj@gmail.com>
2179 * config/nds32/nds32.h (PIC_OFFSET_TABLE_REGNUM): Define.
2181 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2183 * cfgexpand.c (label_rtx_for_bb): Change type to
2184 hash_map<basic_block, rtx_code_label *> *.
2185 (expand_gimple_basic_block): Adjust.
2186 (pass_expand::execute): Likewise.
2188 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2190 * asan.c, cfgexpand.c, config/alpha/alpha.md, config/arm/arm.c,
2191 config/epiphany/epiphany.md, config/h8300/h8300.c, config/i386/i386.md,
2192 config/m32r/m32r.c, config/mcore/mcore.md, config/mips/mips.c,
2193 config/mips/mips.md, config/nios2/nios2.c, config/pa/pa.c,
2194 config/s390/s390.c, config/s390/s390.md, config/sh/sh-mem.cc,
2195 config/sh/sh.c, config/sparc/sparc.c, dojump.c, function.c, optabs.c,
2196 stmt.c: Assign the result of gen_label_rtx to rtx_code_label * instead
2199 2014-09-02 Trevor Saunders <tsaunders@mozilla.com>
2201 * alloc-pool.c: Include coretypes.h.
2202 * cgraph.h, dbxout.c, dwarf2out.c, except.c, except.h, function.c,
2203 function.h, symtab.c, tree-cfg.c, tree-eh.c: Use hash_map and
2204 hash_set instead of htab.
2205 * ggc-page.c (in_gc): New variable.
2206 (ggc_free): Do nothing if a collection is taking place.
2207 (ggc_collect): Set in_gc appropriately.
2208 * ggc.h (gt_ggc_mx(const char *)): New function.
2209 (gt_pch_nx(const char *)): Likewise.
2210 (gt_ggc_mx(int)): Likewise.
2211 (gt_pch_nx(int)): Likewise.
2212 * hash-map.h (hash_map::hash_entry::ggc_mx): Likewise.
2213 (hash_map::hash_entry::pch_nx): Likewise.
2214 (hash_map::hash_entry::pch_nx_helper): Likewise.
2215 (hash_map::hash_map): Adjust.
2216 (hash_map::create_ggc): New function.
2217 (gt_ggc_mx): Likewise.
2218 (gt_pch_nx): Likewise.
2219 * hash-set.h (default_hashset_traits::ggc_mx): Likewise.
2220 (default_hashset_traits::pch_nx): Likewise.
2221 (hash_set::hash_entry::ggc_mx): Likewise.
2222 (hash_set::hash_entry::pch_nx): Likewise.
2223 (hash_set::hash_entry::pch_nx_helper): Likewise.
2224 (hash_set::hash_set): Adjust.
2225 (hash_set::create_ggc): New function.
2226 (hash_set::elements): Likewise.
2227 (gt_ggc_mx): Likewise.
2228 (gt_pch_nx): Likewise.
2229 * hash-table.h (hash_table::hash_table): Adjust.
2230 (hash_table::m_ggc): New member.
2231 (hash_table::~hash_table): Adjust.
2232 (hash_table::expand): Likewise.
2233 (hash_table::empty): Likewise.
2234 (gt_ggc_mx): New function.
2235 (hashtab_entry_note_pointers): Likewise.
2236 (gt_pch_nx): Likewise.
2238 2014-09-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2240 * config/rs6000/rs6000-builtin.def (XVCVSXDDP_SCALE): New
2241 built-in definition.
2242 (XVCVUXDDP_SCALE): Likewise.
2243 (XVCVDPSXDS_SCALE): Likewise.
2244 (XVCVDPUXDS_SCALE): Likewise.
2245 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2246 entries for VSX_BUILTIN_XVCVSXDDP_SCALE,
2247 VSX_BUILTIN_XVCVUXDDP_SCALE, VSX_BUILTIN_XVCVDPSXDS_SCALE, and
2248 VSX_BUILTIN_XVCVDPUXDS_SCALE.
2249 * config/rs6000/rs6000-protos.h (rs6000_scale_v2df): New
2251 * config/rs6000/rs6000.c (real.h): New include.
2252 (rs6000_scale_v2df): New function.
2253 * config/rs6000/vsx.md (UNSPEC_VSX_XVCVSXDDP): New unspec.
2254 (UNSPEC_VSX_XVCVUXDDP): Likewise.
2255 (UNSPEC_VSX_XVCVDPSXDS): Likewise.
2256 (UNSPEC_VSX_XVCVDPUXDS): Likewise.
2257 (vsx_xvcvsxddp_scale): New define_expand.
2258 (vsx_xvcvsxddp): New define_insn.
2259 (vsx_xvcvuxddp_scale): New define_expand.
2260 (vsx_xvcvuxddp): New define_insn.
2261 (vsx_xvcvdpsxds_scale): New define_expand.
2262 (vsx_xvcvdpsxds): New define_insn.
2263 (vsx_xvcvdpuxds_scale): New define_expand.
2264 (vsx_xvcvdpuxds): New define_insn.
2265 * doc/extend.texi (vec_ctf): Add new prototypes.
2266 (vec_cts): Likewise.
2267 (vec_ctu): Likewise.
2268 (vec_splat): Likewise.
2269 (vec_div): Likewise.
2270 (vec_mul): Likewise.
2272 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2275 * config/arm/neon.md
2276 (neon_vcvt<NEON_VCVT:nvrint_variant><su_optab><VCVTF:mode>
2277 <v_cmp_result>): New pattern.
2278 * config/arm/iterators.md (NEON_VCVT): New int iterator.
2279 * config/arm/arm_neon_builtins.def (vcvtav2sf, vcvtav4sf, vcvtauv2sf,
2280 vcvtauv4sf, vcvtpv2sf, vcvtpv4sf, vcvtpuv2sf, vcvtpuv4sf, vcvtmv2sf,
2281 vcvtmv4sf, vcvtmuv2sf, vcvtmuv4sf): New builtin definitions.
2282 * config/arm/arm.c (arm_builtin_vectorized_function): Handle
2283 BUILT_IN_LROUNDF, BUILT_IN_LFLOORF, BUILT_IN_LCEILF.
2285 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2288 * config/arm/iterators.md (FIXUORS): New code iterator.
2289 (VCVT): New int iterator.
2290 (su_optab): New code attribute.
2292 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): New pattern.
2294 2014-09-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2296 * config/aarch64/predicates.md (aarch64_comparison_operation):
2297 New special predicate.
2298 * config/aarch64/aarch64.md (*csinc2<mode>_insn): Use
2299 aarch64_comparison_operation instead of matching an operator.
2300 Update operand numbers.
2301 (csinc3<mode>_insn): Likewise.
2302 (*csinv3<mode>_insn): Likewise.
2303 (*csneg3<mode>_insn): Likewise.
2304 (ffs<mode>2): Update gen_csinc3<mode>_insn callsite.
2305 * config/aarch64/aarch64.c (aarch64_get_condition_code):
2306 Return -1 instead of aborting on invalid condition codes.
2307 (aarch64_print_operand): Update aarch64_get_condition_code callsites
2308 to assert that the returned condition code is valid.
2309 * config/aarch64/aarch64-protos.h (aarch64_get_condition_code): Export.
2311 2014-09-02 Aldy Hernandez <aldyh@redhat.com>
2313 * Makefile.in (TAGS): Handle constructs in common.opt, rtl.def,
2314 tree.def, and gimple.def
2316 2014-09-02 Jakub Jelinek <jakub@redhat.com>
2317 Balaji V. Iyer <balaji.v.iyer@intel.com>
2318 Igor Zamyatin <igor.zamyatin@intel.com>
2320 * cilk-builtins.def (__cilkrts_cilk_for_32): New.
2321 (__cilkrts_cilk_for_64): Likewise.
2322 * cilk-common.c (declare_cilk_for_builtin): New function.
2323 (cilk_init_builtins): Declare __cilkrts_cilk_for_32 and
2324 __cilkrts_cilk_for_64 bultins.
2325 * cilk.h (enum cilk_tree_index): Added CILK_TI_F_LOOP_32 and
2327 (cilk_for_32_fndecl): New define.
2328 (cilk_for_64_fndecl): Likewise.
2329 * gimple-pretty-print.c (dump_gimple_omp_for): Correct hadling of
2330 GF_OMP_FOR_KIND_CILKFOR cases; Added NE_EXPR case.
2331 * gimple.h (enum gf_mask): Added GF_OMP_FOR_KIND_CILKFOR; adjusted
2332 GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_SIMD, GF_OMP_FOR_COMBINED,
2333 GF_OMP_FOR_COMBINED_INTO.
2334 * gimplify.c (gimplify_scan_omp_clauses): Added
2335 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2336 (gimplify_adjust_omp_clauses): Ditto.
2337 (gimplify_omp_for): Added CILK_FOR case.
2338 (gimplify_expr): Ditto.
2339 * omp-low.c: Include cilk.h.
2340 (extract_omp_for_data): Set appropriate kind for
2341 GF_OMP_FOR_KIND_CILKFOR; added check for GF_OMP_FOR_KIND_CILKFOR.
2342 (scan_sharing_clauses): Added OMP_CLAUSE__CILK_FOR_COUNT_ cases.
2343 (create_omp_child_function_name): Added second argument to handle
2345 (cilk_for_check_loop_diff_type): New function.
2346 (expand_cilk_for_call): Likewise.
2347 (expand_cilk_for): Likewise.
2348 (create_omp_child_function): Set cilk_for_count; handle the cases when
2349 it is true; call create_omp_child_function_name with second argument.
2350 (expand_omp_taskreg): Set is_cilk_for and handle cases when it's true.
2351 (expand_omp_for): Handle case of GF_OMP_FOR_KIND_CILKFOR.
2352 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__CILK_FOR_COUNT_.
2353 * tree-nested.c (convert_nonlocal_omp_clauses): Added
2354 OMP_CLAUSE__CILK_FOR_COUNT_ case.
2355 (convert_local_omp_clauses): Ditto.
2356 * tree-pretty-print.c (dump_omp_clause): Added
2357 OMP_CLAUSE__CILK_FOR_COUNT_ and OMP_CLAUSE_SCHEDULE_CILKFOR cases.
2358 (dump_generic_node): Added CILK_FOR case.
2359 * tree.c (omp_clause_num_ops): New element
2360 OMP_CLAUSE__CILK_FOR_COUNT_ (1).
2361 (omp_clause_code_name): New element _Cilk_for_count_.
2362 (walk_tree_1): Added OMP_CLAUSE__CILK_FOR_COUNT_ case.
2363 * tree.def: Add tree code for CILK_FOR.
2365 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2367 * config/rs6000/40x.md (ppc403-integer): Move "exts" to "no dot".
2368 (ppc403-compare): Add "exts with dot" case.
2369 * config/rs6000/440.md (ppc440-integer, ppc440-compare): As above.
2370 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Ditto.
2371 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Ditto.
2372 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Ditto.
2373 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Ditto.
2374 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Ditto.
2375 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Ditto.
2376 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
2377 cell-cmp-microcoded): Similarly.
2378 * config/rs6000/e300c2c3.md (ppce300c3_iu, ppce300c3_cmp): As before.
2379 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Ditto.
2380 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Ditto.
2381 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Ditto.
2382 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Ditto.
2383 * config/rs6000/power4.md (power4-integer, power4-compare): Ditto.
2384 * config/rs6000/power5.md (power5-integer, power5-compare): Ditto.
2385 * config/rs6000/power6.md (power6-exts): Add "no dot" condition.
2386 (power6-compare): Add "exts with dot" case.
2387 * config/rs6000/power7.md (power7-integer, power7-compare): As before.
2388 * config/rs6000/power8.md (power8-1cyc, power8-compare): Ditto.
2389 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Ditto.
2391 * config/rs6000/predicates.md (lwa_operand): Don't allow memory
2392 if avoiding Cell microcode.
2393 * config/rs6000/rs6000.c (rs6000_adjust_cost): Handle exts+dot case.
2394 (is_cracked_insn): Ditto.
2395 (insn_must_be_first_in_group): Ditto.
2396 * config/rs6000/rs6000.md (dot): Adjust comment.
2397 (cell_micro): Handle exts+dot.
2398 (extendqidi2, extendhidi2, extendsidi2, *extendsidi2_lfiwax,
2399 *extendsidi2_nocell, *extendsidi2_nocell, extendqisi2, extendqihi2,
2400 extendhisi2, 16 anonymous instructions, and 12 splitters): Delete.
2401 (extendqi<mode>2, *extendqi<mode>2_dot, *extendqi<mode>2_dot2,
2402 extendhi<mode>2, *extendhi<mode>2, *extendhi<mode>2_noload,
2403 *extendhi<mode>2_dot, *extendhi<mode>2_dot2, extendsi<mode>2,
2404 *extendsi<mode>2_dot, *extendsi<mode>2_dot2): New.
2406 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2408 * config/rs6000/rs6000.md (QHSI): Delete.
2409 (EXTQI, EXTHI, EXTSI): New mode iterators.
2410 (zero_extend<mode>di2, *zero_extend<mode>di2_internal1,
2411 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
2412 *zero_extendsidi2_lfiwzx, zero_extendqisi2, zero_extendhisi2,
2413 9 anonymous instructions, and 8 splitters): Delete.
2414 (zero_extendqi<mode>2, *zero_extendqi<mode>2_dot,
2415 *zero_extendqi<mode>2_dot2, zero_extendhi<mode>2,
2416 *zero_extendhi<mode>2_dot, *zero_extendhi<mode>2_dot2,
2417 zero_extendsi<mode>2, *zero_extendsi<mode>2_dot,
2418 *zero_extendsi<mode>2_dot2): New.
2420 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2422 * config/rs6000/rs6000.md (any_extend): New code iterator.
2423 (u, su): New code attributes.
2424 (dmode, DMODE): New mode attributes.
2425 (<su>mul<mode>3_highpart): New.
2426 (*<su>mul<mode>3_highpart): New.
2427 (<su>mulsi3_highpart_le): New.
2428 (<su>muldi3_highpart_le): New.
2429 (<su>mulsi3_highpart_64): New.
2430 (<u>mul<mode><dmode>3): New.
2431 (mulsidi3, umulsidi3, smulsi3_highpart, umulsi3_highpart, and two
2433 (mulditi3, umulditi3, smuldi3_highpart, umuldi3_highpart, and two
2436 2014-09-02 Segher Boessenkool <segher@kernel.crashing.org>
2438 * config/rs6000/rs6000.md (mulsi3, *mulsi3_internal1,
2439 *mulsi3_internal2, and two splitters): Delete.
2440 (muldi3, *muldi3_internal1, *muldi3_internal2, and two splitters):
2442 (mul<mode>3, mul<mode>3_dot, mul<mode>3_dot2): New.
2444 2014-09-02 Richard Biener <rguenther@suse.de>
2446 PR tree-optimization/62695
2447 * tree-ssa-structalias.c (find_func_clobbers): Add missing
2450 2014-09-01 Oleg Endo <olegendo@gcc.gnu.org>
2453 * config/sh/sh.md (*cmp_div0s_0): Add missing constraints.
2455 2014-09-01 Andi Kleen <ak@linux.intel.com>
2457 * file-find.c (add_prefix_begin): Add.
2458 (do_add_prefix): Rename from add_prefix with first argument.
2459 (add_prefix): Add new wrapper.
2460 * file-find.h (add_prefix_begin): Add.
2461 * gcc-ar.c (main): Support -B option.
2463 2014-09-01 Segher Boessenkool <segher@kernel.crashing.org>
2465 * genemit.c: Include dumpfile.h.
2466 (gen_split): Print name of splitter function to dump file.
2468 2014-09-01 Richard Biener <rguenther@suse.de>
2470 * tree-ssa-struct-aliases.c (find_func_aliases_for_builtin_call):
2471 Use stack auto_vecs for constraint expressions.
2472 (find_func_aliases_for_call): Likewise.
2473 (find_func_aliases): Likewise.
2474 (find_func_clobbers): Likewise.
2476 2014-09-01 Richard Biener <rguenther@suse.de>
2478 * tree-ssa-pre.c (phi_translate_1): Avoid re-allocating the
2479 operands vector in most cases. Remove redundant code.
2481 2014-09-01 Olivier Hainque <hainque@adacore.com>
2483 * config/vxworksae.h (VXWORKSAE_TARGET_DIR): Rely on
2484 $WIND_BASE instead of designating a harcoded arbitrary home dir.
2485 (VXWORKS_ADDITIONAL_CPP_SPEC): Adjust callers.
2487 2014-09-01 Richard Biener <rguenther@suse.de>
2489 * tree-ssa-sccvn.h (copy_reference_ops_from_ref,
2490 copy_reference_ops_from_call, vn_nary_op_compute_hash,
2491 vn_reference_compute_hash, vn_reference_insert): Remove.
2492 (vn_reference_lookup_call): New function.
2493 * tree-ssa-sccvn.c (vn_reference_compute_hash,
2494 copy_reference_ops_from_ref, copy_reference_ops_from_call,
2495 vn_reference_insert, vn_nary_op_compute_hash): Make static.
2496 (create_reference_ops_from_call): Remove.
2497 (vn_reference_lookup_3): Properly update shared_lookup_references.
2498 (vn_reference_lookup_pieces): Assert that we updated
2499 shared_lookup_references properly.
2500 (vn_reference_lookup): Likewise.
2501 (vn_reference_lookup_call): New function.
2502 (visit_reference_op_call): Use it. Avoid re-building the
2504 (visit_reference_op_load): Remove redundant lookup.
2505 (visit_reference_op_store): Perform special tail-merging work
2506 only when possibly doing tail-merging.
2507 (visit_use): Likewise.
2508 * tree-ssa-pre.c (compute_avail): Use vn_reference_lookup_call.
2510 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2513 * sched-deps.c (add_or_update_dep_1): If ask_dependency_caches
2514 returned DEP_PRESENT, make sure to set DEP_MULTIPLE on present_dep.
2515 (find_inc): Revert 2014-08-13 change.
2517 2014-09-01 Marek Polacek <polacek@redhat.com>
2520 * expmed.c (store_fixed_bit_field_1): Shift UHWI 1 instead of HWI 1.
2521 Change the type of V to unsigned HOST_WIDE_INT.
2523 2014-09-01 Thomas Preud'homme <thomas.preudhomme@arm.com>
2525 * tree-ssa-math-opts.c (struct symbolic_number): Clarify comment about
2526 the size of byte markers.
2527 (do_shift_rotate): Fix confusion between host, target and marker byte
2529 (verify_symbolic_number_p): Likewise.
2530 (find_bswap_or_nop_1): Likewise.
2531 (find_bswap_or_nop): Likewise.
2533 2014-09-01 Olivier Hainque <hainque@adacore.com>
2535 * Makefile.in (FLAGS_TO_PASS): Propagate INSTALL, INSTALL_DATA,
2536 INSTALL_SCRIPT and INSTALL_PROGRAM as well.
2538 2014-09-01 Jakub Jelinek <jakub@redhat.com>
2540 * config/gnu-user.h (LIBLSAN_EARLY_SPEC): Define.
2541 * gcc.c (LIBLSAN_SPEC, LIBLSAN_EARLY_SPEC): Follow LIBTSAN*_SPEC.
2542 (SANITIZER_EARLY_SPEC): Include LIBLSAN_EARLY_SPEC for -fsanitize=leak.
2544 2014-09-01 Yury Gribov <y.gribov@samsung.com>
2548 * asan.c (asan_mem_ref_get_end): Handle non-ptroff_t lengths.
2549 (build_check_stmt): Likewise.
2550 (instrument_strlen_call): Likewise.
2551 (asan_expand_check_ifn): Likewise and fix types.
2552 (maybe_cast_to_ptrmode): New function.
2554 2014-09-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2556 * config/mcore/mcore.c (try_constant_tricks): Fix declaration.
2558 2014-08-31 Gerald Pfeifer <gerald@pfeifer.com>
2560 * doc/generic.texi (Deficiencies): Add note on exemplary mistakes.
2562 2014-08-30 John David Anglin <danglin@gcc.gnu.org>
2564 * config/pa/pa.c (pa_assemble_integer): Don't add PLABEL relocation
2565 prefix to function labels when generating fast indirect calls.
2567 2014-08-30 David Malcolm <dmalcolm@redhat.com>
2571 * gcc/reorg.c (skip_consecutive_labels): Convert return type and
2572 param back from rtx_insn * to rtx. Rename param from "label" to
2573 "label_or_return", reintroducing "label" as an rtx_insn * after
2574 we've ensured it's not a RETURN.
2575 (first_active_target_insn): Likewise for return type and param;
2576 add a checked cast to rtx_insn * once we've ensured "insn" is not
2578 (steal_delay_list_from_target): Convert param "pnew_thread" back
2579 from rtx_insn ** to rtx *. Replace use of JUMP_LABEL_AS_INSN
2581 (own_thread_p): Convert param "thread" back from an rtx_insn * to
2582 an rtx. Introduce local rtx_insn * "thread_insn" with a checked
2583 cast once we've established we're not dealing with a RETURN,
2584 renaming subsequent uses of "thread" to "thread_insn".
2585 (fill_simple_delay_slots): Convert uses of JUMP_LABEL_AS_INSN back
2587 (follow_jumps): Convert return type and param "label" from
2588 rtx_insn * back to rtx. Move initialization of "value" to after
2589 the handling for ANY_RETURN_P, adding a checked cast there to
2590 rtx_insn *. Convert local rtx_insn * "this_label" to an rtx and
2591 rename to "this_label_or_return", reintroducing "this_label" as
2592 an rtx_insn * once we've handled the case where it could be an
2594 (fill_slots_from_thread): Rename param "thread" to
2595 "thread_or_return", converting from an rtx_insn * back to an rtx.
2596 Reintroduce name "thread" as an rtx_insn * local with a checked
2597 cast once we've handled the case of it being an ANY_RETURN_P.
2598 Convert local "new_thread" from an rtx_insn * back to an rtx.
2599 Add a checked cast when assigning to "trial" from "new_thread".
2600 Convert use of JUMP_LABEL_AS_INSN back to JUMP_LABEL. Add a
2601 checked cast to rtx_insn * from "new_thread" when invoking
2603 (fill_eager_delay_slots): Convert locals "target_label",
2604 "insn_at_target" from rtx_insn * back to rtx.
2605 Convert uses of JUMP_LABEL_AS_INSN back to JUMP_LABEL.
2606 (relax_delay_slots): Convert locals "trial", "target_label" from
2607 rtx_insn * back to rtx. Convert uses of JUMP_LABEL_AS_INSN back
2608 to JUMP_LABEL. Add a checked cast to rtx_insn * on "trial" when
2609 invoking update_block.
2610 (dbr_schedule): Convert use of JUMP_LABEL_AS_INSN back to
2611 JUMP_LABEL; this removes all JUMP_LABEL_AS_INSN from reorg.c.
2613 * resource.h (mark_target_live_regs): Undo erroneous conversion
2614 of second param of r214693, converting it back from rtx_insn * to
2615 rtx, since it could be a RETURN.
2617 * resource.c (find_dead_or_set_registers): Similarly, convert
2618 param "jump_target" back from an rtx_insn ** to an rtx *, as we
2619 could be writing back a RETURN. Rename local rtx_insn * "next" to
2620 "next_insn", and introduce "lab_or_return" as a local rtx,
2621 handling the case where JUMP_LABEL (this_jump_insn) is a RETURN.
2622 (mark_target_live_regs): Undo erroneous conversion
2623 of second param of r214693, converting it back from rtx_insn * to
2624 rtx, since it could be a RETURN. Rename it from "target" to
2625 "target_maybe_return", reintroducing the name "target" as a local
2626 rtx_insn * with a checked cast, after we've handled the case of
2629 2014-08-29 DJ Delorie <dj@redhat.com>
2631 * cppbuiltin.c (define_builtin_macros_for_type_sizes): Round
2632 pointer size up to a power of two.
2633 * defaults.h (DWARF2_ADDR_SIZE): Round up.
2634 (POINTER_SIZE_UNITS): New, rounded up value.
2635 * dwarf2asm.c (size_of_encoded_value): Use it.
2636 (dw2_output_indirect_constant_1): Likewise.
2637 * expmed.c (init_expmed_one_conv): We now know the sizes of
2639 * loop-iv.c (iv_number_of_iterations): Use precision, not size.
2640 * optabs.c (expand_float): Use precision, not size.
2641 (expand_fix): Likewise.
2642 * simplify-rtx (simplify_unary_operation_1): Likewise.
2643 * tree-dfa.c (get_ref_base_and_extent): Likewise.
2644 * varasm.c (assemble_addr_to_section): Round up pointer sizes.
2645 (default_assemble_integer) Likewise.
2646 (dump_tm_clone_pairs): Likewise.
2647 * dwarf2out.c (mem_loc_descriptor): Allow partial-int modes also.
2648 * var-tracking.c (adjust_mems): Allow partial-int modes also.
2649 (prepare_call_arguments): Likewise.
2650 * stor-layout.c (finalize_type_size): Preserve precision.
2651 (layout_type): Use precision, not size.
2653 * expr.c (convert_move): If the target has an explicit converter,
2656 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2658 * gdbinit.in: Skip various inline functions in rtl.h when
2661 2014-08-29 Richard Sandiford <richard.sandiford@arm.com>
2664 * rtlanal.c (rtx_referenced_p): Fix typo in LABEL_P call.
2666 2014-08-29 Richard Biener <rguenther@suse.de>
2668 PR tree-optimization/62291
2669 * tree-ssa-pre.c (sorted_array_from_bitmap_set): Reserve
2670 exactly the vector size needed and use quick_push.
2671 (phi_translate_1): Adjust comment.
2672 (valid_in_sets): Remove block argument and remove pointless
2674 (dependent_clean): Adjust for removal of block argument.
2676 (compute_antic_aux): Likewise.
2677 (compute_partial_antic_aux): Likewise.
2679 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2680 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2681 Anna Tikhonova <anna.tikhonova@intel.com>
2682 Ilya Tocar <ilya.tocar@intel.com>
2683 Andrey Turetskiy <andrey.turetskiy@intel.com>
2684 Ilya Verbin <ilya.verbin@intel.com>
2685 Kirill Yukhin <kirill.yukhin@intel.com>
2686 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2688 * config/i386/sse.md
2689 (define_insn "avx2_interleave_highv4di<mask_name>"): Add masking.
2690 (define_insn "vec_interleave_highv2di<mask_name>"): Ditto.
2691 (define_insn "avx2_interleave_lowv4di<mask_name>"): Ditto.
2692 (define_insn "vec_interleave_lowv2di<mask_name>"): Ditto.
2694 2014-08-29 Alexander Ivchenko <alexander.ivchenko@intel.com>
2695 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
2696 Anna Tikhonova <anna.tikhonova@intel.com>
2697 Ilya Tocar <ilya.tocar@intel.com>
2698 Andrey Turetskiy <andrey.turetskiy@intel.com>
2699 Ilya Verbin <ilya.verbin@intel.com>
2700 Kirill Yukhin <kirill.yukhin@intel.com>
2701 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
2703 * config/i386/i386-modes.def: Add V12QI, V14QI, V6HI modes.
2704 * config/i386/sse.md
2705 (define_mode_iterator VI4_128_8_256): New.
2706 (define_mode_iterator VI2_128_4_256): Ditto.
2707 (define_mode_iterator PMOV_DST_MODE): Rename into
2708 (define_mode_iterator PMOV_DST_MODE_1): this.
2709 (define_insn "*avx512f_<code><pmov_src_lower><mode>2"):
2710 Use PMOV_DST_MODE_1 mode iterator.
2711 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2713 (define_insn "avx512f_<code><pmov_src_lower><mode>2_mask"):
2715 (define_insn "*avx512bw_<code>v32hiv32qi2"): New.
2716 (define_insn "avx512bw_<code>v32hiv32qi2_mask"): Ditto.
2717 (define_expand "avx512bw_<code>v32hiv32qi2_store_mask"): Ditto.
2718 (define_mode_iterator PMOV_DST_MODE_2): New.
2719 (define_insn "*avx512vl_<code><ssedoublemodelower><mode>2"): Ditto.
2720 (define_insn "<avx512>_<code><ssedoublemodelower><mode>2_mask"): Ditto.
2721 (define_expand "<avx512>_<code><ssedoublemodelower><mode>2_store_mask"):
2723 (define_mode_iterator PMOV_SRC_MODE_3): Ditto.
2724 (define_mode_attr pmov_dst_3): Ditto.
2725 (define_mode_attr pmov_dst_zeroed_3): Ditto.
2726 (define_mode_attr pmov_suff_3): Ditto.
2727 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>qi2"): Ditto.
2728 (define_insn "*avx512vl_<code>v2div2qi2_store"): Ditto.
2729 (define_insn "avx512vl_<code>v2div2qi2_mask"): Ditto.
2730 (define_insn "avx512vl_<code>v2div2qi2_store_mask"): Ditto.
2731 (define_insn "*avx512vl_<code><mode>v4qi2_store"): Ditto.
2732 (define_insn "avx512vl_<code><mode>v4qi2_mask"): Ditto.
2733 (define_insn "avx512vl_<code><mode>v4qi2_store_mask"): Ditto.
2734 (define_insn "*avx512vl_<code><mode>v8qi2_store"): Ditto.
2735 (define_insn "avx512vl_<code><mode>v8qi2_mask"): Ditto.
2736 (define_insn "avx512vl_<code><mode>v8qi2_store_mask"): Ditto.
2737 (define_mode_iterator PMOV_SRC_MODE_4): Ditto.
2738 (define_mode_attr pmov_dst_4): Ditto.
2739 (define_mode_attr pmov_dst_zeroed_4): Ditto.
2740 (define_mode_attr pmov_suff_4): Ditto.
2741 (define_insn "*avx512vl_<code><mode>v<ssescalarnum>hi2"): Ditto.
2742 (define_insn "*avx512vl_<code><mode>v4hi2_store"): Ditto.
2743 (define_insn "avx512vl_<code><mode>v4hi2_mask"): Ditto.
2744 (define_insn "avx512vl_<code><mode>v4hi2_store_mask"): Ditto.
2745 (define_insn "*avx512vl_<code>v2div2hi2_store"): Ditto.
2746 (define_insn "avx512vl_<code>v2div2hi2_mask"): Ditto.
2747 (define_insn "avx512vl_<code>v2div2hi2_store_mask"): Ditto.
2748 (define_insn "*avx512vl_<code>v2div2si2"): Ditto.
2749 (define_insn "*avx512vl_<code>v2div2si2_store"): Ditto.
2750 (define_insn "avx512vl_<code>v2div2si2_mask"): Ditto.
2751 (define_insn "avx512vl_<code>v2div2si2_store_mask"): Ditto.
2753 2014-08-29 Richard Biener <rguenther@suse.de>
2755 * tree-cfg.c (verify_gimple_assign_unary): Do not allow
2756 NON_LVALUE_EXPR in gimple.
2758 2014-08-29 Richard Biener <rguenther@suse.de>
2761 * gimple-fold.c (gimple_fold_builtin_strcpy): Fix error
2762 from previous refactoring.
2763 (gimple_fold_builtin_strncpy): Likewise.
2765 2014-08-29 David Malcolm <dmalcolm@redhat.com>
2768 * function.c (assign_parm_setup_reg): Remove erroneous checked
2769 cast to rtx_insn * on result of gen_extend_insn in favor of
2770 introducing a new local rtx "pat".
2772 2014-08-29 Jan-Benedict Glaw <jbglaw@lug-owl.de>
2774 * config/mep/mep-pragma.c (mep_pragma_coprocessor_subclass): Rework
2776 * config/mep/mep.c (VECTOR_TYPE_P): Remove duplicate definition.
2778 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2780 * rtl.h (previous_insn): Strengthen param from rtx to rtx_insn *.
2781 (next_insn): Likewise.
2782 * emit-rtl.c (next_insn): Likewise.
2783 (previous_insn): Likewise.
2784 * config/pa/pa.c (remove_useless_addtr_insns): Strenghten locals
2785 "insn" and "next" from rtx to rtx_insn *.
2786 * config/picochip/picochip.c (picochip_reorg): Likewise for locals
2787 "insn", "insn1", "vliw_start", "prologue_end_note",
2788 "last_insn_in_packet".
2790 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2792 * shrink-wrap.h (active_insn_between): Strengthen both params from
2794 * function.c (active_insn_between): Likewise.
2796 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2798 * genattr.c (main): When writing out insn-attr.h, strengthen param
2799 of dfa_clear_single_insn_cache from rtx to rtx_insn *.
2800 * genautomata.c (output_dfa_clean_insn_cache_func): Likewise when
2801 writing out the definition of dfa_clear_single_insn_cache to the
2802 generated insn-automata.c
2804 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2806 * resource.h (clear_hashed_info_for_insn): Strengthen param from
2808 (incr_ticks_for_insn): Likewise.
2809 (init_resource_info): Likewise.
2811 * resource.c (init_resource_info): Likewise.
2812 (clear_hashed_info_for_insn): Likewise.
2813 (incr_ticks_for_insn): Likewise.
2815 * reorg.c (delete_scheduled_jump): Strengthen param "insn" from
2817 (steal_delay_list_from_target): Use methods of "seq".
2818 (try_merge_delay_insns): Use methods of "merged_insns".
2819 (update_block): Strengthen param "insn" from rtx to rtx_insn *.
2820 (reorg_redirect_jump): Likewise for param "jump".
2822 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2824 * insn-addr.h (insn_addresses_new): Strengthen param "insn" from
2826 * config/s390/s390.c (s390_split_branches): Eliminate top-level
2827 local rtx "tmp", in favor of new local rtx "mem" and rtx_insn *
2829 (s390_mainpool_finish): In three places, split out a local rtx
2830 "insn" into a local rtx - "set" or "pat" - and a rtx_insn *
2831 "insn". Strengthen local "pool_end" from rtx to rtx_code_label *
2832 and split another local rtx "insn" out into rtx "pat" and
2834 * config/sh/sh.c (output_branchy_insn): Rather than working
2835 directly on operands[9], introduce local rtx_code_label *
2836 variables named "lab" in two places, working on them, and then
2837 assigning them to operands[9], so that the intervening operations
2838 are known by the type system to be on insns.
2840 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2842 * rtl.h (INSN_HAS_LOCATION): Strengthen param from const_rtx to
2845 * print-rtl.c (print_rtx): Add checked cast to const rtx_insn *
2846 in invocation of INSN_HAS_LOCATION.
2848 2014-08-28 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2850 * config/rs6000/altivec.h (vec_xl): New #define.
2851 (vec_xst): Likewise.
2852 * config/rs6000/rs6000-builtin.def (XXSPLTD_V2DF): New built-in.
2853 (XXSPLTD_V2DI): Likewise.
2854 (DIV_V2DI): Likewise.
2855 (UDIV_V2DI): Likewise.
2856 (MUL_V2DI): Likewise.
2857 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
2858 entries for VSX_BUILTIN_XVRDPI, VSX_BUILTIN_DIV_V2DI,
2859 VSX_BUILTIN_UDIV_V2DI, VSX_BUILTIN_MUL_V2DI,
2860 VSX_BUILTIN_XXSPLTD_V2DF, and VSX_BUILTIN_XXSPLTD_V2DI).
2861 * config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTD): New unspec.
2862 (UNSPEC_VSX_DIVSD): Likewise.
2863 (UNSPEC_VSX_DIVUD): Likewise.
2864 (UNSPEC_VSX_MULSD): Likewise.
2865 (vsx_mul_v2di): New insn-and-split.
2866 (vsx_div_v2di): Likewise.
2867 (vsx_udiv_v2di): Likewise.
2868 (vsx_xxspltd_<mode>): New insn.
2870 2014-08-28 David Malcolm <dmalcolm@redhat.com>
2872 * rtl.h (RTX_PREV): Added checked casts to uses of PREV_INSN and
2874 (PREV_INSN): Strengthen param from const_rtx to const rtx_insn *.
2875 (NEXT_INSN): Likewise.
2876 (JUMP_LABEL_AS_INSN): Add a "const" modifier to param.
2877 (reg_used_between_p): Strengthen params 2 and 3 from const_rtx to
2879 (no_labels_between_p): Likewise for both params.
2881 * config/aarch64/aarch64.c (aarch64_output_casesi): Add a checked
2882 cast when using NEXT_INSN on operands[2].
2883 * config/alpha/alpha.c (alpha_set_memflags): Strengthen local
2884 "insn" from rtx to rtx_insn *, adding a checked cast.
2885 (alpha_handle_trap_shadows): Strengthen locals "i", "n" from rtx to
2887 * config/arc/arc-protos.h (arc_ccfsm_record_condition): Likewise
2889 (arc_text_label): Likewise for param "insn".
2890 * config/arc/arc.c (arc_expand_epilogue): Likewise for local
2892 (arc_ccfsm_record_condition): Likewise for param "jump".
2893 (arc_text_label): Likewise for local "label".
2894 * config/arc/arc.md (doloop_begin_i): Likewise for local "scan".
2895 Introduce a local "seq" via a dyn_cast to rtx_sequence *, and use
2896 a method for typesafety. Add a checked cast.
2897 * config/arc/constraints.md (Clb): Add a checked cast when getting
2898 the CODE_LABEL from a LABEL_REF.
2899 * config/arm/arm.c (require_pic_register): Strengthen locals
2900 "seq", "insn" from rtx to rtx_insn *.
2901 (create_fix_barrier): Likewise for locals "selected", "next".
2902 (thumb1_reorg): Likewise for locals "prev", "insn".
2903 (arm_expand_prologue): Likewise for local "last".
2904 (thumb1_output_casesi): Add a checked cast when using NEXT_INSN on
2906 (thumb2_output_casesi): Likewise for operands[2].
2907 * config/avr/avr-log.c (avr_log_vadump): Within 'L' case,
2908 strengthen local "insn" from rtx to rtx_insn *.
2909 * config/bfin/bfin.c (find_next_insn_start): Likewise for return
2910 type and param "insn".
2911 (find_prev_insn_start): Likewise.
2912 (hwloop_optimize): Likewise for locals "insn", "last_insn",
2914 (gen_one_bundle): Likewise for loal "t".
2915 (find_load): Likewise for param "insn".
2916 (workaround_speculation): Likewise for locals "insn", "next",
2917 "target", "next_tgt".
2918 * config/c6x/c6x.c (assign_reservations): Likewise for both params
2919 and for locals "insn", "within", "last".
2920 (count_unit_reqs): Likewise for params "head", "tail" and local
2922 (try_rename_operands): Likewise for params "head", "tail".
2923 (reshuffle_units): Likewise for locals "head", "tail", "insn".
2924 (struct c6x_sched_context): Likewise for fields
2925 "last_scheduled_insn", "last_scheduled_iter0".
2926 (init_sched_state): Replace NULL_RTX with NULL.
2927 (reorg_split_calls): Strengthen local "new_cycle_first" from rtx
2929 (undo_split_delayed_nonbranch): Likewise for param and for local
2931 (conditionalize_after_sched): Likewise for local "insn".
2932 (bb_earliest_end_cycle): Likewise.
2933 (filter_insns_above): Likewise for locals "insn", "next".
2934 (hwloop_optimize): Remove redundant checked cast.
2935 (hwloop_fail): Strengthen local "t" from rtx to rtx_insn *.
2936 * config/cris/cris.c (cris_initial_frame_pointer_offset): Replace
2938 (cris_simple_epilogue): Likewise.
2939 (cris_expand_prologue): Likewise.
2940 (cris_expand_epilogue): Likewise.
2941 * config/frv/frv.c (frv_function_contains_far_jump): Strengthen
2942 local "insn" from rtx to rtx_insn *.
2943 (frv_ifcvt_modify_tests): Likewise for locals "last_insn", "insn".
2944 (struct frv_packet_group): Likewise for the elements within array
2945 fields "insns", "sorted", and for field "nop".
2946 (frv_packet): Likewise for the elements within array field
2948 (frv_add_insn_to_packet): Likewise for param "insn".
2949 (frv_insert_nop_in_packet): Likewise for param "insn" and local
2951 (frv_for_each_packet): Likewise for locals "insn", "next_insn".
2952 (frv_sort_insn_group_1): Likewise for local "insn".
2953 (frv_optimize_membar_local): Likewise.
2954 (frv_align_label): Likewise for locals "x", "last", "barrier",
2956 * config/ia64/ia64.c (last_scheduled_insn): Likewise for this
2958 (ia64_sched_init): Likewise for local "insn".
2959 (scheduled_good_insn): Likewise for param "last".
2960 (struct _ia64_sched_context): Likewise for field
2961 "last_scheduled_insn".
2962 (ia64_init_sched_context): Replace NULL_RTX with NULL.
2963 (struct bundle_state): Likewise for field "insn".
2964 (issue_nops_and_insn): Likewise for param "insn".
2965 (get_next_important_insn): Likewise for return type and both
2967 (ia64_add_bundle_selector_before): Likewise for param "insn".
2968 (bundling): Likewise for params "prev_head_insn", "tail" and
2969 locals "insn", "next_insn", "b". Eliminate top-level local rtx
2970 "nop" in favor of new locals rtx "nop_pat" and rtx_insn *nop;
2971 * config/iq2000/iq2000-protos.h (iq2000_fill_delay_slot):
2972 Strengthen final param from rtx to rtx_insn *.
2973 (iq2000_move_1word): Likewise for second param.
2974 * config/iq2000/iq2000.c (iq2000_fill_delay_slot): Likewise for
2975 param "cur_insn" and local "next_insn".
2976 (iq2000_move_1word): Likewise for param "insn".
2977 * config/iq2000/iq2000.md (insn before ADDR_DIFF_VEC): Add checked
2978 casts when using NEXT_INSN on operands[1].
2979 * config/m32c/m32c.c (m32c_function_needs_enter): Strengthen local
2980 "insn" from rtx to rtx_insn *.
2981 * config/m68k/m68k.c (m68k_jump_table_ref_p): Split out uses of
2982 "x", introducing local rtx_insn * "insn" for when working with the
2983 CODE_LABEL of the LABEL_REF.
2984 (m68k_sched_md_init_global): Strengthen local "insn" from rtx to
2986 * config/mcore/mcore-protos.h (mcore_is_dead): Likewise for first
2988 * config/mcore/mcore.c (emit_new_cond_insn): Likewise for return
2990 (conditionalize_block): Likewise for return type and param.
2991 (mcore_is_dead): Likewise for param "first" and local "insn".
2992 (emit_new_cond_insn): Likewise for return type.
2993 (conditionalize_block): Likewise for return type, param, and
2994 locals "insn", "blk_1_br", "end_blk_2_insn", "start_blk_3_lab",
2996 (conditionalize_optimization): Likewise for local "insn".
2997 * config/mep/mep.c (mep_jmp_return_reorg): Add checked cast when
2999 * config/microblaze/microblaze.md: Add checked casts when using
3001 * config/mips/mips.c (mips_expand_prologue): Eliminate top-level
3002 rtx "insn" in favor of various more tightly-scoped rtx "insn" and
3003 and rtx_insn * "insn".
3004 * config/mips/mips.md (casesi_internal_mips16_<mode>): Add a
3005 checked cast when using NEXT_INSN on operands[2].
3006 * config/mn10300/mn10300.c (mn10300_insert_setlb_lcc): Strengthen
3007 local "insn" from rtx to rtx_insn *.
3008 * config/nds32/nds32-fp-as-gp.c (nds32_fp_as_gp_check_available):
3010 * config/nds32/nds32-md-auxiliary.c (nds32_output_casesi_pc_relative):
3011 Add a checked cast when using NEXT_INSN on operands[1].
3012 * config/pa/pa-protos.h (pa_following_call): Strengthen param from
3014 (pa_output_cbranch): Likewise for final param.
3015 (pa_output_lbranch): Likewise for second param.
3016 (pa_output_bb): Likewise for third param.
3017 (pa_output_bvb): Likewise.
3018 (pa_output_dbra): Likewise for second param.
3019 (pa_output_movb): Likewise.
3020 (pa_output_parallel_movb): Likewise.
3021 (pa_output_parallel_addb): Likewise.
3022 (pa_output_millicode_call): Likewise for first param.
3023 (pa_output_mul_insn): Likewise for second param.
3024 (pa_output_div_insn): Likewise for third param.
3025 (pa_output_mod_insn): Likewise for second param.
3026 (pa_jump_in_call_delay): Likewise for param.
3027 * config/pa/pa.c (pa_output_mul_insn): Likewise for param "insn".
3028 (pa_output_div_insn): Likewise.
3029 (pa_output_mod_insn): Likewise.
3030 (pa_output_cbranch): Likewise.
3031 (pa_output_lbranch): Likewise.
3032 (pa_output_bb): Likewise.
3033 (pa_output_bvb): Likewise.
3034 (pa_output_dbra): Likewise.
3035 (pa_output_movb): Likewise.
3036 (pa_output_millicode_call): Likewise; use method of rtx_sequence *
3037 to simplify and for typesafety.
3038 (pa_output_call): Use method of rtx_sequence *.
3039 (forward_branch_p): Strengthen param "insn" from rtx to rtx_insn *.
3040 (pa_jump_in_call_delay): Likewise.
3041 (pa_output_parallel_movb): Likewise.
3042 (pa_output_parallel_addb): Likewise.
3043 (pa_following_call): Likewise.
3044 (pa_combine_instructions): Likewise for locals "anchor",
3046 (pa_can_combine_p): Likewise for params "anchor", "floater" and
3047 locals "start", "end".
3048 * config/picochip/picochip.c (picochip_reset_vliw): Likewise for
3049 param "insn" and local "local_insn".
3050 (picochip_final_prescan_insn): Likewise for local "local_insn".
3051 * config/rs6000/rs6000.c (compute_save_world_info): Likewise for
3053 (uses_TOC): Likewise.
3054 * config/s390/s390.c (get_some_local_dynamic_name): Likewise.
3055 (s390_mainpool_finish): Eliminate top-level local rtx "insn",
3056 splitting out to more tightly-scoped locals, 3 as rtx and one as
3058 (s390_optimize_nonescaping_tx): Strengthen local "tmp" from rtx
3060 (s390_emit_prologue): Introduce a local "insn" to be an rtx_insn *
3062 * config/sh/sh-protos.h (barrier_align): Strenghten param from rtx
3064 (fixup_addr_diff_vecs): Likewise.
3065 (reg_unused_after): Likewise for param 2.
3066 (sh_can_redirect_branch): Likewise for both params.
3067 (check_use_sfunc_addr): Likewise for param 1.
3068 * config/sh/sh.c (fixup_mova): Likewise for local "worker".
3069 (find_barrier): Likewise for local "last_got".
3070 (gen_block_redirect): Likewise for return type, param "jump" and
3071 locals "prev", "scan", "next", "insn".
3072 (struct far_branch): Likewise for fields "near_label",
3073 "insert_place", "far_label".
3074 (gen_far_branch): Likewise for local "jump".
3075 (fixup_addr_diff_vecs): Likewise for param "first" and locals
3077 (barrier_align): Likewise for param and for locals "prev", "x".
3078 Introduce local rtx_sequence * "prev_seq" and use insn method for
3079 typesafety and clarity.
3080 (sh_reorg): Strengthen local "scan" from rtx to rtx_insn *.
3081 (get_dest_uid): Likewise for local "dest".
3082 (split_branches): Likewise for locals "next", "beyond", "label",
3083 "block", "far_label". Add checked casts when assigning to
3084 bp->far_label and "far_label".
3085 (reg_unused_after): Strengthen param "scan" from rtx to rtx_insn *.
3086 (sequence_insn_p): Likewise.
3087 (mark_constant_pool_use): Likewise for locals "insn", "lab". Add a
3088 more loop-scoped rtx "insn" when walking LABEL_REFS.
3089 (sh_can_redirect_branch): Strengthen both params from rtx to
3091 (check_use_sfunc_addr): Likewise for param "insn". Introduce a
3092 new local rtx_sequence * "seq" via a dyn_cast, and use a method
3093 for clarity and typesafety.
3094 * config/sh/sh.md (define_expand "epilogue"): Strengthen local
3095 "insn" from rtx to rtx_insn *.
3096 (define_insn "casesi_worker_1"): Add a checked cast to rtx_insn *
3097 when using NEXT_INSN on the CODE_LABEL in operands[2].
3098 (define_insn "casesi_worker_2"): Likewise.
3099 (define_insn "casesi_shift_media"): Likewise.
3100 (define_insn "casesi_load_media"): Likewise for the CODE_LABEL in
3102 * config/sh/sh_optimize_sett_clrt.cc (struct ccreg_value):
3103 Strengthen field "insn" from rtx to rtx_insn *.
3104 (sh_optimize_sett_clrt::execute): Likewise for locals "next_i", "i".
3105 (sh_optimize_sett_clrt::find_last_ccreg_values): Likewise for
3106 param "start_insn" and local "start_insn".
3107 * config/sh/sh_treg_combine.cc (struct set_of_reg): Likewise for
3109 (find_set_of_reg_bb): Likewise for param "insn".
3110 (trace_reg_uses_1): Likewise for param "start_insn" and local "i".
3111 (trace_reg_uses): Likewise for param "start_insn".
3112 (sh_treg_combine::cbranch_trace): Likewise for field
3114 (sh_treg_combine::cbranch_trace::cbranch_trace): Likewise for
3116 (sh_treg_combine::record_set_of_reg): Likewise for param
3117 "start_insn" and local "i".
3118 (sh_treg_combine::can_remove_cstore): Likewise for local
3120 (sh_treg_combine::try_optimize_cbranch): Likewise for param
3122 (sh_treg_combine::execute): Likewise for local "i".
3123 * config/sparc/sparc-protos.h (empty_delay_slot): Likewise for
3125 (sparc_check_64): Likewise for second param.
3126 * config/sparc/sparc.c (sparc_do_work_around_errata): Likewise for
3127 locals "insn", "next". Introduce local rtx_sequence * "seq" via a
3128 dyn_cast, using its insn method for typesafety and clarity.
3129 (empty_delay_slot): Strengthen param "insn" from rtx to
3131 (set_extends): Likewise.
3132 (sparc_check_64): Likewise.
3133 * config/stormy16/stormy16.c (xstormy16_split_cbranch): Likewise
3134 for locals "seq", "last_insn".
3135 (combine_bnp): Likewise for param "insn".
3136 (xstormy16_reorg): Likewise for local "insn".
3137 * config/v850/v850.c (substitute_ep_register): Likewise for params
3138 "first_insn", "last_insn" and local "insn".
3139 (v850_reorg): Likewise for fields "first_insn", "last_insn" within
3140 elements of "regs" array, and local "insn".
3141 * except.c (emit_note_eh_region_end): Likewise for param "insn".
3142 * final.c (final_sequence): Strengthen this global from rtx to
3144 (shorten_branches): Strenthen locals "rel_lab", "prev" from rtx to
3146 (final_scan_insn): Update assignment to "final_sequence" to be
3147 from "seq", the cast version of "body", for type-safety.
3148 * function.c (assign_parm_setup_reg): Strengthen locals "insn",
3149 "insns" from rtx to rtx_insn *.
3150 (thread_prologue_and_epilogue_insns): Likewise for local "seq".
3151 * genattr.c (main): When writing out generated insn-attr.h,
3152 strengthen params 1 and 3 of eligible_for_delay,
3153 eligible_for_annul_true, eligible_for_annul_false from rtx to
3155 * genattrtab.c (write_eligible_delay): Likewise when writing out
3156 generated insn-attrtab.c; also local "insn" the generated
3158 * hw-doloop.c (discover_loops): Strengthen local "insn" from rtx
3160 * hw-doloop.h (struct GTY hwloop_info_d): Strengthen field
3161 "start_label" from rtx to rtx_insn *.
3162 * ira.c (decrease_live_ranges_number): Likewise for local "p".
3163 (ira_update_equiv_info_by_shuffle_insn): Likewise for param
3164 "insns" and local "insn".
3165 (validate_equiv_mem): Likewise for param "start" and local "insn".
3166 (memref_used_between_p): Likewise for params "start", "end" and
3168 * ira.h (ira_update_equiv_info_by_shuffle_insn): Likewise for
3170 * loop-doloop.c (doloop_optimize): Within region guarded by
3171 INSN_P (doloop_pat), introduce a new local rtx_insn *
3172 "doloop_insn" via a checked cast, and use it for typesafety,
3173 eventually writing the value back into doloop_pat.
3174 * output.h (final_sequence): Strengthen this global from rtx to
3176 * recog.c (peep2_attempt): Rename param "insn" to "uncast_insn",
3177 reintroducing "insn" as an rtx_insn * via a checked cast.
3178 Strengthen param "attempt" and local "new_insn"from rtx to
3180 (peephole2_optimize): Strengthen locals "insn", "attempt" from rtx
3182 * ree.c (emit_note_eh_region_end): Likewise for local "insn".
3183 * reload1.c (reload_as_needed): Eliminate top-level locals "x" and
3184 "p" in favor of more tightly-scoped replacements, sometimes rtx
3185 and sometimes rtx_insn *, as appropriate.
3186 (delete_output_reload): Eliminate top-level rtx "i1", splitting
3187 into two loop-scoped locals, one an rtx, the other an rtx_insn *.
3188 * reorg.c (delete_scheduled_jump): Add checked cast. Strengthen
3189 local "trial" from rtx to rtx_insn *.
3190 (redirect_with_delay_slots_safe_p): Strengthen param "jump" from
3191 rtx to rtx_insn *. Strenghten local "pat" from rtx to
3192 rtx_sequence * and use methods for clarity and typesafety.
3193 (redirect_with_delay_list_safe_p): Strengthen param "jump" from
3194 rtx to rtx_insn *. Strenghten local "li" from rtx to
3195 rtx_insn_list * and use its methods for clarity and typesafety.
3196 (steal_delay_list_from_target): Strengthen param "insn" from rtx
3198 (steal_delay_list_from_fallthrough): Likewise.
3199 (try_merge_delay_insns): Likewise for param "thread" and locals
3200 "trial", "next_trial", "delay_insn".
3201 (redundant_insn): Likewise for param "target" and local "trial".
3202 (own_thread_p): Likewise for param "thread" and locals
3203 "active_insn", "insn".
3204 (get_label_before): Likewise for param "insn".
3205 (fill_simple_delay_slots): Likewise for local "new_label"; use
3206 JUMP_LABEL_AS_INSN as necessary when calling own_thread_p.
3207 (label_before_next_insn): Strengthen return type and local "insn"
3208 from rtx to rtx_insn *.
3209 (relax_delay_slots): Likewise for locals "other", "tmp".
3210 (make_return_insns): Likewise for param "first" and locals "insn",
3211 "jump_insn", "prev". Move declaration of "pat" to its assignment
3212 and strengthen from rtx to rtx_sequence *. Use its methods for
3213 clarity and typesafety.
3214 * rtlanal.c (no_labels_between_p): Strengthen params from
3215 const_rtx to const rtx_insn *. Strengthen local "p" from rtx to
3217 (reg_used_between_p): Strengthen params "from_insn", "to_insn"
3218 from const_rtx to const rtx_insn *.
3219 (reg_set_between_p): Rename param "from_insn" to
3220 "uncast_from_insn", and reintroduce "from_insn" as a
3221 const rtx_insn * via a checked cast.
3222 (modified_between_p): Likewise for param "start" as "uncast_start".
3223 (tablejump_p): Add a cast when invoking NEXT_INSN on "label".
3224 * sel-sched-ir.c (get_seqno_by_preds): Strengthen param and locals
3225 "tmp", head" from rtx to rtx_insn *.
3226 (recompute_rev_top_order): Likewise for local "insn".
3227 * sel-sched-ir.h (get_seqno_by_preds): Likewise for param.
3228 * store-motion.c (build_store_vectors): Likewise for local "insn".
3229 Strengthen local "st" from rtx to rtx_insn_list * and use methods
3230 for clarity and typesafety.
3231 * tree-ssa-loop-ivopts.c (seq_cost): Strengthen param "seq" from
3233 (computation_cost): Likewise for local "seq".
3234 (get_address_cost): Likewise.
3236 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3238 * rtl.h (tablejump_p): Strengthen first param from const_rtx to
3240 (label_is_jump_target_p): Likewise for second param.
3242 * rtlanal.c (tablejump_p): Likewise for param "insn".
3243 (label_is_jump_target_p): Likewise for param "jump_insn".
3245 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3247 * rtl.h (find_first_parameter_load): Strengthen return type and
3248 both params from rtx to rtx_insn *.
3249 * rtlanal.c (find_first_parameter_load): Strengthen return type,
3250 both params and locals "before", "first_set" from rtx to
3251 rtx_insn *. Remove now-redundant cast.
3252 * except.c (sjlj_mark_call_sites): Use NULL rather than NULL_RTX.
3254 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3256 * rtl.h (find_last_value): Delete.
3257 * rtlanal.c (find_last_value): Delete.
3259 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3261 * cfgexpand.c (pass_expand::execute): Strengthen local "after"
3262 from rtx to rtx_insn *.
3263 * cfgrtl.c (force_nonfallthru_and_redirect): Replace use of local
3264 rtx "note" with new local rtx_insn * "new_head" when calculating
3265 head insn of new basic block.
3266 * combine.c (combine_split_insns): Strengthen return type and local
3267 "ret" from rtx to rtx_insn *.
3268 (likely_spilled_retval_p): Likewise for locals "use" and "p".
3269 (try_combine): Eliminate local "m_split", splitting into new
3270 locals "m_split_insn" and "m_split_pat".
3271 (find_split_point): Strengthen local "seq" from rtx into
3273 * config/spu/spu.c (spu_machine_dependent_reorg): Likewise for
3274 locals "label", "branch".
3275 * config/spu/spu.md (define_expand "smulsi3_highpart"): Likewise
3277 (define_expand "umulsi3_highpart"): Likewise for local "insn".
3278 * dse.c (note_add_store_info): Likewise for fields "first",
3280 (note_add_store): Likewise for local "insn".
3281 (emit_inc_dec_insn_before): Likewise for locals "insn",
3283 (find_shift_sequence): Likewise for locals "shift_seq", "insn".
3284 (replace_read): Likewise for locals "insns", "this_insn".
3285 * dwarf2cfi.c (dw_trace_info): Likewise for field "eh_head".
3286 (notice_eh_throw): Likewise for param "insn".
3287 (before_next_cfi_note): Likewise for return type, param, and local
3289 (connect_traces): Likewise for local "note".
3290 * emit-rtl.c (reset_all_used_flags): Likewise for local "p".
3291 (verify_rtl_sharing): Likewise.
3292 (unshare_all_rtl_in_chain): Likewise for param "insn".
3293 (get_first_nonnote_insn): Likewise for local "insn".
3294 (get_last_nonnote_insn): Likewise. Introduce local rtx_sequence *
3295 "seq" and use its methods to clarify things.
3296 (next_insn): Strengthen return type from rtx to rtx_insn *.
3297 Rename param "insn" to "uncast_insn" and reintroduce "insn" as a
3298 local rtx_insn * using a checked cast, dropping a checked cast
3299 made redundant by this change. Use a cast to and method of
3300 rtx_sequence to clarify the code.
3301 (previous_insn): Rename param "insn" to "uncast_insn" and
3302 reintroduce "insn" as a local rtx_insn * using a checked cast,
3303 dropping a checked cast made redundant by this change. Use a cast
3304 to and method of rtx_sequence to clarify the code.
3305 (next_nonnote_insn): Rename param "insn" to "uncast_insn" and
3306 reintroduce "insn" as a local rtx_insn * using a checked cast,
3307 dropping a checked cast made redundant by this change.
3308 (next_nonnote_insn_bb): Likewise.
3309 (prev_nonnote_insn): Likewise.
3310 (prev_nonnote_insn_bb): Likewise.
3311 (next_nondebug_insn): Likewise.
3312 (prev_nondebug_insn): Likewise.
3313 (next_nonnote_nondebug_insn): Likewise.
3314 (prev_nonnote_nondebug_insn): Likewise.
3315 (next_real_insn): Likewise.
3316 (prev_real_insn): Likewise.
3317 (next_active_insn): Likewise.
3318 (prev_active_insn): Likewise.
3319 (next_cc0_user): Likewise. Use rtx_sequence and a method for
3321 (prev_cc0_setter): Likewise.
3322 (try_split): Rename param "trial" to "uncast_trial" and
3323 reintroduce "insn" as a local rtx_insn * using a checked cast,
3324 dropping checked casts made redundant by this change.
3325 Strengthen locals "seq", "tem", "insn_last", "insn", "next" from
3327 (remove_insn): Rename param "insn" to "uncast_insn" and
3328 reintroduce "insn" as a local rtx_insn * using a checked cast.
3329 (emit_pattern_after_setloc): Likewise for param "after", as
3331 (emit_pattern_after): Likewise. Strengthen local "prev" from
3333 (emit_pattern_before_setloc): Rename param "before" to
3334 "uncast_before" and reintroduce "before" as a local rtx_insn *
3335 using a checked cast. Strengthen locals "first", "last" from
3337 (emit_pattern_before): Likewise rename/cast param "before" to
3338 "uncast_before". Strengthen local "next" from rtx to rtx_insn *.
3339 * except.c (copy_reg_eh_region_note_forward): Strengthen param
3340 "first" and local "insn" from rtx to rtx_insn *.
3341 (copy_reg_eh_region_note_backward): Likewise for param "last"
3343 * expr.c (fixup_args_size_notes): Rename param "last" to
3344 "uncast_last" and reintroduce "last" as a local rtx_insn *
3345 using a checked cast. Strengthen local "insn" from rtx to
3347 * function.c (set_insn_locations): Strengthen param "insn" from
3349 (record_insns): Likewise for param "insns" and local "tmp".
3350 (active_insn_between): Rename param "tail" to
3351 "uncast_tail" and reintroduce "tail" as a local rtx_insn *
3352 using a checked cast.
3353 (thread_prologue_and_epilogue_insns): Split out top-level local
3354 rtx "seq" into three different rtx_insn * locals. Strengthen
3355 local "prologue_seq" from rtx to rtx_insn *.
3356 * gcse.c (insert_insn_end_basic_block): Strenghen local "insn"
3357 from rtx to rtx_insn *.
3358 * haifa-sched.c (initiate_bb_reg_pressure_info): Likewise.
3359 (priority): Likewise for locals "prev_first", "twin".
3360 (setup_insn_max_reg_pressure): Likewise for param "after".
3361 (sched_setup_bb_reg_pressure_info): Likewise.
3362 (no_real_insns_p): Strengthen params from const_rtx to
3364 (schedule_block): Strengthen local "next_tail" from rtx to
3366 * ifcvt.c (find_active_insn_before): Strengthen return type and
3367 param "insn" from rtx to rtx_insn *.
3368 (find_active_insn_after): Likewise.
3369 (cond_exec_process_insns): Likewise for param "start" and local "insn".
3370 (cond_exec_process_if_block): Likewise for locals "then_start",
3371 "then_end", "else_start", "else_end", "insn", "start", "end", "from".
3372 (noce_process_if_block): Likewise for local "jump".
3373 (merge_if_block): Likewise for two locals named "end".
3374 (cond_exec_find_if_block): Likewise for local "last_insn".
3375 * jump.c (delete_related_insns): Rename param "insn" to
3376 "uncast_insn" and reintroduce "insn" as a local rtx_insn * using a
3377 checked cast. Strengthen local "p" from rtx to rtx_insn *.
3378 * lra-constraints.c (inherit_reload_reg): Replace NULL_RTX with
3380 (split_reg): Likewise.
3381 * lra.c (lra_process_new_insns): Likewise.
3382 * modulo-sched.c (permute_partial_schedule): Strengthen param
3383 "last" from rtx to rtx_insn *.
3384 * optabs.c (add_equal_note): Likewise for param "insns" and local
3386 (expand_binop_directly): Add checked casts to rtx_insn * within
3387 NEXT_INSN (pat) uses.
3388 (expand_unop_direct): Likewise.
3389 (maybe_emit_unop_insn): Likewise.
3390 * recog.c (peep2_attempt): Strengthen locals "last",
3391 "before_try", "x" from rtx to rtx_insn *.
3392 * reorg.c (optimize_skip): Strengthen return type and local
3393 "delay_list" from rtx to rtx_insn_list *. Strengthen param "insn"
3394 and locals "trial", "next_trial" from rtx to rtx_insn *.
3395 * resource.c (next_insn_no_annul): Strengthen return type and
3396 param "insn" from rtx to rtx_insn *. Use a cast to and method of
3397 rtx_sequence to clarify the code.
3398 (mark_referenced_resources): Add a checked cast to rtx_insn *
3399 within PREV_INSN (x).
3400 (find_dead_or_set_registers): Strengthen return type, param
3401 "target", locals "insn", "next", "jump_insn", "this_jump_insn"
3402 from rtx to rtx_insn *. Strengthen param "jump_target" from rtx *
3404 (mark_target_live_regs): Strengthen params "insns" and "target",
3405 locals "insn", "jump_target", "start_insn", "stop_insn" from rtx
3406 to rtx_insn *. Use cast to and method of rtx_sequence to clarify
3408 * resource.h (mark_target_live_regs): Strengthen params 1 and 2
3409 from rtx to rtx_insn *.
3410 * rtl.h (copy_reg_eh_region_note_forward): Strengthen second param
3411 from rtx to rtx_insn *.
3412 (copy_reg_eh_region_note_backward): Likewise.
3413 (unshare_all_rtl_in_chain): Likewise for sole param.
3414 (dump_rtl_slim): Strengthen second and third params from const_rtx
3415 to const rtx_insn *.
3416 * sched-deps.c (sched_free_deps): Strengthen params "head" and
3417 "tail" and locals "insn", "next_tail" from rtx to rtx_insn *.
3418 * sched-ebb.c (init_ready_list): Strengthen locals "prev_head",
3419 "next_tail" from rtx to rtx_insn *.
3420 (begin_move_insn): Likewise for local "next".
3421 * sched-int.h (sched_free_deps): Likewise for first and second
3423 (no_real_insns_p): Strengthen both params from const_rtx to
3425 (sched_setup_bb_reg_pressure_info): Strengthen second params from
3427 * sched-rgn.c (init_ready_list): Likewise for locals "prev_head",
3429 * sched-vis.c (dump_rtl_slim): Strengthen params "first", "last"
3430 and locals "insn", "tail" from const_rtx to const rtx_insn *.
3431 (rtl_dump_bb_for_graph): Strengthen local "insn" from rtx to
3433 (debug_rtl_slim): Strengthen params "first" and "last" from
3434 const_rtx to const rtx_insn *.
3435 * shrink-wrap.c (try_shrink_wrapping): Strengthen param
3436 "prologue_seq" and locals "seq", "p_insn" from rtx to rtx_insn *.
3437 (convert_to_simple_return): Likewise for param "returnjump".
3438 * shrink-wrap.h (try_shrink_wrapping): Likewise for param
3440 (convert_to_simple_return): Likewise for param "returnjump".
3441 * valtrack.c (propagate_for_debug): Likewise for params
3443 * valtrack.h (propagate_for_debug): Likewise for second param.
3445 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3447 * output.h (insn_current_reference_address): Strengthen param
3448 from rtx to rtx_insn *.
3449 * final.c (insn_current_reference_address): Likewise.
3451 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3453 * basic-block.h (inside_basic_block_p): Strengthen param from
3454 const_rtx to const rtx_insn *.
3455 * cfgbuild.c (inside_basic_block_p): Likewise.
3457 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3459 * dwarf2cfi.c (dw_trace_info): Strengthen field "head" from rtx to
3461 (get_trace_info): Likewise for param "insn".
3462 (save_point_p): Likewise.
3463 (maybe_record_trace_start): Likewise for both params.
3464 (maybe_record_trace_start_abnormal): Likewise.
3465 (create_trace_edges): Likewise for sole param and for three of the
3467 (scan_trace): Strengthen local "prev", "insn", "control" from rtx
3468 to rtx_insn *, and update a call to pat->element to pat->insn.
3470 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3472 * function.h (struct expr_status): Convert field "x_forced_labels"
3473 from rtx_expr_list * to rtx_insn_list *.
3475 * cfgbuild.c (make_edges): Convert local "x" from an
3476 rtx_expr_list * to an rtx_insn_list *, replacing use of
3477 "element" method with "insn" method.
3478 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3479 * except.c (sjlj_emit_dispatch_table): Replace use of
3480 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending to
3482 * jump.c (rebuild_jump_labels_1): Convert local "insn" from an
3483 rtx_expr_list * to an rtx_insn_list *, replacing use of
3484 "element" method with "insn" method.
3485 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3486 * stmt.c (label_rtx): Strengthen local "ref" from rtx to
3487 rtx_insn *, adding a checked cast. Replace use of
3488 gen_rtx_EXPR_LIST with gen_rtx_INSN_LIST when prepending it to
3490 (expand_label): Likewise for local "label_r".
3492 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3494 * function.h (struct rtl_data): Convert field
3495 "x_nonlocal_goto_handler_labels" from rtx_expr_list * to
3497 * rtl.h (remove_node_from_insn_list): New prototype.
3499 * builtins.c (expand_builtin): When prepending to
3500 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3502 * cfgbuild.c (make_edges): Convert local "x" from rtx_expr_list *
3503 to rtx_insn_list *, and use its "insn" method rather than
3505 * cfgrtl.c (delete_insn): Use new function
3506 remove_node_from_insn_list rather than
3507 remove_node_from_expr_list.
3508 (cfg_layout_initialize): Convert local "x" from rtx_expr_list *
3509 to rtx_insn_list *, and use its "insn" method rather than
3511 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
3512 * reload1.c (set_initial_label_offsets): Likewise for local "x".
3513 * rtlanal.c (remove_node_from_insn_list): New function, adapted
3514 from remove_node_from_expr_list.
3515 * stmt.c (expand_label): When prepending to
3516 nonlocal_goto_handler_labels, use gen_rtx_INSN_LIST rather than
3519 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3521 * function.h (struct rtl_data): Strengthen fields "x_return_label"
3522 and "x_naked_return_label" from rtx to rtx_code_label *.
3524 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3526 * rtl.h (SET_PREV_INSN): Strengthen param from rtx to rtx_insn *.
3527 (SET_NEXT_INSN): Likewise.
3528 (gen_rtvec_v): Add an overload for param types (int, rtx_insn **).
3530 * config/c6x/c6x.c (gen_one_bundle): Strengthen param "slot" from
3531 rtx * to rtx_insn **. Introduce a new local rtx "seq", using it
3532 to split out the SEQUENCE from local "bundle", strengthening the
3533 latter from rtx to rtx_insn * to hold the insn holding the SEQUENCE.
3534 Strengthen locals "t" and "insn" from rtx to rtx_insn *.
3535 (c6x_gen_bundles): Strengthen locals "insn", "next", "last_call"
3536 and the type of the elements of the "slot" array from rtx to
3538 (reorg_split_calls): Likewise for locals "insn" and "next", and
3539 the type of the elements of the "slot" array.
3541 * config/frv/frv.c (frv_nops): Likewise for the elements of this
3543 (frv_function_prologue): Likewise for locals "insn", "next",
3545 (frv_register_nop): Introduce a local "nop_insn" to be the
3546 rtx_insn * containing rtx "nop".
3548 * config/mep/mep.c (mep_make_bundle): Param "core" is sometimes
3549 used as an insn and sometimes as a pattern, so rename it to
3550 "core_insn_or_pat", and introduce local rtx_insn * "core_insn",
3551 using it where dealing with the core insn.
3553 * config/picochip/picochip.c (reorder_var_tracking_notes):
3554 Strengthen locals "insn", "next", "last_insn", "queue",
3555 "next_queue", "prev" from rtx to rtx_insn *.
3557 * emit-rtl.c (gen_rtvec_v): Add overloaded implementation for when
3558 the second param is an rtx_insn ** rather than an rtx **.
3559 (link_insn_into_chain): Strengthen locals "seq" and "sequence"
3560 from rtx to rtx_sequence *, and introduce local named "sequence",
3561 using methods of rtx_sequence to clarify the code.
3562 (remove_insn): Introduce local rtx_sequence * named "sequence" and
3564 (emit_insn_after_1): Strengthen return type from rtx to rtx_insn *.
3565 Rename param "after" to "uncast_after", reintroducing "after" as a
3566 local rtx_insn * with a checked cast.
3567 (emit_pattern_after_noloc): Rename param "after" to "uncast_after",
3568 reintroducing "after" as a local rtx_insn * with a checked cast.
3569 Strengthen local "last" from rtx to rtx_insn * and remove the
3570 now-redundant checked casts.
3571 (copy_delay_slot_insn): Strengthen return type and param from rtx
3574 * haifa-sched.c (reemit_notes): Strengthen params "insn" and
3575 "last" from rtx to rtx_insn *.
3577 2014-08-28 David Malcolm <dmalcolm@redhat.com>
3579 * emit-rtl.h (copy_delay_slot_insn): Strengthen return type and
3580 param from rtx to rtx_insn *.
3582 * emit-rtl.c (copy_delay_slot_insn): Likewise.
3584 * reorg.c (skip_consecutive_labels): Strengthen return type, param
3585 and local "insn" from rtx to rtx_insn *.
3586 (unfilled_slots_base): Strengthen type from rtx * to rtx_insn **.
3587 (unfilled_slots_next): Likewise.
3588 (function_return_label): Strengthen from rtx to rtx_code_label *.
3589 (function_simple_return_label): Likewise.
3590 (first_active_target_insn): Strengthen return type and param from
3592 (find_end_label): Strengthen return type from rtx to
3593 rtx_code_label *; strengthen locals as appropriate.
3594 (emit_delay_sequence): Strengthen return type, param "insn" and
3595 local "seq_insn" from rtx to rtx_insn *. Strengthen param "list"
3596 and local "li" from rtx to rtx_insn_list *, using methods of
3597 rtx_insn_list for clarity and typesafety.
3598 (add_to_delay_list): Strengthen return type and param "insn" from
3599 rtx to rtx_insn *. Strengthen param "delay_list" from rtx to
3600 rtx_insn_list * and use methods of rtx_insn_list.
3601 (delete_from_delay_slot): Strengthen return type, param "insn",
3602 locals "trial", "seq_insn", "prev" from rtx to rtx_insn *.
3603 Strengthen local "seq" from rtx to rtx_sequence *, and local
3604 "delay_list" from rtx to rtx_insn_list *, using methods of
3605 rtx_sequence for clarity and type-safety.
3606 (delete_scheduled_jump): Add checked cast when invoking
3607 delete_from_delay_slot. Strengthen local "trial" from rtx to
3609 (optimize_skip): Strengthen return type and local "delay_list"
3610 from rtx to rtx_insn_list *. Strengthen local "trial" from rtx to
3612 (steal_delay_list_from_target): Strengthen return type, param
3613 "delay_list" and local "new_delay_list" from rtx to
3614 rtx_insn_list *. Strengthen param "seq" from rtx to
3615 rtx_sequence *. Strengthen param "pnew_thread" from rtx * to
3617 Split out local "temp" into multiple more-tightly scoped locals:
3618 sometimes an rtx_insn_list *, and once a rtx_insn *. Use methods
3619 of rtx_insn_list and rtx_sequence for clarity and typesafety.
3620 Strengthen locals named "trial" from rtx to rtx_insn *.
3621 (steal_delay_list_from_fallthrough): Strengthen return type and
3622 param "delay_list" from rtx to rtx_insn_list *. Strengthen param
3623 "seq" from rtx to rtx_sequence *. Use methods of rtx_sequence.
3624 Strengthen local "trial" from rtx to rtx_insn *.
3625 (try_merge_delay_insns): Strength local "merged_insns" from rtx
3626 to rtx_insn_list * and use its methods. Strengthen local "pat"
3627 from rtx to rtx_sequence * and use its methods. Strengthen locals
3628 "dtrial" and "new_rtx" from rtx to rtx_insn *.
3629 (get_label_before): Strengthen return type and local "label" from
3631 (fill_simple_delay_slots): Likewise for locals "insn", "trial",
3632 "next_trial", "next", prev". Strengthen local "delay_list" from
3633 rtx to rtx_insn_list * Strengthen local "tmp" from rtx * to
3635 (follow_jumps): Strengthen return type, param "label" and locals
3636 "insn", "next", "value", "this_label" from rtx to rtx_insn *.
3637 (fill_slots_from_thread): Strengthen return type, param
3638 "delay_list" from rtx to rtx_insn_list *. Strengthen params
3639 "insn", "thread", "opposite_thread" and locals "new_thread",
3640 "trial", "temp", "ninsn" from rtx to rtx_insn *. Introduce local
3641 "sequence" from a checked cast to rtx_sequence so that we can call
3642 steal_delay_list_from_target and steal_delay_list_from_fallthrough
3643 with an rtx_sequence *.
3644 (fill_eager_delay_slots): Strengthen locals "insn", "target_label",
3645 "insn_at_target", "fallthrough_insn" from rtx to rtx_insn *.
3646 Strengthen local "delay_list" from rtx to rtx_insn_list *.
3647 (relax_delay_slots): Strengthen param "first" and locals "insn",
3648 "next", "trial", "delay_insn", "target_label" from rtx to
3649 rtx_insn *. Strengthen local "pat" from rtx to rtx_sequence *.
3650 Introduce a local "trial_seq" for PATTERN (trial) of type
3651 rtx_sequence *, in both cases using methods of rtx_sequence.
3652 (dbr_schedule): Strengthen param "first" and locals "insn",
3653 "next", "epilogue_insn" from rtx to rtx_insn *.
3655 2014-08-28 Richard Biener <rguenther@suse.de>
3657 PR tree-optimization/62283
3658 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
3659 Do not peel loops for alignment where the vector loop likely
3660 doesn't run at least VF times.
3662 2014-08-28 Bin Cheng <bin.cheng@arm.com>
3664 * tree-ssa-loop-ivopts.c (iv_ca_add_use): Delete parameter
3665 important_candidates. Consider all important candidates if
3666 IVS doesn't give any result. Remove check on ivs->upto.
3667 (try_add_cand_for): Call iv_ca_add_use only once.
3669 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3670 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3671 Anna Tikhonova <anna.tikhonova@intel.com>
3672 Ilya Tocar <ilya.tocar@intel.com>
3673 Andrey Turetskiy <andrey.turetskiy@intel.com>
3674 Ilya Verbin <ilya.verbin@intel.com>
3675 Kirill Yukhin <kirill.yukhin@intel.com>
3676 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3678 (define_mode_iterator VI12_AVX2): Add V64QI and V32HI modes.
3679 (define_expand "<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Add
3681 (define_insn "*<sse2_avx2>_<plusminus_insn><mode>3<mask_name>"): Ditto.
3682 (define_expand "<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3683 (define_insn "*<sse2_avx2>_uavg<mode>3<mask_name>"): Ditto.
3684 (define_insn "*mul<mode>3"): Add EVEX version.
3686 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3687 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3688 Anna Tikhonova <anna.tikhonova@intel.com>
3689 Ilya Tocar <ilya.tocar@intel.com>
3690 Andrey Turetskiy <andrey.turetskiy@intel.com>
3691 Ilya Verbin <ilya.verbin@intel.com>
3692 Kirill Yukhin <kirill.yukhin@intel.com>
3693 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3695 * config/i386/sse.md
3696 (define_insn "avx512bw_interleave_highv64qi<mask_name>"): New.
3697 (define_insn "avx2_interleave_highv32qi<mask_name>"): Add masking.
3698 (define_insn "vec_interleave_highv16qi<mask_name>"): Ditto.
3699 (define_insn "avx2_interleave_lowv32qi<mask_name>"): Ditto.
3700 (define_insn "vec_interleave_lowv16qi<mask_name>"): Ditto.
3701 (define_insn "avx2_interleave_highv16hi<mask_name>"): Ditto.
3702 (define_insn "vec_interleave_highv8hi<mask_name>"): Ditto.
3703 (define_insn "avx2_interleave_lowv16hi<mask_name>"): Ditto.
3704 (define_insn "vec_interleave_lowv8hi<mask_name>"): Ditto.
3705 (define_insn "avx2_interleave_highv8si<mask_name>"): Ditto.
3706 (define_insn "vec_interleave_highv4si<mask_name>"): Ditto.
3707 (define_insn "avx2_interleave_lowv8si<mask_name>"): Ditto.
3708 (define_insn "vec_interleave_lowv4si<mask_name>"): Ditto.
3709 (define_insn "vec_interleave_highv16qi<mask_name>"): New.
3710 (define_insn "avx512bw_interleave_highv32hi<mask_name>"): Ditto.
3711 (define_insn "<mask_codefor>avx512bw_interleave_lowv32hi<mask_name>"): Ditto.
3713 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3714 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3715 Anna Tikhonova <anna.tikhonova@intel.com>
3716 Ilya Tocar <ilya.tocar@intel.com>
3717 Andrey Turetskiy <andrey.turetskiy@intel.com>
3718 Ilya Verbin <ilya.verbin@intel.com>
3719 Kirill Yukhin <kirill.yukhin@intel.com>
3720 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3722 * config/i386/sse.md
3723 (define_mode_iterator VIMAX_AVX2): Add V4TI mode.
3724 (define_insn "<sse2_avx2>_ashl<mode>3"): Add EVEX version.
3725 (define_insn "<sse2_avx2>_lshr<mode>3"): Ditto.
3727 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3728 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3729 Anna Tikhonova <anna.tikhonova@intel.com>
3730 Ilya Tocar <ilya.tocar@intel.com>
3731 Andrey Turetskiy <andrey.turetskiy@intel.com>
3732 Ilya Verbin <ilya.verbin@intel.com>
3733 Kirill Yukhin <kirill.yukhin@intel.com>
3734 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3736 * config/i386/sse.md
3737 (define_mode_iterator VI128_256): New.
3738 (define_insn "<mask_codefor><code><mode>3<mask_name>"): Ditto.
3740 2014-08-28 Alexander Ivchenko <alexander.ivchenko@intel.com>
3741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
3742 Anna Tikhonova <anna.tikhonova@intel.com>
3743 Ilya Tocar <ilya.tocar@intel.com>
3744 Andrey Turetskiy <andrey.turetskiy@intel.com>
3745 Ilya Verbin <ilya.verbin@intel.com>
3746 Kirill Yukhin <kirill.yukhin@intel.com>
3747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
3749 * config/i386/sse.md
3750 (define_mode_iterator VI8_256_512): New.
3751 (define_insn "<mask_codefor>avx512dq_cvtps2qq<mode><mask_name><round_name>"):
3753 (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
3754 (define_insn "<mask_codefor>avx512dq_cvtps2uqq<mode><mask_name><round_name>"):
3756 (define_insn "<mask_codefor>avx512dq_cvtps2uqqv2di<mask_name>"): Ditto.
3758 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3760 * varasm.c (compute_reloc_for_rtx_1): Take a const_rtx. Remove the
3761 pointer to the cumulative reloc value and return the value for
3763 (compute_reloc_for_rtx): Take a const_rtx. Call
3764 compute_reloc_for_rtx_1 directly for SYMBOL_REF and LABEL_REF,
3765 avoiding any recursion. Use FOR_EACH_SUBRTX rather than
3766 for_each_rtx for the CONST case.
3768 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3770 * varasm.c (mark_constant): Replace this for_each_rtx callback with...
3771 (mark_constants_in_pattern): ...this new function to iterate over
3773 (mark_constants): Update accordingly.
3775 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3777 * varasm.c: Include rtl-iter.h.
3778 (const_rtx_hash_1): Take a const_rtx rather than an rtx *.
3779 Remove the pointer to the cumulative hashval_t and just return
3780 the hash for this rtx instead. Remove recursive CONST_VECTOR case.
3781 (const_rtx_hash): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3782 Accumulate the hashval_ts here instead of const_rtx_hash_1.
3784 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3786 * var-tracking.c (add_uses): Take an rtx rather than an rtx *.
3787 Give real type of data parameter. Remove return value.
3788 (add_uses_1): Use FOR_EACH_SUBRTX_VAR rather than for_each_rtx
3789 to iterate over subrtxes.
3791 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3793 * var-tracking.c (use_narrower_mode_test): Turn from being a
3794 for_each_rtx callback to being a function that examines each
3796 (adjust_mems): Update accordingly.
3798 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3800 * var-tracking.c (non_suitable_const): Turn from being a for_each_rtx
3801 callback to being a function that examines each subrtx itself.
3802 Remove handling of null rtxes.
3803 (add_uses): Update accordingly.
3805 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3807 * var-tracking.c: Include rtl-iter.h.
3808 (rtx_debug_expr_p): Turn from being a for_each_rtx callback
3809 to being a function that examines each subrtx itself.
3810 (use_type): Update accordingly.
3812 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3814 * store-motion.c: Include rtl-iter.h.
3815 (extract_mentioned_regs_1): Delete.
3816 (extract_mentioned_regs): Use FOR_EACH_SUBRTX_VAR rather than
3817 for_each_rtx to iterate over subrtxes.
3819 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3821 * sel-sched.c: Include rtl-iter.h
3822 (count_occurrences_1): Delete.
3823 (count_occurrences_equiv): Turn rtxes into const_rtxes.
3824 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3826 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3828 * rtl.h (tls_referenced_p): Take a const_rtx rather than an rtx.
3829 * rtlanal.c (tls_referenced_p_1): Delete.
3830 (tls_referenced_p): Take a const_rtx rather than an rtx.
3831 Use FOR_EACH_SUBRTX rather than for_each_rtx.
3833 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3835 * rtl.h (for_each_inc_dec_fn): Remove special case for -1.
3836 (for_each_inc_dec): Take an rtx rather than an rtx *.
3837 * cselib.c (cselib_record_autoinc_cb): Update accordingly.
3838 (cselib_record_sets): Likewise.
3839 * dse.c (emit_inc_dec_insn_before, check_for_inc_dec_1)
3840 (check_for_inc_dec): Likewise.
3841 * rtlanal.c (for_each_inc_dec_ops): Delete.
3842 (for_each_inc_dec_find_inc_dec): Take the MEM as argument,
3843 rather than a pointer to the memory address. Replace
3844 for_each_inc_dec_ops argument with separate function and data
3845 arguments. Abort on non-autoinc addresses.
3846 (for_each_inc_dec_find_mem): Delete.
3847 (for_each_inc_dec): Take an rtx rather than an rtx *. Use
3848 FOR_EACH_SUBRTX_VAR to visit every autoinc MEM.
3850 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3852 * rtl.h (find_all_hard_regs): Declare.
3853 * rtlanal.c (find_all_hard_regs): New function.
3854 (record_hard_reg_uses_1): Delete.
3855 (record_hard_reg_uses): Use find_all_hard_regs.
3857 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3859 * rtl.h (replace_label_data): Delete.
3860 (replace_label): Take the old label, new label and update-nuses flag
3861 as direct arguments. Return void.
3862 * cfgcleanup.c (outgoing_edges_match): Update accordingly.
3863 * rtlanal.c (replace_label): Update interface as above. Handle
3864 JUMP_TABLE_DATA as a special case. Handle JUMPs outside the
3865 iterator. Use FOR_EACH_SUBRTX_PTR.
3867 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3869 * rtl.h (get_pool_constant, rtx_referenced_p): Replace rtx parameters
3870 with const_rtx parameters.
3871 * varasm.c (get_pool_constant): Likewise.
3872 * rtlanal.c (rtx_referenced_p_1): Delete.
3873 (rtx_referenced_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3874 Assert that the rtx we're looking for is nonnull. Allow searches
3875 for constant pool SYMBOL_REFs.
3877 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3879 * reload1.c: Include rtl-iter.h.
3880 (note_reg_elim_costly): Turn from being a for_each_rtx callback
3881 to being a function that examines each subrtx itself.
3882 (eliminate_regs_1, elimination_costs_in_insn): Update accordingly.
3884 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3886 * regcprop.c (cprop_find_used_regs_1): Delete.
3887 (cprop_find_used_regs): Use FOR_EACH_SUBRTX instead of for_each_rtx.
3889 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3891 * regcprop.c: Include rtl-iter.h.
3892 (kill_value): Take a const_rtx.
3893 (kill_autoinc_value): Turn from being a for_each_rtx callback
3894 to being a function that examines each subrtx itself.
3895 (copyprop_hardreg_forward_1): Update accordingly.
3897 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3899 * reg-stack.c: Include rtl-iter.h.
3900 (subst_stack_regs_in_debug_insn): Delete.
3901 (subst_all_stack_regs_in_debug_insn): Use FOR_EACH_SUBRTX_PTR
3902 instead of for_each_rtx.
3904 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3906 * lower-subreg.c (find_decomposable_subregs): Turn from being
3907 a for_each_rtx callback to being a function that examines each
3908 subrtx itself. Remove handling of null rtxes.
3909 (decompose_multiword_subregs): Update accordingly.
3911 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3913 * lower-subreg.c (adjust_decomposed_uses): Delete.
3914 (resolve_debug): Use FOR_EACH_SUBRTX_PTR rather than for_each_rtx.
3915 Remove handling of null rtxes.
3917 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3919 * lower-subreg.c: Include rtl-iter.h.
3920 (resolve_subreg_use): Turn from being a for_each_rtx callback
3921 to being a function that examines each subrtx itself. Remove
3922 handling of null rtxes.
3923 (resolve_reg_notes, resolve_simple_move): Update accordingly.
3924 (decompose_multiword_subregs): Likewise.
3926 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3928 * loop-iv.c (altered_reg_used): Turn from being a for_each_rtx callback
3929 to being a function that examines each subrtx itself.
3930 (simplify_using_condition, simplify_using_initial_values): Update
3933 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3935 * loop-iv.c: Include rtl-iter.h.
3936 (find_single_def_src): New function.
3937 (replace_single_def_regs): Turn from being a for_each_rtx callback
3938 to being a function that examines each subrtx itself.
3939 (replace_in_expr, simplify_using_initial_values): Update accordingly.
3941 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3943 * jump.c (eh_returnjump_p_1): Delete.
3944 (eh_returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3945 Remove handling of null rtxes.
3947 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3949 * jump.c: Include rtl-iter.h.
3950 (returnjump_p_1): Delete.
3951 (returnjump_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
3952 Remove handling of null rtxes.
3954 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3956 * ira.c: Include rtl-iter.h.
3957 (set_paradoxical_subreg): Turn from being a for_each_rtx callback
3958 to being a function that examines each subrtx itself. Remove
3959 handling of null rtxes.
3960 (update_equiv_regs): Update call accordingly.
3962 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3964 * fwprop.c: Include rtl-iter.h.
3965 (varying_mem_p): Turn from being a for_each_rtx callback to being
3966 a function that examines each subrtx itself.
3967 (propagate_rtx): Update accordingly.
3969 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3971 * function.c: Include rtl-iter.h
3972 (instantiate_virtual_regs_in_rtx): Turn from being a for_each_rtx
3973 callback to being a function that examines each subrtx itself.
3974 Return the changed flag.
3975 (instantiate_virtual_regs_in_insn, instantiate_decl_rtl)
3976 (instantiate_virtual_regs): Update calls accordingly.
3978 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3980 * final.c: Include rtl-iter.h.
3981 (mark_symbol_ref_as_used): Delete.
3982 (mark_symbol_refs_as_used): Use FOR_EACH_SUBRTX instead of
3985 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3987 * emit-rtl.c: Include rtl-iter.h.
3988 (find_auto_inc): Turn from being a for_each_rtx callback to being
3989 a function that examines each subrtx itself. Assume the first operand
3990 to an RTX_AUTOINC is the automodified register.
3991 (try_split): Update call accordingly.
3993 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
3995 * dwarf2out.c (resolve_one_addr): Remove unused data parameter.
3996 Return a bool, inverting the result so that 0/false means "not ok".
3997 Use FOR_EACH_SUBRTX_PTR instead of for_each_rtx to iterate over
3998 subrtxes of a CONST.
3999 (mem_loc_descriptor, add_const_value_attribute)
4000 (resolve_addr_in_expr): Update calls accordingly.
4002 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4004 * dwarf2out.c: Include rtl-iter.h.
4005 (const_ok_for_output_1): Take the rtx instead of a pointer to it.
4006 Remove unused data parameter. Return a bool, inverting the result
4007 so that 0/false means "not ok".
4008 (const_ok_for_output): Update accordingly. Use FOR_EACH_SUBRTX_VAR
4009 instead of for_each_rtx.
4011 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4013 * dse.c: Include rtl-iter.h.
4014 (check_mem_read_rtx): Change void * parameter to real type.
4015 Remove return value.
4016 (check_mem_read_use): Fix comment. Use FOR_EACH_SUBRTX_PTR instead of
4017 for_each_rtx. Don't handle null rtxes.
4019 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4021 * df-problems.c: Include rtl-iter.h.
4022 (find_memory): Turn from being a for_each_rtx callback to being
4023 a function that examines each subrtx itself. Continue to look for
4024 volatile references even after a nonvolatile one has been found.
4025 (can_move_insns_across): Update calls accordingly.
4027 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4029 * ddg.c (walk_mems_2, walk_mems_1): Delete.
4030 (insns_may_alias_p): Use FOR_EACH_SUBRTX rather than for_each_rtx
4031 to iterate over subrtxes. Return a bool rather than an int.
4033 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4035 * ddg.c: Include rtl-iter.h.
4036 (mark_mem_use_1): Rename to...
4037 (mark_mem_use): ...deleting old mark_mem_use. Use FOR_EACH_SUBRTX
4038 instead of for_each_rtx.
4039 (mem_read_insn_p): Update accordingly.
4041 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4043 * cse.c (change_cc_mode_args): Delete.
4044 (cse_change_cc_mode): Turn from being a for_each_rtx callback to being
4045 a function that examines each subrtx itself. Take the fields of
4046 change_cc_mode_args as argument and return void.
4047 (cse_change_cc_mode_insn): Update calls accordingly.
4049 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4051 * cse.c (is_dead_reg): Change argument to const_rtx.
4052 (dead_debug_insn_data): Delete.
4053 (is_dead_debug_insn): Expand commentary. Turn from being a
4054 for_each_rtx callback to being a function that examines
4055 each subrtx itself. Take the fields of dead_debug_insn_data
4057 (delete_trivially_dead_insns): Update call accordingly.
4059 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4061 * cse.c (check_for_label_ref): Move earlier in file. Turn from
4062 being a for_each_rtx callback to being a function that examines
4064 (cse_extended_basic_block): Update call accordingly.
4066 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4068 * cse.c (check_dependence_data): Delete.
4069 (check_dependence): Change from being a for_each_rtx callback to being
4070 a function that examines all subrtxes itself. Don't handle null rtxes.
4071 (invalidate): Update call accordingly.
4073 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4075 * cse.c: Include rtl-iter.h.
4076 (approx_reg_cost_1): Delete.
4077 (approx_reg_cost): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4078 Don't handle null rtxes.
4080 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4082 * cfgcleanup.c: Include rtl-iter.h.
4083 (mentions_nonequal_regs): Turn from being a for_each_rtx callback
4084 to being a function that examines each subrtx itself.
4085 (thread_jump): Update accordingly.
4087 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4089 * combine-stack-adj.c: Include rtl-iter.h.
4090 (record_stack_refs_data): Delete.
4091 (record_stack_refs): Turn from being a for_each_rtx callback
4092 to being a function that examines each subrtx itself.
4093 Take a pointer to the reflist. Invert sense of return value
4094 so that true means success and false means failure. Don't
4096 (combine_stack_adjustments_for_block): Update accordingly.
4098 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4100 * combine.c (record_truncated_value): Turn from being a for_each_rtx
4101 callback to a function that takes an rtx and returns a bool
4102 (record_truncated_values): Use FOR_EACH_SUBRTX_VAR instead of
4105 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4107 * combine.c: Include rtl-iter.h.
4108 (unmentioned_reg_p_1): Delete.
4109 (unmentioned_reg_p): Use FOR_EACH_SUBRTX rather than for_each_rtx.
4110 Don't handle null rtxes.
4112 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4114 * calls.c: Include rtl-iter.h.
4115 (internal_arg_pointer_based_exp_1): Delete.
4116 (internal_arg_pointer_based_exp): Take a const_rtx.
4117 Use FOR_EACH_SUBRTX to iterate over subrtxes.
4119 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4121 * caller-save.c: Include rtl-iter.h.
4122 (add_used_regs_1): Delete.
4123 (add_used_regs): Use FOR_EACH_SUBRTX rather than for_each_rtx
4124 to iterate over subrtxes. Assert that any remaining pseudos
4127 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4129 * bt-load.c: Include rtl-iter.h.
4130 (btr_reference_found, find_btr_reference, btr_referenced_p): Delete.
4131 (find_btr_use): Move further up file. Use FOR_EACH_SUBRTX_PTR
4132 to iterate over subrtxes.
4133 (insn_sets_btr_p, new_btr_user, compute_defs_uses_and_gen): Use
4134 find_btr_use rather than btr_referenced_p.
4136 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4138 * alias.c: Include rtl-iter.h.
4139 (refs_newer_value_cb): Delete.
4140 (refs_newer_value_p): Use FOR_EACH_SUBRTX instead of for_each_rtx.
4142 2014-08-28 Richard Sandiford <rdsandiford@googlemail.com>
4144 * rtl-iter.h: New file.
4145 * rtlanal.c: Include it.
4146 (rtx_all_subrtx_bounds, rtx_nonconst_subrtx_bounds): New variables.
4147 (generic_subrtx_iterator <T>::add_single_to_queue)
4148 (generic_subrtx_iterator <T>::add_subrtxes_to_queue)
4149 (generic_subrtx_iterator <T>::free_array): New functions.
4150 (generic_subrtx_iterator <T>::LOCAL_ELEMS): Define.
4151 (generic_subrtx_iterator <const_rtx_accessor>)
4152 (generic_subrtx_iterator <rtx_var_accessor>
4153 (generic_subrtx_iterator <rtx_ptr_accessor>): Instantiate.
4154 (setup_reg_subrtx_bounds): New function.
4155 (init_rtlanal): Call it.
4157 2014-08-27 Kaz Kojima <kkojima@gcc.gnu.org>
4160 * config/sh/sh.md (ashlsi3): Handle negative shift count for
4162 (ashldi3, ashrsi3, ashrdi3, lshrsi3, lshrdi3): Likewise.
4164 2014-08-27 Richard Sandiford <rdsandiford@googlemail.com>
4166 * emit-rtl.c (set_unique_reg_note): Discard notes with side effects.
4168 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4170 * rtl.h (JUMP_LABEL_AS_INSN): New.
4172 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4174 * rtl.h (free_EXPR_LIST_list): Strengthen param from rtx * to
4176 (alloc_EXPR_LIST): Strengthen return type from rtx to
4178 (remove_free_EXPR_LIST_node): Likewise for param.
4179 * reload.h (struct reg_equivs_t): Strengthen field "alt_mem_list"
4180 from rtx to rtx_expr_list *.
4181 * sched-int.h (struct deps_desc): Strengthen fields
4182 "pending_read_mems" and "pending_write_mems" from rtx to
4185 * dwarf2out.c (decl_piece_varloc_ptr): Strengthen return type from
4186 rtx to rtx_expr_list *.
4187 * lists.c (alloc_INSN_LIST): Likewise, also for local "r".
4188 (free_EXPR_LIST_list): Strengthen param "listp" from rtx * to
4190 (remove_free_EXPR_LIST_node): Likewise. Strengthen local "node"
4191 from rtx to rtx_expr_list *.
4192 * loop-iv.c (simplify_using_initial_values): Strengthen local
4193 "cond_list" from rtx to rtx_expr_list *, and locals "pnode",
4194 "pnote_next" from rtx * to rtx_expr_list **.
4195 * sched-deps.c (remove_from_both_dependence_lists): Strengthen
4196 param "exprp" from rtx * to rtx_expr_list **.
4197 (add_insn_mem_dependence): Strengthen local "mem_list" from
4198 rtx * to rtx_expr_list **. Strengthen local "mem_node" from rtx
4200 * sched-rgn.c (concat_insn_mem_list): Strengthen param "copy_mems"
4201 and local "new_mems" from rtx to rtx_expr_list *. Strengthen
4202 param "old_mems_p" from rtx * to rtx_expr_list **.
4203 * var-tracking.c (struct adjust_mem_data): Strengthen field
4204 "side_effects" from rtx to rtx_expr_list *.
4205 (adjust_insn): Replace NULL_RTX with NULL when assigning to
4207 (prepare_call_arguments): Likewise.
4209 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4211 * function.h (struct rtl_data): Strengthen field
4212 "x_stack_slot_list" from rtx to rtx_expr_list *.
4214 * emit-rtl.c (unshare_all_rtl_1): Add a checked cast
4215 when assigning to stack_slot_list.
4217 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4219 * function.h (struct rtl_data): Strengthen field
4220 x_nonlocal_goto_handler_labels from rtx to rtx_expr_list *.
4221 * rtl.h (remove_node_from_expr_list): Strengthen second param from
4222 rtx * to rtx_expr_list **.
4224 * cfgbuild.c (make_edges): In loop over
4225 nonlocal_goto_handler_labels, strengthen local "x" from rtx to
4226 rtx_expr_list *, and use methods of the latter class to clarify
4228 * cfgrtl.c (cfg_layout_initialize): Strengthen local "x" from rtx to
4229 rtx_expr_list *, and use methods of the latter class to clarify
4231 * dwarf2cfi.c (create_trace_edges): Likewise for local "lab".
4232 * reload1.c (set_initial_label_offsets): Likewise for local "x".
4233 * rtlanal.c (remove_node_from_expr_list): Strengthen param "listp"
4234 from rtx * to rtx_expr_list **. Strengthen local "temp" from rtx
4235 to rtx_expr_list *. Use methods of the latter class to clarify
4238 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4240 * function.h (struct expr_status): Strengthen field
4241 "x_forced_labels" from rtx to rtx_expr_list *.
4243 * cfgbuild.c (make_edges): Split local "x" into two locals,
4244 strengthening one from rtx to rtx_expr_list *, and using methods
4246 * dwarf2cfi.c (create_trace_edges): Split local "lab" out; within
4247 loop over forced_labels, introduce strengthen it from rtx to
4248 rtx_expr_list *, using methods to clarify the code.
4249 * jump.c (rebuild_jump_labels_1): Strengthen local "insn" from rtx
4250 to rtx_expr_list *, using methods of said class to clarify the
4252 * reload1.c (set_initial_label_offsets): Split local "x" into two
4253 per-loop variables, strengthening the first from rtx to
4254 rtx_expr_list * and using methods.
4256 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4258 * coretypes.h (class rtx_expr_list): Add forward declaration.
4259 * emit-rtl.c (gen_rtx_EXPR_LIST): New.
4260 * gengenrtl.c (special_rtx): Add EXPR_LIST.
4261 * rtl.h (class rtx_expr_list): New subclass of rtx_def, adding
4262 invariant: GET_CODE (X) == EXPR_LIST.
4263 (is_a_helper <rtx_expr_list *>::test): New.
4264 (rtx_expr_list::next): New.
4265 (rtx_expr_list::element): New.
4266 (gen_rtx_EXPR_LIST): New.
4268 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4270 * varasm.c (mark_constants): Convert a GET_CODE check into a
4271 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4272 Use methods of rtx_sequence to clarify the code.
4274 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4276 * sched-vis.c (print_pattern): Within SEQUENCE case, introduce a
4277 local "seq" via a checked cast, and use methods of rtx_sequence
4278 to simplify the code.
4280 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4282 * resource.c (mark_referenced_resources): Strengthen local
4283 "sequence" from rtx to rtx_sequence *, adding a checked cast, and
4284 using methods of rtx_sequence to clarify the code.
4285 (find_dead_or_set_registers): Within the switch statement, convert
4286 a GET_CODE check to a dyn_cast, introducing local "seq". Within
4287 the JUMP_P handling, introduce another local "seq", adding a
4288 checked cast to rtx_sequence *. In both cases, use methods of
4289 rtx_sequence to clarify the code.
4290 (mark_set_resources): Within SEQUENCE case, introduce local "seq"
4291 via a checked cast, and use methods of rtx_sequence to simplify
4294 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4296 * reorg.c (redundant_insn): In two places in the function, replace
4297 a check of GET_CODE with a dyn_cast, introducing local "seq", and
4298 usings methods of rtx_sequence to clarify the code.
4300 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4302 * jump.c (mark_jump_label_1): Within the SEQUENCE case, introduce
4303 local "seq" with a checked cast, and use methods of rtx_sequence
4304 to clarify the code.
4306 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4308 * function.c (contains): Introduce local "seq" for PATTERN (insn),
4309 with a checked cast, in the region for where we know it's a
4310 SEQUENCE. Use methods of rtx_sequence.
4312 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4314 * final.c (get_attr_length_1): Replace GET_CODE check with a
4315 dyn_cast, introducing local "seq" and the use of methods of
4317 (shorten_branches): Likewise, introducing local "body_seq".
4318 Strengthen local "inner_insn" from rtx to rtx_insn *.
4319 (reemit_insn_block_notes): Replace GET_CODE check with a
4320 dyn_cast, strengthening local "body" from rtx to rtx_sequence *.
4321 Use methods of rtx_sequence.
4322 (final_scan_insn): Likewise, introducing local "seq" for when
4323 "body" is known to be a SEQUENCE, using its methods.
4325 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4327 * except.c (can_throw_external): Strengthen local "seq" from rtx
4328 to rtx_sequence *. Use methods of rtx_sequence.
4329 (insn_nothrow_p): Likewise.
4331 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4333 * dwarf2cfi.c (create_trace_edges): Convert GET_CODE check into a
4334 dyn_cast, strengthening local "seq" from rtx to rtx_sequence *.
4335 Use methods of rtx_sequence.
4336 (scan_trace): Likewise for local "pat".
4338 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4340 * coretypes.h (class rtx_sequence): Add forward declaration.
4341 * rtl.h (class rtx_sequence): New subclass of rtx_def, adding
4342 invariant: GET_CODE (X) == SEQUENCE.
4343 (is_a_helper <rtx_sequence *>::test): New.
4344 (is_a_helper <const rtx_sequence *>::test): New.
4345 (rtx_sequence::len): New.
4346 (rtx_sequence::element): New.
4347 (rtx_sequence::insn): New.
4349 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4351 * rtl.h (free_INSN_LIST_list): Strengthen param from rtx * to
4353 (alloc_INSN_LIST): Strengthen return type from rtx to
4355 (copy_INSN_LIST): Likewise for return type and param.
4356 (concat_INSN_LIST): Likewise for both params and return type.
4357 (remove_free_INSN_LIST_elem): Strenghten first param from rtx to
4358 rtx_insn *. Strengthen second param from rtx * to rtx_insn_list **.
4359 (remove_free_INSN_LIST_node): Strenghten return type from rtx to
4360 rtx_insn *. Strengthen param from rtx * to rtx_insn_list **.
4362 * sched-int.h (struct deps_reg): Strengthen fields "uses", "sets",
4363 "implicit_sets", "control_uses", "clobbers" from rtx to
4365 (struct deps_desc): Likewise for fields "pending_read_insns",
4366 "pending_write_insns", "pending_jump_insns",
4367 "last_pending_memory_flush", "last_function_call",
4368 "last_function_call_may_noreturn", "sched_before_next_call",
4369 "sched_before_next_jump".
4370 (struct _haifa_deps_insn_data): Likewise for field "cond_deps".
4371 (remove_from_deps): Strengthen second param from rtx to rtx_insn *.
4373 * gcse.c (struct ls_expr): Strengthen fields "loads" and "stores"
4374 from rtx to rtx_insn_list *.
4375 (ldst_entry): Replace use of NULL_RTX with NULL when dealing with
4378 * haifa-sched.c (insn_queue): Strengthen this variable from rtx *
4379 to rtx_insn_list **.
4380 (dep_cost_1): Strengthen local "dep_cost_rtx_link" from rtx to
4382 (queue_insn): Likewise for local "link".
4383 (struct haifa_saved_data): Strengthen field "insn_queue" from
4384 rtx * to rtx_insn_list **.
4385 (save_backtrack_point): Update allocation of save->insn_queue to
4386 reflect the strengthening of elements from rtx to rtx_insn_list *.
4387 (queue_to_ready): Strengthen local "link" from rtx to
4388 rtx_insn_list *; use methods "next" and "insn" when traversing the
4390 (early_queue_to_ready): Likewise for locals "link", "next_link",
4392 (schedule_block): Update allocation of insn_queue to reflect the
4393 strengthening of elements from rtx to rtx_insn_list *. Strengthen
4394 local "link" from rtx to rtx_insn_list *, and use methods when
4396 (add_to_speculative_block): Strengthen locals "twins" and
4397 "next_node" from rtx to rtx_insn_list *, and use methods when
4398 working with them. Strengthen local "twin" from rtx to
4399 rtx_insn *, eliminating a checked cast.
4400 (fix_recovery_deps): Strengthen locals "ready_list" and "link"
4401 from rtx to rtx_insn_list *, and use methods when working with
4404 * lists.c (alloc_INSN_LIST): Strengthen return type and local "r"
4405 from rtx to rtx_insn_list *, adding a checked cast.
4406 (free_INSN_LIST_list): Strengthen param "listp" from rtx * to
4408 (copy_INSN_LIST): Strengthen return type and locals "new_queue",
4409 "newlink" from rtx to rtx_insn_list *. Strengthen local
4410 "pqueue" from rtx * to rtx_insn_list **. Strengthen local "x"
4411 from rtx to rtx_insn *.
4412 (concat_INSN_LIST): Strengthen return type and local "new_rtx",
4413 from rtx to rtx_insn_list *. Use methods of the latter class.
4414 (remove_free_INSN_LIST_elem): Strengthen param "elem" from rtx to
4415 rtx_insn *, and param "listp" from rtx * to rtx_insn_list **.
4416 (remove_free_INSN_LIST_node): Strengthen return type and local
4417 "elem" from rtx to rtx_insn *. Strenghten param "listp" from
4418 rtx * to rtx_insn_list **. Strengthen local "node" from rtx to
4419 rtx_insn_list *, using "insn" method.
4421 * sched-deps.c (add_dependence_list): Strengthen param "list"
4422 from rtx to rtx_insn_list *, and use methods when working with it.
4423 (add_dependence_list_and_free): Strengthen param "listp" from
4424 rtx * to rtx_insn_list **.
4425 (remove_from_dependence_list): Strenghten param "listp" from rtx *
4426 to rtx_insn_list **, and use methods when working with *listp.
4427 (remove_from_both_dependence_lists): Strengthen param "listp" from
4428 rtx * to rtx_insn_list **
4429 (add_insn_mem_dependence): Strengthen local "insn_list" from rtx *
4430 to rtx_insn_list **. Eliminate local "link", in favor of two new
4431 locals "insn_node" and "mem_node", an rtx_insn_list * and an rtx
4433 (deps_analyze_insn): Split out uses 'f local "t" as an INSN_LIST
4434 by introducing local "cond_deps".
4435 (remove_from_deps): Strengthen param "insn" from rtx to
4438 * sched-rgn.c (concat_insn_mem_list): Strengthen param
4439 "copy_insns" and local "new_insns" from rtx to rtx_insn_list *.
4440 Strengthen param "old_insns_p" from rtx * to rtx_insn_list **.
4441 Use methods of rtx_insn_list.
4443 * store-motion.c (struct st_expr): Strengthen fields
4444 "antic_stores" and "avail_stores" from rtx to rtx_insn_list *.
4445 (st_expr_entry): Replace NULL_RTX with NULL when dealing with
4447 (find_moveable_store): Split out "tmp" into multiple more-tightly
4448 scoped locals. Use methods of rtx_insn_list *.
4449 (compute_store_table): Strengthen local "tmp" from rtx to
4450 rtx_insn *. Use methods of rtx_insn_list *.
4452 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4454 * coretypes.h (class rtx_insn_list): Add forward declaration.
4455 * rtl.h (class rtx_insn_list): New subclass of rtx_def
4456 (is_a_helper <rtx_insn_list *>::test): New.
4457 (rtx_insn_list::next): New.
4458 (rtx_insn_list::insn): New.
4459 (gen_rtx_INSN_LIST): Add prototype.
4460 * emit-rtl.c (gen_rtx_INSN_LIST): New.
4461 * gengenrtl.c (special_rtx): Add INSN_LIST.
4463 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4465 * ira-lives.c (find_call_crossed_cheap_reg): Strengthen local
4466 "prev" from rtx to rtx_insn *.
4468 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4470 * rtl.h (INSN_UID): Convert from a macro to a pair of inline
4471 functions. Require merely an rtx for now, not an rtx_insn *.
4472 (BLOCK_FOR_INSN): Likewise.
4473 (INSN_LOCATION): Likewise.
4474 (INSN_HAS_LOCATION): Convert from a macro to an inline function.
4476 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4478 * rtl.h (PATTERN): Convert this macro into a pair of inline
4479 functions, for now, requiring const_rtx and rtx.
4481 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4483 * target.def (unwind_emit): Strengthen param "insn" from rtx to
4485 (final_postscan_insn): Likewise.
4486 (adjust_cost): Likewise.
4487 (adjust_priority): Likewise.
4488 (variable_issue): Likewise.
4489 (macro_fusion_pair_p): Likewise.
4490 (dfa_post_cycle_insn): Likewise.
4491 (first_cycle_multipass_dfa_lookahead_guard): Likewise.
4492 (first_cycle_multipass_issue): Likewise.
4493 (dfa_new_cycle): Likewise.
4494 (adjust_cost_2): Likewise for params "insn" and "dep_insn".
4495 (speculate_insn): Likewise for param "insn".
4496 (gen_spec_check): Likewise for params "insn" and "label".
4497 (get_insn_spec_ds): Likewise for param "insn".
4498 (get_insn_checked_ds): Likewise.
4499 (dispatch_do): Likewise.
4500 (dispatch): Likewise.
4501 (cannot_copy_insn_p): Likewise.
4502 (invalid_within_doloop): Likewise.
4503 (legitimate_combined_insn): Likewise.
4507 * doc/tm.texi: Automatically updated to reflect changes to
4510 * haifa-sched.c (choose_ready): Convert NULL_RTX to NULL when
4512 (schedule_block): Likewise.
4513 (sched_init): Likewise.
4514 (sched_speculate_insn): Strengthen param "insn" from rtx to
4516 (ready_remove_first_dispatch): Convert NULL_RTX to NULL when
4518 * hooks.c (hook_bool_rtx_true): Rename to...
4519 hook_bool_rtx_insn_true): ...this, and strengthen first param from
4521 (hook_constcharptr_const_rtx_null): Rename to...
4522 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4523 first param from const_rtx to const rtx_insn *.
4524 (hook_bool_rtx_int_false): Rename to...
4525 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4526 param from rtx to rtx_insn *.
4527 (hook_void_rtx_int): Rename to...
4528 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4531 * hooks.h (hook_bool_rtx_true): Rename to...
4532 (hook_bool_rtx_insn_true): ...this, and strengthen first param from
4534 (hook_bool_rtx_int_false): Rename to...
4535 (hook_bool_rtx_insn_int_false): ...this, and strengthen first
4536 param from rtx to rtx_insn *.
4537 (hook_void_rtx_int): Rename to...
4538 (hook_void_rtx_insn_int): ...this, and strengthen first param from
4540 (hook_constcharptr_const_rtx_null): Rename to...
4541 (hook_constcharptr_const_rtx_insn_null): ...this, and strengthen
4542 first param from const_rtx to const rtx_insn *.
4544 * sched-deps.c (sched_macro_fuse_insns): Strengthen param "insn"
4545 and local "prev" from rtx to rtx_insn *.
4547 * sched-int.h (sched_speculate_insn): Strengthen first param from
4550 * sel-sched.c (create_speculation_check): Likewise for local "label".
4551 * targhooks.c (default_invalid_within_doloop): Strengthen param
4552 "insn" from const_rtx to const rtx_insn *.
4553 * targhooks.h (default_invalid_within_doloop): Strengthen param
4554 from const_rtx to const rtx_insn *.
4556 * config/alpha/alpha.c (alpha_cannot_copy_insn_p): Likewise.
4557 (alpha_adjust_cost): Likewise for params "insn", "dep_insn".
4559 * config/arc/arc.c (arc_sched_adjust_priority): Likewise for param
4561 (arc_invalid_within_doloop): Likewise, with const.
4563 * config/arm/arm.c (arm_adjust_cost): Likewise for params "insn", "dep".
4564 (arm_cannot_copy_insn_p): Likewise for param "insn".
4565 (arm_unwind_emit): Likewise.
4567 * config/bfin/bfin.c (bfin_adjust_cost): Likewise for params "insn",
4570 * config/c6x/c6x.c (c6x_dfa_new_cycle): Likewise for param "insn".
4571 (c6x_variable_issue): Likewise. Removed now-redundant checked
4573 (c6x_adjust_cost): Likewise for params "insn", "dep_insn".
4575 * config/epiphany/epiphany-protos.h (epiphany_mode_needed):
4576 Likewise for param "insn".
4577 (epiphany_mode_after): Likewise.
4578 * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise for
4579 params "insn", "dep_insn".
4580 (epiphany_mode_needed): Likewise for param "insn".
4581 (epiphany_mode_after): Likewise.
4583 * config/i386/i386-protos.h (i386_pe_seh_unwind_emit): Likewise.
4584 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
4585 (ix86_avx_u128_mode_needed): Likewise.
4586 (ix86_i387_mode_needed): Likewise.
4587 (ix86_mode_needed): Likewise.
4588 (ix86_avx_u128_mode_after): Likewise.
4589 (ix86_mode_after): Likewise.
4590 (ix86_adjust_cost): Likewise for params "insn", "dep_insn".
4591 (ix86_macro_fusion_pair_p): Likewise for params "condgen", "condjmp".
4592 (ix86_adjust_priority): Likewise for param "insn".
4593 (core2i7_first_cycle_multipass_issue): Likewise for param "insn".
4594 (do_dispatch): Likewise.
4595 (has_dispatch): Likewise.
4596 * config/i386/winnt.c (i386_pe_seh_unwind_emit): Likewise.
4598 * config/ia64/ia64.c (TARGET_INVALID_WITHIN_DOLOOP): Update to
4599 reflect renaming of default hook implementation from
4600 hook_constcharptr_const_rtx_null to
4601 hook_constcharptr_const_rtx_insn_null.
4602 (ia64_adjust_cost_2): Strengthen params "insn", "dep_insn" from
4604 (ia64_variable_issue): Likewise for param "insn".
4605 (ia64_first_cycle_multipass_dfa_lookahead_guard): Likewise.
4606 (ia64_dfa_new_cycle): Likewise.
4607 (ia64_get_insn_spec_ds): Likewise.
4608 (ia64_get_insn_checked_ds): Likewise.
4609 (ia64_speculate_insn): Likewise.
4610 (ia64_gen_spec_check): Likewise for params "insn", "label".
4611 (ia64_asm_unwind_emit): Likewise for param "insn".
4613 * config/m32r/m32r.c (m32r_adjust_priority): Likewise.
4615 * config/m68k/m68k.c (m68k_sched_adjust_cost): Likewise for params
4617 (m68k_sched_variable_issue): Likewise for param "insn".
4619 * config/mep/mep.c (mep_adjust_cost): Likewise for params "insn",
4622 * config/microblaze/microblaze.c (microblaze_adjust_cost):
4623 Likewise for params "insn", "dep".
4625 * config/mips/mips.c (mips_adjust_cost): Likewise.
4626 (mips_variable_issue): Likewise for param "insn".
4627 (mips_final_postscan_insn): Likewise.
4629 * config/mn10300/mn10300.c (mn10300_adjust_sched_cost): Likewise
4630 for params "insn", "dep".
4632 * config/pa/pa.c (pa_adjust_cost): Likewise for params "insn",
4634 (pa_adjust_priority): Likewise for param "insn".
4636 * config/picochip/picochip.c (picochip_sched_adjust_cost):
4637 Likewise for params "insn", "dep_insn".
4639 * config/rs6000/rs6000.c (rs6000_variable_issue_1): Likewise for
4641 (rs6000_variable_issue): Likewise.
4642 (rs6000_adjust_cost): Likewise for params "insn", "dep_insn".
4643 (rs6000_debug_adjust_cost): Likewise.
4644 (rs6000_adjust_priority): Likewise for param "insn".
4645 (rs6000_use_sched_lookahead_guard): Likewise.
4646 (get_next_active_insn): Likewise for return type and both params.
4647 (redefine_groups): Likewise for params "prev_head_insn", "tail"
4648 and locals "insn", "next_insn".
4649 (pad_groups): Likewise.
4651 * config/s390/s390.c (s390_adjust_priority): Likewise for param
4653 (s390_cannot_copy_insn_p): Likewise.
4654 (s390_sched_variable_issue): Likewise for third param, eliminating
4656 (TARGET_INVALID_WITHIN_DOLOOP): Update to reflect renaming of
4657 default hook implementation from hook_constcharptr_const_rtx_null
4658 to hook_constcharptr_const_rtx_insn_null.
4660 * config/sh/sh.c (sh_cannot_copy_insn_p): Strengthen param "insn"
4661 from rtx to rtx_insn *.
4662 (sh_adjust_cost): Likewise for params "insn", "dep_insn".
4663 (sh_variable_issue): Likewise for param "insn".
4664 (sh_dfa_new_cycle): Likewise.
4665 (sh_mode_needed): Likewise.
4666 (sh_mode_after): Likewise.
4668 * config/sparc/sparc.c (supersparc_adjust_cost): Likewise for
4669 params "insn", "dep_insn".
4670 (hypersparc_adjust_cost): Likewise.
4671 (sparc_adjust_cost): Likewise.
4673 * config/spu/spu.c (spu_sched_variable_issue): Likewise for third
4674 param, eliminated checked cast.
4675 (spu_sched_adjust_cost): Likewise for first and third params.
4677 * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Strengthen
4678 params "insn" and "dep_insn" from rtx to rtx_insn *.
4680 * config/tilepro/tilepro.c (tilepro_sched_adjust_cost): Likewise.
4682 2014-08-27 David Malcolm <dmalcolm@redhat.com>
4684 * gcc/config/mn10300/mn10300.c (is_load_insn): Rename to...
4685 (set_is_load_p): ...this, updating to work on a SET pattern rather
4687 (is_store_insn): Rename to...
4688 (set_is_store_p): ...this, updating to work on a SET pattern
4689 rather than an insn.
4690 (mn10300_adjust_sched_cost): Move call to get_attr_timings from
4691 top of function to where it is needed. Rewrite the bogus
4692 condition that checks for "insn" and "dep" being PARALLEL to
4693 instead use single_set, introducing locals "insn_set" and
4694 "dep_set". Given that we only ever returned "cost" for a non-pair
4695 of SETs, bail out early if we don't have a pair of SET.
4696 Rewrite all uses of PATTERN (dep) and PATTERN (insn) to instead
4697 use the new locals "insn_set" and "dep_set", and update calls to
4698 is_load_insn and is_store_insn to be calls to set_is_load_p and
4701 2014-08-27 Guozhi Wei <carrot@google.com>
4704 * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Check the shift
4705 amount before using it.
4707 2014-08-27 Richard Biener <rguenther@suse.de>
4709 * gimple-fold.c (get_maxval_strlen): Add overload wrapping
4710 get_maxval_strlen inside a more useful API.
4711 (gimple_fold_builtin_with_strlen): Remove and fold into ...
4712 (gimple_fold_builtin): ... caller.
4713 (gimple_fold_builtin_strlen, gimple_fold_builtin_strcpy,
4714 gimple_fold_builtin_strncpy, gimple_fold_builtin_strcat,
4715 gimple_fold_builtin_fputs, gimple_fold_builtin_memory_chk,
4716 gimple_fold_builtin_stxcpy_chk, gimple_fold_builtin_stxncpy_chk,
4717 gimple_fold_builtin_snprintf_chk, gimple_fold_builtin_snprintf,
4718 gimple_fold_builtin_sprintf): Adjust to compute maxval
4721 2014-08-27 Yvan Roux <yvan.roux@linaro.org>
4724 * config.gcc (arm*-*-*): Check --with-fpu against arm-fpus.def.
4726 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4727 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4728 Anna Tikhonova <anna.tikhonova@intel.com>
4729 Ilya Tocar <ilya.tocar@intel.com>
4730 Andrey Turetskiy <andrey.turetskiy@intel.com>
4731 Ilya Verbin <ilya.verbin@intel.com>
4732 Kirill Yukhin <kirill.yukhin@intel.com>
4733 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4735 * config/i386/sse.md
4736 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"):
4737 Use `concat_tg_mode' attribute to determine asm register size.
4739 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4740 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4741 Anna Tikhonova <anna.tikhonova@intel.com>
4742 Ilya Tocar <ilya.tocar@intel.com>
4743 Andrey Turetskiy <andrey.turetskiy@intel.com>
4744 Ilya Verbin <ilya.verbin@intel.com>
4745 Kirill Yukhin <kirill.yukhin@intel.com>
4746 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4748 * config/i386/sse.md
4749 (define_mode_iterator VI48_AVX512VL): New.
4750 (define_mode_iterator VI_UNALIGNED_LOADSTORE): Delete.
4751 (define_mode_iterator VI_ULOADSTORE_BW_AVX512VL): New.
4752 (define_mode_iterator VI_ULOADSTORE_F_AVX512VL): Ditto.
4753 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4754 with VI1): Change mode iterator.
4755 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4756 with VI_ULOADSTORE_BW_AVX512VL): New.
4757 (define_expand "<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4758 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4759 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4760 with VI1): Change mode iterator.
4761 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4762 with VI_ULOADSTORE_BW_AVX512VL): New.
4763 (define_insn "*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"
4764 with VI_ULOADSTORE_F_AVX512VL): Ditto.
4765 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4766 with VI1): Change mode iterator.
4767 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4768 with VI_ULOADSTORE_BW_AVX512VL): New.
4769 (define_insn "<sse2_avx_avx512f>_storedqu<mode>
4770 with VI_ULOADSTORE_BW_AVX512VL): Ditto.
4771 (define_insn "avx512f_storedqu<mode>_mask"): Delete.
4772 (define_insn "<avx512>_storedqu<mode>_mask" with
4773 VI48_AVX512VL): New.
4774 (define_insn "<avx512>_storedqu<mode>_mask" with
4775 VI12_AVX512VL): Ditto.
4777 2014-08-27 Alexander Ivchenko <alexander.ivchenko@intel.com>
4778 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
4779 Anna Tikhonova <anna.tikhonova@intel.com>
4780 Ilya Tocar <ilya.tocar@intel.com>
4781 Andrey Turetskiy <andrey.turetskiy@intel.com>
4782 Ilya Verbin <ilya.verbin@intel.com>
4783 Kirill Yukhin <kirill.yukhin@intel.com>
4784 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
4786 * config/i386/sse.md
4787 (define_mode_iterator VI48_AVX2_48_AVX512F): Delete.
4788 (define_mode_iterator VI48_AVX512BW): New.
4789 (define_insn "<avx2_avx512f>_<shift_insn>v<mode><mask_name>"): Delete.
4790 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4791 with VI48_AVX2_48_AVX512F): New.
4792 (define_insn "<avx2_avx512bw>_<shift_insn>v<mode><mask_name>"
4793 with VI2_AVX512VL): Ditto.
4795 2014-08-27 Richard Biener <rguenther@suse.de>
4798 * builtins.c (fold_builtin_strcat_chk): Move to gimple-fold.c.
4799 (fold_builtin_3): Do not fold strcat_chk here.
4800 * gimple-fold.c (gimple_fold_builtin_strcat_chk): Move here
4802 (gimple_fold_builtin): Fold strcat_chk here.
4804 2014-08-26 Aldy Hernandez <aldyh@redhat.com>
4806 * dwarf2out.h (dwarf2out_decl): Remove prototype.
4807 * dwarf2out.c (dwarf2out_decl): Make static.
4809 2014-08-26 Joel Sherrill <joel.sherrill@oarcorp.com>
4811 * doc/invoke.texi: -fno-cxa-atexit should be -fno-use-cxa-atexit.
4813 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4815 * cselib.h (struct elt_loc_list): Strengthen field "setting_insn"
4816 from rtx to rtx_insn *.
4817 (cselib_lookup_from_insn): Likewise for final param.
4818 (cselib_subst_to_values_from_insn): Likewise.
4819 (cselib_add_permanent_equiv): Likewise.
4821 * cselib.c (cselib_current_insn): Likewise for this variable.
4822 (cselib_subst_to_values_from_insn): Likewise for param "insn".
4823 (cselib_lookup_from_insn): Likewise.
4824 (cselib_add_permanent_equiv): Likewise for param "insn" and local
4825 "save_cselib_current_insn".
4826 (cselib_process_insn): Replace use of NULL_RTX with NULL.
4828 * sched-deps.c (add_insn_mem_dependence): Strengthen param "insn"
4829 from rtx to rtx_insn *.
4831 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4833 * dse.c (dse_step6): Strengthen local "rinsn" from rtx to
4836 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4838 * df.h (df_dump_insn_problem_function): Strengthen first param of
4839 this callback from const_rtx to const rtx_insn *.
4840 (struct df_insn_info): Strengthen field "insn" from rtx to
4842 (DF_REF_INSN): Eliminate this function, reinstating the older
4844 (df_find_def): Strengthen param 1 from rtx to rtx_insn *.
4845 (df_reg_defined): Likewise.
4846 (df_find_use): Likewise.
4847 (df_reg_used): Likewise.
4848 (df_dump_insn_top): Strengthen param 1 from const_rtx to
4850 (df_dump_insn_bottom): Likewise.
4851 (df_insn_debug): Strengthen param 1 from rtx to rtx_insn *.
4852 (df_insn_debug_regno): Likewise.
4853 (debug_df_insn): Likewise.
4854 (df_rd_simulate_one_insn): Likewise for param 2.
4855 (df_word_lr_simulate_defs): Likewise for param 1.
4856 (df_word_lr_simulate_uses): Likewise.
4857 (df_md_simulate_one_insn): Likewise for param 2.
4858 (df_simulate_find_noclobber_defs): Likewise for param 1.
4859 (df_simulate_find_defs): Likewise.
4860 (df_simulate_defs): Likewise.
4861 (df_simulate_uses): Likewise.
4862 (df_simulate_one_insn_backwards): Likewise for param 2.
4863 (df_simulate_one_insn_forwards): Likewise.
4864 (df_uses_create): Likewise for param 2.
4865 (df_insn_create_insn_record): Likewise for param 1.
4866 (df_insn_delete): Likewise.
4867 (df_insn_rescan): Likewise.
4868 (df_insn_rescan_debug_internal): Likewise.
4869 (df_insn_change_bb): Likewise.
4870 (df_notes_rescan): Likewise.
4871 * rtl.h (remove_death): Likewise for param 2.
4872 (print_rtl_with_bb): Strengthen param 2 from const_rtx to
4874 * sched-int.h (reemit_notes): Strengthen param from rtx to
4876 * valtrack.h (propagate_for_debug): Likewise for param 1.
4878 * cfgrtl.c (print_rtl_with_bb): Strengthen param "rtx_first" and
4879 local "tmp_rtx" from const_rtx to const rtx_insn *.
4880 * combine.c (remove_death): Strengthen param "insn" from rtx to
4882 (move_deaths): Likewise for local "where_dead".
4883 * cse.c (delete_trivially_dead_insns): Introduce local
4884 "bind_var_loc" so that "bind" can be strengthened to an rtx_insn *.
4885 * df-core.c (df_find_def): Strengthen param "insn" from rtx to
4887 (df_reg_defined): Likewise.
4888 (df_find_use): Likewise.
4889 (df_reg_used): Likewise.
4890 (df_dump_insn_problem_data): Strengthen param "insn" from
4891 const_rtx to const rtx_insn *.
4892 (df_dump_insn_top): Likewise.
4893 (df_dump_insn_bottom): Likewise.
4894 (df_insn_debug): Strengthen param "insn" from rtx to rtx_insn *.
4895 (df_insn_debug_regno): Likewise.
4896 (debug_df_insn): Likewise.
4897 (DF_REF_INSN): Delete.
4898 * df-problems.c (df_rd_simulate_one_insn): Strengthen param "insn"
4899 from rtx to rtx_insn *.
4900 (df_chain_insn_top_dump): Strengthen param "insn" from
4901 const_rtx to const rtx_insn *.
4902 (df_chain_insn_bottom_dump): Likewise.
4903 (df_word_lr_simulate_defs): Strengthen param "insn" from rtx to
4905 (df_word_lr_simulate_uses): Likewise.
4906 (df_print_note): Likewise.
4907 (df_remove_dead_and_unused_notes): Likewise.
4908 (df_set_unused_notes_for_mw): Likewise.
4909 (df_set_dead_notes_for_mw): Likewise.
4910 (df_create_unused_note): Likewise.
4911 (df_simulate_find_defs): Likewise.
4912 (df_simulate_find_uses): Likewise.
4913 (df_simulate_find_noclobber_defs): Likewise.
4914 (df_simulate_defs): Likewise.
4915 (df_simulate_uses): Likewise.
4916 (df_simulate_one_insn_backwards): Likewise.
4917 (df_simulate_one_insn_forwards): Likewise.
4918 (df_md_simulate_one_insn): Likewise.
4919 * df-scan.c (df_uses_create): Likewise.
4920 (df_insn_create_insn_record): Likewise.
4921 (df_insn_delete): Likewise.
4922 (df_insn_rescan): Likewise.
4923 (df_insn_rescan_debug_internal): Likewise.
4924 (df_insn_change_bb): Likewise.
4925 (df_notes_rescan): Likewise.
4926 (df_refs_add_to_chains): Likewise.
4927 (df_insn_refs_verify): Likewise.
4928 * emit-rtl.c (set_insn_deleted): Add checked cast to rtx_insn *
4929 when invoking df_insn_delete.
4930 (reorder_insns): Strengthen local "x" from rtx to rtx_insn *.
4931 (set_unique_reg_note): Add checked cast.
4932 * final.c (cleanup_subreg_operands): Likewise.
4933 * gcse.c (update_ld_motion_stores): Likewise, strengthening local
4934 "insn" from rtx to rtx_insn *.
4935 * haifa-sched.c (reemit_notes): Strengthen param "insn" and local
4936 "last" from rtx to rtx_insn *.
4937 * ira-emit.c (change_regs_in_insn): New function.
4938 (change_loop): Strengthen local "insn" from rtx to rtx_insn *.
4939 Invoke change_regs_in_insn rather than change_regs.
4940 * ira.c (update_equiv_regs): Strengthen locals "insn",
4941 "init_insn", "new_insn" from rtx to rtx_insn *. Invoke
4942 for_each_rtx_in_insn rather than for_each_rtx.
4943 * recog.c (confirm_change_group): Add checked casts.
4944 (peep2_update_life): Strengthen local "x" from rtx to rtx_insn *.
4946 (peep2_fill_buffer): Add checked cast.
4947 * rtlanal.c (remove_note): Likewise.
4948 * valtrack.c (propagate_for_debug): Strengthen param "insn" and
4949 locals "next" "end" from rtx to rtx_insn *.
4951 2014-08-26 David Malcolm <dmalcolm@redhat.com>
4953 * sched-int.h (sched_init_insn_luid): Strengthen param 1 from rtx
4955 (struct reg_use_data): Likewise for field "insn".
4956 (insn_cost): Likewise for param.
4957 (real_insn_for_shadow): Likewise for return type and param.
4958 (increase_insn_priority): Likewise for param 1.
4959 (debug_dependencies): Likewise for both params.
4961 * haifa-sched.c (insn_delay): Likewise for param "insn".
4962 (real_insn_for_shadow): Likewise for return type and param "insn".
4963 (update_insn_after_change): Likewise for param "insn".
4964 (recompute_todo_spec): Likewise for param "next" and locals "pro",
4966 (insn_cost): Likewise for param "insn".
4967 (increase_insn_priority): Likewise.
4968 (calculate_reg_deaths): Likewise.
4969 (setup_insn_reg_pressure_info): Likewise.
4970 (model_schedule): Strengthen from vec<rtx> to vec<rtx_insn *>.
4971 (model_index): Strengthen param "insn" from rtx to rtx_insn *.
4972 (model_recompute): Likewise.
4973 (must_restore_pattern_p): Likewise for param "next".
4974 (model_excess_cost): Likewise for param "insn".
4975 (queue_remove): Likewise.
4976 (adjust_priority): Likewise for param "prev".
4977 (update_register_pressure): Likewise for param "insn".
4978 (setup_insn_max_reg_pressure): Likewise for local "insn".
4979 (update_reg_and_insn_max_reg_pressure): Likewise for param "insn".
4980 (model_add_to_schedule): Likewise.
4981 (model_reset_queue_indices): Likewise for local "insn".
4982 (unschedule_insns_until): Strengthen local "recompute_vec" from
4983 auto_vec<rtx> to auto_vec<rtx_insn *>. Strengthen locals "last",
4984 "con" from rtx to rtx_insn *.
4985 (restore_last_backtrack_point): Likewise for both locals "x". Add
4987 (estimate_insn_tick): Likewise for param "insn".
4988 (commit_schedule): Likewise for params "prev_head", "tail" and
4990 (verify_shadows): Likewise for locals "i1", "i2".
4991 (dump_insn_stream): Likewise for params "head", "tail" and locals
4992 "next_tail", "insn".
4993 (schedule_block): Likewise for locals "insn", "x". Add a checked
4995 (fix_inter_tick): Likewise for params "head", "tail".
4996 (create_check_block_twin): Likewise for local "jump".
4997 (haifa_change_pattern): Likewise for param "insn".
4998 (haifa_speculate_insn): Likewise.
4999 (dump_new_block_header): Likewise for params "head", "tail".
5000 (fix_jump_move): Likewise for param "jump".
5001 (move_block_after_check): Likewise.
5002 (sched_init_insn_luid): Likewise for param "insn".
5003 (sched_init_luids): Likewise for local "insn".
5004 (insn_luid): Likewise for param "insn".
5005 (init_h_i_d): Likewise.
5006 (haifa_init_h_i_d): Likewise for local "insn".
5007 (haifa_init_insn): Likewise for param "insn".
5008 * sched-deps.c (add_dependence): Likewise for local "real_pro",
5010 (create_insn_reg_use): Likewise for param "insn".
5011 (setup_insn_reg_uses): Likewise. Add a checked cast.
5012 * sched-ebb.c (debug_ebb_dependencies): Strengthen params "head",
5013 "tail" from rtx to rtx_insn *.
5014 * sched-rgn.c (void debug_dependencies): Likewise, also for locals
5015 "insn", "next_tail".
5017 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5019 * haifa-sched.c (struct model_insn_info): Strengthen field "insn"
5020 from rtx to rtx_insn *.
5021 (model_add_to_schedule): Likewise for locals "start", "end",
5024 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5026 * rtl.h (duplicate_insn_chain): Strengthen both params from rtx to
5028 * cfgrtl.c (duplicate_insn_chain): Likewise for params "from",
5029 "to" and locals "insn", "next", "copy". Remove now-redundant
5032 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5034 * rtl.h (canonicalize_condition): Strengthen param 1 from rtx to
5035 rtx_insn * and param 4 from rtx * to rtx_insn **.
5036 (get_condition): Strengthen param 1 from rtx to rtx_insn * and
5037 param 2 from rtx * to rtx_insn **.
5039 * df.h (can_move_insns_across): Strengthen params 1-4 from rtx to
5040 rtx_insn * and final param from rtx * to rtx_insn **.
5042 * cfgcleanup.c (try_head_merge_bb): Strengthen local "move_before"
5043 from rtx to rtx_insn *.
5044 (try_head_merge_bb): Likewise for both locals named "move_upto".
5045 * df-problems.c (can_move_insns_across): Likewise for params
5046 "from", "to", "across_from", "across_to" and locals "insn",
5047 "next", "max_to". Strengthen param "pmove_upto" from rtx * to
5049 * ifcvt.c (struct noce_if_info): Strengthen field "cond_earliest"
5050 from rtx to rtx_insn *.
5051 (noce_get_alt_condition): Strengthen param "earliest" from rtx *
5052 to rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5053 (noce_try_minmax): Strengthen locals "earliest", "seq" from rtx to
5055 (noce_try_abs): Likewise.
5056 (noce_get_condition): Likewise for param "jump". Strengthen param
5057 "earliest" from rtx * to rtx_insn **.
5058 (noce_find_if_block): Strengthen local "cond_earliest" from rtx to
5060 (find_cond_trap): Likewise.
5061 (dead_or_predicable): Likewise for local "earliest".
5062 * loop-iv.c (check_simple_exit): Likewise for local "at". Add
5064 * rtlanal.c (canonicalize_condition): Likewise for param "insn"
5065 and local "prev". Strengthen param "earliest" from rtx * to
5067 (get_condition): Strengthen param "jump" from rtx to rtx_insn *
5068 Strengthen param "earliest" from rtx * to rtx_insn **.
5070 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5072 * fwprop.c (local_ref_killed_between_p): Strengthen params "from",
5073 "to" and local "insn" from rtx to rtx_insn *.
5075 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5077 * sel-sched.c (find_place_for_bookkeeping): Strengthen local "insn"
5078 from rtx to rtx_insn *.
5079 (need_nop_to_preserve_insn_bb): Likewise for param "insn".
5080 (code_motion_path_driver): Likewise for local "last_insn".
5081 (simplify_changed_insns): Likewise for local "insn".
5083 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5085 * rtl.h (push_to_sequence): Strengthen param from rtx to
5087 (push_to_sequence2): Likewise for both params.
5088 (delete_insns_since): Likewise for param.
5089 (reorder_insns_nobb): Likewise for all three params.
5090 (set_new_first_and_last_insn): Likewise for both params.
5092 * emit-rtl.h (set_first_insn): Strengthen param "insn" from rtx to
5093 rtx_insn *. Remove now-redundant cast.
5094 (set_last_insn): Likewise.
5096 * builtins.c (expand_builtin_return): Strengthen local
5097 "call_fusage" from rtx to rtx_insn *.
5098 * cfgrtl.c (create_basic_block_structure): Likewise for local
5100 * emit-rtl.c (set_new_first_and_last_insn): Likewise for params
5101 "first", "last" and local "insn".
5102 (delete_insns_since): Likewise for param "from".
5103 (reorder_insns_nobb): Likewise for params "from", "to", "after"
5105 (push_to_sequence): Likewise for param "first" and local "last".
5106 (push_to_sequence2): Likewise for params "first" and "last".
5107 * lra.c (emit_add3_insn): Likewise for local "last".
5108 (lra_emit_add): Likewise.
5109 * lra-constraints.c (base_to_reg): Likewise for locals "insn",
5111 (process_address_1): Likewise for locals "insn", last".
5112 * modulo-sched.c (ps_first_note): Likewise for return type.
5113 * optabs.c (expand_binop_directly): Likewise for param "last".
5115 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5117 * rtl.h (get_last_insn_anywhere): Strengthen return type from rtx
5119 * emit-rtl.c (get_last_insn_anywhere): Likewise.
5121 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5123 * function.h (struct sequence_stack): Strengthen fields "first"
5124 and "last" from rtx to rtx_insn *.
5125 (struct emit_status): Likewise for fields "x_first_insn" and
5128 * emit-rtl.h (get_insns): Remove now-redundant checked cast.
5129 (set_first_insn): Add checked cast.
5130 (get_last_insn): Remove now-redundant checked cast.
5131 (set_last_insn): Add checked cast.
5133 * config/m32c/m32c.c (m32c_leaf_function_p): Strengthen locals
5134 "saved_first" and "saved_last" from rtx to rtx_insn *.
5136 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5138 * rtl.h (add_insn): Strengthen param from rtx to rtx_insn *.
5139 (unlink_insn_chain): Strengthen both params from rtx to
5142 * cfgrtl.c (cfg_layout_function_header): Likewise for this
5144 (unlink_insn_chain): Likewise for params "first" and "last".
5145 Remove now-redundant checked cast.
5146 (record_effective_endpoints): Replace use of NULL_RTX with NULL.
5147 (fixup_reorder_chain): Strengthen local "insn" from rtx to
5149 * emit-rtl.c (link_insn_into_chain): Likewise for all three
5151 (add_insn): Likewise for param "insn" and local "prev".
5152 (add_insn_after_nobb): Likewise for both params and local "next".
5153 (add_insn_before_nobb): Likewise for both params and local "prev".
5154 (add_insn_after): Rename param "after" to "uncast_after",
5155 introducing local "after" with another checked cast.
5156 (add_insn_before): Rename params "insn" and "before", giving them
5157 "uncast_" prefixes, adding the old names back using checked casts.
5158 (emit_note_after): Likewise for param "after".
5159 (emit_note_before): Likewise for param "before".
5160 (emit_label): Add a checked cast.
5162 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5164 * cselib.h (cselib_record_sets_hook): Strengthen initial param
5165 "insn" from rtx to rtx_insn *.
5167 * cselib.c (cselib_record_sets_hook): Likewise.
5169 * var-tracking.c (add_with_sets): Likewise, renaming back from
5170 "uncast_insn" to "insn" and eliminating the checked cast from rtx
5173 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5175 * basic-block.h (struct rtl_bb_info): Strengthen fields "end_"
5176 and "header_" from rtx to rtx_insn *.
5177 (struct basic_block_d): Likewise for field "head_" within "x"
5178 field of union basic_block_il_dependent.
5179 (BB_HEAD): Drop function...
5180 (SET_BB_HEAD): ...and this function in favor of...
5181 (BB_HEAD): ...reinstate macro.
5182 (BB_END): Drop function...
5183 (SET_BB_END): ...and this function in favor of...
5184 (BB_END): ...reinstate macro.
5185 (BB_HEADER): Drop function...
5186 (SET_BB_HEADER): ...and this function in favor of...
5187 (BB_HEADER): ...reinstate macro.
5189 * bb-reorder.c (add_labels_and_missing_jumps): Drop use of BB_END.
5190 (fix_crossing_unconditional_branches): Likewise.
5191 * caller-save.c (save_call_clobbered_regs): Likewise.
5192 (insert_one_insn): Drop use of SET_BB_HEAD and SET_BB_END.
5193 * cfgbuild.c (find_bb_boundaries): Drop use of SET_BB_END.
5194 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
5195 (merge_blocks_move_successor_nojumps): Likewise.
5196 (outgoing_edges_match): Update use of for_each_rtx to
5197 for_each_rtx_in_insn.
5198 * cfgexpand.c (expand_gimple_cond): Drop use of SET_BB_END.
5199 (expand_gimple_cond): Likewise.
5200 (expand_gimple_tailcall): Likewise.
5201 (expand_gimple_basic_block): Drop use of SET_BB_HEAD and
5203 (construct_exit_block): Drop use of SET_BB_END.
5204 * cfgrtl.c (cfg_layout_function_footer): Strengthen from rtx to
5206 (delete_insn): Rename param "insn" to "uncast_insn", introducing
5207 a new local "insn" with a checked cast to rtx_insn *. Drop use of
5208 SET_BB_HEAD and SET_BB_END.
5209 (create_basic_block_structure): Drop use of SET_BB_HEAD and
5211 (rtl_delete_block): Drop use of SET_BB_HEAD.
5212 (rtl_split_block): Drop use of SET_BB_END.
5213 (emit_nop_for_unique_locus_between): Likewise.
5214 (rtl_merge_blocks): Drop use of SET_BB_END and SET_BB_HEAD.
5215 (block_label): Drop use of SET_BB_HEAD.
5216 (fixup_abnormal_edges): Drop use of SET_BB_END.
5217 (record_effective_endpoints): Drop use of SET_BB_HEADER.
5218 (relink_block_chain): Likewise.
5219 (fixup_reorder_chain): Drop use of SET_BB_END.
5220 (cfg_layout_duplicate_bb): Drop use of SET_BB_HEADER.
5221 (cfg_layout_delete_block): Strengthen local "to" from rtx * to
5222 rtx_insn **. Drop use of SET_BB_HEADER.
5223 (cfg_layout_merge_blocks): Drop use of SET_BB_HEADER, SET_BB_END,
5225 (BB_HEAD): Delete this function.
5226 (SET_BB_HEAD): Likewise.
5228 (SET_BB_END): Likewise.
5229 (BB_HEADER): Likewise.
5230 (SET_BB_HEADER): Likewise.
5231 * emit-rtl.c (add_insn_after): Rename param "insn" to
5232 "uncast_insn", adding a new local "insn" and a checked cast to
5233 rtx_insn *. Drop use of SET_BB_END.
5234 (remove_insn): Strengthen locals "next" and "prev" from rtx to
5235 rtx_insn *. Drop use of SET_BB_HEAD and SET_BB_END.
5236 (reorder_insns): Drop use of SET_BB_END.
5237 (emit_insn_after_1): Strengthen param "first" and locals "last",
5238 "after_after" from rtx to rtx_insn *. Drop use of SET_BB_END.
5239 (emit_pattern_after_noloc): Add checked cast.
5240 * haifa-sched.c (get_ebb_head_tail): Drop use of SET_BB_END.
5241 (restore_other_notes): Likewise.
5242 (move_insn): Likewise.
5243 (sched_extend_bb): Likewise.
5244 (fix_jump_move): Likewise.
5245 * ifcvt.c (noce_process_if_block): Likewise.
5246 (dead_or_predicable): Likewise.
5247 * ira.c (update_equiv_regs): Drop use of SET_BB_HEAD.
5248 * reg-stack.c (change_stack): Drop use of SET_BB_END.
5249 * sel-sched-ir.c (sel_move_insn): Likewise.
5250 * sel-sched.c (move_nop_to_previous_block): Likewise.
5252 * config/c6x/c6x.c (hwloop_optimize): Drop use of SET_BB_HEAD and
5254 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
5256 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5258 * basic-block.h (create_basic_block_structure): Strengthen params
5259 1 "head" and 2 "end" from rtx to rtx_insn *.
5260 * cfgrtl.c (create_basic_block_structure): Likewise.
5261 (rtl_create_basic_block): Update casts from void * to rtx to
5262 rtx_insn *, so that we can pass them as rtx_insn * to
5263 create_basic_block_structure.
5264 * sel-sched-ir.c (sel_create_basic_block): Likewise.
5266 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5268 * rtl.h (for_each_inc_dec): Strengthen param 1 from rtx * to
5270 (check_for_inc_dec): Strengthen param "insn" from rtx to
5273 * cselib.h (cselib_process_insn): Likewise.
5275 * cselib.c (cselib_record_sets): Likewise.
5276 (cselib_process_insn): Likewise.
5278 * dse.c (struct insn_info): Likewise for field "insn".
5279 (check_for_inc_dec_1): Likewise for local "insn".
5280 (check_for_inc_dec): Likewise for param "insn".
5281 (scan_insn): Likewise.
5282 (dse_step1): Likewise for local "insn".
5284 * rtlanal.c (for_each_inc_dec): Strengthen param 1 from rtx * to
5285 rtx_insn **. Use for_each_rtx_in_insn rather than for_each_rtx.
5287 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5289 * sched-int.h (struct _dep): Strengthen fields "pro" and "con"
5290 from rtx to rtx_insn *.
5291 (DEP_PRO): Delete this function and...
5292 (SET_DEP_PRO): ...this function in favor of...
5293 (DEP_PRO): ...reinstate this macro.
5294 (DEP_CON): Delete this function and...
5295 (SET_DEP_CON): ...this function in favor of...
5296 (DEP_CON): ...reinstate this old macro.
5297 (init_dep_1): Strengthen params 2 and 3 from rtx to rtx_insn *.
5298 (init_dep): Likewise.
5299 (set_priorities): Likewise for both params.
5300 (sd_copy_back_deps): Likewise for params 1 and 2.
5302 * haifa-sched.c (priority): Likewise for param "insn" and local
5304 (set_priorities): Likewise for params "head" and "tail" and local
5306 (process_insn_forw_deps_be_in_spec): Likewise for param "twin" and
5308 (add_to_speculative_block): Add a checked cast.
5309 (create_check_block_twin): Drop use of SET_DEP_CON.
5310 (add_jump_dependencies): Strengthen params "insn" and "jump" from
5313 * sched-deps.c (init_dep_1): Likewise for params "pro" and "con".
5314 Drop use of SET_DEP_PRO
5315 (init_dep): Strengthen params "pro" and "con" from rtx to
5317 (sd_copy_back_deps): Likewise for params "to" and "from". Drop
5321 (SET_DEP_PRO): Delete.
5322 (SET_DEP_CON): Delete.
5324 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5326 * sel-sched-ir.h (struct vinsn_def): Strengthen field "insn_rtx"
5327 from rtx to rtx_insn *.
5328 (VINSN_INSN_RTX): Eliminate rvalue function and...
5329 (SET_VINSN_INSN): ...lvalue function in favor of...
5330 (VINSN_INSN_RTX): reinstate this old macro.
5332 * sel-sched-ir.c (vinsn_init): Eliminate use of SET_VINSN_INSN_RTX
5333 in favor of VINSN_INSN_RTX.
5334 (VINSN_INSN_RTX): Delete this function.
5335 (SET_VINSN_INSN_RTX): Likewise.
5337 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5339 * sel-sched-ir.h (insn_t): Strengthen from rtx to rtx_insn *.
5340 (BND_TO): Delete this function and...
5341 (SET_BND_TO): ...this functions in favor of...
5342 (BND_TO): ...reinstating this macro.
5343 (struct _fence): Strengthen field "executing_insns" from
5344 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *. Strengthen fields
5345 "last_scheduled_insn" and "sched_next" from rtx to rtx_insn *.
5346 (_succ_iter_cond): Update param "succp" from rtx * to insn_t *
5347 and param "insn" from rtx to insn_t.
5348 (create_vinsn_from_insn_rtx): Strengthen first param from rtx to
5351 * sched-int.h (insn_vec_t): Strengthen from vec<rtx> to
5353 (rtx_vec_t): Likewise.
5354 (struct sched_deps_info_def): Strengthen param of "start_insn"
5355 callback from rtx to rtx_insn *. Likewise for param "insn2" of
5356 "note_mem_dep" callback and first param of "note_dep" callback.
5358 * haifa-sched.c (add_to_speculative_block): Strengthen param
5359 "insn" from rtx to rtx_insn *.
5360 (clear_priorities): Likewise.
5361 (calc_priorities): Likewise for local "insn".
5363 * sched-deps.c (haifa_start_insn): Likewise for param "insn".
5364 Remove redundant checked cast.
5365 (haifa_note_mem_dep): Likewise for param "pending_insn".
5366 (haifa_note_dep): Likewise for param "elem".
5367 (note_mem_dep): Likewise for param "e".
5368 (sched_analyze_1): Add checked casts.
5369 (sched_analyze_2): Likewise.
5371 * sel-sched-dump.c (dump_insn_vector): Strengthen local "succ"
5372 from rtx to rtx_insn *.
5373 (debug): Update param from vec<rtx> & to vec<rtx_insn *>, and
5374 from vec<rtx> * to vec<rtx_insn *> *.
5376 * sel-sched-ir.c (blist_add): Remove use of SET_BND_TO
5378 (flist_add): Strengthen param "executing_insns" from
5379 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5380 (advance_deps_context): Remove now-redundant checked cast.
5381 (init_fences): Replace uses of NULL_RTX with NULL.
5382 (merge_fences): Strengthen params "last_scheduled_insn" and
5383 "sched_next" from rtx to rtx_insn * and "executing_insns" from
5384 vec<rtx, va_gc> * to vec<rtx_insn *, va_gc> *.
5385 (add_clean_fence_to_fences): Replace uses of NULL_RTX with NULL.
5386 (get_nop_from_pool): Add local "nop_pat" so that "nop" can be
5387 an instruction, rather than doing double-duty as a pattern.
5388 (return_nop_to_pool): Update for change of insn_t.
5389 (deps_init_id): Remove now-redundant checked cast.
5390 (struct sched_scan_info_def): Strengthen param of "init_insn"
5391 callback from rtx to insn_t.
5392 (sched_scan): Strengthen local "insn" from rtx to rtx_insn *.
5393 (init_global_and_expr_for_insn): Replace uses of NULL_RTX with
5395 (get_seqno_by_succs): Strengthen param "insn" and locals "tmp",
5396 "end" from rtx to rtx_insn *.
5397 (create_vinsn_from_insn_rtx): Likewise for param "insn_rtx".
5398 (rtx insn_rtx, bool force_unique_p)
5399 (BND_TO): Delete function.
5400 (SET_BND_TO): Delete function.
5402 * sel-sched.c (advance_one_cycle): Strengthen local "insn" from
5404 (extract_new_fences_from): Replace uses of NULL_RTX with NULL.
5405 (replace_dest_with_reg_in_expr): Strengthen local "insn_rtx" from
5407 (undo_transformations): Likewise for param "insn".
5408 (update_liveness_on_insn): Likewise.
5409 (compute_live_below_insn): Likewise for param "insn" and local
5411 (update_data_sets): Likewise for param "insn".
5412 (fill_vec_av_set): Replace uses of NULL_RTX with NULL.
5413 (convert_vec_av_set_to_ready): Drop now-redundant checked cast.
5414 (invoke_aftermath_hooks): Strengthen param "best_insn" from rtx to
5416 (move_cond_jump): Likewise for param "insn".
5417 (move_cond_jump): Drop use of SET_BND_TO.
5418 (compute_av_set_on_boundaries): Likewise.
5419 (update_fence_and_insn): Replace uses of NULL_RTX with NULL.
5420 (update_and_record_unavailable_insns): Strengthen local "bb_end"
5421 from rtx to rtx_insn *.
5422 (maybe_emit_renaming_copy): Likewise for param "insn".
5423 (maybe_emit_speculative_check): Likewise.
5424 (handle_emitting_transformations): Likewise.
5425 (remove_insn_from_stream): Likewise.
5426 (code_motion_process_successors): Strengthen local "succ" from rtx
5429 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5431 * sel-sched-ir.h (ilist_t): Redefine this typedef in terms of
5432 ilist_t, not _xlist_t;
5433 (ILIST_INSN): Define in terms of new union field "insn".
5434 (ILIST_NEXT): Define in terms of _LIST_NEXT rather than
5436 (struct _list_node): Add new field "insn" to the union, of type
5438 (ilist_add): Replace macro with an inline function, requiring an
5440 (ilist_remove): Define this macro directly in terms of
5441 _list_remove, rather than indirectly via _xlist_remove.
5442 (ilist_clear): Likewise, in terms of _list_clear rather than
5444 (ilist_is_in_p): Replace macro with an inline function, requiring
5446 (_list_iter_cond_insn): New function.
5447 (ilist_iter_remove): Define this macro directly in terms of
5448 _list_iter_remove, rather than indirectly via _xlist_iter_remove.
5449 (ilist_iterator): Define directly in terms of _list_iterator
5450 rather than indirectly through _xlist_iterator.
5451 (FOR_EACH_INSN): Define in terms of _list_iter_cond_insn rather
5452 than in terms of _FOR_EACH_X.
5453 (FOR_EACH_INSN_1): Likewise.
5455 2014-08-26 Joseph Myers <joseph@codesourcery.com>
5459 * varasm.c (make_decl_rtl): Clear DECL_ASSEMBLER_NAME and
5460 DECL_HARD_REGISTER and return for invalid register specifications.
5461 * cfgexpand.c (expand_one_var): If expand_one_hard_reg_var clears
5462 DECL_HARD_REGISTER, call expand_one_error_var.
5463 * config/arm/arm.c (arm_hard_regno_mode_ok): Do not allow
5464 CC_REGNUM with non-MODE_CC modes.
5465 (arm_regno_class): Return NO_REGS for PC_REGNUM.
5467 2014-08-26 Marek Polacek <polacek@redhat.com>
5470 * sel-sched-ir.c (make_regions_from_the_rest): Fix condition.
5472 2014-08-26 Evandro Menezes <e.menezes@samsung.com>
5474 * config/arm/aarch64/aarch64.c (generic_addrcost_table): Delete
5475 qi cost; add di cost.
5476 (cortexa57_addrcost_table): Likewise.
5478 2014-08-26 Marek Polacek <polacek@redhat.com>
5481 * expr.c (is_aligning_offset): Remove logical not.
5483 2014-08-26 Marek Polacek <polacek@redhat.com>
5486 * tree-vectorizer.h (LOOP_REQUIRES_VERSIONING_FOR_ALIGNMENT,
5487 LOOP_REQUIRES_VERSIONING_FOR_ALIAS): Wrap in parens.
5489 2014-08-26 Richard Biener <rguenther@suse.de>
5491 PR tree-optimization/62175
5492 * tree-ssa-loop-niter.c (expand_simple_operations): Do not
5493 expand possibly trapping operations.
5495 2014-08-26 David Malcolm <dmalcolm@redhat.com>
5497 * config/rs6000/rs6000.c (class swap_web_entry): Strengthen field
5498 "insn" from rtx to rtx_insn *.
5499 (permute_load): Likewise for param "insn".
5500 (permute_store): Likewise.
5501 (handle_special_swappables): Likewise for local "insn".
5502 (replace_swap_with_copy): Likewise for locals "insn" and
5504 (rs6000_analyze_swaps): Likewise for local "insn".
5506 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5508 * regrename.h (struct du_chain): Strengthen field "insn" from rtx
5511 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5513 * sel-sched-ir.h (struct sel_region_bb_info_def): Strengthen field
5514 "note_list" from rtx to rtx_insn *.
5515 (BB_NOTE_LIST): Replace this function and...
5516 (SET_BB_NOTE_LIST): ...this function with...
5517 (BB_NOTE_LIST): ...the former macro implementation.
5519 * sched-int.h (concat_note_lists): Strengthen param "from_end" and
5520 local "from_start" from rtx to rtx_insn *. Strengthen param
5521 "to_endp" from rtx * to rtx_insn **.
5523 * haifa-sched.c (concat_note_lists): Likewise.
5524 * sel-sched-ir.c (init_bb): Eliminate SET_BB_NOTE_LIST in favor of
5526 (sel_restore_notes): Likewise.
5527 (move_bb_info): Likewise.
5528 (BB_NOTE_LIST): Delete this function.
5529 (SET_BB_NOTE_LIST): Delete this function.
5530 * sel-sched.c (create_block_for_bookkeeping): Eliminate
5531 SET_BB_NOTE_LIST in favor of BB_NOTE_LIST.
5533 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5535 * target.def (reorder): Strengthen param "ready" of this DEFHOOK
5536 from rtx * to rtx_insn **.
5537 (reorder2): Likewise.
5538 (dependencies_evaluation_hook): Strengthen params "head", "tail"
5539 from rtx to rtx_insn *.
5541 * doc/tm.texi: Update mechanically for above change to target.def.
5543 * sched-int.h (note_list): Strengthen this variable from rtx to
5545 (remove_notes): Likewise for both params.
5546 (restore_other_notes): Likewise for return type and first param.
5547 (struct ready_list): Strengthen field "vec" from rtx * to
5549 (struct dep_replacement): Strenghten field "insn" from rtx to
5551 (struct deps_desc): Likewise for fields "last_debug_insn",
5553 (struct haifa_sched_info): Likewise for callback field
5554 "can_schedule_ready_p"'s param, for first param of "new_ready"
5555 callback field, for both params of "rank" callback field, for
5556 first field of "print_insn" callback field (with a const), for
5557 both params of "contributes_to_priority" callback, for param
5558 of "insn_finishes_block_p" callback, for fields "prev_head",
5559 "next_tail", "head", "tail", for first param of "add_remove_insn"
5560 callback, for first param of "begin_schedule_ready" callback, for
5561 both params of "begin_move_insn" callback, and for second param
5562 of "advance_target_bb" callback.
5563 (add_dependence): Likewise for params 1 and 2.
5564 (sched_analyze): Likewise for params 2 and 3.
5565 (deps_analyze_insn): Likewise for param 2.
5566 (ready_element): Likewise for return type.
5567 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5568 (try_ready): Strenghten param from rtx to rtx_insn *.
5569 (sched_emit_insn): Likewise for return type.
5570 (record_delay_slot_pair): Likewise for params 1 and 2.
5571 (add_delay_dependencies): Likewise for param.
5572 (contributes_to_priority): Likewise for both params.
5573 (find_modifiable_mems): Likewise.
5575 * config/arm/arm.c (cortexa7_sched_reorder): Strengthen param
5576 "ready" from rtx * to rtx_insn **. Strengthen locals "insn",
5577 "first_older_only_insn" from rtx to rtx_insn *.
5578 (arm_sched_reorder): Strengthen param "ready" from rtx * to
5581 * config/c6x/c6x.c (struct c6x_sched_context): Strengthen field
5582 "last_scheduled_iter0" from rtx to rtx_insn *.
5583 (init_sched_state): Replace use of NULL_RTX with NULL for insn.
5584 (c6x_sched_reorder_1): Strengthen param "ready" and locals
5585 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5586 "insn" from rtx to rtx_insn *.
5587 (c6x_sched_reorder): Strengthen param "ready" from rtx * to
5589 (c6x_sched_reorder2): Strengthen param "ready" and locals
5590 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen local
5591 "insn" from rtx to rtx_insn *.
5592 (c6x_variable_issue): Add a checked cast when assigning from insn
5593 to ss.last_scheduled_iter0.
5594 (split_delayed_branch): Strengthen param "insn" and local "i1"
5595 from rtx to rtx_insn *.
5596 (split_delayed_nonbranch): Likewise.
5597 (undo_split_delayed_nonbranch): Likewise for local "insn".
5598 (hwloop_optimize): Likewise for locals "seq", "insn", "prev",
5599 "entry_after", "end_packet", "head_insn", "tail_insn",
5600 "new_insns", "last_insn", "this_iter", "prev_stage_insn".
5601 Strengthen locals "orig_vec", "copies", "insn_copies" from rtx *
5602 to rtx_insn **. Remove now-redundant checked cast on last_insn,
5603 but add a checked cast on loop->start_label. Consolidate calls to
5604 avoid assigning result of gen_spkernel to "insn", now an
5607 * config/i386/i386.c (do_reorder_for_imul): Strengthen param
5608 "ready" from rtx * to rtx_insn **. Strengthen local "insn" from
5610 (swap_top_of_ready_list): Strengthen param "ready" from rtx * to
5611 rtx_insn **. Strengthen locals "top", "next" from rtx to
5613 (ix86_sched_reorder): Strengthen param "ready" from rtx * to
5614 rtx_insn **. Strengthen local "insn" from rtx to rtx_insn *.
5615 (add_parameter_dependencies): Strengthen params "call", "head" and
5616 locals "insn", "last", "first_arg" from rtx to rtx_insn *.
5617 (avoid_func_arg_motion): Likewise for params "first_arg", "insn".
5618 (add_dependee_for_func_arg): Likewise for param "arg" and local
5620 (ix86_dependencies_evaluation_hook): Likewise for params "head",
5621 "tail" and locals "insn", "first_arg".
5623 * config/ia64/ia64.c (ia64_dependencies_evaluation_hook): Likewise
5624 for params "head", "tail" and locals "insn", "next", "next_tail".
5625 (ia64_dfa_sched_reorder): Strengthen param "ready" and locals
5626 "e_ready", "insnp" from rtx * to rtx_insn **. Strengthen locals
5627 "insn", "lowest", "highest" from rtx to rtx_insn *.
5628 (ia64_sched_reorder): Strengthen param "ready" from rtx * to
5630 (ia64_sched_reorder2): Likewise.
5632 * config/mep/mep.c (mep_find_ready_insn): Strengthen return type
5633 and local "insn" from rtx to rtx_insn *. Strengthen param "ready"
5634 from rtx * to rtx_insn **.
5635 (mep_move_ready_insn): Strengthen param "ready" from rtx * to
5637 (mep_print_sched_insn): Strengthen param "insn" from rtx to
5639 (mep_sched_reorder): Strengthen param "ready" from rtx * to
5640 rtx_insn **. Strengthen locals "core_insn", "cop_insn" from rtx
5643 * config/mips/mips.c (mips_promote_ready): Strengthen param "ready"
5644 from rtx * to rtx_insn **. Strengthen local "new_head" from rtx
5646 (mips_maybe_swap_ready): Strengthen param "ready" from rtx * to
5647 rtx_insn **. Strengthen local "temp" from rtx to rtx_insn *.
5648 (mips_macc_chains_reorder): Strengthen param "ready" from rtx * to
5650 (vr4130_reorder): Likewise.
5651 (mips_74k_agen_reorder): Likewise. Strengthen local "insn" from
5653 (mips_sched_reorder_1): Strengthen param "ready" from rtx * to
5655 (mips_sched_reorder): Likewise.
5656 (mips_sched_reorder2): Likewise.
5658 * config/picochip/picochip.c (picochip_sched_reorder): Likewise.
5660 * config/rs6000/rs6000.c (rs6000_sched_reorder): Likewise.
5661 Strengthen local "tmp" from rtx to rtx_insn *.
5662 (rs6000_sched_reorder2): Likewise.
5664 * config/s390/s390.c (s390_z10_prevent_earlyload_conflicts):
5665 Likewise. Update sizeof(rtx) to sizeof(rtx_insn *) in memmove.
5666 (s390_sched_reorder): Strengthen param "ready" from rtx * to
5667 rtx_insn **. Strengthen local "tmp" from rtx to rtx_insn *.
5669 * config/sh/sh.c (rank_for_reorder): Strengthen locals "tmp",
5670 "tmp2" from rtx to rtx_insn *.
5671 (swap_reorder): Strengthen param "a" from rtx * to rtx_insn **.
5672 Strengthen local "insn" from rtx to rtx_insn *.
5673 (ready_reorder): Strengthen param "ready" from rtx * to
5674 rtx_insn **. Update sizeof(rtx) to sizeof(rtx_insn *) in qsort.
5675 (sh_reorder): Strengthen param "ready" from rtx * to rtx_insn **.
5676 (sh_reorder2): Likewise.
5678 * config/spu/spu.c (spu_sched_reorder): Likewise. Strengthen
5679 local "insn" from rtx to rtx_insn *.
5681 * haifa-sched.c (note_list): Strengthen this variable from rtx to
5683 (scheduled_insns): Strengthen this variable from vec<rtx> to
5685 (set_modulo_params): Likewise for locals "i1", "i2".
5686 (record_delay_slot_pair): Likewise for params "i1", "i2".
5687 (add_delay_dependencies): Likewise for param "insn".
5688 (cond_clobbered_p): Likewise.
5689 (recompute_todo_spec): Likewise for local "prev".
5690 (last_scheduled_insn): Likewise for this variable.
5691 (nonscheduled_insns_begin): Likewise.
5692 (model_set_excess_costs): Strengthen param "insns" from rtx * to
5694 (rank_for_schedule): Strengthen locals "tmp", "tmp2" from rtx to
5696 (swap_sort): Strengthen param "a" from rtx * to rtx_insn **.
5697 Strengthen local "insn" from rtx to rtx_insn *.
5698 (queue_insn): Strengthen param "insn" from rtx to rtx_insn *.
5699 (ready_lastpos): Strengthen return type from rtx * to rtx_insn **.
5700 (ready_add): Strengthen param "insn" from rtx to rtx_insn *.
5701 (ready_remove_first): Likewise for return type and local "t".
5702 (ready_element): Likewise for return type.
5703 (ready_remove): Likewise for return type and local "t".
5704 (ready_sort): Strengthen local "first" from rtx * to rtx_insn **.
5705 (check_clobbered_conditions): Strengthen local "x" from rtx to
5706 rtx_insn *, adding a checked cast.
5707 (schedule_insn): Likewise for param "insn".
5708 (remove_notes): Likewise for params "head", "tail" and locals
5709 "next_tail", "insn", "next".
5710 (struct haifa_saved_data): Likewise for fields
5711 "last_scheduled_insn", "nonscheduled_insns_begin".
5712 (save_backtrack_point): Update for change to field "vec" of
5714 (toggle_cancelled_flags): Strengthen local "first" from rtx * to
5716 (restore_last_backtrack_point): Likewise. Strengthen local "insn"
5717 from rtx to rtx_insn *
5718 (resolve_dependencies): Strengthen param "insn" from rtx to
5720 (restore_other_notes): Likewise for return type, for param "head"
5721 and local "note_head".
5722 (undo_all_replacements): Likewise for local "insn".
5723 (first_nonscheduled_insn): Likewise for return type and local "insn".
5724 (queue_to_ready): Likewise for local "insn", adding checked casts.
5725 (early_queue_to_ready): Likewise for local "insn".
5726 (debug_ready_list_1): Strengthen local "p" from rtx * to
5728 (move_insn): Strengthen param "insn" and local "note" from rtx to
5730 (insn_finishes_cycle_p): Likewise for param "insn".
5731 (max_issue): Likewise for local "insn".
5732 (choose_ready): Likewise. Strengthen param "insn_ptr" from rtx *
5734 (commit_schedule): Strengthen param "prev_head" and local "insn"
5735 from rtx to rtx_insn *
5736 (prune_ready_list): Likewise for local "insn".
5737 (schedule_block): Likewise for locals "prev_head", "head", "tail",
5738 "skip_insn", "insn", "failed_insn", "x", adding a checked cast.
5739 (set_priorities): Likewise for local "prev_head".
5740 (try_ready): Likewise for param "next".
5741 (fix_tick_ready): Likewise.
5742 (change_queue_index): Likewise.
5743 (sched_extend_ready_list): Update for change to field "vec" of
5745 (generate_recovery_code): Strengthen param "insn" from rtx to
5747 (begin_speculative_block): Likewise.
5748 (create_check_block_twin): Likewise for param "insn" and locals
5749 "label", "check", "twin". Introduce local "check_pat" to avoid
5750 "check" being used as a plain rtx before being used as an insn.
5751 (fix_recovery_deps): Add a checked cast to rtx_insn * when
5752 extracting elements from ready_list.
5753 (sched_remove_insn): Strengthen param "insn" from rtx to
5755 (sched_emit_insn): Likewise for return type.
5756 (ready_remove_first_dispatch): Likewise for return type and local
5759 * hw-doloop.c (discover_loop): Add a checked cast to rtx_insn *.
5761 * modulo-sched.c (sms_print_insn): Strengthen from const_rtx to
5764 * sched-deps.c (add_dependence): Strengthen params "con", "pro"
5765 from rtx to rtx_insn *.
5766 (add_dependence_list): Likewise for param "insn". Add a checked
5768 (add_dependence_list_and_free): Strengthen param "insn" from rtx
5769 to rtx_insn *. Strengthen param "list_p" from rtx * to
5771 (chain_to_prev_insn): Strengthen param "insn" and locals
5772 "prec_nonnote", "i" from rtx to rtx_insn *.
5773 (flush_pending_lists): Likewise for param "insn".
5774 (cur_insn): Likewise for this variable.
5775 (haifa_start_insn): Add a checked cast.
5776 (note_dep): Strengthen param "e" from rtx to rtx_insn *.
5777 (sched_analyze_reg): Likewise for param "insn".
5778 (sched_analyze_1): Likewise.
5779 (sched_analyze_2): Likewise. Add checked casts.
5780 (sched_analyze_insn): Likewise. Also for local "prev".
5781 (deps_analyze_insn): Likewise for param "insn".
5782 (sched_analyze): Likewise for params "head", "tail" and local "insn".
5783 (add_dependence_1): Likewise for params "insn", "elem".
5784 (struct mem_inc_info): Likewise for fields "inc_insn", "mem_insn".
5785 (parse_add_or_inc): Likewise for param "insn".
5786 (find_inc): Likewise for local "inc_cand".
5787 (find_modifiable_mems): Likewise for params "head", "tail" and
5788 locals "insn", "next_tail".
5790 * sched-ebb.c (init_ready_list): Likewise for local "insn".
5791 (begin_schedule_ready): Likewise for param "insn".
5792 (begin_move_insn): Likewise for params "insn" and "last".
5793 (ebb_print_insn): Strengthen param "insn" from const_rtx to
5795 (rank): Strengthen params "insn1", "insn2" from rtx to rtx_insn *.
5796 (ebb_contributes_to_priority): Likewise for params "next", "insn".
5797 (ebb_add_remove_insn): Likewise for param "insn".
5798 (advance_target_bb): Likewise.
5800 * sched-rgn.c (rgn_estimate_number_of_insns): Likewise for local
5802 (check_live): Likewise for param "insn".
5803 (init_ready_list): Likewise for local "insn".
5804 (can_schedule_ready_p): Likewise for param "insn".
5805 (begin_schedule_ready): Likewise.
5806 (new_ready): Likewise for param "next".
5807 (rgn_print_insn): Likewise for param "insn".
5808 (rgn_rank): Likewise for params "insn1", "insn2".
5809 (contributes_to_priority): Likewise for params "next", "insn".
5810 (rgn_insn_finishes_block_p): Likewise for param "insn".
5811 (add_branch_dependences): Likewise for params "head", "tail" and
5812 locals "insn", "last".
5813 (rgn_add_remove_insn): Likewise for param "insn".
5814 (advance_target_bb): Likewise.
5816 * sel-sched-dump.c (sel_print_insn): Strengthen param "insn" from
5817 const_rtx to const rtx_insn *.
5819 * sel-sched-dump.h (sel_print_insn): Likewise.
5821 * sel-sched-ir.c (advance_deps_context): Add a checked cast.
5822 (deps_init_id): Likewise.
5824 * sel-sched.c (convert_vec_av_set_to_ready): Likewise.
5825 (invoke_reorder_hooks): Strengthen local "arr" from rtx * to
5828 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5830 * output.h (final_start_function): Strengthen param 1 from rtx to
5833 * final.c (final_start_function): Likewise, renaming back from
5834 "uncast_first" to "first", and dropping the checked cast from rtx
5837 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5839 * output.h (final): Strengthen param 1 from rtx to rtx_insn *.
5840 * final.c (final): Likewise. Rename param back from
5841 "uncast_first" to "first" and eliminate the checked cast from rtx
5844 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5846 * output.h (shorten_branches): Strengthen param from rtx to
5849 * final.c (shorten_branches): Likewise, renaming param back from
5850 "uncast_first" to "first", and dropping the checked cast from rtx
5853 * genattr.c (gen_attr): Likewise when writing out the prototype of
5856 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5858 * sched-int.h (struct haifa_sched_info): Strengthen fields
5859 "prev_head" and "next_tail" from rtx to rtx_insn *.
5861 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5863 * rtl.h (rtx_jump_table_data::get_labels): New method.
5864 * cfgbuild.c (make_edges): Replace hand-coded lookup of labels
5865 with use of the new rtx_jump_table_data::get_labels method.
5866 (purge_dead_tablejump_edges): Strengthen param "table" from rtx
5867 to rtx_jump_table_data *. Simplify by using get_labels method.
5868 * cfgrtl.c (delete_insn): Replace use of JUMP_TABLE_DATA_P with
5869 a dyn_cast, introducing local "table", using it to replace
5870 label-lookup logic with a get_labels method call.
5871 (patch_jump_insn): Simplify using get_labels method.
5872 * dwarf2cfi.c (create_trace_edges): Likewise.
5873 * rtlanal.c (label_is_jump_target_p): Likewise.
5875 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5877 * rtl.h (unshare_all_rtl_again): Strengthen param "insn" from rtx
5880 * emit-rtl.c (unshare_all_rtl_1): Likewise.
5881 (unshare_all_rtl_again): Likewise, also for local "p".
5883 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5885 * rtl.h (delete_insn_and_edges): Strengthen param "insn" from rtx
5887 * cfgrtl.c (delete_insn_and_edges): Likewise.
5889 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5891 * rtl.h (reorder_insns): Strengthen params "from", "to", "after"
5892 from rtx to rtx_insn *.
5894 * emit-rtl.c (reorder_insns): Likewise, also for local "insn".
5896 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5898 * function.c (thread_prologue_and_epilogue_insns): Likewise for
5899 locals "returnjump", "epilogue_end", "insn", "next".
5901 * shrink-wrap.h (get_unconverted_simple_return): Strengthen param
5902 "returnjump" from rtx * to rtx_insn **.
5903 * shrink-wrap.c (get_unconverted_simple_return): Likewise.
5905 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5907 * basic-block.h (struct edge_def). Strengthen "r" within
5908 union edge_def_insns from rtx to rtx_insn *.
5910 * cfgexpand.c (pass_expand::execute): Remove now-redundant cast
5911 from rtx to rtx_insn *. Strengthen local "insns" from rtx to
5913 * cfgrtl.c (commit_one_edge_insertion): Remove now-redundant cast
5914 from rtx to rtx_insn *.
5915 * cprop.c (find_bypass_set): Strengthen local "insn" from rtx to
5917 * postreload-gcse.c (reg_killed_on_edge): Likewise.
5918 (reg_used_on_edge): Likewise.
5919 * tree-cfg.c (gt_ggc_mx): New overload for rtx_insn *&.
5920 (gt_pch_nx): New overload for rtx_insn *&.
5921 * tree-outof-ssa.c (expand_phi_nodes): Strengthen local "insns"
5922 from rtx to rtx_insn *.
5924 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5926 * basic-block.h (struct rtl_bb_info): Strengthen field "footer_"
5927 from rtx to rtx_insn *.
5928 (BB_FOOTER): Replace function with access macro.
5929 (SET_BB_FOOTER): Delete.
5931 * cfgcleanup.c (try_optimize_cfg): Replace uses of SET_BB_FOOTER
5933 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
5934 (emit_barrier_after_bb): Likewise.
5935 (record_effective_endpoints): Likewise.
5936 (relink_block_chain): Likewise.
5937 (fixup_fallthru_exit_predecessor): Likewise.
5938 (cfg_layout_duplicate_bb): Likewise.
5939 (cfg_layout_split_block): Likewise.
5940 (cfg_layout_delete_block): Likewise.
5941 (cfg_layout_merge_blocks): Likewise.
5942 (BB_FOOTER): Delete function.
5943 (SET_BB_FOOTER): Delete function.
5944 * combine.c (update_cfg_for_uncondjump): Replace uses of
5945 SET_BB_FOOTER with BB_FOOTER.
5947 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5949 * except.h (struct eh_landing_pad_d): Strengthen field
5950 "landing_pad" from rtx to rtx_code_label *.
5952 * except.c (sjlj_emit_dispatch_table): Likewise for param
5954 (sjlj_build_landing_pads): Likewise for local "dispatch_label".
5956 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5958 * config/xtensa/xtensa-protos.h (xtensa_emit_loop_end): Strengthen
5959 first param from rtx to rtx_insn *.
5960 * config/xtensa/xtensa.c (struct machine_function): Likewise for
5961 field "set_frame_ptr_insn".
5962 (xtensa_expand_compare_and_swap): Strengthen locals "csloop" and
5963 "csend" from rtx to rtx_code_label *.
5964 (xtensa_expand_atomic): Likewise for local "csloop".
5965 (xtensa_emit_loop_end): Strengthen param "insn" from rtx to
5967 (xtensa_call_tls_desc): Likewise for return type and locals
5968 "call_insn", "insns".
5969 (xtensa_legitimize_tls_address): Likewise for local "insns".
5970 (xtensa_expand_prologue): Likewise for locals "insn", "first".
5972 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5974 * config/v850/v850-protos.h (v850_adjust_insn_length): Strengthen
5975 first param from rtx to rtx_insn *.
5976 * config/v850/v850.c (v850_adjust_insn_length): Likewise for param
5979 2014-08-25 David Malcolm <dmalcolm@redhat.com>
5981 * config/tilepro/tilepro-protos.h (tilepro_output_cbranch_with_opcode):
5982 Strengthen param 1 from rtx to rtx_insn *.
5983 (tilepro_output_cbranch): Likewise.
5984 (tilepro_adjust_insn_length): Likewise.
5985 (tilepro_final_prescan_insn): Likewise for sole param.
5987 * config/tilepro/tilepro.c (tilepro_legitimize_tls_address):
5988 Likewise for local "last".
5989 (cbranch_predicted_p): Likewise for param "insn".
5990 (tilepro_output_simple_cbranch_with_opcode): Likewise.
5991 (tilepro_output_cbranch_with_opcode): Likewise.
5992 (tilepro_output_cbranch): Likewise.
5993 (frame_emit_load): Likewise for return type and locals "seq",
5995 (emit_sp_adjust): Likewise for return type and local "insn".
5996 (tilepro_expand_epilogue): Likewise for locals "last_insn",
5998 (tilepro_adjust_insn_length): Likewise for param "insn".
5999 (next_insn_to_bundle): Likewise for return type and params
6001 (tilepro_gen_bundles): Likewise for locals "insn", "next", "end".
6002 (replace_pc_relative_symbol_ref): Likewise for param "insn" and
6004 (match_addli_pcrel): Likewise for param "insn".
6005 (replace_addli_pcrel): Likewise.
6006 (match_auli_pcrel): Likewise.
6007 (replace_auli_pcrel): Likewise.
6008 (tilepro_fixup_pcrel_references): Likewise for locals "insn",
6010 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6011 "queue", "next_queue", "prev".
6012 (tilepro_asm_output_mi_thunk): Likewise for local "insn".
6013 (tilepro_final_prescan_insn): Likewise for param "insn".
6015 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6017 * config/tilegx/tilegx-protos.h (tilegx_output_cbranch_with_opcode):
6018 Strengthen param 1 from rtx to rtx_insn *.
6019 (tilegx_output_cbranch): Likewise.
6020 (tilegx_adjust_insn_length): Likewise.
6021 (tilegx_final_prescan_insn): Likewise for sole param.
6023 * config/tilegx/tilegx.c (tilegx_legitimize_tls_address): Likewise
6025 (cbranch_predicted_p): Likewise for param "insn".
6026 (tilegx_output_simple_cbranch_with_opcode): Likewise.
6027 (tilegx_output_cbranch_with_opcode): Likewise.
6028 (tilegx_output_cbranch): Likewise.
6029 (frame_emit_load): Likewise for return type.
6030 (set_frame_related_p): Likewise for locals "seq", "insn".
6031 (emit_sp_adjust): Likewise for return type, and for local "insn".
6032 Introduce local "pat" for use in place of "insn" where the latter
6033 isn't an instruction.
6034 (tilegx_expand_epilogue): Strengthen locals "last_insn", "insn"
6035 from rtx to rtx_insn *.
6036 (tilegx_adjust_insn_length): Likewise for param "insn".
6037 (next_insn_to_bundle): Likewise for return type and params "r" and
6039 (tilegx_gen_bundles): Likewise for locals "insn", "next", "prev",
6041 (replace_insns): Likewise for params "old_insn", "new_insns".
6042 (replace_mov_pcrel_step1): Likewise for param "insn" and local
6044 (replace_mov_pcrel_step2): Likewise.
6045 (replace_mov_pcrel_step3): Likewise.
6046 (tilegx_fixup_pcrel_references): Likewise for locals "insn",
6048 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6049 "queue", "next_queue", "prev".
6050 (tilegx_output_mi_thunk): Likewise for local "insn".
6051 (tilegx_final_prescan_insn): Likewise for param "insn".
6053 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6055 * config/spu/spu.c (frame_emit_store): Strengthen return type from
6057 (frame_emit_load): Likewise.
6058 (frame_emit_add_imm): Likewise, also for local "insn".
6059 (spu_expand_prologue): Likewise for local "insn".
6060 (struct spu_bb_info): Likewise for field "prop_jump".
6061 (emit_nop_for_insn): Likewise for param "insn" and local
6063 (pad_bb): Likewise for locals "insn", "next_insn", "prev_insn",
6065 (spu_emit_branch_hint): Likewise for params "before", "branch" and
6066 locals "hint", "insn".
6067 (get_branch_target): Likewise for param "branch".
6068 (insn_clobbers_hbr): Likewise for param "insn".
6069 (insert_hbrp_for_ilb_runout): Likewise for param "first" and
6070 locals "insn", "before_4", "before_16".
6071 (insert_hbrp): Likewise for local "insn".
6072 (spu_machine_dependent_reorg): Likewise for locals "branch",
6073 "insn", "next", "bbend".
6074 (uses_ls_unit): Likewise for param "insn".
6075 (get_pipe): Likewise.
6076 (spu_sched_variable_issue): Rename param "insn" to "uncast_insn",
6077 introducing a checked cast.
6078 (spu_sched_adjust_cost): Likewise for params "insn" and
6080 (ea_load_store_inline): Strengthen local "insn" from rtx to rtx_insn *.
6081 (spu_sms_res_mii): Likewise.
6083 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6085 * config/sparc/sparc-protos.h (output_ubranch): Strengthen param 2
6086 from rtx to rtx_insn *.
6087 (output_cbranch): Likewise for param 6.
6088 (output_return): Likewise for param 1.
6089 (output_sibcall): Likewise.
6090 (output_v8plus_shift): Likewise.
6091 (output_v8plus_mult): Likewise.
6092 (output_v9branch): Likewise for param 7.
6093 (output_cbcond): Likewise for param 3.
6095 * config/sparc/sparc.c (sparc_legitimize_tls_address): Likewise
6097 (sparc_legitimize_pic_address): Likewise.
6098 (sparc_emit_call_insn): Likewise.
6099 (emit_save_or_restore_regs): Likewise.
6100 (emit_window_save): Likewise for return type and local "insn".
6101 (sparc_expand_prologue): Likewise for local "insn".
6102 (sparc_flat_expand_prologue): Likewise.
6103 (output_return): Likewise for param "insn".
6104 (output_sibcall): Likewise for param "insn" and local "delay".
6105 (output_ubranch): Likewise for param "insn".
6106 (output_cbranch): Likewise.
6107 (output_cbcond): Likewise.
6108 (output_v9branch): Likewise.
6109 (output_v8plus_shift): Likewise.
6110 (sparc_output_mi_thunk): Likewise for local "insn".
6111 (get_some_local_dynamic_name): Likewise.
6112 (output_v8plus_mult): Likewise for param "insn".
6114 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6116 * config/sh/sh-protos.h (output_ieee_ccmpeq): Strengthen param 1
6117 from rtx to rtx_insn *.
6118 (output_branchy_insn): Likewise for param 3.
6119 (output_far_jump): Likewise for param 1.
6120 (final_prescan_insn): Likewise.
6121 (sh_insn_length_adjustment): Likewise for sole param.
6123 * config/sh/sh.c (expand_cbranchsi4): Likewise for local "jump".
6124 (expand_cbranchdi4): Strengthen local "skip_label" from rtx to
6126 (sh_emit_compare_and_set): Likewise for local "lab".
6127 (output_far_jump): Strengthen param "insn" and local "prev" from
6129 (output_branchy_insn): Likewise for param "insn" and local
6131 (output_ieee_ccmpeq): Likewise for param "insn".
6132 (struct label_ref_list_d): Strengthen field "label" from rtx to
6134 (pool_node): Likewise.
6135 (pool_window_label): Likewise for this global.
6136 (add_constant): Likewise for return type and locals "lab", "new_rtx".
6137 (dump_table): Strengthen params "start", "barrier" and local
6138 "scan" from rtx to rtx_insn *.
6139 (broken_move): Likewise for param "insn".
6140 (untangle_mova): Likewise for params "first_mova" and "new_mova".
6141 Strengthen param "first_mova" from rtx * to rtx_insn **.
6142 (mova_p): Likewise for param "insn".
6143 (fixup_mova): Likewise for param "mova".
6144 (find_barrier): Likewise for return type, params "mova" and
6145 "from", and locals "barrier_before_mova", "found_barrier",
6146 "good_barrier", "orig", "last_symoff", "next". Strengthen local
6147 "label" from rtx to rtx_code_label *.
6148 (sh_loop_align): Strengthen locals "first", "insn", "mova" from
6150 (sh_reorg): Likewise for locals "link", "scan", "barrier".
6151 (split_branches): Likewise for param "first" and local "insn".
6152 (final_prescan_insn): Likewise for param "insn".
6153 (sequence_insn_p): Likewise for locals "prev", "next".
6154 (sh_insn_length_adjustment): Likewise for param "insn".
6155 (sh_can_redirect_branch): Likewise for local "insn".
6156 (find_r0_life_regions): Likewise for locals "end", "insn".
6157 (sh_output_mi_thunk): Likewise for local "insns".
6159 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6161 * config/score/score.c (score_output_mi_thunk): Strengthen local
6162 "insn" from rtx to rtx_insn *.
6163 (score_prologue): Likewise.
6165 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6167 * config/s390/s390-protos.h (s390_match_ccmode): Strengthen param
6168 1 from rtx to rtx_insn *.
6169 (s390_emit_jump): Likewise for return type.
6170 (s390_emit_call): Likewise.
6171 (s390_load_got): Likewise.
6173 * config/s390/s390.c (last_scheduled_insn): Likewise for this
6175 (s390_match_ccmode): Likewise for param "insn".
6176 (s390_emit_jump): Likewise for return type.
6177 (s390_split_branches): Likewise for local "label".
6178 (struct constant): Strengthen field "label" from rtx to
6180 (struct constant_pool): Likewise for field "label". Strengthen
6181 fields "first_insn", "pool_insn", "emit_pool_after" from rtx to
6183 (s390_alloc_pool): Replace NULL_RTX with NULL when dealing with
6185 (s390_start_pool): Strengthen param "insn" from rtx to rtx_insn *.
6186 (s390_end_pool): Likewise.
6187 (s390_dump_pool): Likewise for local "insn".
6188 (s390_mainpool_start): Likewise.
6189 (s390_chunkify_start): Likewise.
6190 (s390_chunkify_start): Replace NULL_RTX with NULL when dealing
6191 with insns. Strengthen locals "label", "jump", "barrier", "next",
6192 "prev", "vec_insn", "insn" from rtx to rtx_insn *.
6193 (s390_chunkify_finish): Strengthen local "insn" from rtx to
6195 (s390_chunkify_cancel): Likewise for locals "insn", "barrier",
6196 "jump", "label", "next_insn".
6197 (s390_regs_ever_clobbered): Likewise for local "cur_insn".
6198 (s390_optimize_nonescaping_tx): Likewise for locals "insn",
6200 (s390_load_got): Likewise for return type and local "insns".
6201 (s390_save_gprs_to_fprs): Likewise for local "insn".
6202 (s390_restore_gprs_from_fprs): Likewise.
6203 (pass_s390_early_mach::execute): Likewise.
6204 (s390_emit_prologue): Likewise for local "insns".
6205 (s390_expand_tbegin): Strengthen local "leave_label" from rtx to
6207 (s390_emit_call): Strengthen return type and local "insn" from
6209 (s390_emit_tpf_eh_return): Likewise for local "insn".
6210 (s390_optimize_prologue): Likewise for locals "insn", "new_insn",
6211 "next_insn", introducing locals "s_pat", "rpat" to allow this.
6212 (s390_fix_long_loop_prediction): Likewise for param "insn" and
6214 (s390_non_addr_reg_read_p): Likewise for param "insn".
6215 (find_cond_jump): Likewise for return type and param "insn".
6216 (s390_swap_cmp): Likewise for param "insn".
6217 (s390_z10_optimize_cmp): Likewise for param "insn" and locals
6218 "prev_insn", "next_insn".
6219 (s390_reorg): Likewise for locals "insn", "target".
6220 (s390_z10_prevent_earlyload_conflicts): Likewise for local "insn".
6221 (s390_sched_variable_issue): For now, rename param "insn" to
6222 "uncast_insn", introducing a checked cast.
6223 (s390_sched_init): Replace NULL_RTX with NULL when dealing with
6225 (s390_loop_unroll_adjust): Strengthen local "insn" from rtx to
6226 rtx_insn *. Use for_each_rtx_in_insn rather than for_each_rtx.
6228 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6230 * config/rx/rx-protos.h (rx_adjust_insn_length): Strengthen first
6231 param from rtx to rtx_insn *.
6232 * config/rx/rx.c (rx_adjust_insn_length): Likewise for param "insn".
6234 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6236 * config/rs6000/rs6000-protos.h (output_cbranch): Strengthen param
6237 4 from rtx to rtx_insn *.
6238 (rs6000_final_prescan_insn): Likewise for first param.
6239 * config/rs6000/rs6000.c (rs6000_emit_set_const): Likewise for
6241 (rs6000_get_some_local_dynamic_name): Likewise.
6242 (output_cbranch): Likewise for param "insn".
6243 (spe_func_has_64bit_regs_p): Likewise for locals "insns", "insn".
6244 (rs6000_function_ok_for_sibcall): Likewise for locals "top", "insn".
6245 (rs6000_emit_allocate_stack): Likewise for local "insn".
6246 (load_cr_save): Likewise.
6247 (restore_saved_cr): Likewise.
6248 (restore_saved_lr): Likewise.
6249 (emit_cfa_restores): Likewise.
6250 (rs6000_output_function_epilogue): Likewise for locals "insn" and
6251 "deleted_debug_label".
6252 (rs6000_output_mi_thunk): Likewise for local "insn".
6253 (rs6000_final_prescan_insn): Likewise for param "insn".
6255 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6257 * config/picochip/picochip-protos.h (picochip_final_prescan_insn):
6258 Strengthen param "insn" from rtx to rtx_insn *.
6259 * config/picochip/picochip.c (picochip_current_prescan_insn):
6260 Likewise for this variable.
6261 (picochip_final_prescan_insn): Likewise for param "insn".
6263 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6265 * config/pa/pa-protos.h (pa_output_call): Strengthen first param
6266 from rtx to rtx_insn *.
6267 (pa_output_indirect_call): Likewise.
6268 (pa_adjust_insn_length): Likewise.
6269 (pa_attr_length_millicode_call): Likewise.
6270 (pa_attr_length_call): Likewise.
6271 (pa_attr_length_indirect_call): Likewise.
6273 * config/pa/pa.c (pa_adjust_insn_length): Likewise for param
6275 (pa_attr_length_millicode_call): Likewise.
6276 (pa_attr_length_call): Likewise.
6277 (pa_output_call): Likewise.
6278 (pa_attr_length_indirect_call): Likewise.
6279 (pa_output_indirect_call): Likewise.
6281 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6283 * config/nds32/nds32-protos.h (nds32_adjust_insn_length):
6284 Strengthen first param from rtx to rtx_insn *.
6285 * config/nds32/nds32.c (nds32_adjust_insn_length): Likewise for
6288 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6290 * config/mips/mips-protos.h (mips_emit_move): Strengthen return
6291 type from rtx to rtx_insn *.
6292 (mips_expand_call): Likewise.
6293 (mips_adjust_insn_length): Likewise for first param.
6294 (mips_output_conditional_branch): Likewise.
6295 (mips_output_order_conditional_branch): Likewise.
6296 (mips_final_prescan_insn): Likewise.
6298 * config/mips/mips.c (SEQ_BEGIN): For now, add checked cast to
6299 rtx_insn * for the SEQUENCE case.
6300 (SEQ_END): Likewise.
6301 (mips_emit_move): Strengthen return type from rtx to rtx_insn *.
6302 (mips_emit_call_insn): Likewise, also for local "insn".
6303 (mips16_gp_pseudo_reg): Likewise for local "scan".
6304 (mips16_build_call_stub): Likewise for return type and for local
6305 "insn". Introduce a new local "pattern" so that "insn" can indeed
6307 (mips_expand_call): Strengthen return type and local "insn" from
6309 (mips_block_move_loop): Strengthen local "label" from rtx to
6311 (mips_expand_synci_loop): Likewise for locals "label",
6313 (mips_set_frame_expr): Strengthen local "insn" from rtx to
6315 (mips16e_collect_argument_saves): Likewise for locals "insn",
6317 (mips_find_gp_ref): Likewise for param of callback for "pred"
6318 param, and for local "insn".
6319 (mips_insn_has_inflexible_gp_ref_p): Likewise for param "insn".
6320 (mips_insn_has_flexible_gp_ref_p): Likewise.
6321 (mips_epilogue_emit_cfa_restores): Likewise for return type and
6323 (mips_epilogue_set_cfa): Likewise for local "insn".
6324 (mips_expand_epilogue): Likewise.
6325 (mips_adjust_insn_length): Likewise for param "insn".
6326 (mips_output_conditional_branch): Likewise.
6327 (mips_output_order_conditional_branch): Likewise.
6328 (struct mips_ls2): Likewise for fields "alu1_turn_enabled_insn",
6329 "alu2_turn_enabled_insn", "falu1_turn_enabled_insn",
6330 "falu2_turn_enabled_insn".
6331 (mips_builtin_branch_and_move): Strengthen locals "true_label",
6332 "done_label" from rtx to rtx_code_label *.
6333 (struct mips16_constant): Likewise for field "label".
6334 (mips16_add_constant): Likewise for return type.
6335 (mips16_emit_constants_1): Strengthen return type and param "insn"
6336 from rtx to rtx_insn *.
6337 (mips16_emit_constants): Likewise for param "insn".
6338 (mips16_insn_length): Likewise.
6339 (mips16_rewrite_pool_constant): Strengthen local "label" from rtx
6340 to rtx_code_label *.
6341 (struct mips16_rewrite_pool_refs_info): Strengthen field "insn"
6342 from rtx to rtx_insn *.
6343 (mips16_lay_out_constants): Likewise for locals "insn", "barrier",
6344 "jump". Strengthen local "label" from rtx to rtx_code_label *.
6345 (r10k_simplify_address): Strengthen param "insn" and local
6346 "def_insn" from rtx to rtx_insn *.
6347 (r10k_safe_address_p): Strengthen param "insn" from rtx to
6349 (r10k_needs_protection_p_1): Update target type of cast of data
6350 from to rtx to rtx_insn *.
6351 (r10k_needs_protection_p_store): Strengthen local "insn_ptr" from
6352 rtx * to rtx_insn **.
6353 (r10k_needs_protection_p): Strengthen param "insn" from rtx to
6355 (r10k_insert_cache_barriers): Likewise for locals "insn", "end".
6356 (mips_call_expr_from_insn): Likewise for param "insn".
6357 (mips_pic_call_symbol_from_set): Likewise for local "def_insn".
6358 (mips_find_pic_call_symbol): Likewise for param "insn".
6359 (mips_annotate_pic_calls): Likewise for local "insn".
6360 (mips_sim_insn): Likewise for this variable.
6361 (struct mips_sim): Likewise for field "insn" within elements of
6363 (mips_sim_wait_reg): Likewise for param "insn".
6364 (mips_sim_wait_regs): Likewise.
6365 (mips_sim_wait_units): Likewise.
6366 (mips_sim_wait_insn): Likewise.
6367 (mips_sim_issue_insn): Likewise.
6368 (mips_sim_finish_insn): Likewise.
6369 (mips_seq_time): Likewise for param "seq" and local "insn".
6370 (vr4130_avoid_branch_rt_conflict): Likewise for param "insn" and
6371 locals "first", "second".
6372 (vr4130_align_insns): Likewise for locals "insn", "subinsn",
6373 "last", "last2", "next".
6374 (mips_avoid_hazard): Likewise for params "after", "insn".
6375 (mips_reorg_process_insns): Likewise for locals "insn",
6376 "last_insn", "subinsn", "next_insn".
6377 (mips_has_long_branch_p): Likewise for locals "insn", "subinsn".
6378 (mips16_split_long_branches): Likewise for locals "insn" "jump",
6380 (mips_output_mi_thunk): Likewise for local "insn".
6381 (mips_final_prescan_insn): Likewise for param "insn".
6383 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6385 * config/microblaze/microblaze.c (microblaze_call_tls_get_addr):
6386 Strengthen return type and local "insns" from rtx to rtx_insn *.
6387 (microblaze_legitimize_tls_address): Likewise for local "insns".
6388 (microblaze_block_move_loop): Strengthen local "label" from rtx
6389 to rtx_code_label *.
6390 (microblaze_expand_prologue): Strengthen two locals named "insn"
6391 from rtx to rtx_insn *.
6392 (microblaze_asm_output_mi_thunk): Likewise for local "insn".
6393 (microblaze_expand_divide): Likewise for locals "jump", "cjump",
6394 "insn". Strengthen locals "div_label", "div_end_label" from rtx
6395 to rtx_code_label *.
6397 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6399 * config/mep/mep-protos.h (mep_mulr_source): Strengthen first
6400 param from rtx to rtx_insn *.
6401 (mep_reuse_lo): Likewise for third param.
6402 (mep_use_post_modify_p): Likewise for first param.
6403 (mep_core_address_length): Likewise.
6404 (mep_cop_address_length): Likewise.
6405 (mep_final_prescan_insn): Likewise.
6406 (mep_store_data_bypass_p): Likewise for both params.
6407 (mep_mul_hilo_bypass_p): Likewise.
6408 (mep_ipipe_ldc_p): Likewise for param.
6410 * config/mep/mep.c (mep_mulr_source): Likewise for param "insn".
6411 (mep_rewrite_mult): Likewise.
6412 (mep_rewrite_mulsi3): Likewise.
6413 (mep_rewrite_maddsi3): Likewise.
6414 (mep_reuse_lo_p_1): Likewise.
6415 (mep_reuse_lo_p): Likewise.
6416 (mep_frame_expr): Likewise.
6417 (mep_make_parallel): Likewise for both params.
6418 (mep_use_post_modify_p_1): Likewise for param "set_insn" and
6420 (mep_use_post_modify_p): Likewise for param "insn".
6421 (mep_core_address_length): Likewise.
6422 (mep_cop_address_length): Likewise.
6423 (mep_reg_set_in_function): Likewise for local "insn".
6424 (mep_asm_without_operands_p): Likewise.
6425 (F): Likewise for return type and param "x".
6426 (add_constant): Likewise for local "insn".
6427 (maybe_dead_move): Likewise for return type and local "insn".
6428 (mep_expand_prologue): Likewise for local "insn".
6429 (mep_final_prescan_insn): Likewise for param "insn".
6430 (mep_reorg_regmove): Likewise for param "insns" and locals "insn",
6431 "next", "follow", "x".
6432 (mep_insert_repeat_label_last): Likewise for return type, param
6433 "last_insn", and locals "next", "prev". Strengthen param "label"
6434 from rtx to rtx_code_label *.
6435 (struct mep_doloop_begin): Strengthen field "insn" from rtx to
6437 (struct mep_doloop_end): Likewise for fields "insn" and
6439 (mep_reorg_repeat): Likewise for param "insns" and local "insn".
6440 Strengthen local "repeat_label" from rtx to rtx_code_label *.
6441 (mep_invertable_branch_p): Strengthen param "insn" from rtx to
6443 (mep_invert_branch): Likewise for params "insn" and "after".
6444 (mep_reorg_erepeat): Likewise for param "insns" and locals
6445 "insn", "prev", "new_last", "barrier", "user". Strengthen local
6446 "l" from rtx to rtx_code_label *.
6447 (mep_jmp_return_reorg): Strengthen param "insns" and local "insn"
6448 from rtx to rtx_insn *.
6449 (mep_reorg_addcombine): Likewise for param "insns" and locals
6451 (add_sp_insn_p): Likewise for param "insn".
6452 (mep_reorg_noframe): Likewise for param "insns" and locals
6453 "start_frame_insn", "end_frame_insn", "next".
6454 (mep_reorg): Likewise for local "insns".
6455 (mep_store_data_bypass_1): Likewise for param "prev". Add checked
6457 (mep_store_data_bypass_p): Likewise for params "prev", "insn".
6458 (mep_mul_hilo_bypass_p): Likewise.
6459 (mep_ipipe_ldc_p): Likewise for param "insn".
6460 (mep_make_bundle): Likewise for return type, param "cop" and local
6461 "insn", splitting out the latter into a new local "seq" for when it
6462 is a SEQUENCE rather than an insn.
6463 (core_insn_p): Likewise for param "insn".
6464 (mep_bundle_insns): Likewise for param "insns" and locals "insn",
6465 "last", "first", "note", "prev", "core_insn".
6467 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6469 * config/m68k/m68k-protos.h (output_btst): Strengthen param 4 from
6471 (strict_low_part_peephole_ok): Likewise for param 2 "first_insn".
6472 (m68k_final_prescan_insn): Likewise for first param.
6474 * config/m68k/m68k.c (m68k_emit_movem): Likewise for return type.
6475 (m68k_set_frame_related): Likewise for param "insn".
6476 (output_btst): Likewise for param "insn".
6477 (m68k_final_prescan_insn): Likewise.
6478 (m68k_move_to_reg): Likewise for local "insn".
6479 (m68k_call_tls_get_addr): Likewise for local "insns".
6480 (m68k_call_m68k_read_tp): Likewise.
6481 (strict_low_part_peephole_ok): Likewise for param "first_insn".
6482 (m68k_output_mi_thunk): Likewise for local "insn".
6484 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6486 * config/iq2000/iq2000-protos.h (final_prescan_insn): Strengthen
6487 first param from rtx to rtx_insn *.
6488 (iq2000_adjust_insn_length): Likewise.
6489 (iq2000_output_conditional_branch): Likewise.
6490 * config/iq2000/iq2000.c (final_prescan_insn): Likewise for param
6491 "insn" and local "nop_insn".
6492 (iq2000_annotate_frame_insn): Likewise for param "insn".
6493 (iq2000_expand_prologue): Likewise for both locals "insn".
6494 (iq2000_adjust_insn_length): Likewise for param "insn".
6495 (iq2000_output_conditional_branch): Likewise.
6497 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6499 * config/ia64/ia64.c (ia64_expand_tls_address): Strengthen local
6500 "insns" from rtx to rtx_insn *.
6501 (ia64_emit_cond_move): Likewise for locals "insn", "first".
6502 (struct spill_fill_data): Likewise for field "init_after" and for
6503 elements of array field "prev_insn".
6504 (spill_restore_mem): Likewise for locals "insn", "first".
6505 (do_spill): Likewise for local "insn".
6506 (do_restore): Likewise.
6507 (ia64_expand_prologue): Likewise.
6508 (ia64_expand_epilogue): Likewise.
6509 (emit_insn_group_barriers): Likewise for locals "insn",
6511 (emit_all_insn_group_barriers): Likewise for locals "insn",
6513 (dfa_stop_insn): Likewise for this global.
6514 (dfa_pre_cycle_insn): Likewise.
6515 (ia64_nop): Likewise.
6516 (final_emit_insn_group_barriers): Likewise for locals "insn",
6518 (emit_predicate_relation_info): Likewise for locals "head", "n",
6520 (ia64_reorg): Likewise for local "insn".
6521 (ia64_output_mi_thunk): Likewise.
6522 (expand_vec_perm_interleave_2): Likewise for local "seq".
6524 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6526 * config/i386/i386-protos.h (ix86_avoid_lea_for_add): Strengthen
6527 param 1 "insn" from rtx to rtx_insn *.
6528 (ix86_use_lea_for_mov): Likewise.
6529 (ix86_avoid_lea_for_addr): Likewise.
6530 (ix86_split_lea_for_addr): Likewise.
6531 (ix86_lea_for_add_ok): Likewise.
6532 (ix86_output_call_insn): Likewise.
6534 * config/i386/i386.c (ix86_va_start): Likewise for local "seq".
6535 (ix86_get_drap_rtx): Likewise for locals "seq", "insn".
6536 (ix86_output_function_epilogue): Likewise for locals "insn",
6537 "deleted_debug_label".
6538 (legitimize_tls_address): Likewise for local "insn".
6539 (get_some_local_dynamic_name): Likewise.
6540 (increase_distance): Likewise for params "prev", "next".
6541 (distance_non_agu_define_in_bb): Likewise for params "insn",
6542 "start" and locals "prev", "next".
6543 (distance_non_agu_define): Likewise for param "insn".
6544 (distance_agu_use_in_bb): Likewise for params "insn", "start" and
6545 locals "next", "prev".
6546 (distance_agu_use): Likewise for param "insn".
6547 (ix86_lea_outperforms): Likewise.
6548 (ix86_ok_to_clobber_flags): Likewise.
6549 (ix86_avoid_lea_for_add): Likewise.
6550 (ix86_use_lea_for_mov): Likewise.
6551 (ix86_avoid_lea_for_addr): Likewise.
6552 (find_nearest_reg_def): Likewise, also for locals "prev", "start".
6553 (ix86_split_lea_for_addr): Likewise for param "insn".
6554 (ix86_lea_for_add_ok): Likewise for param "insn".
6555 (ix86_expand_carry_flag_compare): Likewise for local
6557 (ix86_expand_int_movcc): Likewise.
6558 (ix86_output_call_insn): Likewise for param "insn".
6559 (ix86_output_call_insn): Likewise for local "i".
6560 (x86_output_mi_thunk): Introduce local "insn", using it in place
6561 of "tmp" when dealing with insns.
6562 (ix86_avoid_jump_mispredicts): Likewise for locals "insn",
6564 (ix86_pad_returns): Likewise for locals "ret", "prev".
6565 (ix86_count_insn_bb): Likewise for local "insn".
6566 (ix86_pad_short_function): Likewise for locals "ret", "insn".
6567 (ix86_seh_fixup_eh_fallthru): Likewise for locals "insn", "next".
6568 (ix86_vector_duplicate_value): Likewise for local "insn", "seq".
6569 (expand_vec_perm_interleave2): Likewise for local "seq".
6570 (expand_vec_perm_vperm2f128_vblend): Likewise.
6571 (ix86_loop_unroll_adjust): Likewise for local "insn". Convert
6572 call to for_each_rtx with for_each_rtx_in_insn.
6574 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6576 * config/i386/i386.c (setup_incoming_varargs_64): Strengthen local
6577 "label" from rtx to rtx_code_label *.
6578 (ix86_expand_prologue): Likewise.
6579 (ix86_expand_split_stack_prologue): Likewise for locals "label",
6581 (ix86_split_idivmod): Likewise for locals "end_label" and
6583 (ix86_expand_branch): Likewise for local "label2".
6584 (ix86_expand_aligntest): Likewise for return type and local "label".
6585 (expand_set_or_movmem_via_loop): Likewise for locals "out_label" and
6587 (expand_movmem_epilogue): Likewise for the various locals named
6589 (expand_setmem_epilogue): Likewise.
6590 (expand_small_movmem_or_setmem): Likewise for local "label".
6591 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6592 Strengthen param "done_label" from rtx * to rtx_code_label **.
6593 Strengthen locals "loop_label" and "label" from rtx to
6595 (expand_set_or_movmem_prologue_epilogue_by_misaligned_moves):
6596 Likewise for locals "loop_label", "label".
6597 (ix86_expand_set_or_movmem): Likewise for locals "label",
6598 "jump_around_label", "hot_label".
6599 (ix86_expand_strlensi_unroll_1): Likewise for locals
6600 "align_2_label", align_3_label", "align_4_label", "end_0_label",
6602 (x86_emit_floatuns): Likewise for locals "neglab", "donelab".
6603 (void ix86_emit_i387_log1p): Likewise for locals "label1",
6604 "label2", "jump_label".
6605 (ix86_expand_sse_compare_and_jump): Likewise for return type and
6607 (ix86_expand_lfloorceil): Likewise for local "label".
6608 (ix86_expand_rint): Likewise.
6609 (ix86_expand_floorceildf_32): Likewise.
6610 (ix86_expand_floorceil): Likewise.
6611 (ix86_expand_rounddf_32): Likewise.
6612 (ix86_expand_trunc): Likewise.
6613 (ix86_expand_truncdf_32): Likewise.
6614 (ix86_expand_round): Likewise.
6616 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6618 * config/h8300/h8300-protos.h (final_prescan_insn): Strengthen
6619 first param from rtx to rtx_insn *.
6620 (h8300_insn_length_from_table): Likewise.
6621 * config/h8300/h8300.c (F): Likewise for return type and param
6623 (Fpa): Add a checked cast to rtx_insn *.
6624 (h8300_emit_stack_adjustment): Strengthen local "x" from rtx to
6626 (final_prescan_insn): Likewise for param "insn".
6627 (h8300_binary_length): Likewise.
6628 (h8300_insn_length_from_table): Likewise.
6630 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6632 * config/epiphany/epiphany-protos.h (epiphany_final_prescan_insn):
6633 Strengthen first param "insn" from rtx to rtx_insn *.
6635 * config/epiphany/epiphany.c (epiphany_final_prescan_insn):
6637 (frame_insn): Likewise for return type. Introduce local "insn"
6638 for use in place of local "x" for use as an rtx_insn *.
6639 (frame_move_insn): Strengthen return type from rtx to rtx_insn *.
6640 (epiphany_expand_prologue): Likewise for local "insn".
6641 * config/epiphany/mode-switch-use.c (insert_uses): Likewise.
6642 * config/epiphany/resolve-sw-modes.c
6643 (pass_resolve_sw_modes::execute): Likewise for locals "insn" and
6646 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6648 * config/c6x/c6x-protos.h (c6x_get_unit_specifier): Strengthen
6649 param from rtx to rtx_insn *.
6650 (c6x_final_prescan_insn): Likewise for first param.
6652 * config/c6x/c6x.c (c6x_current_insn): Likewise for this variable.
6653 (c6x_output_mi_thunk): Replace use of NULL_RTX with NULL.
6654 (c6x_expand_compare): Strengthen local "insns" from rtx to
6656 (c6x_get_unit_specifier): Likewise for param "insn".
6657 (c6x_print_unit_specifier_field): Likewise.
6658 (c6x_final_prescan_insn): Likewise.
6659 (emit_add_sp_const): Likewise for local "insn".
6660 (c6x_expand_prologue): Likewise.
6662 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6664 * config/bfin/bfin-protos.h (asm_conditional_branch): Strengthen
6665 param 1 from rtx to rtx_insn *.
6666 * config/bfin/bfin.c (expand_prologue_reg_save): Likewise for
6667 the various locals named "insn".
6668 (expand_epilogue_reg_restore): Likewise.
6669 (frame_related_constant_load): Likewise.
6670 (add_to_reg): Likewise.
6671 (emit_link_insn): Likewise.
6672 (do_link): Likewise.
6673 (expand_interrupt_handler_prologue): Likewise.
6674 (branch_dest): Likewise for param "branch".
6675 (asm_conditional_branch): Likewise for param "insn".
6676 (gen_one_bundle): Likewise for elements of param "slot" and local
6678 (bfin_gen_bundles): Likewise for locals "insn", "next" and
6679 elements of local "slot".
6680 (reorder_var_tracking_notes): Likewise for locals "insn", "next",
6681 "queue", "next_queue", "prev".
6682 (workaround_rts_anomaly): Likewise for locals "insn", "first_insn".
6683 (add_sched_insns_for_speculation): Likewise for local "insn".
6685 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6687 * config/avr/avr-protos.h (output_movqi): Strengthen first param
6688 from rtx to rtx_insn *.
6689 (output_movhi): Likewise.
6690 (output_movsisf): Likewise.
6691 (avr_out_tstsi): Likewise.
6692 (avr_out_tsthi): Likewise.
6693 (avr_out_tstpsi): Likewise.
6694 (avr_out_compare): Likewise.
6695 (avr_out_compare64): Likewise.
6696 (avr_out_movpsi): Likewise.
6697 (ashlqi3_out): Likewise.
6698 (ashlhi3_out): Likewise.
6699 (ashlsi3_out): Likewise.
6700 (ashrqi3_out): Likewise.
6701 (ashrhi3_out): Likewise.
6702 (ashrsi3_out): Likewise.
6703 (lshrqi3_out): Likewise.
6704 (lshrhi3_out): Likewise.
6705 (lshrsi3_out): Likewise.
6706 (avr_out_ashlpsi3): Likewise.
6707 (avr_out_ashrpsi3): Likewise.
6708 (avr_out_lshrpsi3): Likewise.
6709 (avr_out_fract): Likewise.
6710 (avr_out_sbxx_branch): Likewise.
6711 (avr_out_round): Likewise.
6712 (avr_out_xload): Likewise.
6713 (avr_out_movmem): Likewise.
6714 (adjust_insn_length): Likewise.
6715 (avr_out_lpm): Likewise.
6716 (reg_unused_after): Likewise.
6717 (_reg_unused_after): Likewise.
6718 (avr_jump_mode): Likewise for second param.
6719 (jump_over_one_insn): Likewise for first param.
6720 (avr_final_prescan_insn): Likewise.
6721 (out_shift_with_cnt): Likewise for second param.
6723 * config/avr/avr.c (get_sequence_length): Likewise for param
6724 "insns" and local "insn".
6725 (emit_push_byte): Likewise for local "insn".
6726 (emit_push_sfr): Likewise.
6727 (avr_prologue_setup_frame): Likewise for locals "insn",
6728 "fp_plus_insns", "sp_plus_insns".
6729 (avr_expand_epilogue): Likewise for local "fp_plus_insns",
6731 (avr_jump_mode): Likewise for param "insn".
6732 (avr_final_prescan_insn): Likewise.
6733 (avr_find_unused_d_reg): Likewise.
6734 (avr_out_lpm_no_lpmx): Likewise.
6735 (avr_out_lpm): Likewise.
6736 (avr_out_xload): Likewise.
6737 (output_movqi): Likewise.
6738 (output_movhi): Likewise.
6739 (out_movqi_r_mr): Likewise.
6740 (out_movhi_r_mr): Likewise.
6741 (out_movsi_r_mr): Likewise.
6742 (out_movsi_mr_r): Likewise.
6743 (output_movsisf): Likewise.
6744 (avr_out_load_psi): Likewise.
6745 (avr_out_store_psi): Likewise.
6746 (avr_out_movpsi): Likewise.
6747 (out_movqi_mr_r): Likewise.
6748 (avr_out_movhi_mr_r_xmega): Likewise.
6749 (out_movhi_mr_r): Likewise.
6750 (compare_condition): Likewise for param "insn" and local "next".
6751 (compare_sign_p): Likewise for param "insn".
6752 (compare_diff_p): Likewise.
6753 (compare_eq_p): Likewise.
6754 (avr_out_compare): Likewise.
6755 (avr_out_compare64): Likewise.
6756 (avr_out_tsthi): Likewise.
6757 (avr_out_tstpsi): Likewise.
6758 (avr_out_tstsi): Likewise.
6759 (out_shift_with_cnt): Likewise.
6760 (ashlqi3_out): Likewise.
6761 (ashlhi3_out): Likewise.
6762 (avr_out_ashlpsi3): Likewise.
6763 (ashlsi3_out): Likewise.
6764 (ashrqi3_out): Likewise.
6765 (ashrhi3_out): Likewise.
6766 (avr_out_ashrpsi3): Likewise.
6767 (ashrsi3_out): Likewise.
6768 (lshrqi3_out): Likewise.
6769 (lshrhi3_out): Likewise.
6770 (avr_out_lshrpsi3): Likewise.
6771 (lshrsi3_out): Likewise.
6772 (avr_out_fract): Likewise.
6773 (avr_out_round): Likewise.
6774 (avr_adjust_insn_length): Likewise.
6775 (reg_unused_after): Likewise.
6776 (_reg_unused_after): Likewise.
6777 (avr_compare_pattern): Likewise.
6778 (avr_reorg_remove_redundant_compare): Likewise for param "insn1"
6779 and locals "branch1", "branch2", "insn2", "jump".
6780 (avr_reorg): Likewise for local "insn".
6781 (avr_2word_insn_p): Likewise for param "insn".
6782 (jump_over_one_insn_p): Likewise.
6783 (avr_out_sbxx_branch): Likewise.
6784 (avr_out_movmem): Likewise.
6786 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6788 * config/arm/arm-protos.h (arm_final_prescan_insn): Strengthen
6789 param from rtx to rtx_insn *.
6790 (thumb1_final_prescan_insn): Likewise.
6791 (thumb2_final_prescan_insn): Likewise.
6793 * config/arm/arm.c (emit_set_insn): Strengthen return type from
6795 (struct minipool_node): Likewise for field "insn".
6796 (dump_minipool): Likewise for param "scan".
6797 (create_fix_barrier): Likewise for local "from". Strengthen local
6798 "label" from rtx to rtx_code_label *.
6799 (push_minipool_barrier): Strengthen param "insn" from rtx to
6801 (push_minipool_fix): Likewise.
6802 (note_invalid_constants): Likewise.
6803 (thumb2_reorg): Likewise for local "insn".
6804 (arm_reorg): Likewise.
6805 (thumb2_final_prescan_insn): Likewise for param
6806 "insn" and local "first_insn".
6807 (arm_final_prescan_insn): Likewise for param "insn" and locals
6808 "start_insn", "this_insn".
6809 (arm_debugger_arg_offset): Likewise for param "insn".
6810 (thumb1_emit_multi_reg_push): Likewise for return type and local
6812 (thumb1_final_prescan_insn): Likewise for param "insn".
6813 (thumb_far_jump_used_p): Likewise for local "insn".
6814 (thumb1_expand_prologue): Likewise.
6815 (arm_expand_epilogue_apcs_frame): Likewise.
6816 (arm_expand_epilogue): Likewise for locals "insn", "tmp".
6817 (arm_split_compare_and_swap): Strengthen locals "label1", "label2"
6818 from rtx to rtx_code_label *.
6819 (arm_split_atomic_op): Likewise for local "label".
6820 (arm_emit_coreregs_64bit_shift): Likewise for local "done_label".
6822 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6824 * config/arc/arc-protos.h (arc_final_prescan_insn): Strengthen
6825 first param from rtx to rtx_insn *.
6826 (arc_verify_short): Likewise.
6827 (arc_short_long): Likewise.
6828 (arc_need_delay): Likewise.
6830 * config/arc/arc.c (struct arc_ccfsm): Likewise for field
6832 (arc_ccfsm_advance): Likewise for param "insn" and locals
6833 "start_insn", "this_insn".
6834 (arc_ccfsm_record_condition): Likewise for local "seq_insn".
6835 (arc_ccfsm_post_advance): Likewise for param "insn".
6836 (arc_next_active_insn): Likewise for return type and param "insn".
6837 Convert NULL_RTX to NULL as appropriate. Add a checked cast.
6838 (arc_verify_short): Strengthen param "insn" from rtx to rtx_insn *.
6839 (output_short_suffix): Likewise for local "insn".
6840 (arc_final_prescan_insn): Likewise for param "insn". Remove
6841 now-redundant checked cast.
6842 (arc_reorg): Strengthen locals "insn", "top_label", "lp", "prev",
6843 "lp_simple", "next", "mov", "scan", "link_insn" from rtx to
6844 rtx_insn *. Add a checked cast. Introduce local "lc_set_insn"
6845 for use where lc_set became an insn.
6846 (arc_adjust_insn_length): Strengthen locals "prev", "succ" from
6848 (arc_get_insn_variants): Likewise for local "prev".
6849 (arc_ifcvt): Likewise for locals "insn", "seq", "prev", "pprev",
6851 (arc_predicate_delay_insns): Likewise for local "insn".
6852 (arc_pad_return): Likewise for local "prev". For now, add a
6853 checked cast when extracting the insn from "final_sequence".
6854 (arc_short_long): Likewise for param "insn".
6855 (arc_need_delay): Likewise for param "insn" and local "next".
6856 (arc_label_align): Likewise for locals "prev", "next".
6858 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6860 * config/alpha/alpha.c (alpha_emit_set_const): Strengthen local
6861 "insn" from rtx to rtx_insn *.
6862 (alpha_gp_save_rtx): Likewise for local "seq".
6863 (alpha_instantiate_decls): Likewise for local "top".
6864 (get_some_local_dynamic_name): Likewise for local "insn".
6865 (alpha_does_function_need_gp): Likewise.
6866 (set_frame_related_p): Likewise for return type and for locals
6868 (emit_frame_store_1): Likewise for local "insn".
6869 (alpha_expand_prologue): Likewise for locals "insn", "seq".
6870 (alpha_end_function): Likewise for local "insn".
6871 (alpha_output_mi_thunk_osf): Likewise.
6872 (alphaev4_insn_pipe): Likewise for param "insn".
6873 (alphaev5_insn_pipe): Likewise.
6874 (alphaev4_next_group): Likewise for return type and param 1
6876 (alphaev5_next_group): Likewise.
6877 (alpha_align_insns_1): Likewise for return type and param 1 of
6878 callback param "next_group", and for locals "i", "next", "prev",
6879 "where", "where2", "insn".
6881 2014-08-25 Bernd Schmidt <bernds@codesourcery.com>
6883 * tree-nested.c (finalize_nesting_tree_1): Initialize temporary earlier
6884 rather than modifying the stmt.
6886 2014-08-25 Jan-Benedict Glaw <jbglaw@lug-owl.de>
6888 * config/rs6000/rs6000.c (rs6000_return_in_msb): Fix fallout from
6889 cgraph_state conversion.
6891 2014-08-25 David Malcolm <dmalcolm@redhat.com>
6893 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
6894 Strengthen local "insns" from rtx to rtx_insn *.
6895 (aarch64_set_frame_expr): Likewise for local "insn".
6896 (aarch64_save_or_restore_fprs): Likewise.
6897 (aarch64_save_or_restore_callee_save_registers): Likewise.
6898 (aarch64_expand_prologue): Likewise.
6899 (aarch64_expand_epilogue): Likewise.
6900 (aarch64_output_mi_thunk): Likewise.
6901 (aarch64_split_compare_and_swap): Strengthen locals "label1" and
6902 "label2" from rtx to rtx_code_label *.
6903 (aarch64_split_atomic_op): Likewise for local "label".
6905 2014-08-25 Martin Liska <mliska@suse.cz>
6907 * cgraph.h (symtab_node):
6908 (bool needed_p (void)): created from decide_is_symbol_needed
6909 (bool referred_to_p (void)): created from referred_to_p
6910 (static cgraph_node *get_for_asmname (tree asmname)): created from symtab_node_for_asm
6911 * cgraph.h (cgraph_node):
6912 (void assemble_thunks_and_aliases (void)): created from assemble_thunks_and_aliases
6913 (void expand (void)): created from expand_function
6914 (static void finalize_function (tree, bool)): created from cgraph_finalize_function
6915 (static cgraph_local_info *local_info (tree decl)): created from cgraph_local_info
6916 (static cgraph_global_info *global_info (tree)): created from cgraph_global_info
6917 (static cgraph_rtl_info *rtl_info (tree)): created from cgraph_rtl_info
6918 * cgraph.h (varpool_node):
6919 (static void add (tree decl): created from varpool_add_new_variable
6920 * cgraph.h (cgraph_edge):
6922 (void remove_caller (void)): created from cgraph_edge_remove_caller
6923 (void remove_callee (void)): created from cgraph_edge_remove_callee
6924 (void set_call_stmt (gimple new_stmt, bool update_speculative = true)):
6925 created from cgraph_set_call_stmt
6926 (void redirect_callee (cgraph_node *n)): created from cgraph_redirect_edge_callee
6927 (cgraph_edge *make_direct (cgraph_node *callee)): created from cgraph_make_edge_direct
6928 (cgraph_edge *make_speculative (cgraph_node *n2, gcov_type direct_count,
6929 gimple redirect_call_stmt_to_callee (void)): created from cgraph_turn_edge_to_speculative
6930 (void speculative_call_info (cgraph_edge *&direct, cgraph_edge *&indirect, ipa_ref *&reference)):
6931 created from cgraph_speculative_call_info
6932 (cgraph_edge * clone (cgraph_node *n, gimple call_stmt, unsigned stmt_uid, gcov_type count_scale,
6933 int freq_scale, bool update_original)): created from cgraph_clone_edge
6934 (cgraph_edge *resolve_speculation (tree callee_decl)): created from cgraph_resolve_speculation
6935 (bool cannot_lead_to_return_p (void)): created from cannot_lead_to_return_p
6936 (bool recursive_p (void)): created from cgraph_edge_recursive_p
6937 (bool maybe_hot_p (void)): created from cgraph_maybe_hot_edge_p
6938 (static unsigned int rebuild_edges (void)): created from rebuild_cgraph_edges
6939 (static void rebuild_references (void)): created from cgraph_rebuild_references
6940 * cgraph.h (symbol_table):
6941 (create_reference): renamed from add_reference
6942 (maybe_create_reference): renamed from maybe_add_reference
6943 (void register_symbol (symtab_node *node)): new function
6944 (void clear_asm_symbols (void)): new function
6945 (void unregister (symtab_node *node)): new function
6946 (void release_symbol (cgraph_node *node, int uid)): new function
6947 (cgraph_node * allocate_cgraph_symbol (void)): new function
6948 (void initialize (void)): created from cgraph_init
6949 (symtab_node *first_symbol (void)):new function
6950 (asm_node *first_asm_symbol (void)):new function
6951 (symtab_node *first_defined_symbol (void)):new function
6952 (varpool_node *first_variable (void)):new function
6953 (varpool_node *next_variable (varpool_node *node)):new function
6954 (varpool_node *first_static_initializer (void)):new function
6955 (varpool_node *next_static_initializer (varpool_node *node)):new function
6956 (varpool_node *first_defined_variable (void)):new function
6957 (varpool_node *next_defined_variable (varpool_node *node)):new function
6958 (cgraph_node *first_defined_function (void)):new function
6959 (cgraph_node *next_defined_function (cgraph_node *node)):new function
6960 (cgraph_node *first_function (void)):new function
6961 (cgraph_node *next_function (cgraph_node *node)):new function
6962 (cgraph_node *first_function_with_gimple_body (void)):new function
6963 (asm_node *finalize_toplevel_asm (tree asm_str)): created from add_asm_node
6964 (bool remove_unreachable_nodes (bool before_inlining_p, FILE *file)):
6965 created from symtab_remove_unreachable_nodes
6966 (void remove_unreferenced_decls (void)): created from varpool_remove_unreferenced_decls
6967 (void process_new_functions (void)): created from cgraph_process_new_functions
6968 (void process_same_body_aliases (void)): created from cgraph_process_same_body_aliases
6969 (bool output_variables (void)): created from varpool_node::output_variables
6970 (void output_asm_statements (void)): created from output_asm_statements
6971 (void finalize_compilation_unit (void)): created from finalize_compilation_unit
6972 (void compile (void)): created from compile
6973 (void output_weakrefs (void)): created from output_weakrefs
6974 (cgraph_node *create_empty (void)): created from cgraph_node::create_empty
6975 (cgraph_edge *create_edge (cgraph_node *caller, cgraph_node *callee, gimple call_stmt,
6976 gcov_type count, int freq, bool indir_unknown_callee)): created from cgraph_node::create_edge
6977 (void free_edge (cgraph_edge *e)): created from cgraph_free_edge
6978 (cgraph_node *next_function_with_gimple_body (cgraph_node *node)):
6979 created from cgraph_next_function_with_gimple_body
6980 (void remove_edge_removal_hook (cgraph_edge_hook_list *)):
6981 created from cgraph_remove_edge_removal_hook
6982 (cgraph_node_hook_list *add_cgraph_removal_hook (cgraph_node_hook, void *)):
6983 created from cgraph_add_node_removal_hook
6984 (void remove_cgraph_removal_hook (cgraph_node_hook_list *)):
6985 created from cgraph_remove_node_removal_hook
6986 (varpool_node_hook_list *add_varpool_removal_hook (varpool_node_hook, void *)):
6987 created from varpool_add_node_removal_hook
6988 (void remove_varpool_removal_hook (varpool_node_hook_list *)):
6989 created from varpool_remove_node_removal_hook
6990 (cgraph_node_hook_list *add_cgraph_insertion_hook (cgraph_node_hook, void *)):
6991 created from cgraph_add_function_insertion_hook
6992 (void remove_cgraph_insertion_hook (cgraph_node_hook_list *)):
6993 created from cgraph_remove_function_insertion_hook
6994 (varpool_node_hook_list *add_varpool_insertion_hook (varpool_node_hook, void *)):
6995 created from varpool_add_variable_insertion_hook
6996 (void remove_varpool_insertion_hook (varpool_node_hook_list *)):
6997 created from varpool_remove_variable_insertion_hook
6998 (cgraph_2edge_hook_list *add_edge_duplication_hook (cgraph_2edge_hook, void *)):
6999 created from cgraph_add_edge_duplication_hook
7000 (void remove_edge_duplication_hook (cgraph_2edge_hook_list *)):
7001 created from cgraph_remove_edge_duplication_hook
7002 (cgraph_2node_hook_list *add_cgraph_duplication_hook (cgraph_2node_hook, void *)):
7003 created from cgraph_add_node_duplication_hook
7004 (void remove_cgraph_duplication_hook (cgraph_2node_hook_list *)):
7005 created from cgraph_remove_node_duplication_hook
7006 (void call_edge_removal_hooks (cgraph_edge *e)):
7007 created from cgraph_call_edge_removal_hooks
7008 (void call_cgraph_insertion_hooks (cgraph_node *node)):
7009 created from call_function_insertion_hooks
7010 (void call_cgraph_removal_hooks (cgraph_node *node)):
7011 created from cgraph_call_node_removal_hooks
7012 (void call_cgraph_duplication_hooks (cgraph_node *node, cgraph_node *node2)):
7013 created from cgraph_node::call_duplication_hooks
7014 (void call_edge_duplication_hooks (cgraph_edge *cs1, cgraph_edge *cs2)):
7015 created from cgraph_call_edge_duplication_hooks
7016 (void call_varpool_removal_hooks (varpool_node *node)):
7017 created from varpool_call_node_removal_hooks
7018 (void call_varpool_insertion_hooks (varpool_node *node)):
7019 created from varpool_call_variable_insertion_hooks
7020 (void insert_to_assembler_name_hash (symtab_node *node, bool with_clones)):
7021 created from insert_to_assembler_name_hash
7022 (void unlink_from_assembler_name_hash (symtab_node *node, bool with_clones)):
7023 created from unlink_from_assembler_name_hash
7024 (void symtab_prevail_in_asm_name_hash (symtab_node *node)):
7025 created from symtab_prevail_in_asm_name_hash
7026 (void symtab_initialize_asm_name_hash (void)):
7027 created from symtab_initialize_asm_name_hash
7028 (void change_decl_assembler_name (tree decl, tree name)):
7029 created from change_decl_assembler_name
7030 (void materialize_all_clones (void)): created from cgraph_materialize_all_clones
7031 (static hashval_t decl_assembler_name_hash (const_tree asmname)):
7032 created from decl_assembler_name_hash
7033 (static bool decl_assembler_name_equal (tree decl, const_tree asmname)):
7034 created from decl_assembler_name_equal
7035 (static hashval_t hash_node_by_assembler_name (const void *p)):
7036 created from hash_node_by_assembler_name
7037 (static int eq_assembler_name (const void *p1, const void *p2)):
7038 created from eq_assembler_name
7040 2014-08-25 Marek Polacek <polacek@redhat.com>
7042 * config/i386/i386.md (SWI1248_AVX512BW): Add missing paren.
7044 2014-08-25 Petr Murzin <petr.murzin@intel.com>
7046 * config/i386/i386.md (SWI1248_AVX512BW): New mode iterator.
7047 (*k<logic><mode>): Add *k<logic>qi and *k<logic>hi and use
7048 SWI1248_AVX512BW mode iterator.
7050 2014-08-25 Kaz Kojima <kkojima@gcc.gnu.org>
7053 * config/sh/predicates.md (general_extend_operand): Disable
7054 TRUNCATE before reload completes.
7056 2014-08-24 Gerald Pfeifer <gerald@pfeifer.com>
7058 * doc/invoke.texi (Optimize Options): Fix markup in two cases.
7060 2014-08-24 Oleg Endo <olegendo@gcc.gnu.org>
7063 * config/sh/sh.opt (musermode): Allow negative form.
7064 * config/sh/sh.c (sh_option_override): Disable TARGET_USERMODE for
7065 targets that don't support it.
7066 * doc/invoke.texi (SH Options): Rename sh-*-linux* to sh*-*-linux*.
7067 Document -mno-usermode option.
7069 2014-08-24 Kito Cheng <kito@0xlab.org>
7071 * system.h (CALLER_SAVE_PROFITABLE): Poison.
7072 * regs.h (CALLER_SAVE_PROFITABLE): Remove.
7073 * doc/tm.texi.in (CALLER_SAVE_PROFITABLE): Remove.
7074 * doc/tm.texi: Regenerate.
7076 2014-08-24 Kito Cheng <kito@0xlab.org>
7078 * ira.c: Fix typo in comment.
7080 2014-08-23 Edward Smith-Rowland <3dw4rd@verizon.net>
7082 * doc/invoke.texi: Change c++1y to c++14 and gnu++1y to gnu++14.
7083 Deprecate c++1y. Change language to reflect greater confidence in C++14.
7085 2014-08-23 John David Anglin <danglin@gcc.gnu.org>
7088 * config/pa/pa.c (pa_output_function_epilogue): Don't set
7089 last_address when the current function is a thunk.
7090 (pa_asm_output_mi_thunk): When we don't have named sections or they
7091 are not being used, check that thunk can reach the stub table with a
7094 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7096 * web.c (union_match_dups): Strengthen param "insn" from rtx to
7098 (pass_web::execute): Likewise for local "insn".
7100 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7102 * var-tracking.c (struct micro_operation_def): Strengthen field
7103 "insn" from rtx to rtx_insn *.
7104 (struct emit_note_data_def): Likewise.
7105 (insn_stack_adjust_offset_pre_post): Likewise for param "insn".
7106 (vt_stack_adjustments): Likewise for local "insn".
7107 (adjust_insn): Likewise for param "insn".
7108 (val_store): Likewise.
7109 (val_resolve): Likewise.
7110 (struct count_use_info): Likewise for field "insn".
7111 (log_op_type): Likewise for param "insn".
7112 (reverse_op): Likewise.
7113 (prepare_call_arguments): Likewise.
7114 (add_with_sets): The initial param takes an insn, but we can't
7115 yet strengthen it from rtx to rtx_insn * since it's used as a
7116 cselib_record_sets_hook callback. For now rename initial param
7117 from "insn" to "uncast_insn", and introduce a local "insn" of
7118 the stronger rtx_insn * type, with a checked cast.
7119 (compute_bb_dataflow): Strengthen local "insn" from rtx to
7121 (emit_note_insn_var_location): Likewise.
7122 (emit_notes_for_changes): Likewise.
7123 (emit_notes_for_differences): Likewise.
7124 (next_non_note_insn_var_location): Likewise for return type and
7126 (emit_notes_in_bb): Likewise for locals "insn" and "next_insn".
7127 (vt_initialize): Likewise for local "insn".
7128 (delete_debug_insns): Likewise for locals "insn" and "next".
7130 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7132 * varasm.c (mark_constants): Strengthen param "insn" from rtx to
7134 (mark_constant_pool): Likewise for local "insn".
7136 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7138 * valtrack.c (dead_debug_reset_uses): Strengthen local "insn" from
7140 (dead_debug_promote_uses): Likewise.
7141 (dead_debug_insert_temp): Likewise.
7143 2014-08-23 David Malcolm <dmalcolm@redhat.com>
7145 * store-motion.c (store_killed_in_insn): Strengthen param "insn"
7146 from const_rtx to const rtx_insn *.
7147 (store_killed_after): Likewise. Strengthen locals "last", "act"
7148 from rtx to rtx_insn *.
7149 (store_killed_before): Strengthen param "insn" from const_rtx to
7150 const rtx_insn *. Strengthen local "first" from rtx to rtx_insn *.
7151 (find_moveable_store): Strengthen param "insn" from rtx to
7153 (compute_store_table): Likewise for local "insn".
7154 (insert_insn_start_basic_block): Likewise for param "insn" and
7155 locals "prev", "before", "insn".
7156 (insert_store): For now, add a checked cast to rtx_insn * on the
7157 result of gen_move_insn.
7158 (remove_reachable_equiv_notes): Strengthen local "insn" from rtx
7160 (replace_store_insn): Likewise. For now, add a checked cast to
7161 rtx_insn * on the result of gen_move_insn.
7163 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7165 * stmt.c (expand_case): Strengthen local "before_case" from rtx to
7167 (expand_sjlj_dispatch_table): Likewise.
7169 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7171 * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Strengthen local
7172 "insn" from rtx to rtx_insn *.
7174 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7176 * shrink-wrap.h (requires_stack_frame_p): Strengthen param 1
7177 "insn" from rtx to rtx_insn *.
7178 (dup_block_and_redirect): Likewise for param 3 "before".
7180 * shrink-wrap.c (requires_stack_frame_p): Strengthen param "insn"
7181 from rtx to rtx_insn *.
7182 (move_insn_for_shrink_wrap): Likewise.
7183 (prepare_shrink_wrap): Likewise for locals "insn", "curr".
7184 (dup_block_and_redirect): Likewise for param "before" and local
7186 (try_shrink_wrapping): Likewise for locals "insn", "insert_point",
7188 (convert_to_simple_return): Likewise for local "start".
7190 * config/i386/i386.c (ix86_finalize_stack_realign_flags):
7191 Strengthen local "insn" from rtx to rtx_insn *, for use when
7192 invoking requires_stack_frame_p.
7194 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7196 * sel-sched-ir.c (vinsn_copy): Strengthen local "copy" from rtx to
7198 (speculate_expr): Likewise for locals "orig_insn_rtx",
7200 (eq_transformed_insns): Likewise for locals "i1", "i2".
7201 (check_for_new_jump): Likewise for return type and local "end".
7202 (find_new_jump): Likewise for return type and local "jump".
7203 (sel_split_edge): Likewise for local "jump".
7204 (sel_create_recovery_block): Likewise.
7205 (sel_redirect_edge_and_branch_force): Likewise.
7206 (sel_redirect_edge_and_branch): Likewise.
7208 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7210 * sel-sched.c (substitute_reg_in_expr): Strengthen local
7211 "new_insn" from rtx to rtx_insn *.
7212 (create_insn_rtx_with_rhs): Likewise for return type and for local
7214 (create_insn_rtx_with_lhs): Likewise.
7215 (create_speculation_check): Likewise for local "insn_rtx".
7216 (implicit_clobber_conflict_p): Likewise for local "insn".
7217 (get_expr_cost): Likewise.
7218 (emit_bookkeeping_insn): Likewise for local "new_insn_rtx".
7219 (move_cond_jump): Likewise for locals "next", "prev", "link",
7220 "head", "from", "to".
7222 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7224 * sched-rgn.c (is_cfg_nonregular): Strengthen locals "insn" and
7225 "next" from rtx to rtx_insn *.
7226 (find_conditional_protection): Likewise for local "next".
7227 (is_conditionally_protected): Likewise for local "insn1".
7228 (is_pfree): Likewise for locals "insn1", "insn2".
7230 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7232 * sched-int.h (schedule_ebb): Strengthen params "head", "tail"
7233 from rtx to rtx_insn *.
7235 * sched-ebb.c (earliest_block_with_similiar_load): Strengthen
7236 locals "insn1", "insn2" from rtx to rtx_insn *.
7237 (add_deps_for_risky_insns): Likewise for params "head", "tail" and
7238 locals "insn", "prev", "last_jump", "next_tail".
7239 (schedule_ebb): Likewise for params "head", "tail".
7240 (schedule_ebbs): Likewise for locals "tail", "head".
7242 * config/c6x/c6x.c (hwloop_optimize): For now, add a checked cast
7243 to rtx_insn on "last_insn" in one of the invocations of
7246 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7248 * sched-deps.c (maybe_add_or_update_dep_1): Strengthen locals
7249 "elem", "insn" from rtx to rtx_insn *.
7250 (change_spec_dep_to_hard): Likewise.
7251 (get_back_and_forw_lists): Likewise for local "con".
7252 (sd_add_dep): Likewise for locals "elem", "insn".
7253 (sd_resolve_dep): Likewise for locals "pro", "con".
7254 (sd_unresolve_dep): Likewise.
7255 (sd_delete_dep): Likewise.
7256 (chain_to_prev_insn): Likewise for local "pro".
7257 (find_inc): Likewise for locals "pro", "con".
7259 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7261 * rtlanal.c (reg_used_between_p): Strengthen local "insn" from rtx
7263 (reg_set_between_p): Strengthen local "insn" from const_rtx to
7265 (modified_between_p): Strengthen local "insn" from rtx to
7267 (remove_reg_equal_equiv_notes_for_regno): Likewise.
7268 (keep_with_call_p): Strengthen local "i2" from const_rtx to
7271 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7273 * resource.c (next_insn_no_annul): Strengthen local "next" from
7275 (mark_referenced_resources): Likewise for local "insn".
7277 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7279 * reload.h (struct insn_chain): Strengthen field "insn" from rtx
7281 (find_reloads): Likewise for param 1.
7282 (subst_reloads): Likewise for sole param.
7283 (find_equiv_reg): Likwise for param 2.
7284 (regno_clobbered_p): Likwise for param 2.
7285 (reload): Likewise for param 1.
7287 * caller-save.c (save_call_clobbered_regs): Strengthen local
7288 "insn" from rtx to rtx_insn *.
7289 (insert_one_insn): Likewise for local "insn".
7291 * reload.c (this_insn): Likewise for this global.
7292 (find_reloads): Likewise for param "insn".
7293 (find_reloads_toplev): Likewise.
7294 (find_reloads_address): Likewise.
7295 (subst_reg_equivs): Likewise.
7296 (update_auto_inc_notes): Likewise.
7297 (find_reloads_address_1): Likewise.
7298 (find_reloads_subreg_address): Likewise.
7299 (subst_reloads): Likewise.
7300 (find_equiv_reg): Likewise, also for local "p".
7301 (regno_clobbered_p): Likewise for param "insn".
7303 * reload1.c (reg_reloaded_insn): Likewise for the elements of this
7305 (spill_reg_store): Likewise for the elements of this array.
7306 (remove_init_insns): Likewise for local "equiv_insn".
7307 (will_delete_init_insn_p): Likewise for param "insn".
7308 (reload): Likewise for param ""first" and local "insn".
7309 (calculate_needs_all_insns): Strengthen local "insn" from rtx to
7311 (calculate_elim_costs_all_insns): Likewise.
7312 (delete_caller_save_insns): Likewise.
7313 (spill_failure): Likewise for param "insn".
7314 (delete_dead_insn): Likewise.
7315 (set_label_offsets): Likewise.
7316 (eliminate_regs_in_insn): Likewise, also for locals "base_insn" and
7318 (elimination_costs_in_insn): Likewise for param "insn".
7319 (set_initial_eh_label_offset): Replace use of NULL_RTX with NULL
7320 when referring to an insn.
7321 (set_initial_label_offsets): Likewise.
7322 (set_offsets_for_label): Strengthen param "insn" from rtx to
7324 (init_eliminable_invariants): Likewise for param "first" and local
7326 (fixup_eh_region_note): Likewise for param "insn".
7327 (reload_as_needed): Likewise for locals "prev", "insn",
7328 "old_next", "old_prev", "next".
7329 (gen_reload_chain_without_interm_reg_p): Likewise for locals "insn",
7331 (reload_inheritance_insn): Strengthen elements of this array from
7333 (failed_reload): Likewise for param "insn".
7334 (choose_reload_regs): Likewise for local "insn". Replace use of
7335 NULL_RTX with NULL when referring to an insn.
7336 (input_reload_insns): Strengthen elements of this array from rtx
7338 (other_input_address_reload_insns): Likewise for this global.
7339 (other_input_reload_insns): Likewise for this global.
7340 (input_address_reload_insns): Likwise for the elements of this
7342 (inpaddr_address_reload_insns): Likwise for the elements of this
7344 (output_reload_insns): Likewise for the elements of this array.
7345 (output_address_reload_insns): Likewise for the elements of this
7347 (outaddr_address_reload_insns): Likewise for the elements of this
7349 (operand_reload_insns): Likewise for this global.
7350 (other_operand_reload_insns): Likewise for this global.
7351 (other_output_reload_insns): Likewise for the elements of this
7353 (new_spill_reg_store): Likewise for the elements of this
7355 (emit_input_reload_insns): Likewise for locals "insn", "temp".
7356 Strengthen local "where" from rtx * to rtx_insn **.
7357 (emit_output_reload_insns): Strengthen locals "insn", "p", "next"
7358 from rtx to rtx_insn *.
7359 (do_input_reload): Likewise for local "insn".
7360 (do_output_reload): Likewise for local "insn".
7361 (emit_reload_insns): Likewise for locals "insn" and "store_insn".
7362 (emit_insn_if_valid_for_reload): Likewise for return type and local
7363 "last". Add checked cast to rtx_insn when returning "insn" since
7364 this has been through emit_insn.
7365 (gen_reload): Strengthen return type and locals "last", "insn", "set"
7366 from rtx to rtx_insn *. Add checked cast to rtx_insn when
7367 returning "insn" since it's been through
7368 emit_insn_if_valid_for_reload at this point.
7369 (delete_output_reload): Strengthen param "insn" and locals
7370 "output_reload_insn", "i2" from rtx to rtx_insn *.
7371 (delete_address_reloads): Likewise for params "dead_insn",
7372 "current_insn" and locals "prev", "next".
7373 (delete_address_reloads_1): Likewise for params "dead_insn",
7374 "current_insn" and locals "prev", "i2".
7375 (inc_for_reload): Likewise for locals "last", "add_insn".
7376 (add_auto_inc_notes): Strengthen param "insn" from rtx to
7379 * config/arc/arc-protos.h (regno_clobbered_p): Likewise for 2nd
7380 param of this duplicate of the prototype from reload.h
7382 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7384 * regstat.c (regstat_bb_compute_ri): Strengthen local "insn" from
7386 (regstat_bb_compute_calls_crossed): Likewise.
7388 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7390 * regrename.c (create_new_chain): Strengthen param "insn" from rtx
7392 (init_rename_info): Replace use of NULL_RTX with NULL when dealing
7394 (regrename_analyze): Strengthen local "insn" from rtx to
7396 (scan_rtx_reg): Likewise for param "insn".
7397 (scan_rtx_address): Likewise.
7398 (scan_rtx): Likewise.
7399 (restore_operands): Likewise.
7400 (record_out_operands): Likewise.
7401 (build_def_use): Likewise for local "insn". Replace use of
7402 NULL_RTX with NULL when dealing with an insn.
7404 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7406 * rtl.h (reg_scan): Strengthen param "f" from rtx to rtx_insn *.
7407 * reginfo.c (reg_scan): Likewise, also for local "insn".
7408 (reg_scan_mark_refs): Likewise for param "insn".
7409 (init_subregs_of_mode): Likewise for local "insn".
7411 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7413 * regcprop.c (struct queued_debug_insn_change): Strengthen field
7414 "insn" from rtx to rtx_insn *.
7415 (replace_oldest_value_reg): Likewise for param "insn".
7416 (replace_oldest_value_addr): Likewise.
7417 (replace_oldest_value_mem): Likewise.
7418 (apply_debug_insn_changes): Likewise for local "last_insn".
7419 (copyprop_hardreg_forward_1): Likewise for local "insn".
7421 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7423 * reg-stack.c (next_flags_user): Strengthen return type and param
7424 "insn" from rtx to rtx_insn *.
7425 (straighten_stack): Likewise for param "insn".
7426 (check_asm_stack_operands): Likewise.
7427 (remove_regno_note): Likewise.
7428 (emit_pop_insn): Likewise for return type, param "insn", local
7430 (emit_swap_insn): Strengthen param "insn" and locals "i1", "tmp",
7431 "limit" from rtx to rtx_insn *.
7432 (swap_to_top): Likewise for param "insn".
7433 (move_for_stack_reg): Likewise.
7434 (move_nan_for_stack_reg): Likewise.
7435 (swap_rtx_condition): Likewise.
7436 (compare_for_stack_reg): Likewise.
7437 (subst_all_stack_regs_in_debug_insn): Likewise.
7438 (subst_stack_regs_pat): Likewise, and local "insn2".
7439 (subst_asm_stack_regs): Strengthen param "insn" from rtx to
7441 (subst_stack_regs): Likewise.
7442 (change_stack): Likewise.
7443 (convert_regs_1): Likewise for locals "insn", "next".
7445 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7447 * ree.c (struct ext_cand): Strengthen field "insn" from rtx to
7449 (combine_set_extension): Likewise for param "curr_insn".
7450 (transform_ifelse): Likewise for param "def_insn".
7451 (get_defs): Likewise for param "def_insn". Strengthen param "dest"
7452 from vec<rtx> * to vec<rtx_insn *> *.
7453 (is_cond_copy_insn): Likewise for param "insn".
7454 (struct ext_state): Strengthen the four vec fields from vec<rtx>
7456 (make_defs_and_copies_lists): Strengthen param "extend_insn" and
7457 local "def_insn" from rtx to rtx_insn *.
7458 (get_sub_rtx): Likewise for param "def_insn".
7459 (merge_def_and_ext): Likewise.
7460 (combine_reaching_defs): Likewise.
7461 (add_removable_extension): Likewise for param "insn".
7462 (find_removable_extensions): Likewise for local "insn".
7463 (find_and_remove_re): Likewise for locals "curr_insn" and
7464 "def_insn". Strengthen locals "reinsn_del_list" and
7465 "reinsn_del_list" from auto_vec<rtx> to auto_vec<rtx_insn *>.
7467 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7469 * recog.c (split_insn): Strengthen param "insn" and locals
7470 "first", "last" from rtx to rtx_insn *.
7471 (split_all_insns): Likewise for locals "insn", "next".
7472 (split_all_insns_noflow): Likewise.
7474 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7476 * rtl.h (debug_rtx_list): Strengthen param 1 "x" from const_rtx to
7478 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7479 (debug_rtx_find): Likewise for param 1 "x".
7481 * print-rtl.c (debug_rtx_list): Strengthen param 1 "x" from
7482 const_rtx to const rtx_insn *. Likewise for local "insn".
7483 (debug_rtx_range): Likewise for params 1 and 2 "start" and "end".
7484 (debug_rtx_find): Likewise for param 1 "x".
7485 (print_rtl): Likewise for local "tmp_rtx", adding a checked cast
7486 from const_rtx to const rtx_insn * within the appropriate cases of
7487 the switch statement.
7489 * config/rs6000/rs6000.c (rs6000_debug_legitimize_address):
7490 Strengthen local "insns" from rtx to rtx_insn * since this is
7491 passed to a call to debug_rtx_list.
7493 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7495 * predict.h (predict_insn_def): Strengthen param "insn" from rtx
7498 * function.c (stack_protect_epilogue): Add checked cast to
7499 rtx_insn for now when invoking predict_insn_def.
7501 * predict.c (predict_insn): Strengthen param "insn" from rtx to
7503 (predict_insn_def): Likewise.
7504 (rtl_predict_edge): Likewise for local "last_insn".
7505 (can_predict_insn_p): Strengthen param "insn" from const_rtx to
7507 (combine_predictions_for_insn): Strengthen param "insn" from rtx
7509 (bb_estimate_probability_locally): Likewise for local "last_insn".
7510 (expensive_function_p): Likewise for local "insn".
7512 * config/cris/cris.c (cris_emit_trap_for_misalignment): Likewise for
7513 local "jmp", since this is used when invoking predict_insn_def.
7515 2014-08-22 Marek Polacek <polacek@redhat.com>
7518 * doc/invoke.texi: Update -Wlogical-not-parentheses description.
7520 2014-08-22 Marek Polacek <polacek@redhat.com>
7523 * ira-color.c (coalesced_pseudo_reg_slot_compare): Wrap LHS of
7524 a comparison in parens.
7525 * lra-spills.c (pseudo_reg_slot_compare): Wrap LHS of a comparison
7528 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7530 * rtl.h (fis_get_condition): Strengthen param "jump" from rtx to
7533 * cprop.c (fis_get_condition): Likewise.
7535 * postreload.c (reload_cse_regs): Likewise for param "first".
7536 (reload_cse_simplify): Likewise for param "insn".
7537 (reload_cse_regs_1): Likewise for local "insn".
7538 (reload_cse_simplify_set): Likewise for param "insn".
7539 (reload_cse_simplify_operands): Likewise.
7540 (struct reg_use): Likewise for field "insn".
7541 (reload_combine_purge_insn_uses): Likewise for param "insn".
7542 (fixup_debug_insns): Likewise for params "from", "to" and local
7544 (try_replace_in_use): Likewise for local "use_insn".
7545 (reload_combine_recognize_const_pattern): Likewise for param
7546 "insn" and locals "add_moved_after_insn", "use_insn".
7547 (reload_combine_recognize_pattern): Likewise for param "insn" and
7549 (reload_combine): Likewise for locals "insn", "prev".
7550 (reload_combine_note_use): Likewise for param "insn".
7551 (move2add_use_add2_insn): Likewise.
7552 (move2add_use_add3_insn): Likewise.
7553 (reload_cse_move2add): Likewise, also for local "next".
7554 (move2add_note_store): Likewise for local "insn".
7556 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7558 * postreload-gcse.c (struct occr): Strengthen field "insn" from
7560 (struct unoccr): Likewise.
7561 (struct modifies_mem): Likewise.
7562 (alloc_mem): Likewise for local "insn".
7563 (insert_expr_in_table): Likewise for param "insn".
7564 (dump_expr_hash_table_entry): Likewise for local "insn".
7565 (oprs_unchanged_p): Likewise for param "insn".
7566 (load_killed_in_block_p): Likewise for local "setter".
7567 (record_last_reg_set_info): Likewise for param "insn".
7568 (record_last_reg_set_info_regno): Likewise.
7569 (record_last_mem_set_info): Likewise.
7570 (record_last_set_info): Likewise for local "last_set_insn".
7571 (record_opr_changes): Likewise for param "insn".
7572 (hash_scan_set): Likewise.
7573 (compute_hash_table): Likewise for local "insn".
7574 (get_avail_load_store_reg): Likewise for param "insn".
7575 (eliminate_partially_redundant_load): Likewise, also for locals
7576 "avail_insn", "next_pred_bb_end". Replace use of NULL_RTX with
7578 (eliminate_partially_redundant_loads): Likewise for local "insn".
7580 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7582 * optabs.c (expand_doubleword_shift): Strengthen local "insn" from
7584 (expand_binop): Likewise for locals "entry_last", "last", "insns"
7585 (expand_twoval_unop): Likewise for locals entry_last", "last".
7586 (expand_twoval_binop): Likewise.
7587 (expand_twoval_binop_libfunc): Likewise for local "insns".
7588 (widen_leading): Likewise for local "last".
7589 (expand_doubleword_clz): Likewise for local "seq". Strengthen
7590 locals "hi0_label", "after_label" from rtx to rtx_code_label *.
7591 (widen_bswap): Strengthen local "last" from rtx to rtx_insn *.
7592 (expand_parity): Likewise for locals "last" and "seq".
7593 (expand_ffs): Likewise for local "seq". Strengthen local
7594 "nonzero_label" from rtx to rtx_code_label *.
7595 (expand_absneg_bit): Strengthen local "insns" from rtx to
7597 (expand_unop_direct): Likewise for local "last".
7598 (expand_unop): Likewise for locals "last", "insns".
7599 (expand_abs_nojump): Likewise for local "last".
7600 (expand_abs): Strengthen local "op1" from rtx to rtx_code_label *.
7601 (expand_one_cmpl_abs_nojump): Strengthen local "last" from rtx to
7603 (expand_copysign_absneg): Strengthen local "label" from rtx to
7605 (expand_copysign_bit): Strengthen local "insns" from rtx to
7607 (struct no_conflict_data): Likewise for fields "first", "insn".
7608 (emit_libcall_block_1): Likewise for param "insns" and locals
7609 "next", "last", "insn".
7610 (emit_libcall_block): For now, add a checked cast to rtx_insn *
7611 on "insns" when invoking emit_libcall_block_1. Ultimately we
7612 want to strengthen insns itself.
7613 (prepare_cmp_insn): Strengthen local "last" from rtx to
7615 (emit_cmp_and_jump_insn_1): Likewise for local "insn".
7616 (prepare_float_lib_cmp): Likewise for local "insns".
7617 (emit_conditional_move): Likewise for local "last".
7618 (emit_conditional_add): Likewise.
7619 (have_sub2_insn): Likewise for local "seq".
7620 (expand_float): Likewise for local "insns". Strengthen locals
7621 "label", "neglabel" from rtx to rtx_code_label *.
7622 (expand_fix): Likewise for locals "last", "insn", "insns" (to
7623 rtx_insn *) and locals "lab1", "lab2" (to rtx_code_label *).
7624 (expand_fixed_convert): Likewise for local "insns" (to
7626 (expand_sfix_optab): Likewise for local "last".
7627 (expand_compare_and_swap_loop): Strengthen local "label" from rtx
7628 to rtx_code_label *.
7629 (maybe_emit_sync_lock_test_and_set): Strengthen local "last_insn"
7630 from rtx to rtx_insn *.
7631 (expand_atomic_fetch_op): Likewise for local "insn".
7632 (maybe_legitimize_operand_same_code): Likewise for local "last".
7633 (maybe_legitimize_operands): Likewise.
7635 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7637 * modulo-sched.c (struct ps_reg_move_info): Strengthen field
7638 "insn" from rtx to rtx_insn *.
7639 (ps_rtl_insn): Likewise for return type.
7640 (doloop_register_get): Likewise for params "head", "tail" and
7641 locals "insn", "first_insn_not_to_check".
7642 (schedule_reg_move): Likewise for local "this_insn".
7643 (schedule_reg_moves): Add a checked cast to rtx_insn * to result
7644 of gen_move_insn for now.
7645 (reset_sched_times): Strengthen local "insn" from rtx to
7647 (permute_partial_schedule): Likewise.
7648 (duplicate_insns_of_cycles): Likewise for local "u_insn".
7649 (dump_insn_location): Likewise for param "insn".
7650 (loop_canon_p): Likewise for local "insn".
7651 (sms_schedule): Likewise.
7652 (print_partial_schedule): Likewise.
7653 (ps_has_conflicts): Likewise.
7655 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7657 * sched-int.h (get_ebb_head_tail): Strengthen params "headp" and
7658 "tailp" from rtx * to rtx_insn **.
7660 * ddg.c (build_intra_loop_deps): Strengthen locals head", "tail"
7661 from rtx to rtx_insn *.
7662 * haifa-sched.c (get_ebb_head_tail): Strengthen params "headp" and
7663 "tailp" from rtx * to rtx_insn **. Strengthen locals "beg_head",
7664 "beg_tail", "end_head", "end_tail", "note", "next", "prev" from
7666 * modulo-sched.c (const_iteration_count): Strengthen return type
7667 and locals "insn", "head", "tail" from rtx to rtx_insn *. Replace
7668 use of NULL_RTX with NULL when working with insns.
7669 (loop_single_full_bb_p): Strengthen locals "head", "tail" from rtx
7671 (sms_schedule): Likewise.
7672 * sched-rgn.c (init_ready_list): Likewise, also for locals
7673 "src_head" and "src_next_tail".
7674 (compute_block_dependences): Likewise.
7675 (free_block_dependencies): Likewise.
7676 (debug_rgn_dependencies): Likewise.
7677 (free_rgn_deps): Likewise.
7678 (compute_priorities): Likewise.
7679 (schedule_region): Likewise.
7680 * sel-sched.c (find_ebb_boundaries): Likewise.
7682 * config/sh/sh.c (find_insn_regmode_weight): Strengthen locals
7683 "insn", "next_tail", "head", "tail" from rtx to rtx_insn *.
7685 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7687 * mode-switching.c (struct seginfo): Strengthen field "insn_ptr"
7688 from rtx to rtx_insn *.
7689 (new_seginfo): Likewise for param "insn".
7690 (create_pre_exit): Likewise for locals "last_insn",
7691 "before_return_copy", "return_copy".
7692 (optimize_mode_switching): Likewise for locals "insn", "ins_pos",
7695 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7697 * lra-int.h (struct lra_insn_recog_data): Strengthen field "insn"
7698 from rtx to rtx_insn *.
7699 (lra_push_insn): Likewise for 1st param.
7700 (lra_push_insn_and_update_insn_regno_info): Likewise.
7701 (lra_pop_insn): Likewise for return type.
7702 (lra_invalidate_insn_data): Likewise for 1st param.
7703 (lra_set_insn_deleted): Likewise.
7704 (lra_delete_dead_insn): Likewise.
7705 (lra_process_new_insns): Likewise for first 3 params.
7706 (lra_set_insn_recog_data): Likewise for 1st param.
7707 (lra_update_insn_recog_data): Likewise.
7708 (lra_set_used_insn_alternative): Likewise.
7709 (lra_invalidate_insn_regno_info): Likewise.
7710 (lra_update_insn_regno_info): Likewise.
7711 (lra_former_scratch_operand_p): Likewise.
7712 (lra_eliminate_regs_1): Likewise.
7713 (lra_get_insn_recog_data): Likewise.
7715 * lra-assigns.c (assign_by_spills): Strengthen local "insn" from
7718 * lra-coalesce.c (move_freq_compare_func): Likewise for locals
7720 (substitute_within_insn): New.
7721 (lra_coalesce): Strengthen locals "mv", "insn", "next" from rtx to
7722 rtx_insn *. Strengthen sorted_moves from rtx * to rxt_insn **.
7723 Replace call to "substitute" with call to substitute_within_insn.
7725 * lra-constraints.c (curr_insn): Strengthen from rtx to
7727 (get_equiv_with_elimination): Likewise for param "insn".
7728 (match_reload): Strengthen params "before" and "after" from rtx *
7730 (emit_spill_move): Likewise for return type. Add a checked cast
7731 to rtx_insn * on result of gen_move_insn for now.
7732 (check_and_process_move): Likewise for local "before". Replace
7733 NULL_RTX with NULL when referring to insns.
7734 (process_addr_reg): Strengthen params "before" and "after" from
7735 rtx * to rtx_insn **.
7736 (insert_move_for_subreg): Likewise.
7737 (simplify_operand_subreg): Strengthen locals "before" and "after"
7738 from rtx to rtx_insn *.
7739 (process_address_1): Strengthen params "before" and "after" from
7740 rtx * to rtx_insn **. Strengthen locals "insns", "last_insn" from
7742 (process_address): Strengthen params "before" and "after" from
7743 rtx * to rtx_insn **.
7744 (emit_inc): Strengthen local "last" from rtx to rtx_insn *.
7745 (curr_insn_transform): Strengthen locals "before" and "after"
7746 from rtx to rtx_insn *. Replace NULL_RTX with NULL when referring
7748 (loc_equivalence_callback): Update cast of "data", changing
7749 resulting type from rtx to rtx_insn *.
7750 (substitute_pseudo_within_insn): New.
7751 (inherit_reload_reg): Strengthen param "insn" from rtx to
7752 rtx_insn *; likewise for local "new_insns". Replace NULL_RTX with
7753 NULL when referring to insns. Add a checked cast to rtx_insn *
7754 when using usage_insn to invoke lra_update_insn_regno_info.
7755 (split_reg): Strengthen param "insn" from rtx to rtx_insn *;
7756 likewise for locals "restore", "save". Add checked casts to
7757 rtx_insn * when using usage_insn to invoke
7758 lra_update_insn_regno_info and lra_process_new_insns. Replace
7759 NULL_RTX with NULL when referring to insns.
7760 (split_if_necessary): Strengthen param "insn" from rtx to
7762 (update_ebb_live_info): Likewise for params "head", "tail" and local
7764 (get_last_insertion_point): Likewise for return type and local "insn".
7765 (get_live_on_other_edges): Likewise for local "last".
7766 (inherit_in_ebb): Likewise for params "head", "tail" and locals
7767 "prev_insn", "next_insn", "restore".
7768 (remove_inheritance_pseudos): Likewise for local "prev_insn".
7769 (undo_optional_reloads): Likewise for local "insn".
7771 * lra-eliminations.c (lra_eliminate_regs_1): Likewise for param
7773 (lra_eliminate_regs): Replace NULL_RTX with NULL when referring to
7775 (eliminate_regs_in_insn): Strengthen param "insn" from rtx to
7777 (spill_pseudos): Likewise for local "insn".
7778 (init_elimination): Likewise.
7779 (process_insn_for_elimination): Likewise for param "insn".
7781 * lra-lives.c (curr_insn): Likewise.;
7783 * lra-spills.c (assign_spill_hard_regs): Likewise for local "insn".
7784 (remove_pseudos): Likewise for param "insn".
7785 (spill_pseudos): Likewise for local "insn".
7786 (lra_final_code_change): Likewise for locals "insn", "curr".
7788 * lra.c (lra_invalidate_insn_data): Likewise for param "insn".
7789 (lra_set_insn_deleted): Likewise.
7790 (lra_delete_dead_insn): Likewise, and for local "prev".
7791 (new_insn_reg): Likewise for param "insn".
7792 (lra_set_insn_recog_data): Likewise.
7793 (lra_update_insn_recog_data): Likewise.
7794 (lra_set_used_insn_alternative): Likewise.
7795 (get_insn_freq): Likewise.
7796 (invalidate_insn_data_regno_info): Likewise.
7797 (lra_invalidate_insn_regno_info): Likewise.
7798 (lra_update_insn_regno_info): Likewise.
7799 (lra_constraint_insn_stack): Strengthen from vec<rtx> to
7801 (lra_push_insn_1): Strengthen param "insn" from rtx to
7803 (lra_push_insn): Likewise.
7804 (lra_push_insn_and_update_insn_regno_info): Likewise.
7805 (lra_pop_insn): Likewise for return type and local "insn".
7806 (push_insns): Likewise for params "from", "to", and local "insn".
7807 (setup_sp_offset): Likewise for params "from", "last" and locals
7809 (lra_process_new_insns): Likewise for params "insn", "before",
7810 "after" and local "last".
7811 (struct sloc): Likewise for field "insn".
7812 (lra_former_scratch_operand_p): Likewise for param "insn".
7813 (remove_scratches): Likewise for locals "insn", "last".
7814 (check_rtl): Likewise for local "insn".
7815 (add_auto_inc_notes): Likewise for param "insn".
7816 (update_inc_notes): Likewise for local "insn".
7817 (lra): Replace NULL_RTX with NULL when referring to insn.
7819 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7821 * lower-subreg.c (simple_move): Strengthen param "insn" from rtx
7823 (resolve_reg_notes): Likewise.
7824 (resolve_simple_move): Likewise for return type, param "insn", and
7825 locals "insns", "minsn".
7826 (resolve_clobber): Strengthen param "insn" from rtx to rtx_insn *.
7827 (resolve_use): Likewise.
7828 (resolve_debug): Likewise.
7829 (find_decomposable_shift_zext): Likewise.
7830 (resolve_shift_zext): Likewise for return type, param "insn", and
7831 locals "insns", "in". Eliminate use of NULL_RTX in favor of NULL.
7832 (decompose_multiword_subregs): Likewise for local "insn",
7833 "orig_insn", "decomposed_shift", "end".
7835 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7837 * basic-block.h (basic_block split_edge_and_insert): Strengthen
7838 param "insns" from rtx to rtx_insn *.
7840 * loop-unroll.c (struct iv_to_split): Strengthen field "insn" from
7842 (struct iv_to_split): Likewise.
7843 (loop_exit_at_end_p): Likewise for local "insn".
7844 (split_edge_and_insert): Likewise for param "insns".
7845 (compare_and_jump_seq): Likewise for return type, param "cinsn",
7846 and locals "seq", "jump".
7847 (unroll_loop_runtime_iterations): Likewise for locals "init_code",
7848 "branch_code"; update invocations of compare_and_jump_seq to
7849 eliminate NULL_RTX in favor of NULL.
7850 (referenced_in_one_insn_in_loop_p): Strengthen local "insn" from
7852 (reset_debug_uses_in_loop): Likewise.
7853 (analyze_insn_to_expand_var): Likewise for param "insn".
7854 (analyze_iv_to_split_insn): Likewise.
7855 (analyze_insns_in_loop): Likewise for local "insn".
7856 (insert_base_initialization): Likewise for param
7857 "insn" and local "seq".
7858 (split_iv): Likewise for param "insn" and local "seq".
7859 (expand_var_during_unrolling): Likewise for param "insn".
7860 (insert_var_expansion_initialization): Likewise for local "seq".
7861 (combine_var_copies_in_loop_exit): Likewise.
7862 (combine_var_copies_in_loop_exit): Likewise for locals "seq" and
7864 (maybe_strip_eq_note_for_split_iv): Likewise for param "insn".
7865 (apply_opt_in_copies): Likewise for locals "insn", "orig_insn",
7868 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7870 * cfgloop.h (iv_analyze): Strengthen param 1 "insn" from rtx to
7872 (iv_analyze_result): Likewise.
7873 (iv_analyze_expr): Likewise.
7876 * loop-iv.c (iv_get_reaching_def): Strengthen param "insn" and
7877 local "def_insn" from rtx to rtx_insn *.
7878 (get_biv_step_1): Likewise for local "insn".
7879 (iv_analyze_expr): Likewise for param "insn".
7880 (iv_analyze_def): Likewise for local "insn".
7881 (iv_analyze_op): Likewise for param "insn".
7882 (iv_analyze): Likewise.
7883 (iv_analyze_result): Likewise.
7885 (suitable_set_for_replacement): Likewise.
7886 (simplify_using_initial_values): Likewise for local "insn".
7887 (iv_number_of_iterations): Likewise for param "insn".
7888 (check_simple_exit): Add checked cast to rtx_insn when invoking
7889 iv_number_of_iterations for now (until get_condition is
7892 * loop-unroll.c (analyze_iv_to_split_insn): Strengthen param
7893 "insn" from rtx to rtx_insn *.
7894 (analyze_insns_in_loop): Likewise for local "insn".
7896 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7898 * loop-invariant.c (struct use): Strengthen field "insn" from rtx
7900 (struct invariant): Likewise.
7901 (hash_invariant_expr_1): Likewise for param "insn".
7902 (invariant_expr_equal_p): Likewise for param "insn1", "insn2".
7903 (find_exits): Likewise for local "insn".
7904 (create_new_invariant): Likewise for param "insn".
7905 (check_dependencies): Likewise.
7906 (find_invariant_insn): Likewise.
7907 (record_uses): Likewise.
7908 (find_invariants_insn): Likewise.
7909 (find_invariants_bb): Likewise for local "insn".
7910 (get_pressure_class_and_nregs): Likewise for param "insn".
7911 (calculate_loop_reg_pressure): Likewise for local "insn".
7913 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7915 * loop-doloop.c (doloop_valid_p): Strengthen local "insn" from rtx
7917 (add_test): Likewise for locals "seq", "jump".
7918 (doloop_modify): Likewise for locals "sequence", "jump_insn".
7920 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7922 * rtl.h (rebuild_jump_labels): Strengthen param "f" from rtx to
7924 (rebuild_jump_labels_chain): Likewise for param "chain".
7926 * cfgexpand.c (pass_expand::execute): Add checked cast to
7927 rtx_insn * when calling rebuild_jump_labels_chain in region where
7928 we know e->insns.r is non-NULL.
7930 * jump.c (rebuild_jump_labels_1): Strengthen param "f" from rtx to
7932 (rebuild_jump_labels): Likewise.
7933 (rebuild_jump_labels_chain): Likewise for param "chain".
7934 (cleanup_barriers): Likewise for locals "insn", "next", "prev".
7935 (init_label_info): Likewise for param "f".
7936 (maybe_propagate_label_ref): Likewise for params "jump_insn",
7937 "prev_nonjump_insn".
7938 (mark_all_labels): Likewise for param "f" and locals "insn",
7939 "prev_nonjump_insn".
7941 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7943 * ira-int.h (struct ira_allocno_copy): Strengthen field "insn"
7944 from rtx to rtx_insn *insn.
7945 (ira_create_copy): Strengthen param "insn" from rtx to rtx_insn *.
7946 (ira_add_allocno_copy): Likewise.
7947 * ira-build.c (find_allocno_copy): Strengthen param "insn" from
7949 (ira_create_copy): Likewise.
7950 (ira_add_allocno_copy): Likewise.
7951 (create_bb_allocnos): Likewise for local "insn".
7952 * ira-conflicts.c (process_regs_for_copy): Likewise for param "insn".
7953 (process_reg_shuffles): Update NULL_RTX to NULL in invocation of
7954 process_regs_for_copy for rtx_insn * param.
7955 (add_insn_allocno_copies): Strengthen param "insn" from rtx to
7956 rtx_insn *insn. Update NULL_RTX to NULL in invocation of
7957 process_regs_for_copy for rtx_insn * param.
7958 (add_copies): Strengthen local "insn" from rtx to rtx_insn *insn.
7959 * ira-costs.c (record_reg_classes): Likewise for param "insn".
7960 (record_operand_costs): Likewise.
7961 (scan_one_insn): Likewise for return type, and for param "insn".
7962 (process_bb_for_costs): Likewise for local "insn".
7963 (process_bb_node_for_hard_reg_moves): Likewise.
7964 * ira-emit.c (struct move): Likewise for field "insn".
7965 (create_move): Eliminate use of NULL_RTX when dealing with an
7967 (emit_move_list): Strengthen return type and locals "result",
7968 "insn" from rtx to rtx_insn *insn.
7969 (emit_moves): Likewise for locals "insns", "tmp".
7970 (ira_emit): Likewise for local "insn".
7971 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise for param
7973 (find_call_crossed_cheap_reg): Likewise.
7974 (process_bb_node_lives): Likewise for local "insn".
7975 * ira.c (decrease_live_ranges_number): Likewise.
7976 (compute_regs_asm_clobbered): Likewise.
7977 (build_insn_chain): Likewise.
7978 (find_moveable_pseudos): Likewise, also locals "def_insn",
7979 "use_insn", "x". Also strengthen local "closest_uses" from rtx *
7980 to rtx_insn **. Add a checked cast when assigning from
7981 "closest_use" into closest_uses array in a region where we know
7982 it's a non-NULL insn.
7983 (interesting_dest_for_shprep): Strengthen param "insn" from rtx
7985 (split_live_ranges_for_shrink_wrap): Likewise for locals "insn",
7986 "last_interesting_insn", "uin".
7987 (move_unallocated_pseudos): Likewise for locals "def_insn",
7988 "move_insn", "newinsn".
7990 2014-08-22 David Malcolm <dmalcolm@redhat.com>
7992 * internal-fn.c (ubsan_expand_si_overflow_addsub_check):
7993 Strengthen locals "done_label", "do_error" from rtx to
7995 (ubsan_expand_si_overflow_addsub_check): Strengthen local "last"
7996 from rtx to rtx_insn *. Strengthen local "sub_check from rtx to
7998 (ubsan_expand_si_overflow_neg_check): Likewise for locals
7999 "done_label", "do_error" to rtx_code_label * and local "last" to
8001 (ubsan_expand_si_overflow_mul_check): Likewise for locals
8002 "done_label", "do_error", "large_op0", "small_op0_large_op1",
8003 "one_small_one_large", "both_ops_large", "after_hipart_neg",
8004 "after_lopart_neg", "do_overflow", "hipart_different" to
8005 rtx_code_label * and local "last" to rtx_insn *.
8007 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8009 * init-regs.c (initialize_uninitialized_regs): Strengthen locals
8010 "insn" and "move_insn" from rtx to rtx_insn *.
8012 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8014 * ifcvt.c (count_bb_insns): Strengthen local "insn" from rtx to
8016 (cheap_bb_rtx_cost_p): Likewise.
8017 (first_active_insn): Likewise for return type and local "insn".
8018 (last_active_insn): Likewise for return type and locals "insn",
8020 (struct noce_if_info): Likewise for fields "jump", "insn_a",
8022 (end_ifcvt_sequence): Likewise for return type and locals "insn",
8024 (noce_try_move): Likewise for local "seq".
8025 (noce_try_store_flag): Likewise.
8026 (noce_try_store_flag_constants): Likewise.
8027 (noce_try_addcc): Likewise.
8028 (noce_try_store_flag_mask): Likewise.
8029 (noce_try_cmove): Likewise.
8030 (noce_try_minmax): Likewise.
8031 (noce_try_abs): Likewise.
8032 (noce_try_sign_mask): Likewise.
8033 (noce_try_bitop): Likewise.
8034 (noce_can_store_speculate_p): Likewise for local "insn".
8035 (noce_process_if_block): Likewise for locals "insn_a", "insn_b",
8037 (check_cond_move_block): Likewise for local "insn".
8038 (cond_move_convert_if_block): Likewise.
8039 (cond_move_process_if_block): Likewise for locals "seq",
8041 (noce_find_if_block): Likewise for local "jump".
8042 (merge_if_block): Likewise for local "last".
8043 (block_jumps_and_fallthru_p): Likewise for locals "insn", "end".
8044 (find_cond_trap): Likewise for locals "trap", "jump", "newjump".
8045 (block_has_only_trap): Likewise for return type and local "trap".
8046 (find_if_case_1): Likewise for local "jump".
8047 (dead_or_predicable): Likewise for locals "head", "end", "jump",
8050 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8052 * hw-doloop.h (struct hwloop_info_d): Strengthen fields
8053 "last_insn", "loop_end" from rtx to rtx_insn *.
8055 * hw-doloop.c (scan_loop): Likewise for local "insn".
8056 (discover_loop): Likewise for param "tail_insn".
8057 (discover_loops): Likewise for local "tail".
8059 * config/bfin/bfin.c (hwloop_optimize): For now, add a checked
8060 cast to rtx_insn * when assigning from an rtx local to a
8061 hwloop_info's "last_insn" field.
8063 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8065 * haifa-sched.c (bb_header): Strengthen from rtx * to rtx_insn **.
8066 (add_delay_dependencies): Strengthen local "pro" from rtx to
8068 (recompute_todo_spec): Likewise.
8069 (dep_cost_1): Likewise for locals "insn", "used".
8070 (schedule_insn): Likewise for local "dbg".
8071 (schedule_insn): Likewise for locals "pro", "next".
8072 (unschedule_insns_until): Likewise for local "con".
8073 (restore_pattern): Likewise for local "next".
8074 (estimate_insn_tick): Likewise for local "pro".
8075 (resolve_dependencies): Likewise for local "next".
8076 (fix_inter_tick): Likewise.
8077 (fix_tick_ready): Likewise for local "pro".
8078 (add_to_speculative_block): Likewise for locals "check", "twin",
8080 (sched_extend_bb): Likewise for locals "end", "insn".
8081 (init_before_recovery): Likewise for local "x".
8082 (sched_create_recovery_block): Likewise for local "barrier".
8083 (create_check_block_twin): Likewise for local "pro".
8084 (fix_recovery_deps): Likewise for locals "note", "insn", "jump",
8086 (unlink_bb_notes): Update for change to type of bb_header.
8087 Strengthen locals "prev", "label", "note", "next" from rtx to
8089 (clear_priorities): Likewise for local "pro".
8091 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8093 * gcse.c (struct occr): Strengthen field "insn" from rtx to
8095 (test_insn): Likewise for this global.
8096 (oprs_unchanged_p): Strengthen param "insn" from const_rtx to
8098 (oprs_anticipatable_p): Likewise.
8099 (oprs_available_p): Likewise.
8100 (insert_expr_in_table): Strengthen param "insn" from rtx to
8102 (hash_scan_set): Likewise.
8103 (hash_scan_clobber): Likewise.
8104 (hash_scan_call): Likewise.
8105 (hash_scan_insn): Likewise.
8106 (compute_hash_table_work): Likewise for local "insn".
8107 (process_insert_insn): Likewise for return type and local "pat".
8108 (insert_insn_end_basic_block): Likewise for locals "new_insn",
8109 "pat", "pat_end", "maybe_cc0_setter".
8110 (pre_edge_insert): Likewise for local "insn".
8111 (pre_insert_copy_insn): Likewise for param "insn".
8112 (pre_insert_copies): Likewise for local "insn".
8113 (struct set_data): Likewise for field "insn".
8114 (single_set_gcse): Likewise for param "insn".
8115 (gcse_emit_move_after): Likewise.
8116 (pre_delete): Likewise for local "insn".
8117 (update_bb_reg_pressure): Likewise for param "from" and local
8119 (should_hoist_expr_to_dom): Likewise for param "from".
8120 (hoist_code): Likewise for local "insn".
8121 (get_pressure_class_and_nregs): Likewise for param "insn".
8122 (calculate_bb_reg_pressure): Likewise for local "insn".
8123 (compute_ld_motion_mems): Likewise.
8125 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8127 * genpeep.c (main): Rename param back from "uncast_ins1" to
8128 "ins1", strengthening from rtx to rtx_insn *. Drop now-redundant
8131 * output.h (peephole): Strengthen param from rtx to rtx_insn *.
8133 2014-08-22 Michael Meissner <meissner@linux.vnet.ibm.com>
8136 * doc/md.texi (Machine Constraints): Update PowerPC wi constraint
8137 documentation to state it is only for VSX operations.
8139 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Make wi
8140 constraint only active if VSX.
8142 * config/rs6000/rs6000.md (lfiwax): Use wj constraint instead of
8143 wi cosntraint for ISA 2.07 lxsiwax/lxsiwzx instructions.
8146 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8148 * fwprop.c (single_def_use_dom_walker::before_dom_children):
8149 Strengthen local "insn" from rtx to rtx_insn *.
8150 (use_killed_between): Likewise for param "target_insn".
8151 (all_uses_available_at): Likewise for param "target_insn" and
8153 (update_df_init): Likewise for params "def_insn", "insn".
8154 (update_df): Likewise for param "insn".
8155 (try_fwprop_subst): Likewise for param "def_insn" and local
8157 (free_load_extend): Likewise for param "insn".
8158 (forward_propagate_subreg): Likewise for param "def_insn" and
8160 (forward_propagate_asm): Likewise for param "def_insn" and local
8162 (forward_propagate_and_simplify): Likewise for param "def_insn"
8163 and local "use_insn".
8164 (forward_propagate_into): Likewise for locals "def_insn" and
8167 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8169 * function.c (emit_initial_value_sets): Strengthen local "seq"
8170 from rtx to rtx_insn *.
8171 (instantiate_virtual_regs_in_insn): Likewise for param "insn" and
8173 (instantiate_virtual_regs): Likewise for local "insn".
8174 (assign_parm_setup_reg): Likewise for locals "linsn", "sinsn".
8175 (reorder_blocks_1): Likewise for param "insns" and local "insn".
8176 (expand_function_end): Likewise for locals "insn" and "seq".
8177 (epilogue_done): Likewise for local "insn".
8178 (thread_prologue_and_epilogue_insns): Likewise for locals "prev",
8180 (reposition_prologue_and_epilogue_notes): Likewise for locals
8181 "insn", "last", "note", "first".
8182 (match_asm_constraints_1): Likewise for param "insn" and local "insns".
8183 (pass_match_asm_constraints::execute): Likewise for local "insn".
8185 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8187 * output.h (final_scan_insn): Strengthen return type from rtx to
8189 (final_forward_branch_p): Likewise for param.
8190 (current_output_insn): Likewise for this global.
8192 * final.c (rtx debug_insn): Likewise for this variable.
8193 (current_output_insn): Likewise.
8194 (get_attr_length_1): Rename param "insn" to "uncast_insn",
8195 adding "insn" back in as an rtx_insn * with a checked cast, so
8196 that macro ADJUST_INSN_LENGTH can be passed an rtx_insn * as the
8198 (compute_alignments): Strengthen local "label" from rtx to
8200 (shorten_branches): Rename param from "first" to "uncast_first",
8201 introducing a new local rtx_insn * "first" using a checked cast to
8202 effectively strengthen "first" from rtx to rtx_insn * without
8203 affecting the type signature. Strengthen locals "insn", "seq",
8204 "next", "label" from rtx to rtx_insn *.
8205 (change_scope): Strengthen param "orig_insn" and local "insn" from
8207 (final_start_function): Rename param from "first" to "uncast_first",
8208 introducing a new local rtx_insn * "first" using a checked cast to
8209 effectively strengthen "first" from rtx to rtx_insn * without
8210 affecting the type signature. Strengthen local "insn" from rtx to
8212 (dump_basic_block_info): Strengthen param "insn" from rtx to
8214 (final): Rename param from "first" to "uncast_first",
8215 introducing a new local rtx_insn * "first" using a checked cast to
8216 effectively strengthen "first" from rtx to rtx_insn * without
8217 affecting the type signature. Strengthen locals "insn", "next"
8218 from rtx to rtx_insn *.
8219 (output_alternate_entry_point): Strengthen param "insn" from rtx to
8221 (call_from_call_insn): Strengthen param "insn" from rtx to
8223 (final_scan_insn): Rename param from "insn" to "uncast_insn",
8224 introducing a new local rtx_insn * "insn" using a checked cast to
8225 effectively strengthen "insn" from rtx to rtx_insn * without
8226 affecting the type signature. Strengthen return type and locals
8227 "next", "note", "prev", "new_rtx" from rtx to rtx_insn *. Remove
8228 now-redundant checked cast to rtx_insn * from both invocations of
8229 debug_hooks->var_location. Convert CALL_P into a dyn_cast,
8230 introducing a local "call_insn" for use when invoking
8231 call_from_call_insn.
8232 (notice_source_line): Strengthen param "insn" from rtx to
8234 (leaf_function_p): Likewise for local "insn".
8235 (final_forward_branch_p): Likewise.
8236 (leaf_renumber_regs): Likewise for param "first".
8237 (rest_of_clean_state): Likewise for locals "insn" and "next".
8238 (self_recursive_call_p): Likewise for param "insn".
8239 (collect_fn_hard_reg_usage): Likewise for local "insn".
8240 (get_call_fndecl): Likewise for param "insn".
8241 (get_call_cgraph_rtl_info): Likewise.
8242 (get_call_reg_set_usage): Rename param from "insn" to "uncast_insn",
8243 introducing a new local rtx_insn * "insn" using a checked cast to
8244 effectively strengthen "insn" from rtx to rtx_insn * without
8245 affecting the type signature.
8247 * config/arc/arc.c (arc_final_prescan_insn): For now, add checked
8248 cast when assigning from param "insn" to current_output_insn.
8249 (arc_pad_return): Strengthen local "insn" from rtx to rtx_insn *
8250 so that we can assign it back to current_output_insn.
8252 2014-08-20 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
8254 * config/avr/avr-mcus.def: Remove atmega26hvg, atmega64rfa2,
8255 atmega48hvf, atxmega32x1, atmxt224, atmxt224e, atmxt336s,
8256 atmxt540s and atmxt540sreva devices.
8257 * config/avr/avr-tables.opt: Regenerate.
8258 * config/avr/t-multilib: Regenerate.
8259 * doc/avr-mmcu.texi: Regenerate.
8261 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8263 * expr.c (convert_move): Strengthen local "insns" from rtx to
8265 (emit_block_move_via_loop): Strengthen locals "cmp_label" and
8266 "top_label" from rtx to rtx_code_label *.
8267 (move_block_to_reg): Strengthen local "insn", "last" from rtx to
8269 (emit_single_push_insn): Likewise for locals "prev", "last".
8270 (store_expr): Strengthen locals "lab1", "lab2", "label" from rtx
8271 to rtx_code_label *.
8272 (store_constructor): Likewise for locals "loop_start", "loop_end".
8273 (expand_cond_expr_using_cmove): Strengthen local "seq" from rtx to
8275 (expand_expr_real_2): Likewise.
8276 (expand_expr_real_1): Strengthen local "label" from rtx to
8279 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8281 * expmed.c (store_bit_field_using_insv): Strengthen local "last"
8282 from rtx to rtx_insn *.
8283 (store_bit_field_1): Likewise.
8284 (extract_bit_field_1): Likewise.
8285 (expand_mult_const): Likewise for local "insns".
8286 (expmed_mult_highpart): Strengthen local "label" from rtx to
8288 (expand_smod_pow2): Likewise.
8289 (expand_sdiv_pow2): Likewise.
8290 (expand_divmod): Strengthen locals "last", "insn" from rtx to
8291 rtx_insn *. Strengthen locals "label", "label1", "label2",
8292 "label3", "label4", "label5", "lab" from rtx to rtx_code_label *.
8293 (emit_cstore): Strengthen local "last" from rtx to rtx_insn *.
8294 (emit_store_flag): Likewise.
8295 (emit_store_flag_force): Strengthen local "label" from rtx to
8297 (do_cmp_and_jump): Likewise for param "label".
8299 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8301 * explow.c (force_reg): Strengthen local "insn" from rtx to
8303 (adjust_stack_1): Likewise.
8304 (allocate_dynamic_stack_space): Likewise. Strengthen locals
8305 "final_label", "available_label", "space_available" from rtx to
8307 (probe_stack_range): Likewise for locals "loop_lab", "end_lab".
8308 (anti_adjust_stack_and_probe): Likewise.
8310 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8312 * except.h (sjlj_emit_function_exit_after): Strengthen param
8313 "after" from rtx to rtx_insn *. This is only called with
8314 result of get_last_insn (in function.c) so type-change should be
8317 * function.h (struct rtl_eh): Strengthen field "ehr_label" from
8318 rtx to rtx_code_label *, and field "sjlj_exit_after" from rtx
8319 to rtx_insn *. These fields are only used from except.c so this
8320 type-change should be self-contained to this patch.
8322 * except.c (emit_to_new_bb_before): Strengthen param "seq" and
8323 local "last" from rtx to rtx_insn *.
8324 (dw2_build_landing_pads): Likewise for local "seq".
8325 (sjlj_mark_call_sites): Likewise for locals "insn", "before", p".
8326 (sjlj_emit_function_enter): Strengthen param "dispatch_label" from
8327 rtx to rtx_code_label *. Strengthen locals "fn_begin", "seq" from
8329 (sjlj_emit_function_exit_after): Strengthen param "after" from rtx
8331 (sjlj_emit_function_exit): Likewise for locals "seq", "insn".
8332 (sjlj_emit_dispatch_table): Likewise for locals "seq", "seq2".
8333 (sjlj_build_landing_pads): Replace NULL_RTX with NULL when
8334 referring to an insn. Strengthen local "dispatch_label" from
8335 rtx to rtx_code_label *.
8336 (set_nothrow_function_flags): Strengthen local "insn" from rtx to
8338 (expand_eh_return): Strengthen local "around_label" from
8339 rtx to rtx_code_label *.
8340 (convert_to_eh_region_ranges): Strengthen locals "iter",
8341 "last_action_insn", "first_no_action_insn",
8342 "first_no_action_insn_before_switch",
8343 "last_no_action_insn_before_switch", from rtx to rtx_insn *.
8345 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8347 * dwarf2out.c (last_var_location_insn): Strengthen this variable
8348 from rtx to rtx_insn *.
8349 (cached_next_real_insn): Likewise.
8350 (dwarf2out_end_epilogue): Replace use of NULL_RTX with NULL when
8352 (dwarf2out_var_location): Strengthen locals "next_real",
8353 "next_note", "expected_next_loc_note", "last_start", "insn" from
8356 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8358 * dwarf2cfi.c (add_cfis_to_fde): Strengthen locals "insn", "next"
8359 from rtx to rtx_insn *.
8360 (create_pseudo_cfg): Likewise for local "insn".
8362 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8364 * df-core.c (df_bb_regno_first_def_find): Strengthen local "insn"
8365 from rtx to rtx_insn *.
8366 (df_bb_regno_last_def_find): Likewise.
8368 * df-problems.c (df_rd_bb_local_compute): Likewise.
8369 (df_lr_bb_local_compute): Likewise.
8370 (df_live_bb_local_compute): Likewise.
8371 (df_chain_remove_problem): Likewise.
8372 (df_chain_create_bb): Likewise.
8373 (df_word_lr_bb_local_compute): Likewise.
8374 (df_remove_dead_eq_notes): Likewise for param "insn".
8375 (df_note_bb_compute): Likewise for local "insn".
8376 (simulate_backwards_to_point): Likewise.
8377 (df_md_bb_local_compute): Likewise.
8379 * df-scan.c (df_scan_free_bb_info): Likewise.
8380 (df_scan_start_dump): Likewise.
8381 (df_scan_start_block): Likewise.
8382 (df_install_ref_incremental): Likewise for local "insn".
8383 (df_insn_rescan_all): Likewise.
8384 (df_reorganize_refs_by_reg_by_insn): Likewise.
8385 (df_reorganize_refs_by_insn_bb): Likewise.
8386 (df_recompute_luids): Likewise.
8387 (df_bb_refs_record): Likewise.
8388 (df_update_entry_exit_and_calls): Likewise.
8389 (df_bb_verify): Likewise.
8391 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8393 * ddg.h (struct ddg_node): Strengthen fields "insn" and
8394 "first_note" from rtx to rtx_insn *.
8395 (get_node_of_insn): Likewise for param 2 "insn".
8396 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8398 * ddg.c (mem_read_insn_p): Strengthen param "insn" from rtx to
8400 (mem_write_insn_p): Likewise.
8401 (mem_access_insn_p): Likewise.
8402 (autoinc_var_is_used_p): Likewise for params "def_insn" and "use_insn".
8403 (def_has_ccmode_p): Likewise for param "insn".
8404 (add_cross_iteration_register_deps): Likewise for locals
8405 "def_insn" and "use_insn".
8406 (insns_may_alias_p): Likewise for params "insn1" and "insn2".
8407 (build_intra_loop_deps): Likewise for local "src_insn".
8408 (create_ddg): Strengthen locals "insn" and "first_note" from rtx
8410 (get_node_of_insn): Likewise for param "insn".
8412 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8414 * dce.c (worklist): Strengthen from vec<rtx> to vec<rtx_insn *>.
8415 (deletable_insn_p): Strengthen param "insn" from rtx to
8416 rtx_insn *. Add checked cast to rtx_call_insn when invoking
8417 find_call_stack_args, since this is guarded by CALL_P (insn).
8418 (marked_insn_p): Strengthen param "insn" from rtx to
8420 (mark_insn): Likewise. Add checked cast to rtx_call_insn when
8421 invoking find_call_stack_args, since this is guarded by
8423 (mark_nonreg_stores_1): Strengthen cast of "data" from rtx to
8424 rtx_insn *; we know this is an insn since this was called by
8426 (mark_nonreg_stores_2): Likewise.
8427 (mark_nonreg_stores): Strengthen param "insn" from rtx to
8429 (find_call_stack_args): Strengthen param "call_insn" from rtx to
8430 rtx_call_insn *; strengthen locals "insn" and "prev_insn" from rtx
8432 (remove_reg_equal_equiv_notes_for_defs): Strengthen param "insn"
8433 from rtx to rtx_insn *.
8434 (reset_unmarked_insns_debug_uses): Likewise for locals "insn",
8436 (delete_unmarked_insns): Likewise for locals "insn", "next".
8437 (prescan_insns_for_dce): Likewise for locals "insn", "prev".
8438 (mark_reg_dependencies): Likewise for param "insn".
8439 (rest_of_handle_ud_dce): Likewise for local "insn".
8440 (word_dce_process_block): Likewise.
8441 (dce_process_block): Likewise.
8443 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8445 * cse.c (struct qty_table_elem): Strengthen field "const_insn"
8446 from rtx to rtx_insn *.
8447 (struct change_cc_mode_args): Likewise for field "insn".
8448 (this_insn): Strengthen from rtx to rtx_insn *.
8449 (make_new_qty): Replace use of NULL_RTX with NULL when dealing
8451 (validate_canon_reg): Strengthen param "insn" from rtx to
8453 (canon_reg): Likewise.
8454 (fold_rtx): Likewise. Replace use of NULL_RTX with NULL when
8456 (record_jump_equiv): Strengthen param "insn" from rtx to
8458 (try_back_substitute_reg): Likewise, also for locals "prev",
8460 (find_sets_in_insn): Likewise for param "insn".
8461 (canonicalize_insn): Likewise.
8462 (cse_insn): Likewise. Add a checked cast.
8463 (invalidate_from_clobbers): Likewise for param "insn".
8464 (invalidate_from_sets_and_clobbers): Likewise.
8465 (cse_process_notes_1): Replace use of NULL_RTX with NULL when
8467 (cse_prescan_path): Strengthen local "insn" from rtx to
8469 (cse_extended_basic_block): Likewise for locals "insn" and
8471 (cse_main): Likewise for param "f".
8472 (check_for_label_ref): Likewise for local "insn".
8473 (set_live_p): Likewise for second param ("insn").
8474 (insn_live_p): Likewise for first param ("insn") and for local
8476 (cse_change_cc_mode_insn): Likewise for first param "insn".
8477 (cse_change_cc_mode_insns): Likewise for first and second params
8479 (cse_cc_succs): Likewise for locals "insns", "last_insns", "insn"
8481 (cse_condition_code_reg): Likewise for locals "last_insn", "insn",
8484 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8485 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8486 Anna Tikhonova <anna.tikhonova@intel.com>
8487 Ilya Tocar <ilya.tocar@intel.com>
8488 Andrey Turetskiy <andrey.turetskiy@intel.com>
8489 Ilya Verbin <ilya.verbin@intel.com>
8490 Kirill Yukhin <kirill.yukhin@intel.com>
8491 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8493 * config/i386/subst.md (define_subst_attr "mask_avx512bw_condition"):
8495 * config/i386/sse.md
8496 (define_mode_iterator VI248_AVX2): Delete.
8497 (define_mode_iterator VI2_AVX2_AVX512BW): New.
8498 (define_mode_iterator VI48_AVX2): Ditto.
8499 (define_insn <shift_insn><mode>3): Delete.
8500 (define_insn "<shift_insn><mode>3<mask_name>" with
8501 VI2_AVX2_AVX512BW): New.
8502 (define_insn "<shift_insn><mode>3<mask_name>" with
8505 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8506 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8507 Anna Tikhonova <anna.tikhonova@intel.com>
8508 Ilya Tocar <ilya.tocar@intel.com>
8509 Andrey Turetskiy <andrey.turetskiy@intel.com>
8510 Ilya Verbin <ilya.verbin@intel.com>
8511 Kirill Yukhin <kirill.yukhin@intel.com>
8512 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8514 * config/i386/sse.md
8515 (define_mode_iterator VI4F_BRCST32x2): New.
8516 (define_mode_attr 64x2_mode): Ditto.
8517 (define_mode_attr 32x2mode): Ditto.
8518 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"
8519 with VI4F_BRCST32x2): Ditto.
8520 (define_insn "<mask_codefor>avx512vl_broadcast<mode><mask_name>_1"
8521 with V16FI mode iterator): Ditto.
8522 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8524 (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>_1"
8525 with VI8F_BRCST64x2): Ditto.
8527 2014-08-22 Alexander Ivchenko <alexander.ivchenko@intel.com>
8528 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
8529 Anna Tikhonova <anna.tikhonova@intel.com>
8530 Ilya Tocar <ilya.tocar@intel.com>
8531 Andrey Turetskiy <andrey.turetskiy@intel.com>
8532 Ilya Verbin <ilya.verbin@intel.com>
8533 Kirill Yukhin <kirill.yukhin@intel.com>
8534 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
8536 * config/i386/sse.md
8537 (define_mode_iterator VI8_AVX512VL): New.
8538 (define_insn "avx512cd_maskb_vec_dup<mode>"): Macroize.
8540 2014-08-22 Kirill Yukhin <kirill.yukhin@intel.com>
8542 * gcc/config/i386/sse.md (define_mode_iterator V_AVX512VL): Delete.
8543 (define_mode_iterator V48_AVX512VL): New.
8544 (define_mode_iterator V12_AVX512VL): Ditto.
8545 (define_insn <avx512>_load<mode>_mask): Split into two similar
8546 patterns which use different mode iterators: V48_AVX512VL V12_AVX512VL.
8547 Refactor output template.
8548 (define_insn "<avx512>_store<mode>_mask"): Ditto.
8550 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8552 * cprop.c (struct occr): Strengthen field "insn" from rtx to
8554 (reg_available_p): Likewise for param "insn".
8555 (insert_set_in_table): Likewise.
8556 (hash_scan_set): Likewise.
8557 (hash_scan_insn): Likewise.
8558 (make_set_regs_unavailable): Likewise.
8559 (compute_hash_table_work): Likewise for local "insn".
8560 (reg_not_set_p): Strengthen param "insn" from const_rtx to
8562 (mark_oprs_set): Strengthen param "insn" from rtx to rtx_insn *.
8563 (try_replace_reg): Likewise.
8564 (find_avail_set): Likewise.
8565 (cprop_jump): Likewise for params "setcc", "jump".
8566 (constprop_register): Likewise for param "insn".
8567 (cprop_insn): Likewise.
8568 (do_local_cprop): Likewise.
8569 (local_cprop_pass): Likewise for local "insn".
8570 (bypass_block): Likewise for params "setcc" and "jump".
8571 (bypass_conditional_jumps): Likewise for locals "setcc" and
8573 (one_cprop_pass): Likewise for local "insn".
8575 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8577 * compare-elim.c (struct comparison_use): Strengthen field "insn"
8578 from rtx to rtx_insn *.
8579 (struct comparison): Likewise, also for field "prev_clobber".
8580 (conforming_compare): Likewise for param "insn".
8581 (arithmetic_flags_clobber_p): Likewise.
8582 (find_flags_uses_in_insn): Likewise.
8583 (find_comparison_dom_walker::before_dom_children): Likewise for
8584 locals "insn", "next", "last_clobber".
8585 (try_eliminate_compare): Likewise for locals "insn", "bb_head".
8587 2014-08-22 David Malcolm <dmalcolm@redhat.com>
8589 * combine-stack-adj.c (struct csa_reflist): Strengthen field
8590 "insn" from rtx to rtx_insn *.
8591 (single_set_for_csa): Likewise for param "insn".
8592 (record_one_stack_ref): Likewise.
8593 (try_apply_stack_adjustment): Likewise.
8594 (struct record_stack_refs_data): Likewise for field "insn".
8595 (maybe_move_args_size_note): Likewise for params "last" and "insn".
8596 (prev_active_insn_bb): Likewise for return type and param "insn".
8597 (next_active_insn_bb): Likewise.
8598 (force_move_args_size_note): Likewise for params "prev" and "last"
8599 and locals "test", "next_candidate", "prev_candidate".
8600 (combine_stack_adjustments_for_block): Strengthen locals
8601 "last_sp_set", "last2_sp_set", "insn", "next" from rtx to
8604 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8606 * combine.c (i2mod): Strengthen this variable from rtx to rtx_insn *.
8607 (struct reg_stat_struct): Likewise for fields "last_death", "last_set".
8608 (subst_insn): Likewise for this variable.
8609 (added_links_insn): Likewise.
8610 (struct insn_link): Likewise for field "insn".
8611 (alloc_insn_link): Likewise for param "insn".
8612 (struct undobuf): Likewise for field "other_insn".
8613 (find_single_use): Likewise for param "insn" and local "next".
8614 (combine_validate_cost): Likewise for params "i0", "i1", "i2", "i3".
8615 (delete_noop_moves): Likewise for locals "insn", "next".
8616 (create_log_links): Likewise for locals "insn", "use_insn".
8617 Strengthen local "next_use" from rtx * to rtx_insn **.
8618 (insn_a_feeds_b): Likewise for params "a", "b".
8619 (combine_instructions): Likewise for param "f" and locals "insn",
8620 "next", "prev", "first", "last_combined_insn", "link", "link1",
8621 "temp". Replace use of NULL_RTX with NULL when referring to
8623 (setup_incoming_promotions): Likewise for param "first"
8624 (set_nonzero_bits_and_sign_copies): Likewise for local "insn".
8625 (can_combine_p): Likewise for params "insn", "i3", "pred",
8626 "pred2", "succ", "succ2" and for local "p".
8627 (combinable_i3pat): Likewise for param "i3".
8628 (cant_combine_insn_p): Likewise for param "insn".
8629 (likely_spilled_retval_p): Likewise.
8630 (adjust_for_new_dest): Likewise.
8631 (update_cfg_for_uncondjump): Likewise, also for local "insn".
8632 (try_combine): Likewise for return type and for params "i3", "i2",
8633 "i1", "i0", "last_combined_insn", and for locals "insn",
8634 "cc_use_insn", "p", "first", "last", "i2_insn", "i1_insn",
8635 "i0_insn". Eliminate local "tem" in favor of new locals
8636 "tem_note" and "tem_insn", the latter being an rtx_insn *. Add a
8637 checked cast for now to rtx_insn * on the return type of
8638 gen_rtx_INSN. Replace use of NULL_RTX with NULL when referring to
8640 (find_split_point): Strengthen param "insn" from rtx to
8642 (simplify_set): Likewise for local "other_insn".
8643 (recog_for_combine): Likewise for param "insn".
8644 (record_value_for_reg): Likewise.
8645 (record_dead_and_set_regs_1): Likewise for local
8647 (record_dead_and_set_regs): Likewise for param "insn".
8648 (record_promoted_value): Likewise.
8649 (check_promoted_subreg): Likewise.
8650 (get_last_value_validate): Likewise.
8651 (reg_dead_at_p): Likewise.
8652 (move_deaths): Likewise for param "to_insn".
8653 (distribute_notes): Likewise for params "from_insn", "i3", "i2"
8654 and locals "place", "place2", "cc0_setter". Eliminate local "tem
8655 in favor of new locals "tem_note" and "tem_insn", the latter being
8657 (distribute_links): Strengthen locals "place", "insn" from rtx to
8660 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8662 * cfgrtl.c (can_delete_note_p): Require a const rtx_note * rather
8664 (can_delete_label_p): Require a const rtx_code_label * rather than
8666 (delete_insn): Add checked cast to rtx_code_label * when we know
8667 we're dealing with LABEL_P (insn). Strengthen local "bb_note" from
8669 (delete_insn_chain): Strengthen locals "prev" and "current" from
8670 rtx to rtx_insn *. Add a checked cast when assigning from
8671 "finish" (strengthening the params will come later). Add a
8672 checked cast to rtx_note * in region where we know
8674 (rtl_delete_block): Strengthen locals "insn" and "end" from rtx to
8676 (compute_bb_for_insn): Likewise.
8677 (free_bb_for_insn): Likewise for local "insn".
8678 (compute_bb_for_insn): Likewise.
8679 (update_bb_for_insn_chain): Strengthen params "begin", "end" and
8680 local "insn" from rtx to rtx_insn *
8681 (flow_active_insn_p): Require a const rtx_insn * rather than a
8683 (contains_no_active_insn_p): Strengthen local "insn" from rtx to
8685 (can_fallthru): Likewise for locals "insn" and "insn2".
8686 (bb_note): Likewise for local "note".
8687 (first_insn_after_basic_block_note): Likewise for local "note" and
8689 (rtl_split_block): Likewise for locals "insn" and "next".
8690 (unique_locus_on_edge_between_p): Likewise for locals "insn" and
8692 (rtl_merge_blocks): Likewise for locals "b_head", "b_end",
8693 "a_end", "del_first", "del_last", "b_debug_start", "b_debug_end",
8695 (try_redirect_by_replacing_jump): Likewise for locals "insn" (both of
8696 them), "kill_from", "barrier", "new_insn".
8697 (patch_jump_insn): Likewise for params "insn", "old_label".
8698 (redirect_branch_edge): Likewise for locals "old_label", "insn".
8699 (force_nonfallthru_and_redirect): Likewise for locals "insn",
8700 "old_label", "new_label".
8701 (rtl_tidy_fallthru_edge): Likewise for local "q".
8702 (rtl_split_edge): Likewise for locals "before", "last".
8703 (commit_one_edge_insertion): Likewise for locals "before",
8704 "after", "insns", "tmp", "last", adding a checked cast where
8705 currently necessary.
8706 (commit_edge_insertions): Likewise.
8707 (rtl_dump_bb): Likewise for locals "insn", "last".
8708 (print_rtl_with_bb): Likewise for local "x".
8709 (rtl_verify_bb_insns): Likewise for local "x".
8710 (rtl_verify_bb_pointers): Likewise for local "insn".
8711 (rtl_verify_bb_insn_chain): Likewise for locals "x", "last_head",
8713 (rtl_verify_fallthru): Likewise for local "insn".
8714 (rtl_verify_bb_layout): Likewise for locals "x" and "rtx_first".
8715 (purge_dead_edges): Likewise for local "insn".
8716 (fixup_abnormal_edges): Likewise for locals "insn", "stop", "next".
8717 (skip_insns_after_block): Likewise for return type and for locals
8718 "insn", "last_insn", "next_head", "prev".
8719 (record_effective_endpoints): Likewise for locals "next_insn",
8721 (fixup_reorder_chain): Likewise for locals "bb_end_insn" and "end".
8722 (verify_insn_chain): Likewise for locals "x", "prevx", "nextx".
8723 (cfg_layout_can_duplicate_bb_p): Likewise for local "insn".
8724 (duplicate_insn_chain): For now, add checked cast from rtx to
8725 rtx_insn * when returning insn.
8726 (cfg_layout_duplicate_bb): Likewise for local "insn".
8727 (cfg_layout_delete_block): Likewise for locals "insn", "next",
8729 (cfg_layout_merge_blocks): Likewise for local "insn", "last".
8730 (rtl_block_empty_p): Likewise.
8731 (rtl_split_block_before_cond_jump): Likewise for locals "insn",
8732 "split_point", "last".
8733 (rtl_block_ends_with_call_p): Likewise for local "insn".
8734 (need_fake_edge_p): Strengthen param "insn" from const_rtx to
8736 (rtl_flow_call_edges_add): Strengthen locals "insn", "prev_insn",
8737 "split_at_insn" from rtx to rtx_insn *.
8738 (rtl_lv_add_condition_to_bb): Likewise for locals "seq", "jump".
8739 (rtl_can_remove_branch_p): Strengthen local "insn" from const_rtx
8740 to const rtx_insn *.
8741 (rtl_account_profile_record): Likewise.
8743 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8745 * cfgloopanal.c (num_loop_insns): Strengthen local "insn" from
8747 (average_num_loop_insns): Likewise.
8748 (init_set_costs): Likewise for local "seq".
8749 (seq_cost): Likewise for param "seq", from const_rtx to const
8752 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8754 * cfgloop.c (loop_exits_from_bb_p): Strengthen local "insn" from
8757 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8759 * basic-block.h (flow_find_cross_jump): Strengthen params 3 and 4
8760 "f1" and "f2" from rtx * to rtx_insn **.
8761 (flow_find_head_matching_sequence): Likewise.
8763 * cfgcleanup.c (try_simplify_condjump): Strengthen local
8764 "cbranch_insn" from rtx to rtx_insn *.
8765 (thread_jump): Likewise for local "insn".
8766 (try_forward_edges): Likewise for local "last".
8767 (merge_blocks_move_predecessor_nojumps): Likewise for local "barrier".
8768 (merge_blocks_move_successor_nojumps): Likewise for locals "barrier",
8770 (can_replace_by): Likewise for params "i1", "i2".
8771 (old_insns_match_p): Likewise.
8772 (merge_notes): Likewise.
8773 (walk_to_nondebug_insn): Likewise for param "i1".
8774 (flow_find_cross_jump): Strengthen params "f1" and "f2" from rtx *
8775 to rtx_insn **. Strengthen locals "i1", "i2", "last1", "last2",
8776 "afterlast1", "afterlast2" from rtx to rtx_insn *.
8777 (flow_find_head_matching_sequence): Strengthen params "f1" and
8778 "f2" from rtx * to rtx_insn **. Strengthen locals "i1", "i2",
8779 "last1", "last2", "beforelast1", "beforelast2" from rtx to
8781 (outgoing_edges_match): Likewise for locals "last1", "last2".
8782 (try_crossjump_to_edge): Likewise for local "insn".
8783 Replace call to for_each_rtx with for_each_rtx_in_insn.
8785 (try_crossjump_to_edge): Likewise for locals "newpos1", "newpos2".
8786 (try_head_merge_bb): Likewise for locals "e0_last_head_, "jump",
8787 "e0_last", "e_last", "head", "curr", "insn". Strengthen locals
8788 "headptr", "currptr", "nextptr" from rtx * to rtx_insn **.
8789 (try_optimize_cfg): Strengthen local "last" from rtx to
8791 (delete_dead_jumptables): Likewise for locals "insn", "next",
8794 * ifcvt.c (cond_exec_process_if_block): Likewise for locals
8795 "rtx then_last_head", "rtx else_last_head", "rtx then_first_tail",
8796 "rtx else_first_tail", to reflect the basic-block.h changes above.
8798 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8800 * cfgbuild.c (make_edges): Strengthen local "insn" from rtx to
8802 (purge_dead_tablejump_edges): Likewise.
8803 (find_bb_boundaries): Likewise for locals "insn", "end",
8804 "flow_transfer_insn".
8806 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8808 * caller-save.c (save_call_clobbered_regs): Strengthen locals
8809 "ins" and "prev" from rtx to rtx_insn *.
8811 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8813 * calls.c (emit_call_1): Strengthen local "call_insn" from rtx to
8815 (internal_arg_pointer_exp_state): Likewise for field "scan_start".
8816 (internal_arg_pointer_based_exp_scan): Likewise for locals "insn",
8818 (load_register_parameters): Likewise for local "before_arg".
8819 (check_sibcall_argument_overlap): Likewise for param "insn".
8820 (expand_call): Likewise for locals "normal_call_insns",
8821 "tail_call_insns", "insns", "before_call", "after_args",
8822 "before_arg", "last", "prev". Strengthen one of the "last" from
8823 rtx to rtx_call_insn *.
8824 (fixup_tail_calls): Strengthen local "insn" from rtx to
8826 (emit_library_call_value_1): Likewise for locals "before_call" and
8829 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8831 * builtins.c (expand_builtin_longjmp): Strengthen locals "insn"
8832 and "last" from rtx to rtx_insn *.
8833 (expand_builtin_nonlocal_goto): Likewise for local "insn".
8834 (expand_builtin_apply): Strengthen local "call_insn" from rtx to
8836 (expand_errno_check): Strengthen local "lab" from rtx to
8838 (expand_builtin_mathfn): Strengthen local "insns" from rtx to
8840 (expand_builtin_mathfn_2): Likewise.
8841 (expand_builtin_mathfn_ternary): Likewise.
8842 (expand_builtin_mathfn_3): Likewise.
8843 (expand_builtin_interclass_mathfn): Likewise for local "last".
8844 (expand_builtin_int_roundingfn): Likewise for local "insns".
8845 (expand_builtin_int_roundingfn_2): Likewise.
8846 (expand_builtin_strlen): Likewise for local "before_strlen".
8847 (expand_builtin_strncmp): Likewise for local "seq".
8848 (expand_builtin_signbit): Likewise for local "last".
8849 (expand_builtin_atomic_compare_exchange): Strengthen local "label"
8850 from rtx to rtx_code_label *.
8851 (expand_stack_restore): Strengthen local "prev" from rtx to
8854 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8856 * bt-load.c (struct btr_user_s): Strengthen field "insn" from rtx
8858 (struct btr_def_s): Likewise.
8859 (insn_sets_btr_p): Strengthen param "insn" from const_rtx to
8861 (add_btr_def): Likewise.
8862 (new_btr_user): Likewise.
8863 (compute_defs_uses_and_gen): Strengthen locals "insn", "last" from
8865 (link_btr_uses): Likewise.
8866 (move_btr_def): Likewise for locals "insp", "old_insn",
8867 "new_insn". Add checked cast to rtx_insn * for now on result of
8869 (can_move_up): Strengthen param "insn" from const_rtx to
8872 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8874 * bb-reorder.c (copy_bb_p): Strengthen local "insn" from rtx to
8876 (get_uncond_jump_length): Likewise for locals "label", "jump".
8877 (fix_up_crossing_landing_pad): Likewise for locals "new_label",
8879 (add_labels_and_missing_jumps): Likewise for local "new_jump".
8880 (fix_up_fall_thru_edges): Likewise for local "old_jump".
8881 (find_jump_block): Likewise for local "insn".
8882 (fix_crossing_conditional_branches): Likewise for locals
8883 "old_jump", "new_jump".
8884 (fix_crossing_unconditional_branches): Likewise for locals
8885 "last_insn", "indirect_jump_sequence", "jump_insn", "cur_insn".
8886 (pass_duplicate_computed_gotos::execute): Likewise for local "insn".
8888 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8890 * auto-inc-dec.c (struct inc_insn): Strengthen field "insn" from
8892 (struct mem_insn): Likewise for field "insn".
8893 (reg_next_use): Strengthen from rtx * to rtx_insn **.
8894 (reg_next_inc_use): Likewise.
8895 (reg_next_def): Likewise.
8896 (move_dead_notes): Strengthen params "to_insn" and "from_insn"
8897 from rtx to rtx_insn *.
8898 (move_insn_before): Likewise for param "next_insn" and local "insns".
8899 (attempt_change): Likewise for local "mov_insn".
8900 (try_merge): Likewise for param "last_insn".
8901 (get_next_ref): Likewise for return type and local "insn".
8902 Strengthen param "next_array" from rtx * to rtx_insn **.
8903 (parse_add_or_inc): Strengthen param "insn" from rtx to
8905 (find_inc): Likewise for locals "insn" and "other_insn" (three of
8907 (merge_in_block): Likewise for locals "insn", "curr",
8909 (pass_inc_dec::execute): Update allocations of the arrays to
8910 reflect the stronger types.
8912 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8914 * asan.c (asan_clear_shadow): Strengthen locals "insn", "insns"
8915 and "jump" from rtx to rtx_insn *. Strengthen local "top_label"
8916 from rtx to rtx_code_label *.
8918 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8920 * alias.c (init_alias_analysis): Strengthen local "insn" from rtx
8923 2014-08-21 Michael Meissner <meissner@linux.vnet.ibm.com>
8925 * config/rs6000/rs6000.c (print_operand, 'y' case): Fix code that
8926 generated a warning and prevented bootstrapping the compiler.
8928 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8930 * rtl.h (delete_related_insns): Strengthen return type from rtx to
8933 * jump.c (delete_related_insns): Likewise, also for locals "next"
8936 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8938 * genautomata.c (output_internal_insn_latency_func): When writing
8939 the function "internal_insn_latency" to insn-automata.c,
8940 strengthen params "insn" and "insn2" from rtx to rtx_insn *, thus
8941 allowing the optional guard function of (define_bypass) clauses to
8942 expect a pair of rtx_insn *, rather than a pair of rtx.
8943 (output_insn_latency_func): When writing the function
8944 "insn_latency", add an "uncast_" prefix to params "insn" and
8945 "insn2", reintroducing "insn" and "insn2" as rtx_insn * locals
8946 using checked casts from the params, thus enabling the above
8947 change to the generated "internal_insn_latency" function.
8949 2014-08-21 Jan Hubicka <hubicka@ucw.cz>
8951 PR tree-optimization/62091
8952 * ipa-devirt.c (ipa_polymorphic_call_context::restrict_to_inner_type):
8953 handle correctly arrays.
8954 (extr_type_from_vtbl_ptr_store): Add debug output; handle multiple
8956 (record_known_type): Walk into inner type.
8957 (ipa_polymorphic_call_context::get_dynamic_type): Likewise; strenghten
8958 condition on no type changes.
8960 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8962 * genattrtab.c (write_attr_get): Within the generated get_attr_
8963 functions, rename param "insn" to "uncast_insn" and reintroduce
8964 "insn" as an local rtx_insn * using a checked cast, so that "insn"
8965 is an rtx_insn * within insn-attrtab.c
8967 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8969 * output.h (peephole): Strengthen return type from rtx to
8971 * rtl.h (delete_for_peephole): Likewise for both params.
8972 * genpeep.c (main): In generated "peephole" function, strengthen
8973 return type and local "insn" from rtx to rtx_insn *. For now,
8974 rename param "ins1" to "uncast_ins1", adding "ins1" back as an
8975 rtx_insn *, with a checked cast.
8976 * jump.c (delete_for_peephole): Strengthen params "from", "to" and
8977 locals "insn", "next", "prev" from rtx to rtx_insn *.
8979 2014-08-21 Marc Glisse <marc.glisse@inria.fr>
8981 PR tree-optimization/62112
8982 * gimple-iterator.c (gsi_replace): Return whether EH cleanup is needed.
8983 * gimple-iterator.h (gsi_replace): Return bool.
8984 * tree-ssa-alias.c (ref_may_alias_global_p_1): New helper, code
8985 moved from ref_may_alias_global_p.
8986 (ref_may_alias_global_p, refs_may_alias_p, ref_maybe_used_by_stmt_p):
8988 (ref_maybe_used_by_call_p): Take ao_ref* instead of tree.
8989 (stmt_kills_ref_p_1): Rename...
8990 (stmt_kills_ref_p): ... to this.
8991 * tree-ssa-alias.h (ref_may_alias_global_p, ref_maybe_used_by_stmt_p,
8992 stmt_kills_ref_p): Declare.
8993 * tree-ssa-dse.c (dse_possible_dead_store_p): New argument, use it.
8994 Move the self-assignment case...
8995 (dse_optimize_stmt): ... here. Handle builtin calls. Remove dead code.
8997 2014-08-21 David Malcolm <dmalcolm@redhat.com>
8999 * rtl.h (try_split): Strengthen return type from rtx to rtx_insn *.
9001 * emit-rtl.c (try_split): Likewise, also for locals "before" and
9002 "after". For now, don't strengthen param "trial", which requires
9003 adding checked casts when returning it.
9005 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9007 * debug.h (struct gcc_debug_hooks): Strengthen param 1 of hook
9008 "label" from rtx to rtx_code_label *. Strengthen param 1 of
9009 "var_location" hook from rtx to rtx_insn *.
9010 (debug_nothing_rtx): Delete in favor of...
9011 (debug_nothing_rtx_code_label): New prototype.
9012 (debug_nothing_rtx_rtx): Delete unused prototype.
9013 (debug_nothing_rtx_insn): New prototype.
9015 * final.c (final_scan_insn): Add checked cast to rtx_insn * when
9016 invoking debug_hooks->var_location (in two places, one in a NOTE
9017 case of a switch statement, the other guarded by a CALL_P
9018 conditional. Add checked cast to rtx_code_label * when invoking
9019 debug_hooks->label (within CODE_LABEL case of switch statement).
9021 * dbxout.c (dbx_debug_hooks): Update "label" hook from
9022 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9023 "var_location" from debug_nothing_rtx to debug_nothing_rtx_insn.
9024 (xcoff_debug_hooks): Likewise.
9025 * debug.c (do_nothing_debug_hooks): Likewise.
9026 (debug_nothing_rtx): Delete in favor of...
9027 (debug_nothing_rtx_insn): New function.
9028 (debug_nothing_rtx_rtx): Delete unused function.
9029 (debug_nothing_rtx_code_label): New function.
9030 * dwarf2out.c (dwarf2_debug_hooks): Update "label" hook from
9031 debug_nothing_rtx to debug_nothing_rtx_code_label.
9032 (dwarf2out_var_location): Strengthen param "loc_note" from rtx
9034 * sdbout.c (sdb_debug_hooks): Update "var_location" hook from
9035 debug_nothing_rtx to debug_nothing_rtx_insn.
9036 (sdbout_label): Strengthen param "insn" from rtx to
9038 * vmsdbgout.c (vmsdbg_debug_hooks): Update "label" hook from
9039 debug_nothing_rtx to debug_nothing_rtx_code_label. Update
9040 "var_location" hook from debug_nothing_rtx to
9041 debug_nothing_rtx_insn.
9043 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9045 * recog.h (insn_output_fn): Update this function typedef to match
9046 the changes below to the generated output functions, strengthening
9047 the 2nd param from rtx to rtx_insn *.
9049 * final.c (get_insn_template): Add a checked cast to rtx_insn * on
9050 insn when invoking an output function, to match the new signature
9051 of insn_output_fn with a stronger second param.
9053 * genconditions.c (write_header): In the generated code for
9054 gencondmd.c, strengthen the global "insn" from rtx to rtx_insn *
9055 to match the other changes in this patch.
9057 * genemit.c (gen_split): Strengthen the 1st param "curr_insn" of
9058 the generated "gen_" functions from rtx to rtx_insn * within their
9061 * genrecog.c (write_subroutine): Strengthen the 2nd param "insn" of
9062 the subfunctions within the generated "recog_", "split", "peephole2"
9063 function trees from rtx to rtx_insn *. For now, the top-level
9064 generated functions ("recog", "split", "peephole2") continue to
9065 take a plain rtx for "insn", to avoid introducing dependencies on
9066 other patches. Rename this 2nd param from "insn" to
9067 "uncast_insn", and reintroduce "insn" as a local variable of type
9068 rtx_insn *, initialized at the top of the generated function with
9069 a checked cast on "uncast_insn".
9070 (make_insn_sequence): Strengthen the 1st param "curr_insn" of
9071 the generated "gen_" functions from rtx to rtx_insn * within their
9074 * genoutput.c (process_template): Strengthen the 2nd param within
9075 the generated "output_" functions "insn" from rtx to rtx_insn *.
9077 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9079 * tree-profile.c (tree_profiling): Skip external functions
9080 when doing coverage instrumentation.
9081 * cgraphunit.c (compile): Do not assert that all nodes are reachable.
9083 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9085 * config/rs6000/altivec.h (vec_cpsgn): New #define.
9086 (vec_mergee): Likewise.
9087 (vec_mergeo): Likewise.
9088 (vec_cntlz): Likewise.
9089 * config/rs600/rs6000-c.c (altivec_overloaded_builtins): Add new
9090 entries for VEC_AND, VEC_ANDC, VEC_MERGEH, VEC_MERGEL, VEC_NOR,
9091 VEC_OR, VEC_PACKSU, VEC_XOR, VEC_PERM, VEC_SEL, VEC_VCMPGT_P,
9093 * doc/extend.texi: Document various forms of vec_cpsgn,
9094 vec_splats, vec_and, vec_andc, vec_mergeh, vec_mergel, vec_nor,
9095 vec_or, vec_perm, vec_sel, vec_sub, vec_xor, vec_all_eq,
9096 vec_all_ge, vec_all_gt, vec_all_le, vec_all_lt, vec_all_ne,
9097 vec_any_eq, vec_any_ge, vec_any_gt, vec_any_le, vec_any_lt,
9098 vec_any_ne, vec_mergee, vec_mergeo, vec_packsu, and vec_cntlz.
9100 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9102 * config/rs6000/rs6000.c (context.h): New include.
9103 (tree-pass.h): Likewise.
9104 (make_pass_analyze_swaps): New decl.
9105 (rs6000_option_override): Register pass_analyze_swaps.
9106 (swap_web_entry): New subsclass of web_entry_base (df.h).
9107 (special_handling_values): New enum.
9108 (union_defs): New function.
9109 (union_uses): Likewise.
9110 (insn_is_load_p): Likewise.
9111 (insn_is_store_p): Likewise.
9112 (insn_is_swap_p): Likewise.
9113 (rtx_is_swappable_p): Likewise.
9114 (insn_is_swappable_p): Likewise.
9115 (chain_purpose): New enum.
9116 (chain_contains_only_swaps): New function.
9117 (mark_swaps_for_removal): Likewise.
9118 (swap_const_vector_halves): Likewise.
9119 (adjust_subreg_index): Likewise.
9120 (permute_load): Likewise.
9121 (permute_store): Likewise.
9122 (handle_special_swappables): Likewise.
9123 (replace_swap_with_copy): Likewise.
9124 (dump_swap_insn_table): Likewise.
9125 (rs6000_analyze_swaps): Likewise.
9126 (pass_data_analyze_swaps): New pass_data.
9127 (pass_analyze_swaps): New rtl_opt_pass.
9128 (make_pass_analyze_swaps): New function.
9129 * config/rs6000/rs6000.opt (moptimize-swaps): New option.
9131 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9133 * sel-sched-ir.h (create_insn_rtx_from_pattern): Strengthen return
9134 type from rtx to rtx_insn *.
9135 (create_copy_of_insn_rtx): Likewise.
9136 * sel-sched-ir.c (create_insn_rtx_from_pattern): Likewise.
9137 (create_copy_of_insn_rtx): Likewise, also for local "res".
9139 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9141 * rtl.h (find_first_parameter_load): Strengthen return type from
9143 * rtlanal.c (find_first_parameter_load): Strengthen return type
9144 from rtx to rtx_insn *. Add checked cast for now, to postpone
9145 strengthening the params.
9147 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9150 * diagnostic.c: Set default caret.
9151 (diagnostic_show_locus): Use it. Tell pretty-printer that a new
9153 * diagnostic.h (struct diagnostic_context):
9155 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9157 * sel-sched-ir.h (exit_insn): Strengthen from rtx to rtx_insn *.
9158 (sel_bb_head): Strengthen return type insn_t (currently just an
9160 (sel_bb_end): Likewise.
9162 * sel-sched-ir.c (exit_insn): Strengthen from rtx to rtx_insn *.
9163 (sel_bb_head): Strengthen return type and local "head" from
9164 insn_t (currently just an rtx) to rtx_insn *.
9165 (sel_bb_end): Likewise for return type.
9166 (free_nop_and_exit_insns): Replace use of NULL_RTX with NULL when
9169 2014-08-21 David Malcolm <dmalcolm@redhat.com>
9171 * basic-block.h (get_last_bb_insn): Strengthen return type from
9173 * cfgrtl.c (get_last_bb_insn): Likewise, and for locals "tmp" and
9176 2014-08-21 Manuel López-Ibáñez <manu@gcc.gnu.org>
9179 * diagnostic.c (default_diagnostic_finalizer): Move caret printing
9181 (diagnostic_report_diagnostic): ... from here.
9182 * toplev.c (general_init): Move code to c-family.
9184 2014-08-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9186 * df.h (web_entry_base): Replace existing struct web_entry with a
9187 new class web_entry_base with only the predecessor member.
9188 (unionfind_root): Remove declaration and move to class member.
9189 (unionfind_union): Remove declaration and move to friend
9191 (union_defs): Remove declaration.
9192 * web.c (web_entry_base::unionfind_root): Modify to be member
9193 function and adjust accessors.
9194 (unionfind_union): Modify to be friend function and adjust
9196 (web_entry): New subclass of web_entry_base containing the reg
9198 (union_match_dups): Modify for struct -> class changes.
9199 (union_defs): Likewise.
9200 (entry_register): Likewise.
9201 (pass_web::execute): Likewise.
9203 2014-08-20 Bill Schmidt <wschmidt@vnet.ibm.com>
9205 * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Provide
9206 builtin define __VEC_ELEMENT_REG_ORDER__.
9208 2014-08-20 Martin Jambor <mjambor@suse.cz>
9209 Wei Mi <wmi@google.com>
9213 * tree-ssa-operands.c (update_stmt_operands): Remove
9214 MODIFIED_NORETURN_CALLS.
9215 * tree-cfgcleanup.c (cleanup_call_ctrl_altering_flag): New func.
9216 (cleanup_control_flow_bb): Use cleanup_call_ctrl_altering_flag.
9217 (split_bb_on_noreturn_calls): Renamed from split_bbs_on_noreturn_calls.
9218 (cleanup_tree_cfg_1): Use split_bb_on_noreturn_calls.
9219 * tree-ssanames.h: Remove MODIFIED_NORETURN_CALLS.
9220 * gimple.h (enum gf_mask): Add GF_CALL_CTRL_ALTERING.
9221 (gimple_call_set_ctrl_altering): New func.
9222 (gimple_call_ctrl_altering_p): Ditto.
9223 * tree-cfg.c (gimple_call_initialize_ctrl_altering): Ditto.
9224 (make_blocks): Use gimple_call_initialize_ctrl_altering.
9225 (is_ctrl_altering_stmt): Use gimple_call_ctrl_altering_p.
9226 (execute_fixup_cfg): Use gimple_call_ctrl_altering_p and
9227 remove MODIFIED_NORETURN_CALLS.
9229 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9231 * coverage.c (coverage_compute_profile_id): Return non-0;
9232 also handle symbols with unique name.
9233 (coverage_end_function): Do not skip DECL_EXTERNAL functions.
9235 2014-08-20 Steve Ellcey <sellcey@mips.com>
9238 * doc/sourcebuild.texi (non_strict_align): New.
9240 2014-08-20 Jan Hubicka <hubicka@ucw.cz>
9242 * cgraphunit.c (ipa_passes, compile): Reshedule
9243 symtab_remove_unreachable_nodes passes; update comments.
9244 * ipa-inline.c (pass_data_ipa_inline): Do not schedule
9245 TODO_remove_functions before the pass; the functions ought to be
9247 * ipa.c (pass_data_ipa_free_inline_summary): Enable dump; schedule
9248 TODO_remove_functions.
9249 * passes.c (pass_data_early_local_passes): Do not schedule function
9251 (execute_one_pass): Fix call of symtab_remove_unreachable_nodes.
9253 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9256 * opts-common.c (set_option): Call diagnostic_classify_diagnostic
9257 before setting the option.
9258 * diagnostic.c (diagnostic_classify_diagnostic): Record
9259 command-line status.
9261 2014-08-20 Richard Biener <rguenther@suse.de>
9264 * tree.c (build_common_tree_nodes): Use make_or_reuse_type
9265 to build uint{16,32,64}_type_node.
9267 2014-08-20 Terry Guo <terry.guo@arm.com>
9269 * config/arm/thumb1.md (64bit splitter): Replace const_double_operand
9270 with immediate_operand.
9272 2014-08-20 David Malcolm <dmalcolm@redhat.com>
9274 * cfgrtl.c (duplicate_insn_chain): Convert the checked cast on
9275 "insn" from an as_a to a safe_as_a, for the case when "insn" is
9278 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9280 PR preprocessor/51303
9281 * incpath.c (remove_duplicates): Use cpp_warning.
9283 2014-08-20 Manuel López-Ibáñez <manu@gcc.gnu.org>
9287 * doc/options.texi (CPP): Document it.
9288 * doc/invoke.texi (Wvariadic-macros): Fix documentation.
9289 * optc-gen.awk: Handle CPP.
9290 * opth-gen.awk: Likewise.
9292 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9294 * rtl.h (unlink_insn_chain): Strengthen return type from rtx to
9296 (duplicate_insn_chain): Likewise.
9297 * cfgrtl.c (unlink_insn_chain): Strengthen return type from rtx to
9298 rtx_insn *, also for locals "prevfirst" and "nextlast". Add a
9299 checked cast for now (until we can strengthen the params in the
9301 (duplicate_insn_chain): Likewise.
9303 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9305 * rtl.h (next_cc0_user): Strengthen return type from rtx to
9307 (prev_cc0_setter): Likewise.
9309 * emit-rtl.c (next_cc0_user): Strengthen return type from rtx to
9310 rtx_insn *, adding checked casts for now as necessary.
9311 (prev_cc0_setter): Likewise.
9313 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9315 * expr.h (emit_move_insn): Strengthen return type from rtx to
9317 (emit_move_insn_1): Likewise.
9318 (emit_move_complex_push): Likewise.
9319 (emit_move_complex_parts): Likewise.
9321 * expr.c (emit_move_via_integer): Strengthen return type from rtx
9322 to rtx_insn *. Replace use of NULL_RTX with NULL when working
9324 (emit_move_complex_push): Strengthen return type from rtx to
9326 (emit_move_complex): Likewise, also for local "ret".
9327 (emit_move_ccmode): Likewise.
9328 (emit_move_multi_word): Likewise for return type and locals
9330 (emit_move_insn_1): Likewise for return type and locals "result",
9332 (emit_move_insn): Likewise for return type and local "last_insn".
9333 (compress_float_constant): Likewise.
9335 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9337 * emit-rtl.h (emit_copy_of_insn_after): Strengthen return type
9338 from rtx to rtx_insn *.
9340 * rtl.h (emit_insn_before): Likewise.
9341 (emit_insn_before_noloc): Likewise.
9342 (emit_insn_before_setloc): Likewise.
9343 (emit_jump_insn_before): Likewise.
9344 (emit_jump_insn_before_noloc): Likewise.
9345 (emit_jump_insn_before_setloc): Likewise.
9346 (emit_call_insn_before): Likewise.
9347 (emit_call_insn_before_noloc): Likewise.
9348 (emit_call_insn_before_setloc): Likewise.
9349 (emit_debug_insn_before): Likewise.
9350 (emit_debug_insn_before_noloc): Likewise.
9351 (emit_debug_insn_before_setloc): Likewise.
9352 (emit_label_before): Likewise.
9353 (emit_insn_after): Likewise.
9354 (emit_insn_after_noloc): Likewise.
9355 (emit_insn_after_setloc): Likewise.
9356 (emit_jump_insn_after): Likewise.
9357 (emit_jump_insn_after_noloc): Likewise.
9358 (emit_jump_insn_after_setloc): Likewise.
9359 (emit_call_insn_after): Likewise.
9360 (emit_call_insn_after_noloc): Likewise.
9361 (emit_call_insn_after_setloc): Likewise.
9362 (emit_debug_insn_after): Likewise.
9363 (emit_debug_insn_after_noloc): Likewise.
9364 (emit_debug_insn_after_setloc): Likewise.
9365 (emit_label_after): Likewise.
9366 (emit_insn): Likewise.
9367 (emit_debug_insn): Likewise.
9368 (emit_jump_insn): Likewise.
9369 (emit_call_insn): Likewise.
9370 (emit_label): Likewise.
9371 (gen_clobber): Likewise.
9372 (emit_clobber): Likewise.
9373 (gen_use): Likewise.
9374 (emit_use): Likewise.
9377 (emit_barrier_before): Strengthen return type from rtx to
9379 (emit_barrier_after): Likewise.
9380 (emit_barrier): Likewise.
9382 * emit-rtl.c (emit_pattern_before_noloc): Strengthen return type
9383 from rtx to rtx_insn *. Add checked casts for now when converting
9384 "last" from rtx to rtx_insn *.
9385 (emit_insn_before_noloc): Likewise for return type.
9386 (emit_jump_insn_before_noloc): Likewise.
9387 (emit_call_insn_before_noloc): Likewise.
9388 (emit_debug_insn_before_noloc): Likewise.
9389 (emit_barrier_before): Strengthen return type and local "insn"
9390 from rtx to rtx_barrier *.
9391 (emit_label_before): Strengthen return type from rtx to
9392 rtx_insn *. Add checked cast for now when returning param
9393 (emit_pattern_after_noloc): Strengthen return type from rtx to
9394 rtx_insn *. Add checked casts for now when converting "last" from
9396 (emit_insn_after_noloc): Strengthen return type from rtx to
9398 (emit_jump_insn_after_noloc): Likewise.
9399 (emit_call_insn_after_noloc): Likewise.
9400 (emit_debug_insn_after_noloc): Likewise.
9401 (emit_barrier_after): Strengthen return type from rtx to
9403 (emit_label_after): Strengthen return type from rtx to rtx_insn *.
9404 Add checked cast for now when converting "label" from rtx to
9406 (emit_pattern_after_setloc): Strengthen return type from rtx to
9407 rtx_insn *. Add checked casts for now when converting "last" from
9409 (emit_pattern_after): Strengthen return type from rtx to
9411 (emit_insn_after_setloc): Likewise.
9412 (emit_insn_after): Likewise.
9413 (emit_jump_insn_after_setloc): Likewise.
9414 (emit_jump_insn_after): Likewise.
9415 (emit_call_insn_after_setloc): Likewise.
9416 (emit_call_insn_after): Likewise.
9417 (emit_debug_insn_after_setloc): Likewise.
9418 (emit_debug_insn_after): Likewise.
9419 (emit_pattern_before_setloc): Likewise. Add checked casts for now
9420 when converting "last" from rtx to rtx_insn *.
9421 (emit_pattern_before): Strengthen return type from rtx to
9423 (emit_insn_before_setloc): Likewise.
9424 (emit_insn_before): Likewise.
9425 (emit_jump_insn_before_setloc): Likewise.
9426 (emit_jump_insn_before): Likewise.
9427 (emit_call_insn_before_setloc): Likewise.
9428 (emit_call_insn_before): Likewise.
9429 (emit_debug_insn_before_setloc): Likewise.
9430 (emit_debug_insn_before): Likewise.
9431 (emit_insn): Strengthen return type and locals "last", "insn",
9432 "next" from rtx to rtx_insn *. Add checked cast to rtx_insn
9433 within cases where we know we have an insn.
9434 (emit_debug_insn): Likewise.
9435 (emit_jump_insn): Likewise.
9436 (emit_call_insn): Strengthen return type and local "insn" from rtx
9438 (emit_label): Strengthen return type from rtx to rtx_insn *. Add
9439 a checked cast to rtx_insn * for now on "label".
9440 (emit_barrier): Strengthen return type from rtx to rtx_barrier *.
9441 (emit_clobber): Strengthen return type from rtx to rtx_insn *.
9442 (emit_use): Likewise.
9443 (gen_use): Likewise, also for local "seq".
9444 (emit): Likewise for return type and local "insn".
9445 (rtx_insn): Likewise for return type and local "new_rtx".
9447 * cfgrtl.c (emit_barrier_after_bb): Strengthen local "barrier"
9448 from rtx to rtx_barrier *.
9450 * config/sh/sh.c (output_stack_adjust): Since emit_insn has
9451 changed return type from rtx to rtx_insn *, we must update
9452 "emit_fn" type, and this in turn means updating...
9453 (frame_insn): ...this. Strengthen return type from rtx to
9454 rtx_insn *. Introduce a new local "insn" of the appropriate type.
9456 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9458 * emit-rtl.c (emit_jump_table_data): Strengthen return type from
9459 rtx to rtx_jump_table_data *. Also for local.
9460 * rtl.h (emit_jump_table_data): Likewise.
9462 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9464 * basic-block.h (create_basic_block_structure): Strengthen third
9465 param "bb_note" from rtx to rtx_note *.
9466 * rtl.h (emit_note_before): Strengthen return type from rtx to
9468 (emit_note_after): Likewise.
9469 (emit_note): Likewise.
9470 (emit_note_copy): Likewise. Also, strengthen param similarly.
9471 * function.h (struct rtl_data): Strengthen field
9472 "x_stack_check_probe_note" from rtx to rtx_note *.
9474 * cfgexpand.c (expand_gimple_basic_block): Strengthen local "note"
9475 from rtx to rtx_note *.
9476 * cfgrtl.c (create_basic_block_structure): Strengthen third param
9477 "bb_note" from rtx to rtx_note *.
9478 (duplicate_insn_chain): Likewise for local "last". Add a checked cast
9479 when calling emit_note_copy.
9480 * emit-rtl.c (make_note_raw): Strengthen return type from rtx to
9482 (emit_note_after): Likewise.
9483 (emit_note_before): Likewise.
9484 (emit_note_copy): Likewise. Also, strengthen param similarly.
9485 (emit_note): Likewise.
9486 * except.c (emit_note_eh_region_end): Likewise for return type.
9487 Strengthen local "next" from rtx to rtx_insn *.
9488 (convert_to_eh_region_ranges): Strengthen local "note"
9489 from rtx to rtx_note *.
9490 * final.c (change_scope): Likewise.
9491 (reemit_insn_block_notes): Likewise, for both locals named "note".
9492 Also, strengthen local "insn" from rtx to rtx_insn *.
9493 * haifa-sched.c (sched_extend_bb): Strengthen local "note" from
9495 * reg-stack.c (compensate_edge): Likewise for local "after". Also,
9496 strengthen local "seq" from rtx to rtx_insn *.
9497 * reload1.c (reload_as_needed): Strengthen local "marker" from rtx
9499 * sel-sched-ir.c (bb_note_pool): Strengthen from rtx_vec_t to
9501 (get_bb_note_from_pool): Strengthen return type from rtx to
9503 (sel_create_basic_block): Strengthen local "new_bb_note" from
9504 insn_t to rtx_note *.
9505 * var-tracking.c (emit_note_insn_var_location): Strengthen local
9506 "note" from rtx to rtx_note *.
9507 (emit_notes_in_bb): Likewise.
9509 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9511 * function.h (struct rtl_data): Strengthen field
9512 "x_parm_birth_insn" from rtx to rtx_insn *.
9513 * function.c (struct assign_parm_data_all): Strengthen fields
9514 "first_conversion_insn" and "last_conversion_insn" from rtx to
9517 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9519 * cfgexpand.c (expand_used_vars): Strengthen return type from rtx
9520 to rtx_insn *; also for local "var_end_seq".
9521 (maybe_dump_rtl_for_gimple_stmt): Likewise for param "since".
9522 (maybe_cleanup_end_of_block): Likewise for param "last" and local
9524 (expand_gimple_cond): Likewise for locals "last2" and "last".
9525 (mark_transaction_restart_calls): Likewise for local "insn".
9526 (expand_gimple_stmt): Likewise for return type and locals "last"
9528 (expand_gimple_tailcall): Likewise for locals "last2" and "last".
9529 (avoid_complex_debug_insns): Likewise for param "insn".
9530 (expand_debug_locations): Likewise for locals "insn", "last",
9531 "prev_insn" and "insn2".
9532 (expand_gimple_basic_block): Likewise for local "last".
9533 (construct_exit_block): Likewise for locals "head", "end",
9535 (pass_expand::execute): Likewise for locals "var_seq",
9536 "var_ret_seq", "next".
9538 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9540 * asan.h (asan_emit_stack_protection): Strengthen return type from
9542 * asan.c (asan_emit_stack_protection): Likewise. Add local
9543 "insns" to hold the return value.
9545 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9547 * basic-block.h (bb_note): Strengthen return type from rtx to
9549 * sched-int.h (bb_note): Likewise.
9550 * cfgrtl.c (bb_note): Likewise. Add a checked cast to rtx_note *.
9552 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9554 * rtl.h (make_insn_raw): Strengthen return type from rtx to
9557 * emit-rtl.c (make_insn_raw): Strengthen return type and local
9558 "insn" from rtx to rtx_insn *.
9559 (make_debug_insn_raw): Strengthen return type from rtx to
9560 rtx_insn *; strengthen local "insn" from rtx to rtx_debug_insn *.
9561 (make_jump_insn_raw): Strengthen return type from rtx to
9562 rtx_insn *; strengthen local "insn" from rtx to rtx_jump_insn *.
9563 (make_call_insn_raw): Strengthen return type from rtx to
9564 rtx_insn *; strengthen local "insn" from rtx to rtx_call_insn *.
9565 (emit_pattern_before_noloc): Strengthen return type of "make_raw"
9566 callback from rtx to rtx_insn *; likewise for local "insn" and
9567 "next", adding a checked cast to rtx_insn in the relevant cases of
9568 the switch statement.
9569 (emit_pattern_after_noloc): Strengthen return type of "make_raw"
9570 callback from rtx to rtx_insn *.
9571 (emit_pattern_after_setloc): Likewise.
9572 (emit_pattern_after): Likewise.
9573 (emit_pattern_before_setloc): Likewise.
9574 (emit_pattern_before): Likewise.
9576 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9578 * emit-rtl.c (last_call_insn): Strengthen return type from rtx to
9580 * rtl.h (is_a_helper <rtx_call_insn *>::test): New overload,
9581 accepting an rtx_insn *.
9582 (last_call_insn): Strengthen return type from rtx to
9585 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9587 * rtl.h (delete_trivially_dead_insns): Strengthen initial param
9588 "insns" from rtx to rtx_insn *.
9589 * cse.c (delete_trivially_dead_insns): Likewise, also do it for
9590 locals "insn" and "prev".
9592 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9594 * rtl.h (tablejump_p): Strengthen third param from rtx * to
9595 rtx_jump_table_data **.
9597 * cfgbuild.c (make_edges): Introduce local "table", using it in
9598 place of "tmp" for jump table data.
9599 (find_bb_boundaries): Strengthen local "table" from rtx to
9600 rtx_jump_table_data *.
9601 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
9602 (outgoing_edges_match): Likewise for locals "table1" and "table2".
9603 (try_crossjump_to_edge): Likewise.
9604 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise for local
9606 (patch_jump_insn): Introduce local "table", using it in place of
9607 "tmp" for jump table data.
9608 (force_nonfallthru_and_redirect): Introduce local "table", so that
9609 call to tablejump_p can receive an rtx_jump_table_data **. Update
9610 logic around the call to overwrite "note" appropriately if
9611 tablejump_p returns non-zero.
9612 (get_last_bb_insn): Introduce local "table", using it in place of
9613 "tmp" for jump table data.
9614 * dwarf2cfi.c (create_trace_edges): Likewise.
9616 * config/arm/arm.c (get_jump_table_size): Strengthen param "insn"
9617 from rtx to rtx_jump_table_data *.
9618 (create_fix_barrier): Strengthen local "tmp" from rtx to
9619 rtx_jump_table_data *.
9620 (arm_reorg): Likewise for local "table".
9622 * config/s390/s390.c (s390_chunkify_start): Likewise.
9624 * config/spu/spu.c (spu_emit_branch_hint): Likewise.
9626 * jump.c (delete_related_insns): Strengthen local "lab_next" from
9627 rtx to rtx_jump_table_data *.
9629 * rtlanal.c (tablejump_p): Strengthen param "tablep" from rtx * to
9630 rtx_jump_table_data **. Add a checked cast when writing through
9631 the pointer: we know there that local "table" is non-NULL and that
9632 JUMP_TABLE_DATA_P (table) holds.
9633 (label_is_jump_target_p): Introduce local "table", using it in
9634 place of "tmp" for jump table data.
9636 2014-08-19 Marek Polacek <polacek@redhat.com>
9639 * doc/invoke.texi: Document -Wbool-compare.
9641 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9643 * rtl.h (entry_of_function): Strengthen return type from rtx to
9645 * cfgrtl.c (entry_of_function): Likewise.
9647 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9649 * emit-rtl.h (get_insns): Strengthen return type from rtx to
9650 rtx_insn *, adding a checked cast for now.
9651 (get_last_insn): Likewise.
9653 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9655 * rtl.h (gen_label_rtx): Strengthen return type from rtx to
9658 * emit-rtl.c (gen_label_rtx): Likewise.
9660 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9662 * rtl.h (previous_insn): Strengthen return type from rtx to
9664 (next_insn): Likewise.
9665 (prev_nonnote_insn): Likewise.
9666 (prev_nonnote_insn_bb): Likewise.
9667 (next_nonnote_insn): Likewise.
9668 (next_nonnote_insn_bb): Likewise.
9669 (prev_nondebug_insn): Likewise.
9670 (next_nondebug_insn): Likewise.
9671 (prev_nonnote_nondebug_insn): Likewise.
9672 (next_nonnote_nondebug_insn): Likewise.
9673 (prev_real_insn): Likewise.
9674 (next_real_insn): Likewise.
9675 (prev_active_insn): Likewise.
9676 (next_active_insn): Likewise.
9678 * emit-rtl.c (next_insn): Strengthen return type from rtx to
9679 rtx_insn *, adding a checked cast.
9680 (previous_insn): Likewise.
9681 (next_nonnote_insn): Likewise.
9682 (next_nonnote_insn_bb): Likewise.
9683 (prev_nonnote_insn): Likewise.
9684 (prev_nonnote_insn_bb): Likewise.
9685 (next_nondebug_insn): Likewise.
9686 (prev_nondebug_insn): Likewise.
9687 (next_nonnote_nondebug_insn): Likewise.
9688 (prev_nonnote_nondebug_insn): Likewise.
9689 (next_real_insn): Likewise.
9690 (prev_real_insn): Likewise.
9691 (next_active_insn): Likewise.
9692 (prev_active_insn): Likewise.
9694 * config/sh/sh-protos.h (sh_find_set_of_reg): Convert function ptr
9695 param "stepfunc" so that it returns an rtx_insn * rather than an
9696 rtx, to track the change to prev_nonnote_insn_bb, which is the
9697 only function this is called with.
9698 * config/sh/sh.c (sh_find_set_of_reg): Likewise.
9700 2014-08-19 Jan Hubicka <hubicka@ucw.cz>
9702 * ipa-visibility.c (update_visibility_by_resolution_info): Fix
9705 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9707 * coretypes.h (class rtx_debug_insn): Add forward declaration.
9708 (class rtx_nonjump_insn): Likewise.
9709 (class rtx_jump_insn): Likewise.
9710 (class rtx_call_insn): Likewise.
9711 (class rtx_jump_table_data): Likewise.
9712 (class rtx_barrier): Likewise.
9713 (class rtx_code_label): Likewise.
9714 (class rtx_note): Likewise.
9716 * rtl.h (class rtx_debug_insn): New, a subclass of rtx_insn,
9717 adding the invariant DEBUG_INSN_P (X).
9718 (class rtx_nonjump_insn): New, a subclass of rtx_insn, adding
9719 the invariant NONJUMP_INSN_P (X).
9720 (class rtx_jump_insn): New, a subclass of rtx_insn, adding
9721 the invariant JUMP_P (X).
9722 (class rtx_call_insn): New, a subclass of rtx_insn, adding
9723 the invariant CALL_P (X).
9724 (class rtx_jump_table): New, a subclass of rtx_insn, adding the
9725 invariant JUMP_TABLE_DATA_P (X).
9726 (class rtx_barrier): New, a subclass of rtx_insn, adding the
9727 invariant BARRIER_P (X).
9728 (class rtx_code_label): New, a subclass of rtx_insn, adding
9729 the invariant LABEL_P (X).
9730 (class rtx_note): New, a subclass of rtx_insn, adding
9731 the invariant NOTE_P(X).
9732 (is_a_helper <rtx_debug_insn *>::test): New.
9733 (is_a_helper <rtx_nonjump_insn *>::test): New.
9734 (is_a_helper <rtx_jump_insn *>::test): New.
9735 (is_a_helper <rtx_call_insn *>::test): New.
9736 (is_a_helper <rtx_jump_table_data *>::test): New functions,
9737 overloaded for both rtx and rtx_insn *.
9738 (is_a_helper <rtx_barrier *>::test): New.
9739 (is_a_helper <rtx_code_label *>::test): New functions, overloaded
9740 for both rtx and rtx_insn *.
9741 (is_a_helper <rtx_note *>::test): New.
9743 2014-08-19 Marek Polacek <polacek@redhat.com>
9745 * config/alpha/alpha.h (CLZ_DEFINED_VALUE_AT_ZERO,
9746 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9747 * config/i386/i386.h (CLZ_DEFINED_VALUE_AT_ZERO,
9748 CTZ_DEFINED_VALUE_AT_ZERO): Return 0/1 rather than bool.
9750 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9752 * sel-sched-ir.h (BND_TO): insn_t will eventually be an
9753 rtx_insn *. To help with transition, for now, convert from an
9754 access macro into a pair of functions: BND_TO, returning an
9756 (SET_BND_TO): New function, for use where BND_TO is used as an
9759 * sel-sched-ir.c (blist_add): Update lvalue usage of BND_TO to
9761 (BND_TO): New function, adding a checked cast.
9762 (SET_BND_TO): New function.
9764 * sel-sched.c (move_cond_jump): Update lvalue usage of BND_TO to
9766 (compute_av_set_on_boundaries): Likewise.
9768 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9770 * config/i386/i386.md (*ctz<mode>2_falsedep_1): Don't clear
9771 destination if it is used in source.
9772 (*clz<mode>2_lzcnt_falsedep_1): Likewise.
9773 (*popcount<mode>2_falsedep_1): Likewise.
9775 2014-08-19 H.J. Lu <hongjiu.lu@intel.com>
9778 * configure.ac: Set install_gold_as_default to no first.
9779 * configure: Regenerated.
9781 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9783 * sel-sched-ir.h (BB_NOTE_LIST): struct sel_region_bb_info_def's
9784 "note_list" field will eventually be an rtx_insn *. To help with
9785 transition, for now, convert from an access macro into a pair of
9786 functions: BB_NOTE_LIST, returning an rtx_insn *, and...
9787 (SET_BB_NOTE_LIST): New function, for use where BB_NOTE_LIST is
9790 * sel-sched.c (create_block_for_bookkeeping): Update lvalue usage
9791 of BB_NOTE_LIST to SET_BB_NOTE_LIST.
9793 * sel-sched-ir.c (init_bb): Likewise.
9794 (sel_restore_notes): Likewise.
9795 (move_bb_info): Likewise.
9796 (BB_NOTE_LIST): New function, adding a checked cast to rtx_insn *.
9797 (SET_BB_NOTE_LIST): New function.
9799 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9801 * sel-sched-ir.h (VINSN_INSN_RTX): struct vinsn_def's "insn_rtx"
9802 field will eventually be an rtx_insn *. To help with transition,
9803 for now, convert from an access macro into a pair of functions:
9804 VINSN_INSN_RTX, returning an rtx_insn *, and...
9805 (SET_VINSN_INSN_RTX): New function, for use where VINSN_INSN_RTX
9806 is used as an lvalue.
9808 * sel-sched-ir.c (vinsn_init): Replace VINSN_INSN_RTX with
9809 SET_VINSN_INSN_RTX where it's used as an lvalue.
9810 (VINSN_INSN_RTX): New function.
9811 (SET_VINSN_INSN_RTX): New function.
9813 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9815 * sched-int.h (DEP_PRO): struct _dep's "pro" and "con" fields will
9816 eventually be rtx_insn *, but to help with transition, for now,
9817 convert from an access macro into a pair of functions: DEP_PRO
9818 returning an rtx_insn * and...
9819 (SET_DEP_PRO): New function, for use where DEP_PRO is used as an
9820 lvalue, returning an rtx&.
9821 (DEP_CON): Analogous changes to DEP_PRO above.
9822 (SET_DEP_CON): Likewise.
9824 * haifa-sched.c (create_check_block_twin): Replace DEP_CON used as
9825 an lvalue to SET_DEP_CON.
9826 * sched-deps.c (init_dep_1): Likewise for DEP_PRO and DEP_CON.
9827 (sd_copy_back_deps): Likewise for DEP_CON.
9828 (DEP_PRO): New function, adding a checked cast for now.
9829 (DEP_CON): Likewise.
9830 (SET_DEP_PRO): New function.
9831 (SET_DEP_CON): Likewise.
9833 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9835 * config.gcc (*-*-cygwin*): Use __cxa_atexit by default.
9836 (extra_options): Add i386/cygwin.opt.
9837 * config/i386/cygwin.h (STARTFILE_SPEC): Use crtbeginS.o if shared.
9838 (CPP_SPEC): Accept -pthread.
9840 (GOMP_SELF_SPECS): Update comment.
9841 * config/i386/cygwin.opt: New file for -pthread flag.
9843 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9845 * df-core.c (DF_REF_INSN): New, using a checked cast for now.
9846 * df.h (DF_REF_INSN): Convert from a macro to a function, so
9847 that we can return an rtx_insn *.
9849 2014-08-19 Yaakov Selkowitz <yselkowi@redhat.com>
9851 * config/i386/cygwin.h (LINK_SPEC): Pass --tsaware flag only
9852 when building executables, not DLLs. Add --large-address-aware
9853 under the same conditions.
9854 * config/i386/cygwin-w64.h (LINK_SPEC): Pass --tsaware flag only
9855 when building executables, not DLLs. Add --large-address-aware
9856 under the same conditions when using -m32.
9858 * config/i386/cygwin-stdint.h: Throughout, make type
9859 definitions dependent on target architecture, not host.
9861 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9863 * rtl.h (PREV_INSN): Convert to an inline function. Strengthen
9864 the return type from rtx to rtx_insn *, which will enable various
9865 conversions in followup patches. For now this is is done by a
9867 (NEXT_INSN): Likewise.
9868 (SET_PREV_INSN): Convert to an inline function. This is intended
9869 for use as an lvalue, and so returns an rtx& to allow in-place
9871 (SET_NEXT_INSN): Likewise.
9873 2014-07-08 Mark Wielaard <mjw@redhat.com>
9876 * dwarf2out.c (modified_type_die): Handle TYPE_QUAL_RESTRICT.
9878 2014-08-19 Marek Polacek <polacek@redhat.com>
9881 * cgraphunit.c (handle_alias_pairs): Fix condition.
9883 2014-08-19 Richard Biener <rguenther@suse.de>
9885 * gimple-fold.c (fold_gimple_assign): Properly build a
9886 null-pointer constant when devirtualizing addresses.
9888 2014-07-07 Mark Wielaard <mjw@redhat.com>
9890 * dwarf2out.c (decl_quals): New function.
9891 (modified_type_die): Take one cv_quals argument instead of two,
9892 one for const and one for volatile.
9893 (add_type_attribute): Likewise.
9894 (generic_parameter_die): Call add_type_attribute with one modifier
9896 (base_type_for_mode): Likewise.
9897 (add_bounds_info): Likewise.
9898 (add_subscript_info): Likewise.
9899 (gen_array_type_die): Likewise.
9900 (gen_descr_array_type_die): Likewise.
9901 (gen_entry_point_die): Likewise.
9902 (gen_enumeration_type_die): Likewise.
9903 (gen_formal_parameter_die): Likewise.
9904 (gen_subprogram_die): Likewise.
9905 (gen_variable_die): Likewise.
9906 (gen_const_die): Likewise.
9907 (gen_field_die): Likewise.
9908 (gen_pointer_type_die): Likewise.
9909 (gen_reference_type_die): Likewise.
9910 (gen_ptr_to_mbr_type_die): Likewise.
9911 (gen_inheritance_die): Likewise.
9912 (gen_subroutine_type_die): Likewise.
9913 (gen_typedef_die): Likewise.
9914 (force_type_die): Likewise.
9916 2014-08-19 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
9918 * configure.ac (gcc_cv_as_comdat_group_group): Only default to no
9920 * configure: Regenerate.
9922 2014-08-19 Richard Biener <rguenther@suse.de>
9924 * lto-streamer-out.c (DFS::DFS_write_tree_body): Stream
9925 DECL_EXTERNALs in BLOCKs as non-references.
9926 * tree-streamer-out.c (streamer_write_chain): Likewise.
9928 2014-08-19 Alexander Ivchenko <alexander.ivchenko@intel.com>
9929 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
9930 Anna Tikhonova <anna.tikhonova@intel.com>
9931 Ilya Tocar <ilya.tocar@intel.com>
9932 Andrey Turetskiy <andrey.turetskiy@intel.com>
9933 Ilya Verbin <ilya.verbin@intel.com>
9934 Kirill Yukhin <kirill.yukhin@intel.com>
9935 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
9937 * config/i386/sse.md
9938 (define_mode_iterator VI48_AVX512F): Delete.
9939 (define_mode_iterator VI48_AVX512F_AVX512VL): New.
9940 (define_mode_iterator VI2_AVX512VL): Ditto.
9941 (define_insn "<mask_codefor>avx512f_ufix_notruncv16sfv16si<mask_name><round_name>"):
9944 ("<mask_codefor><avx512>_ufix_notrunc<sf2simodelower><mode><mask_name><round_name>"):
9946 (define_insn "avx512cd_maskw_vec_dup<mode>"): Macroize.
9947 (define_insn "<avx2_avx512f>_ashrv<mode><mask_name>"): Delete.
9948 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9949 with VI48_AVX512F_AVX512VL): New.
9950 (define_insn "<avx2_avx512bw>_ashrv<mode><mask_name>",
9951 with VI2_AVX512VL): Ditto.
9953 2014-08-19 Marek Polacek <polacek@redhat.com>
9955 * doc/invoke.texi: Document -Wc99-c11-compat.
9957 2014-08-19 David Malcolm <dmalcolm@redhat.com>
9959 * rtl.h (PREV_INSN): Split macro in two: the existing one,
9961 (SET_PREV_INSN): New macro, for use as an lvalue.
9962 (NEXT_INSN, SET_NEXT_INSN): Likewise.
9964 * caller-save.c (save_call_clobbered_regs): Convert lvalue use of
9965 PREV_INSN/NEXT_INSN into SET_PREV_INSN/SET_NEXT_INSN.
9966 * cfgrtl.c (try_redirect_by_replacing_jump): Likewise.
9967 (fixup_abnormal_edges): Likewise.
9968 (unlink_insn_chain): Likewise.
9969 (fixup_reorder_chain): Likewise.
9970 (cfg_layout_delete_block): Likewise.
9971 (cfg_layout_merge_blocks): Likewise.
9972 * combine.c (update_cfg_for_uncondjump): Likewise.
9973 * emit-rtl.c (link_insn_into_chain): Likewise.
9974 (remove_insn): Likewise.
9975 (delete_insns_since): Likewise.
9976 (reorder_insns_nobb): Likewise.
9977 (emit_insn_after_1): Likewise.
9978 * final.c (rest_of_clean_state): Likewise.
9979 (final_scan_insn): Likewise.
9980 * gcse.c (can_assign_to_reg_without_clobbers_p): Likewise.
9981 * haifa-sched.c (concat_note_lists): Likewise.
9982 (remove_notes): Likewise.
9983 (restore_other_notes): Likewise.
9984 (move_insn): Likewise.
9985 (unlink_bb_notes): Likewise.
9986 (restore_bb_notes): Likewise.
9987 * jump.c (delete_for_peephole): Likewise.
9988 * optabs.c (emit_libcall_block_1): Likewise.
9989 * reorg.c (emit_delay_sequence): Likewise.
9990 (fill_simple_delay_slots): Likewise.
9991 * sel-sched-ir.c (sel_move_insn): Likewise.
9992 (sel_remove_insn): Likewise.
9993 (get_bb_note_from_pool): Likewise.
9994 * sel-sched.c (move_nop_to_previous_block): Likewise.
9996 * config/bfin/bfin.c (reorder_var_tracking_notes): Likewise.
9997 * config/c6x/c6x.c (gen_one_bundle): Likewise.
9998 (c6x_gen_bundles): Likewise.
9999 (hwloop_optimize): Likewise.
10000 * config/frv/frv.c (frv_function_prologue): Likewise.
10001 (frv_register_nop): Likewise.
10002 * config/ia64/ia64.c (ia64_init_dfa_pre_cycle_insn): Likewise.
10003 (ia64_reorg): Likewise.
10004 * config/mep/mep.c (mep_reorg_addcombine): Likewise.
10005 (mep_make_bundle): Likewise.
10006 (mep_bundle_insns): Likewise.
10007 * config/picochip/picochip.c (reorder_var_tracking_notes): Likewise.
10008 * config/tilegx/tilegx.c (reorder_var_tracking_notes): Likewise.
10009 * config/tilepro/tilepro.c (reorder_var_tracking_notes): Likewise.
10011 2014-08-19 David Malcolm <dmalcolm@redhat.com>
10013 * basic-block.h (BB_HEAD): Convert to a function. Strengthen the
10014 return type from rtx to rtx_insn *.
10015 (BB_END): Likewise.
10016 (BB_HEADER): Likewise.
10017 (BB_FOOTER): Likewise.
10018 (SET_BB_HEAD): Convert to a function.
10019 (SET_BB_END): Likewise.
10020 (SET_BB_HEADER): Likewise.
10021 (SET_BB_FOOTER): Likewise.
10023 * cfgrtl.c (BB_HEAD): New function, from macro of same name.
10024 Strengthen the return type from rtx to rtx_insn *. For now, this
10025 is done by adding a checked cast, but this will eventually
10026 become a field lookup.
10027 (BB_END): Likewise.
10028 (BB_HEADER): Likewise.
10029 (BB_FOOTER): Likewise.
10030 (SET_BB_HEAD): New function, from macro of same name. This is
10031 intended for use as an lvalue, and so returns an rtx& to allow
10032 in-place modification.
10033 (SET_BB_END): Likewise.
10034 (SET_BB_HEADER): Likewise.
10035 (SET_BB_FOOTER): Likewise.
10037 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10039 * basic-block.h (BB_HEAD): Split macro in two: the existing one,
10040 for rvalues, and...
10041 (SET_BB_HEAD): New macro, for use as a lvalue.
10042 (BB_END, SET_BB_END): Likewise.
10043 (BB_HEADER, SET_BB_HEADER): Likewise.
10044 (BB_FOOTER, SET_BB_FOOTER): Likewise.
10046 * bb-reorder.c (add_labels_and_missing_jumps): Convert lvalue use
10047 of BB_* macros into SET_BB_* macros.
10048 (fix_crossing_unconditional_branches): Likewise.
10049 * caller-save.c (save_call_clobbered_regs): Likewise.
10050 (insert_one_insn): Likewise.
10051 * cfgbuild.c (find_bb_boundaries): Likewise.
10052 * cfgcleanup.c (merge_blocks_move_successor_nojumps): Likewise.
10053 (outgoing_edges_match): Likewise.
10054 (try_optimize_cfg): Likewise.
10055 * cfgexpand.c (expand_gimple_cond): Likewise.
10056 (expand_gimple_tailcall): Likewise.
10057 (expand_gimple_basic_block): Likewise.
10058 (construct_exit_block): Likewise.
10059 * cfgrtl.c (delete_insn): Likewise.
10060 (create_basic_block_structure): Likewise.
10061 (rtl_delete_block): Likewise.
10062 (rtl_split_block): Likewise.
10063 (emit_nop_for_unique_locus_between): Likewise.
10064 (rtl_merge_blocks): Likewise.
10065 (block_label): Likewise.
10066 (try_redirect_by_replacing_jump): Likewise.
10067 (emit_barrier_after_bb): Likewise.
10068 (fixup_abnormal_edges): Likewise.
10069 (record_effective_endpoints): Likewise.
10070 (relink_block_chain): Likewise.
10071 (fixup_reorder_chain): Likewise.
10072 (fixup_fallthru_exit_predecessor): Likewise.
10073 (cfg_layout_duplicate_bb): Likewise.
10074 (cfg_layout_split_block): Likewise.
10075 (cfg_layout_delete_block): Likewise.
10076 (cfg_layout_merge_blocks): Likewise.
10077 * combine.c (update_cfg_for_uncondjump): Likewise.
10078 * emit-rtl.c (add_insn_after): Likewise.
10079 (remove_insn): Likewise.
10080 (reorder_insns): Likewise.
10081 (emit_insn_after_1): Likewise.
10082 * haifa-sched.c (get_ebb_head_tail): Likewise.
10083 (restore_other_notes): Likewise.
10084 (move_insn): Likewise.
10085 (sched_extend_bb): Likewise.
10086 (fix_jump_move): Likewise.
10087 * ifcvt.c (noce_process_if_block): Likewise.
10088 (dead_or_predicable): Likewise.
10089 * ira.c (update_equiv_regs): Likewise.
10090 * reg-stack.c (change_stack): Likewise.
10091 * sel-sched-ir.c (sel_move_insn): Likewise.
10092 * sel-sched.c (move_nop_to_previous_block): Likewise.
10094 * config/c6x/c6x.c (hwloop_optimize): Likewise.
10095 * config/ia64/ia64.c (emit_predicate_relation_info): Likewise.
10097 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10099 * rtl.h (for_each_rtx_in_insn): New function.
10100 * rtlanal.c (for_each_rtx_in_insn): Likewise.
10102 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10104 * coretypes.h (class rtx_insn): Add forward declaration.
10106 * rtl.h: Include is-a.h.
10107 (struct rtx_def): Add dummy "desc" and "tag" GTY options as a
10108 workaround to ensure gengtype knows inheritance is occurring,
10109 whilst continuing to use the pre-existing special-casing for
10111 (class rtx_insn): New subclass of rtx_def, adding the
10112 invariant that we're dealing with something we can sanely use
10113 INSN_UID, NEXT_INSN, PREV_INSN on.
10114 (is_a_helper <rtx_insn *>::test): New.
10115 (is_a_helper <const rtx_insn *>::test): New.
10117 2014-08-18 David Malcolm <dmalcolm@redhat.com>
10119 * is-a.h (template<T, U> safe_as_a <U *p>) New function.
10121 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10123 * ipa-visibility.c (update_visibility_by_resolution_info): Do no turn UNDEF
10126 2014-08-18 Jan Hubicka <hubicka@ucw.cz>
10128 * gimple-fold.c (fold_gimple_assign): Do not intorudce referneces
10129 to BUILT_IN_UNREACHABLE.
10131 2014-08-18 Uros Bizjak <ubizjak@gmail.com>
10134 * config/i386/x86-tune.def (X86_TUNE_AVOID_FALSE_DEP_FOR_BMI):
10136 * config/i386/i386.h (TARGET_AVOID_FALSE_DEP_FOR_BMI): New define.
10137 * config/i386/i386.md (unspec) <UNSPEC_INSN_FALSE_DEP>: New unspec.
10138 (ffs<mode>2): Do not expand with tzcnt for
10139 TARGET_AVOID_FALSE_DEP_FOR_BMI.
10140 (ffssi2_no_cmove): Ditto.
10141 (*tzcnt<mode>_1): Disable for TARGET_AVOID_FALSE_DEP_FOR_BMI.
10142 (ctz<mode>2): New expander.
10143 (*ctz<mode>2_falsedep_1): New insn_and_split pattern.
10144 (*ctz<mode>2_falsedep): New insn.
10145 (*ctz<mode>2): Rename from ctz<mode>2.
10146 (clz<mode>2_lzcnt): New expander.
10147 (*clz<mode>2_lzcnt_falsedep_1): New insn_and_split pattern.
10148 (*clz<mode>2_lzcnt_falsedep): New insn.
10149 (*clz<mode>2): Rename from ctz<mode>2.
10150 (popcount<mode>2): New expander.
10151 (*popcount<mode>2_falsedep_1): New insn_and_split pattern.
10152 (*popcount<mode>2_falsedep): New insn.
10153 (*popcount<mode>2): Rename from ctz<mode>2.
10154 (*popcount<mode>2_cmp): Remove.
10155 (*popcountsi2_cmp_zext): Ditto.
10157 2014-08-18 Ajit Agarwal <ajitkum@xilinx.com>
10159 * config/microblaze/microblaze.c (microblaze_elf_asm_cdtor): New.
10160 (microblaze_elf_asm_constructor,microblaze_elf_asm_destructor): New.
10161 * config/microblaze/microblaze.h
10162 (TARGET_ASM_CONSTRUCTOR,TARGET_ASM_DESTRUCTOR): New Macros.
10164 2014-08-18 H.J. Lu <hongjiu.lu@intel.com>
10167 * configure.ac: Set install_gold_as_default to no for
10169 * configure: Regenerated.
10171 2014-08-18 Roman Gareev <gareevroman@gmail.com>
10173 * Makefile.in: Add definition of ISLLIBS, HOST_ISLLIBS.
10174 * config.in: Add undef of HAVE_isl.
10175 * configure: Regenerate.
10176 * configure.ac: Add definition of HAVE_isl.
10177 * graphite-blocking.c: Add checking of HAVE_isl.
10178 * graphite-dependences.c: Likewise.
10179 * graphite-interchange.c: Likewise.
10180 * graphite-isl-ast-to-gimple.c: Likewise.
10181 * graphite-optimize-isl.c: Likewise.
10182 * graphite-poly.c: Likewise.
10183 * graphite-scop-detection.c: Likewise.
10184 * graphite-sese-to-poly.c: Likewise.
10185 * graphite.c: Likewise.
10186 * toplev.c: Replace the checking of HAVE_cloog with the checking
10189 2014-08-18 Richard Biener <rguenther@suse.de>
10191 PR tree-optimization/62090
10192 * builtins.c (fold_builtin_snprintf): Move to gimple-fold.c.
10193 (fold_builtin_3): Do not fold snprintf.
10194 (fold_builtin_4): Likewise.
10195 * gimple-fold.c (gimple_fold_builtin_snprintf): New function
10196 moved from builtins.c.
10197 (gimple_fold_builtin_with_strlen): Fold snprintf and sprintf.
10198 (gimple_fold_builtin): Do not fold sprintf here.
10200 2014-08-18 Richard Biener <rguenther@suse.de>
10202 * gimple-fold.c (maybe_fold_reference): Move re-gimplification
10204 (maybe_canonicalize_mem_ref_addr): ... this function.
10205 (fold_stmt_1): Apply it here before all simplification.
10207 2014-08-18 Ilya Enkovich <ilya.enkovich@intel.com>
10210 * cgraph.h (cgraph_node::create_indirect_edge): Add
10211 compute_indirect_info param.
10212 * cgraph.c (cgraph_node::create_indirect_edge): Compute
10213 indirect_info only when it is required.
10214 * cgraphclones.c (cgraph_clone_edge): Do not recompute
10215 indirect_info fore cloned indirect edge.
10217 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10218 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10219 Anna Tikhonova <anna.tikhonova@intel.com>
10220 Ilya Tocar <ilya.tocar@intel.com>
10221 Andrey Turetskiy <andrey.turetskiy@intel.com>
10222 Ilya Verbin <ilya.verbin@intel.com>
10223 Kirill Yukhin <kirill.yukhin@intel.com>
10224 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10226 * config/i386/sse.md
10227 (define_mode_iterator VI8_AVX2_AVX512BW): New.
10228 (define_insn "<sse2_avx2>_psadbw"): Add evex version.
10230 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10231 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10232 Anna Tikhonova <anna.tikhonova@intel.com>
10233 Ilya Tocar <ilya.tocar@intel.com>
10234 Andrey Turetskiy <andrey.turetskiy@intel.com>
10235 Ilya Verbin <ilya.verbin@intel.com>
10236 Kirill Yukhin <kirill.yukhin@intel.com>
10237 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10239 * config/i386/sse.md
10240 (define_mode_iterator VF1_AVX512VL): New.
10241 (define_insn "ufloatv16siv16sf2<mask_name><round_name>"): Delete.
10242 (define_insn "ufloat<sseintvecmodelower><mode>2<mask_name><round_name>"):
10245 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10246 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10247 Anna Tikhonova <anna.tikhonova@intel.com>
10248 Ilya Tocar <ilya.tocar@intel.com>
10249 Andrey Turetskiy <andrey.turetskiy@intel.com>
10250 Ilya Verbin <ilya.verbin@intel.com>
10251 Kirill Yukhin <kirill.yukhin@intel.com>
10252 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10254 * config/i386/i386.c: Rename ufloatv8siv8df_mask to ufloatv8siv8df2_mask.
10255 * config/i386/i386.md
10256 (define_code_iterator any_float): New.
10257 (define_code_attr floatsuffix): New.
10258 * config/i386/sse.md
10259 (define_mode_iterator VF1_128_256VL): New.
10260 (define_mode_iterator VF2_512_256VL): New.
10261 (define_insn "float<si2dfmodelower><mode>2<mask_name>"): Remove unnecessary
10263 (define_insn "ufloatv8siv8df<mask_name>"): Delete.
10264 (define_insn "<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>"):
10266 (define_mode_attr qq2pssuff): New.
10267 (define_mode_attr sselongvecmode): New.
10268 (define_mode_attr sselongvecmodelower): New.
10269 (define_mode_attr sseintvecmode3): New.
10270 (define_insn "<floatsuffix>float<sselongvecmodelower><mode>2<mask_name><round_name>"):
10272 (define_insn "*<floatsuffix>floatv2div2sf2"): New.
10273 (define_insn "<floatsuffix>floatv2div2sf2_mask"): New.
10274 (define_insn "ufloat<si2dfmodelower><mode>2<mask_name>"): New.
10275 (define_insn "ufloatv2siv2df2<mask_name>"): New.
10277 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10278 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10279 Anna Tikhonova <anna.tikhonova@intel.com>
10280 Ilya Tocar <ilya.tocar@intel.com>
10281 Andrey Turetskiy <andrey.turetskiy@intel.com>
10282 Ilya Verbin <ilya.verbin@intel.com>
10283 Kirill Yukhin <kirill.yukhin@intel.com>
10284 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10286 * config/i386/sse.md
10287 (define_mode_iterator VF2_AVX512VL): New.
10288 (define_mode_attr sseintvecmode2): New.
10289 (define_insn "ufix_truncv2dfv2si2<mask_name>"): Add masking.
10290 (define_insn "fix_truncv4dfv4si2<mask_name>"): New.
10291 (define_insn "ufix_truncv4dfv4si2<mask_name>"): Ditto.
10293 "<fixsuffix>fix_trunc<mode><sseintvecmodelower>2<mask_name><round_saeonly_name>"):
10295 (define_insn "fix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10297 (define_insn "ufix_notrunc<mode><sseintvecmodelower>2<mask_name><round_name>"):
10300 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10301 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10302 Anna Tikhonova <anna.tikhonova@intel.com>
10303 Ilya Tocar <ilya.tocar@intel.com>
10304 Andrey Turetskiy <andrey.turetskiy@intel.com>
10305 Ilya Verbin <ilya.verbin@intel.com>
10306 Kirill Yukhin <kirill.yukhin@intel.com>
10307 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10309 * config/i386/i386.md
10310 (define_insn "*movoi_internal_avx"): Add evex version.
10311 (define_insn "*movti_internal"): Ditto.
10313 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10314 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10315 Anna Tikhonova <anna.tikhonova@intel.com>
10316 Ilya Tocar <ilya.tocar@intel.com>
10317 Andrey Turetskiy <andrey.turetskiy@intel.com>
10318 Ilya Verbin <ilya.verbin@intel.com>
10319 Kirill Yukhin <kirill.yukhin@intel.com>
10320 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10322 * config/i386/i386.md
10323 (define_attr "isa"): Add avx512dq, noavx512dq.
10324 (define_attr "enabled"): Ditto.
10325 * config/i386/sse.md
10326 (define_insn "vec_extract_hi_<mode><mask_name>"): Support masking.
10328 2014-08-18 Alexander Ivchenko <alexander.ivchenko@intel.com>
10329 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10330 Anna Tikhonova <anna.tikhonova@intel.com>
10331 Ilya Tocar <ilya.tocar@intel.com>
10332 Andrey Turetskiy <andrey.turetskiy@intel.com>
10333 Ilya Verbin <ilya.verbin@intel.com>
10334 Kirill Yukhin <kirill.yukhin@intel.com>
10335 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10337 * config/i386/i386.c
10338 (ix86_expand_special_args_builtin): Handle avx512vl_storev8sf_mask,
10339 avx512vl_storev8si_mask, avx512vl_storev4df_mask, avx512vl_storev4di_mask,
10340 avx512vl_storev4sf_mask, avx512vl_storev4si_mask, avx512vl_storev2df_mask,
10341 avx512vl_storev2di_mask, avx512vl_loadv8sf_mask, avx512vl_loadv8si_mask,
10342 avx512vl_loadv4df_mask, avx512vl_loadv4di_mask, avx512vl_loadv4sf_mask,
10343 avx512vl_loadv4si_mask, avx512vl_loadv2df_mask, avx512vl_loadv2di_mask,
10344 avx512bw_loadv64qi_mask, avx512vl_loadv32qi_mask, avx512vl_loadv16qi_mask,
10345 avx512bw_loadv32hi_mask, avx512vl_loadv16hi_mask, avx512vl_loadv8hi_mask.
10346 * config/i386/i386.md (define_mode_attr ssemodesuffix): Allow V32HI mode.
10347 * config/i386/sse.md
10348 (define_mode_iterator VMOVE): Allow V4TI mode.
10349 (define_mode_iterator V_AVX512VL): New.
10350 (define_mode_iterator V): New handling for AVX512VL.
10351 (define_insn "avx512f_load<mode>_mask"): Delete.
10352 (define_insn "<avx512>_load<mode>_mask"): New.
10353 (define_insn "avx512f_store<mode>_mask"): Delete.
10354 (define_insn "<avx512>_store<mode>_mask"): New.
10357 2014-08-18 Yury Gribov <y.gribov@samsung.com>
10360 * asan.c (instrument_derefs): Fix bitfield check.
10362 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10364 * config/rs6000/constraints.md ("S"): Require TARGET_POWERPC64.
10365 * config/rs6000/htm.md (ttest): Remove clobber.
10366 * config/rs6000/predicates.md (any_mask_operand): New predicate.
10367 (and_operand): Reformat.
10368 (and_2rld_operand): New predicate.
10369 * config/rs6000/rs6000-protos.h (rs6000_split_logical): Remove last
10371 * config/rs6000/rs6000.c (rs6000_split_logical_inner): Remove last
10372 parameter. Handle AND directly.
10373 (rs6000_split_logical_di): Remove last parameter.
10374 (rs6000_split_logical): Remove last parameter. Remove obsolete
10376 * config/rs6000/rs6000.md (BOOL_REGS_AND_CR0): Delete.
10377 (one_cmpl<mode>2): Adjust call of rs6000_split_logical.
10378 (ctz<mode>2, ffs<mode>2): Delete clobber. Reformat.
10379 (andsi3, andsi3_mc, andsi3_nomc, *andsi3_internal2_mc,
10380 *andsi3_internal3_mc, *andsi3_internal4, *andsi3_internal5_mc,
10381 and 5 anonymous splitters): Delete.
10382 (and<mode>3): New expander.
10383 (*and<mode>3, *and<mode>3_dot, *and<mode>3_dot2): New.
10384 (and<mode>3_imm, *and<mode>3_imm_dot, *and<mode>3_imm_dot2): New.
10385 (*and<mode>3_mask, *and<mode>3_mask_dot, *and<mode>3_mask_dot2): New.
10386 (ior<mode>, xor<mode>3): Adjust call of rs6000_split_logical.
10387 (floatdisf2_internal1): Remove clobbers.
10388 (anddi3, anddi3_mc, anddi3_nomc, anddi3_internal2_mc,
10389 *anddi3_internal3_mc, and 4 anonymous splitters): Delete.
10390 (*anddi3_2rld, *anddi3_2rld_dot, *anddi3_2rld_dot2): New.
10391 (and<mode>3 for BOOL_128): Remove clobber.
10392 (*and<mode>3_internal for BOOL_128): Remove clobber. Adjust call of
10393 rs6000_split_logical.
10394 (*bool<mode>3_internal for BOOL_128): Adjust call of
10395 rs6000_split_logical.
10396 (*boolc<mode>3_internal1 for BOOL_128,
10397 *boolc<mode>3_internal2 for BOOL_128,
10398 *boolcc<mode>3_internal1 for BOOL_128,
10399 *boolcc<mode>3_internal2 for BOOL_128,
10400 *eqv<mode>3_internal1 for BOOL_128,
10401 *eqv<mode>3_internal2 for BOOL_128,
10402 *one_cmpl<mode>3_internal for BOOL_128): Ditto.
10403 * config/rs6000/vector.md (*vec_reload_and_plus_<mptrsize): Remove
10405 (*vec_reload_and_reg_<mptrsize>): Delete.
10407 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10409 * config/rs6000/rs6000.md (*boolccsi3_internal1, *boolccsi3_internal2
10410 and split, *boolccsi3_internal3 and split): Delete.
10411 (*boolccdi3_internal1, *boolccdi3_internal2 and split,
10412 *boolccdi3_internal3 and split): Delete.
10413 (*boolcc<mode>3, *boolcc<mode>3_dot, *boolcc<mode>3_dot2): New.
10414 (*eqv<mode>3): Move. Add TODO comment. Fix attributes.
10416 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10418 * config/rs6000/rs6000.md (*boolcsi3_internal1, *boolcsi3_internal2
10419 and split, *boolcsi3_internal3 and split): Delete.
10420 (*boolcdi3_internal1, *boolcdi3_internal2 and split,
10421 *boolcdi3_internal3 and split): Delete.
10422 (*boolc<mode>3, *boolc<mode>3_dot, *boolc<mode>3_dot2): New.
10424 2014-08-17 Segher Boessenkool <segher@kernel.crashing.org>
10426 * config/rs6000/rs6000.c (print_operand) <'e'>: New.
10427 <'u'>: Also support printing the low-order 16 bits.
10428 * config/rs6000/rs6000.md (iorsi3, xorsi3, *boolsi3_internal1,
10429 *boolsi3_internal2 and split, *boolsi3_internal3 and split): Delete.
10430 (iordi3, xordi3, *booldi3_internal1, *booldi3_internal2 and split,
10431 *booldi3_internal3 and split): Delete.
10432 (ior<mode>3, xor<mode>3, *bool<mode>3, *bool<mode>3_dot,
10433 *bool<mode>3_dot2): New.
10434 (two anonymous define_splits for non_logical_cint_operand): Merge.
10436 2014-08-17 Marek Polacek <polacek@redhat.com>
10437 Manuel López-Ibáñez <manu@gcc.gnu.org>
10440 * diagnostic.c (adjust_line): Add gcc_checking_assert.
10441 (diagnostic_show_locus): Don't print caret diagnostic
10442 if a column is larger than the line_width.
10444 2014-08-17 Roman Gareev <gareevroman@gmail.com>
10446 * common.opt: Make the ISL AST generator to be the main code generator
10449 2014-08-16 Gerald Pfeifer <gerald@pfeifer.com>
10451 * wide-int.h (generic_wide_int): Declare as class instead of struct.
10453 2014-08-16 John David Anglin <danglin@gcc.gnu.org>
10456 * config/pa/pa-protos.h (pa_output_addr_vec, pa_output_addr_diff_vec):
10458 * config/pa/pa.c (pa_reorg): Remove code to insert brtab marker insns.
10459 (pa_output_addr_vec, pa_output_addr_diff_vec): New.
10460 * config/pa/pa.h (ASM_OUTPUT_ADDR_VEC, ASM_OUTPUT_ADDR_DIFF_VEC):
10462 * config/pa/pa.md (begin_brtab): Delete insn.
10463 (end_brtab): Likewise.
10465 2014-08-16 Manuel López-Ibáñez <manu@gcc.gnu.org>
10467 * doc/cppopts.texi (ftrack-macro-expansion): Add missing @code.
10469 2014-08-15 Jan Hubicka <hubicka@ucw.cz>
10471 * ipa-utils.h (ipa_polymorphic_call_context): Turn into class; add ctors.
10472 (possible_polymorphic_call_targets, dump_possible_polymorphic_call_targets,
10473 possible_polymorphic_call_target_p, possible_polymorphic_call_target_p): Simplify.
10474 (get_dynamic_type): Remove.
10475 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Remove.
10476 (clear_speculation): Bring to ipa-deivrt.h
10477 (get_class_context): Rename to ...
10478 (ipa_polymorphic_call_context::restrict_to_inner_class): ... this one.
10479 (contains_type_p): Update.
10480 (get_dynamic_type): Rename to ...
10481 ipa_polymorphic_call_context::get_dynamic_type(): ... this one.
10482 (possible_polymorphic_call_targets): UPdate.
10483 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Update.
10484 * ipa-prop.c (ipa_analyze_call_uses): Update.
10486 2014-08-15 Oleg Endo <olegendo@gcc.gnu.org>
10488 * doc/invoke.texi (SH options): Document missing processor variant
10489 options. Remove references to Hitachi. Undocument deprecated mspace
10492 2014-08-15 Jason Merrill <jason@redhat.com>
10494 * tree.c (type_hash_canon): Uncomment assert.
10496 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10498 * input.h (in_system_header_at): Add comment.
10500 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10503 * diagnostic.c (build_message_string): Make it extern.
10504 * diagnostic.h (build_message_string): Make it extern.
10506 2014-08-15 Vladimir Makarov <vmakarov@redhat.com>
10508 * config/rs6000/rs6000.c (rs6000_emit_move): Use SDmode for
10509 load/store from/to non-floating class pseudo.
10511 2014-08-15 Manuel López-Ibáñez <manu@gcc.gnu.org>
10513 * input.c (diagnostic_file_cache_fini): Fix typo in comment.
10515 2014-08-15 Richard Biener <rguenther@suse.de>
10517 * tree-ssa-structalias.c (readonly_id): Rename to string_id.
10518 (get_constraint_for_ssa_var): Remove dead code.
10519 (get_constraint_for_1): Adjust.
10520 (find_what_var_points_to): Likewise.
10521 (init_base_vars): Likewise. STRING_CSTs do not contain pointers.
10523 2014-08-15 Ilya Tocar <tocarip@gmail.com>
10526 * config/i386/avx512fintrin.h (_mm512_mask_cmpge_epi32_mask): New.
10527 (_mm512_mask_cmpge_epu32_mask): Ditto.
10528 (_mm512_cmpge_epu32_mask): Ditto.
10529 (_mm512_mask_cmpge_epi64_mask): Ditto.
10530 (_mm512_cmpge_epi64_mask): Ditto.
10531 (_mm512_mask_cmpge_epu64_mask): Ditto.
10532 (_mm512_cmpge_epu64_mask): Ditto.
10533 (_mm512_mask_cmple_epi32_mask): Ditto.
10534 (_mm512_cmple_epi32_mask): Ditto.
10535 (_mm512_mask_cmple_epu32_mask): Ditto.
10536 (_mm512_cmple_epu32_mask): Ditto.
10537 (_mm512_mask_cmple_epi64_mask): Ditto.
10538 (_mm512_cmple_epi64_mask): Ditto.
10539 (_mm512_mask_cmple_epu64_mask): Ditto.
10540 (_mm512_cmple_epu64_mask): Ditto.
10541 (_mm512_mask_cmplt_epi32_mask): Ditto.
10542 (_mm512_cmplt_epi32_mask): Ditto.
10543 (_mm512_mask_cmplt_epu32_mask): Ditto.
10544 (_mm512_cmplt_epu32_mask): Ditto.
10545 (_mm512_mask_cmplt_epi64_mask): Ditto.
10546 (_mm512_cmplt_epi64_mask): Ditto.
10547 (_mm512_mask_cmplt_epu64_mask): Ditto.
10548 (_mm512_cmplt_epu64_mask): Ditto.
10549 (_mm512_mask_cmpneq_epi32_mask): Ditto.
10550 (_mm512_mask_cmpneq_epu32_mask): Ditto.
10551 (_mm512_cmpneq_epu32_mask): Ditto.
10552 (_mm512_mask_cmpneq_epi64_mask): Ditto.
10553 (_mm512_cmpneq_epi64_mask): Ditto.
10554 (_mm512_mask_cmpneq_epu64_mask): Ditto.
10555 (_mm512_cmpneq_epu64_mask): Ditto.
10556 (_mm512_castpd_ps): Ditto.
10557 (_mm512_castpd_si512): Ditto.
10558 (_mm512_castps_pd): Ditto.
10559 (_mm512_castps_si512): Ditto.
10560 (_mm512_castsi512_ps): Ditto.
10561 (_mm512_castsi512_pd): Ditto.
10562 (_mm512_castpd512_pd128): Ditto.
10563 (_mm512_castps512_ps128): Ditto.
10564 (_mm512_castsi512_si128): Ditto.
10565 (_mm512_castpd512_pd256): Ditto.
10566 (_mm512_castps512_ps256): Ditto.
10567 (_mm512_castsi512_si256): Ditto.
10568 (_mm512_castpd128_pd512): Ditto.
10569 (_mm512_castps128_ps512): Ditto.
10570 (_mm512_castsi128_si512): Ditto.
10571 (_mm512_castpd256_pd512): Ditto.
10572 (_mm512_castps256_ps512): Ditto.
10573 (_mm512_castsi256_si512): Ditto.
10574 (_mm512_cmpeq_epu32_mask): Ditto.
10575 (_mm512_mask_cmpeq_epu32_mask): Ditto.
10576 (_mm512_mask_cmpeq_epu64_mask): Ditto.
10577 (_mm512_cmpeq_epu64_mask): Ditto.
10578 (_mm512_cmpgt_epu32_mask): Ditto.
10579 (_mm512_mask_cmpgt_epu32_mask): Ditto.
10580 (_mm512_mask_cmpgt_epu64_mask): Ditto.
10581 (_mm512_cmpgt_epu64_mask): Ditto.
10582 * config/i386/i386-builtin-types.def: Add V16SF_FTYPE_V8SF,
10583 V16SI_FTYPE_V8SI, V16SI_FTYPE_V4SI, V8DF_FTYPE_V2DF.
10584 * config/i386/i386.c (enum ix86_builtins): Add
10585 IX86_BUILTIN_SI512_SI256, IX86_BUILTIN_PD512_PD256,
10586 IX86_BUILTIN_PS512_PS256, IX86_BUILTIN_SI512_SI,
10587 IX86_BUILTIN_PD512_PD, IX86_BUILTIN_PS512_PS.
10588 (bdesc_args): Add __builtin_ia32_si512_256si,
10589 __builtin_ia32_ps512_256ps, __builtin_ia32_pd512_256pd,
10590 __builtin_ia32_si512_si, __builtin_ia32_ps512_ps,
10591 __builtin_ia32_pd512_pd.
10592 (ix86_expand_args_builtin): Handle new FTYPEs.
10593 * config/i386/sse.md (castmode): Add 512-bit modes.
10594 (AVX512MODE2P): New.
10595 (avx512f_<castmode><avxsizesuffix>_<castmode): New.
10596 (avx512f_<castmode><avxsizesuffix>_256<castmode): Ditto.
10598 2014-08-15 Richard Biener <rguenther@suse.de>
10600 * fold-const.c (tree_swap_operands_p): Put all constants
10601 last, also strip sign-changing NOPs when considering further
10602 canonicalization. Canonicalize also when optimizing for size.
10604 2014-08-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
10606 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate): Move
10607 one_match > zero_match case to just before simple_sequence.
10609 2014-08-15 Richard Biener <rguenther@suse.de>
10611 * data-streamer.h (streamer_string_index, string_for_index):
10613 * data-streamer-out.c (streamer_string_index): Make static.
10614 * data-streamer-in.c (string_for_index): Likewise.
10615 * lto-streamer-out.c (lto_output_location): Use bp_pack_string.
10616 * lto-streamer-in.c (lto_input_location): Use bp_unpack_string.
10618 2014-08-15 Richard Biener <rguenther@suse.de>
10620 PR tree-optimization/62031
10621 * tree-data-ref.c (dr_analyze_indices): Do not set
10622 DR_UNCONSTRAINED_BASE.
10623 (dr_may_alias_p): All indirect accesses have to go the
10624 formerly DR_UNCONSTRAINED_BASE path.
10625 * tree-data-ref.h (struct indices): Remove
10626 unconstrained_base member.
10627 (DR_UNCONSTRAINED_BASE): Remove.
10629 2014-08-15 Jakub Jelinek <jakub@redhat.com>
10631 PR middle-end/62092
10632 * gimplify.c (gimplify_adjust_omp_clauses_1): Don't remove
10633 OMP_CLAUSE_SHARED for global vars if the global var is mentioned
10634 in OMP_CLAUSE_MAP in some outer target region.
10636 2014-08-15 Bin Cheng <bin.cheng@arm.com>
10638 * tree-ssa-loop-ivopts.c (ivopts_data): New field
10639 name_expansion_cache.
10640 (tree_ssa_iv_optimize_init): Initialize name_expansion_cache.
10641 (tree_ssa_iv_optimize_finalize): Free name_expansion_cache.
10642 (strip_wrap_conserving_type_conversions, expr_equal_p): Delete.
10643 (difference_cannot_overflow_p): New parameter. Use affine
10644 expansion for equality check.
10645 (iv_elimination_compare_lt): Pass new argument.
10647 2014-08-14 DJ Delorie <dj@redhat.com>
10649 * config/rl78/rl78-real.md (addqi3_real): Allow adding global
10650 variables to the accumulator.
10652 * config/rl78/predicates.md (rl78_near_mem_operand): New.
10653 * config/rl78/rl78-virt.md (movqi_virt_mm, movqi_virt)
10654 (movhi_virt_mm): Split out near mem-mem moves to avoid problems
10655 with far-far moves.
10657 * config/rl78/rl78-expand.md (umulqihi3): Disable for G10.
10658 * config/rl78/rl78-virt.md (umulhi3_shift_virt): Likewise.
10659 (umulqihi3_virt): Likewise.
10660 * config/rl78/rl78-real.md (umulhi3_shift_real): Likewise.
10661 (umulqihi3_real): Likewise.
10663 * config/rl78/rl78-virt.md (movhi_virt): Allow const->far moves.
10665 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10667 PR tree-optimization/62091
10668 * tree-ssa-alias.c (walk_aliased_vdefs_1): Do not clear
10669 function_entry_reached.
10670 (walk_aliased_vdefs): Clear it here.
10671 * ipa-devirt.c (check_stmt_for_type_change): Handle static storage.
10673 2014-08-14 Jan Hubicka <hubicka@ucw.cz>
10675 * ipa-utils.h (compare_virtual_tables): Declare.
10676 * ipa-devirt.c (odr_subtypes_equivalent_p): New function
10678 2014-08-14 Marek Polacek <polacek@redhat.com>
10681 * ginclude/stdatomic.h (__atomic_type_lock_free): Remove.
10682 (ATOMIC_*_LOCK_FREE): Map to __GCC_ATOMIC_*_LOCK_FREE.
10684 2014-08-14 Tom de Vries <tom@codesourcery.com>
10686 * emit-rtl.h (mem_attrs_eq_p): Remove duplicate declaration.
10688 2014-08-14 Tom de Vries <tom@codesourcery.com>
10690 PR rtl-optimization/62004
10691 PR rtl-optimization/62030
10692 * ifcvt.c (rtx_interchangeable_p): New function.
10693 (noce_try_move, noce_process_if_block): Use rtx_interchangeable_p.
10694 * emit-rtl.h (mem_attrs_eq_p): Declare.
10696 2014-08-14 Roman Gareev <gareevroman@gmail.com>
10698 * graphite-scop-detection.c:
10699 Add inclusion of cp-tree.h.
10700 (graphite_can_represent_scev): Disables the handling of SSA_NAME nodes
10701 in case they are pointers to object types
10703 2014-08-14 Richard Biener <rguenther@suse.de>
10705 * BASE-VER: Change to 5.0.0
10707 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10708 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10709 Anna Tikhonova <anna.tikhonova@intel.com>
10710 Ilya Tocar <ilya.tocar@intel.com>
10711 Andrey Turetskiy <andrey.turetskiy@intel.com>
10712 Ilya Verbin <ilya.verbin@intel.com>
10713 Kirill Yukhin <kirill.yukhin@intel.com>
10714 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10716 * config/i386/sse.md (define_mode_attr avx512): New.
10717 (define_mode_attr sse2_avx_avx512f): Allow V8HI, V16HI, V32HI, V2DI,
10719 (define_mode_attr sse2_avx2): Allow V64QI, V32HI, V4TI modes.
10720 (define_mode_attr ssse3_avx2): Ditto.
10721 (define_mode_attr sse4_1_avx2): Allow V64QI, V32HI, V8DI modes.
10722 (define_mode_attr avx2_avx512bw): New.
10723 (define_mode_attr ssedoublemodelower): New.
10724 (define_mode_attr ssedoublemode): Allow V8SF, V8SI, V4DI, V4DF, V4SI,
10725 V32HI, V64QI modes.
10726 (define_mode_attr ssebytemode): Allow V8DI modes.
10727 (define_mode_attr sseinsnmode): Allow V4TI, V32HI, V64QI modes.
10728 (define_mode_attr sseintvecmodelower): Allow V8DF, V4TI modes.
10729 (define_mode_attr ssePSmode2): New.
10730 (define_mode_attr ssescalarsize): Allow V64QI, V32QI, V16QI, V8HI,
10731 V16HI, V32HI modes.
10732 (define_mode_attr dbpsadbwmode): New.
10733 (define_mode_attr bcstscalarsuff): Allow V64QI, V32QI, V16QI, V32HI,
10734 V16HI, V8HI, V8SI, V4SI, V4DI, V2DI, V8SF, V4SF, V4DF, V2DF modes.
10735 (vi8_sse4_1_avx2_avx512): New.
10736 (define_insn <sse4_1_avx2>_movntdqa): Use <vi8_sse4_1_avx2_avx512>
10738 (define_mode_attr blendbits): Move before its immediate use.
10740 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10741 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10742 Anna Tikhonova <anna.tikhonova@intel.com>
10743 Ilya Tocar <ilya.tocar@intel.com>
10744 Andrey Turetskiy <andrey.turetskiy@intel.com>
10745 Ilya Verbin <ilya.verbin@intel.com>
10746 Kirill Yukhin <kirill.yukhin@intel.com>
10747 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10749 * config/i386/sse.md: Allow V64QI, V32QI, V32HI, V4HI modes.
10750 * config/i386/subst.md
10751 (define_mode_iterator SUBST_V): Update.
10752 (define_mode_iterator SUBST_A): Ditto.
10753 (define_subst_attr "mask_operand7"): New.
10754 (define_subst_attr "mask_operand10"): New.
10755 (define_subst_attr "mask_operand_arg34") : New.
10756 (define_subst_attr "mask_expand_op3"): New.
10757 (define_subst_attr "mask_mode512bit_condition"): Handle TARGET_AVX512VL.
10758 (define_subst_attr "sd_mask_mode512bit_condition"): Ditto.
10759 (define_subst_attr "mask_avx512vl_condition"): New.
10760 (define_subst_attr "round_mask_operand4"): Ditto.
10761 (define_subst_attr "round_mask_scalar_op3"): Delete.
10762 (define_subst_attr "round_mask_op4"): New.
10763 (define_subst_attr "round_mode512bit_condition"): Allow V8DImode,
10765 (define_subst_attr "round_modev8sf_condition"): New.
10766 (define_subst_attr "round_modev4sf_condition"): GET_MODE instead of
10768 (define_subst_attr "round_saeonly_mask_operand4"): New.
10769 (define_subst_attr "round_saeonly_mask_op4"): New.
10770 (define_subst_attr "round_saeonly_mode512bit_condition"): Allow
10771 V8DImode, V16SImode.
10772 (define_subst_attr "round_saeonly_modev8sf_condition"): New.
10773 (define_subst_attr "mask_expand4_name" "mask_expand4"): New.
10774 (define_subst_attr "mask_expand4_args"): New.
10775 (define_subst "mask_expand4"): New.
10777 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10778 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10779 Anna Tikhonova <anna.tikhonova@intel.com>
10780 Ilya Tocar <ilya.tocar@intel.com>
10781 Andrey Turetskiy <andrey.turetskiy@intel.com>
10782 Ilya Verbin <ilya.verbin@intel.com>
10783 Kirill Yukhin <kirill.yukhin@intel.com>
10784 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10786 * config/i386/i386.md
10787 (define_attr "isa"): Add avx512bw,noavx512bw.
10788 (define_attr "enabled"): Ditto.
10789 (define_split): Add 32/64-bit mask logic.
10790 (define_insn "*k<logic>qi"): New.
10791 (define_insn "*k<logic>hi"): New.
10792 (define_insn "*anddi_1"): Add mask version.
10793 (define_insn "*andsi_1"): Ditto.
10794 (define_insn "*<code><mode>_1"): Ditto.
10795 (define_insn "*<code>hi_1"): Ditto.
10796 (define_insn "kxnor<mode>"): New.
10797 (define_insn "kunpcksi"): New.
10798 (define_insn "kunpckdi"): New.
10799 (define_insn "*one_cmpl<mode>2_1"): Add mask version.
10800 (define_insn "*one_cmplhi2_1"): Ditto.
10802 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10803 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10804 Anna Tikhonova <anna.tikhonova@intel.com>
10805 Ilya Tocar <ilya.tocar@intel.com>
10806 Andrey Turetskiy <andrey.turetskiy@intel.com>
10807 Ilya Verbin <ilya.verbin@intel.com>
10808 Kirill Yukhin <kirill.yukhin@intel.com>
10809 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10811 * config/i386/i386.c (ix86_preferred_simd_mode): Allow V64QImode and
10814 2014-08-14 Alexander Ivchenko <alexander.ivchenko@intel.com>
10815 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10816 Anna Tikhonova <anna.tikhonova@intel.com>
10817 Ilya Tocar <ilya.tocar@intel.com>
10818 Andrey Turetskiy <andrey.turetskiy@intel.com>
10819 Ilya Verbin <ilya.verbin@intel.com>
10820 Kirill Yukhin <kirill.yukhin@intel.com>
10821 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10823 * config/i386/i386.c (print_reg): Сorrectly print 64-bit mask
10825 (inline_secondary_memory_needed): Allow 64 bit wide mask registers.
10826 (ix86_hard_regno_mode_ok): Allow 32/64-bit mask registers and
10827 xmm/ymm16+ when availble.
10828 * config/i386/i386.h
10829 (HARD_REGNO_NREGS): Add mask regs.
10830 (VALID_AVX512F_REG_MODE): Ditto.
10831 (VALID_AVX512F_REG_MODE) : Define.
10832 (VALID_MASK_AVX512BW_MODE): Ditto.
10833 (reg_class) (MASK_REG_P(X)): Define.
10834 * config/i386/i386.md: Do not split long moves with mask register,
10835 use kmovb if avx512bw is availible.
10836 (movdi_internal): Handle mask registers.
10838 2014-08-14 Richard Biener <rguenther@suse.de>
10840 PR tree-optimization/62081
10841 * tree-ssa-loop.c (pass_fix_loops): New pass.
10842 (pass_tree_loop::gate): Do not fixup loops here.
10843 * tree-pass.h (make_pass_fix_loops): Declare.
10844 * passes.def: Schedule pass_fix_loops before GIMPLE loop passes.
10846 2014-08-14 Richard Biener <rguenther@suse.de>
10848 * tree.c (type_hash_lookup, type_hash_add): Merge into ...
10849 (type_hash_canon): ... this and avoid 2nd lookup for the add.
10851 2014-08-14 Richard Biener <rguenther@suse.de>
10853 PR tree-optimization/62090
10854 * builtins.c (fold_builtin_sprintf): Move to gimple-fold.c.
10855 (fold_builtin_2): Do not fold sprintf.
10856 (fold_builtin_3): Likewise.
10857 * gimple-fold.c (gimple_fold_builtin_sprintf): New function
10858 moved from builtins.c.
10859 (gimple_fold_builtin): Fold sprintf.
10861 2014-08-14 Richard Biener <rguenther@suse.de>
10863 PR rtl-optimization/62079
10864 * recog.c (peephole2_optimize): If peep2_do_cleanup_cfg
10867 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10869 * ipa-devirt.c (get_polymorphic_call_info): Use fndecl instead of
10870 current_function_decl.
10872 2014-08-14 Ilya Enkovich <ilya.enkovich@intel.com>
10874 * cgraph.c (cgraph_node::function_symbol): Fix wrong
10875 cgraph_function_node to cgraph_node::function_symbol
10878 2014-08-14 Zhenqiang Chen <zhenqiang.chen@arm.com>
10880 * config/arm/arm.c (arm_option_override): Set max_insns_skipped
10881 to MAX_INSN_PER_IT_BLOCK when optimize_size for THUMB2.
10883 2014-08-13 Chen Gang gang.chen.5i5j@gmail.com
10885 * microblaze/microblaze.md: Remove redundant '@' to avoid compiling
10888 2014-08-13 Roman Gareev <gareevroman@gmail.com>
10890 * gcc.dg/graphite/pr35356-2.c: Update according to the ISL code
10893 2014-08-12 Jakub Jelinek <jakub@redhat.com>
10896 * sched-deps.c (find_inc): Check if inc_insn doesn't clobber
10897 any registers that are used in mem_insn.
10899 2014-08-12 Steve Ellcey <sellcey@mips.com>
10901 * config/mips/mips.h (ASM_SPEC): Pass float options to assembler.
10903 2014-08-12 Steve Ellcey <sellcey@mips.com>
10905 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Remove fp64 multilib.
10906 (MULTILIB_DIRNAMES): Ditto.
10907 * config/mips/t-mti-elf (MULTILIB_OPTIONS): Ditto.
10908 * config/mips/t-mti-elf (MULTILIB_EXCEPTIONS): Ditto.
10909 * config/mips/t-mti-linux (MULTILIB_OPTIONS): Ditto.
10910 * config/mips/t-mti-linux (MULTILIB_DIRNAMES): Ditto.
10911 * config/mips/t-mti-linux (MULTILIB_EXCEPTIONS): Ditto.
10912 * config/mips/mti-linux.h (SYSROOT_SUFFIX_SPEC): Ditto.
10914 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10917 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Fix definition
10918 of __ARM_SIZEOF_WCHAR_T.
10920 2014-08-12 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
10923 * config/arm/vfp.md (*combine_vcvtf2i): Fix constraint.
10924 Remove unnecessary attributes.
10926 2014-08-12 Yury Gribov <y.gribov@samsung.com>
10928 * internal-fn.c (init_internal_fns): Fix off-by-one.
10930 2014-08-12 Alexander Ivchenko <alexander.ivchenko@intel.com>
10931 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
10932 Anna Tikhonova <anna.tikhonova@intel.com>
10933 Ilya Tocar <ilya.tocar@intel.com>
10934 Andrey Turetskiy <andrey.turetskiy@intel.com>
10935 Ilya Verbin <ilya.verbin@intel.com>
10936 Kirill Yukhin <kirill.yukhin@intel.com>
10937 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
10939 * config/i386/i386.c (standard_sse_constant_opcode): Use
10940 vpxord/vpternlog if avx512 is availible.
10942 2014-08-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
10944 PR middle-end/62103
10945 * gimple-fold.c (fold_ctor_reference): Don't fold in presence of
10946 bitfields, that is when size doesn't match the size of type or the
10947 size of the constructor.
10949 2014-08-11 Michael Meissner <meissner@linux.vnet.ibm.com>
10951 * config/rs6000/constraints.md (wh constraint): New constraint,
10952 for FP registers if direct move is available.
10953 (wi constraint): New constraint, for VSX/FP registers that can
10954 handle 64-bit integers.
10955 (wj constraint): New constraint for VSX/FP registers that can
10956 handle 64-bit integers for direct moves.
10957 (wk constraint): New constraint for VSX/FP registers that can
10958 handle 64-bit doubles for direct moves.
10959 (wy constraint): Make documentation match implementation.
10961 * config/rs6000/rs6000.c (struct rs6000_reg_addr): Add
10962 scalar_in_vmx_p field to simplify tests of whether SFmode or
10963 DFmode can go in the Altivec registers.
10964 (rs6000_hard_regno_mode_ok): Use scalar_in_vmx_p field.
10965 (rs6000_setup_reg_addr_masks): Likewise.
10966 (rs6000_debug_print_mode): Add debug support for scalar_in_vmx_p
10967 field, and wh/wi/wj/wk constraints.
10968 (rs6000_init_hard_regno_mode_ok): Setup scalar_in_vmx_p field, and
10969 the wh/wi/wj/wk constraints.
10970 (rs6000_preferred_reload_class): If SFmode/DFmode can go in the
10971 upper registers, prefer VSX registers unless the operation is a
10972 memory operation with REG+OFFSET addressing.
10974 * config/rs6000/vsx.md (VSr mode attribute): Add support for
10975 DImode. Change SFmode to use ww constraint instead of d to allow
10976 SF registers in the upper registers.
10979 (VSr5): Fix thinko in comment.
10980 (VSa): New mode attribute that is an alternative to wa, that
10981 returns the VSX register class that a mode can go in, but may not
10982 be the preferred register class.
10983 (VS_64dm): New mode attribute for appropriate register classes for
10984 referencing 64-bit elements of vectors for direct moves and normal
10986 (VS_64reg): Likewise.
10987 (vsx_mov<mode>): Change wa constraint to <VSa> to limit the
10988 register allocator to only registers the data type can handle.
10989 (vsx_le_perm_load_<mode>): Likewise.
10990 (vsx_le_perm_store_<mode>): Likewise.
10991 (vsx_xxpermdi2_le_<mode>): Likewise.
10992 (vsx_xxpermdi4_le_<mode>): Likewise.
10993 (vsx_lxvd2x2_le_<mode>): Likewise.
10994 (vsx_lxvd2x4_le_<mode>): Likewise.
10995 (vsx_stxvd2x2_le_<mode>): Likewise.
10996 (vsx_add<mode>3): Likewise.
10997 (vsx_sub<mode>3): Likewise.
10998 (vsx_mul<mode>3): Likewise.
10999 (vsx_div<mode>3): Likewise.
11000 (vsx_tdiv<mode>3_internal): Likewise.
11001 (vsx_fre<mode>2): Likewise.
11002 (vsx_neg<mode>2): Likewise.
11003 (vsx_abs<mode>2): Likewise.
11004 (vsx_nabs<mode>2): Likewise.
11005 (vsx_smax<mode>3): Likewise.
11006 (vsx_smin<mode>3): Likewise.
11007 (vsx_sqrt<mode>2): Likewise.
11008 (vsx_rsqrte<mode>2): Likewise.
11009 (vsx_tsqrt<mode>2_internal): Likewise.
11010 (vsx_fms<mode>4): Likewise.
11011 (vsx_nfma<mode>4): Likewise.
11012 (vsx_eq<mode>): Likewise.
11013 (vsx_gt<mode>): Likewise.
11014 (vsx_ge<mode>): Likewise.
11015 (vsx_eq<mode>_p): Likewise.
11016 (vsx_gt<mode>_p): Likewise.
11017 (vsx_ge<mode>_p): Likewise.
11018 (vsx_xxsel<mode>): Likewise.
11019 (vsx_xxsel<mode>_uns): Likewise.
11020 (vsx_copysign<mode>3): Likewise.
11021 (vsx_float<VSi><mode>2): Likewise.
11022 (vsx_floatuns<VSi><mode>2): Likewise.
11023 (vsx_fix_trunc<mode><VSi>2): Likewise.
11024 (vsx_fixuns_trunc<mode><VSi>2): Likewise.
11025 (vsx_x<VSv>r<VSs>i): Likewise.
11026 (vsx_x<VSv>r<VSs>ic): Likewise.
11027 (vsx_btrunc<mode>2): Likewise.
11028 (vsx_b2trunc<mode>2): Likewise.
11029 (vsx_floor<mode>2): Likewise.
11030 (vsx_ceil<mode>2): Likewise.
11031 (vsx_<VS_spdp_insn>): Likewise.
11032 (vsx_xscvspdp): Likewise.
11033 (vsx_xvcvspuxds): Likewise.
11034 (vsx_float_fix_<mode>2): Likewise.
11035 (vsx_set_<mode>): Likewise.
11036 (vsx_extract_<mode>_internal1): Likewise.
11037 (vsx_extract_<mode>_internal2): Likewise.
11038 (vsx_extract_<mode>_load): Likewise.
11039 (vsx_extract_<mode>_store): Likewise.
11040 (vsx_splat_<mode>): Likewise.
11041 (vsx_xxspltw_<mode>): Likewise.
11042 (vsx_xxspltw_<mode>_direct): Likewise.
11043 (vsx_xxmrghw_<mode>): Likewise.
11044 (vsx_xxmrglw_<mode>): Likewise.
11045 (vsx_xxsldwi_<mode>): Likewise.
11046 (vsx_xscvdpspn): Tighten constraints to only use register classes
11048 (vsx_xscvspdpn): Likewise.
11049 (vsx_xscvdpspn_scalar): Likewise.
11051 * config/rs6000/rs6000.h (enum rs6000_reg_class_enum): Add wh, wi,
11052 wj, and wk constraints.
11053 (GPR_REG_CLASS_P): New helper macro for register classes targeting
11054 general purpose registers.
11056 * config/rs6000/rs6000.md (f32_dm): Use wh constraint for SDmode
11058 (zero_extendsidi2_lfiwz): Use wj constraint for direct move of
11059 DImode instead of wm. Use wk constraint for direct move of DFmode
11061 (extendsidi2_lfiwax): Likewise.
11062 (lfiwax): Likewise.
11063 (lfiwzx): Likewise.
11064 (movdi_internal64): Likewise.
11066 * doc/md.texi (PowerPC and IBM RS6000): Document wh, wi, wj, and
11067 wk constraints. Make the wy constraint documentation match them
11070 2014-08-11 Mircea Namolaru <mircea.namolaru@inria.fr>
11072 Replacement of isl_int by isl_val
11073 * graphite-clast-to-gimple.c: include isl/val.h, isl/val_gmp.h
11074 (compute_bounds_for_param): use isl_val instead of isl_int
11075 (compute_bounds_for_loop): likewise
11076 * graphite-interchange.c: include isl/val.h, isl/val_gmp.h
11077 (build_linearized_memory_access): use isl_val instead of isl_int
11078 (pdr_stride_in_loop): likewise
11079 * graphite-optimize-isl.c:
11080 (getPrevectorMap): use isl_val instead of isl_int
11082 (pbb_number_of_iterations_at_time): use isl_val instead of isl_int
11083 graphite-sese-to-poly.c: include isl/val.h, isl/val_gmp.h
11084 (extern the_isl_ctx): declare
11085 (build_pbb_scattering_polyhedrons): use isl_val instead of isl_int
11086 (extract_affine_gmp): likewise
11088 (build_loop_iteration_domains): likewise
11089 (add_param_constraints): likewise
11091 2014-08-11 Richard Biener <rguenther@suse.de>
11093 PR tree-optimization/62075
11094 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Properly
11095 handle uses in patterns.
11097 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11098 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11099 Anna Tikhonova <anna.tikhonova@intel.com>
11100 Ilya Tocar <ilya.tocar@intel.com>
11101 Andrey Turetskiy <andrey.turetskiy@intel.com>
11102 Ilya Verbin <ilya.verbin@intel.com>
11103 Kirill Yukhin <kirill.yukhin@intel.com>
11104 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11106 * common/config/i386/i386-common.c
11107 (OPTION_MASK_ISA_AVX512VL_SET): Define.
11108 (OPTION_MASK_ISA_AVX512F_UNSET): Update.
11109 (ix86_handle_option): Handle OPT_mavx512vl.
11110 * config/i386/cpuid.h (bit_AVX512VL): Define.
11111 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512vl,
11112 set -mavx512vl accordingly.
11113 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11114 OPTION_MASK_ISA_AVX512VL.
11115 * config/i386/i386.c (ix86_target_string): Handle -mavx512vl.
11116 (ix86_option_override_internal): Define PTA_AVX512VL, handle
11117 PTA_AVX512VL and OPTION_MASK_ISA_AVX512VL.
11118 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512vl.
11119 * config/i386/i386.h (TARGET_AVX512VL): Define.
11120 (TARGET_AVX512VL_P(x)): Ditto.
11121 * config/i386/i386.opt: Add mavx512vl.
11123 2014-08-11 Felix Yang <fei.yang0953@gmail.com>
11125 PR tree-optimization/62073
11126 * tree-vect-loop.c (vect_is_simple_reduction_1): Check that DEF1 has
11129 2014-08-11 Alexander Ivchenko <alexander.ivchenko@intel.com>
11130 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11131 Anna Tikhonova <anna.tikhonova@intel.com>
11132 Ilya Tocar <ilya.tocar@intel.com>
11133 Andrey Turetskiy <andrey.turetskiy@intel.com>
11134 Ilya Verbin <ilya.verbin@intel.com>
11135 Kirill Yukhin <kirill.yukhin@intel.com>
11136 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11138 * common/config/i386/i386-common.c
11139 (OPTION_MASK_ISA_AVX512BW_SET) : Define.
11140 (OPTION_MASK_ISA_AVX512BW_UNSET): Ditto.
11141 (OPTION_MASK_ISA_AVX512VL_UNSET) : Ditto.
11142 (ix86_handle_option): Handle OPT_mavx512bw.
11143 * config/i386/cpuid.h (bit_AVX512BW): Define.
11144 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512bw,
11145 set -mavx512bw accordingly.
11146 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11147 OPTION_MASK_ISA_AVX512BW.
11148 * config/i386/i386.c (ix86_target_string): Handle -mavx512bw.
11149 (ix86_option_override_internal): Define PTA_AVX512BW, handle
11150 PTA_AVX512BW and OPTION_MASK_ISA_AVX512BW.
11151 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512bw.
11152 * config/i386/i386.h (TARGET_AVX512BW): Define.
11153 (TARGET_AVX512BW_P(x)): Ditto.
11154 * config/i386/i386.opt: Add mavx512bw.
11156 2014-08-11 Richard Biener <rguenther@suse.de>
11158 PR tree-optimization/62070
11159 * tree-ssa-loop-manip.c (gimple_duplicate_loop_to_header_edge):
11160 Remove SSA checking.
11162 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11164 * asan.c (asan_check_flags): New enum.
11165 (build_check_stmt_with_calls): Removed function.
11166 (build_check_stmt): Split inlining logic to
11167 asan_expand_check_ifn.
11168 (instrument_derefs): Rename parameter.
11169 (instrument_mem_region_access): Rename parameter.
11170 (instrument_strlen_call): Likewise.
11171 (asan_expand_check_ifn): New function.
11172 (asan_instrument): Remove old code.
11173 (pass_sanopt::execute): Change handling of
11174 asan-instrumentation-with-call-threshold.
11175 (asan_clear_shadow): Fix formatting.
11176 (asan_function_start): Likewise.
11177 (asan_emit_stack_protection): Likewise.
11178 * doc/invoke.texi (asan-instrumentation-with-call-threshold):
11179 Update description.
11180 * internal-fn.c (expand_ASAN_CHECK): New function.
11181 * internal-fn.def (ASAN_CHECK): New internal function.
11182 * params.def (PARAM_ASAN_INSTRUMENTATION_WITH_CALL_THRESHOLD):
11183 Update description.
11184 (PARAM_ASAN_USE_AFTER_RETURN): Likewise.
11185 * tree.c: Small comment fix.
11187 2014-08-11 Yury Gribov <y.gribov@samsung.com>
11189 * gimple.c (gimple_call_fnspec): Support internal functions.
11190 (gimple_call_return_flags): Use const.
11191 * Makefile.in (GTFILES): Add internal-fn.h to list of GC files.
11192 * internal-fn.def: Add fnspec information.
11193 * internal-fn.h (internal_fn_fnspec): New function.
11194 (init_internal_fns): Declare new function.
11195 * internal-fn.c (internal_fn_fnspec_array): New global variable.
11196 (init_internal_fns): New function.
11197 * tree-core.h: Update macro call.
11198 * tree.c (build_common_builtin_nodes): Initialize internal fns.
11200 2014-08-10 Gerald Pfeifer <gerald@pfeifer.com>
11202 * lto-streamer.h (struct output_block::symbol): Change from
11203 struct symtab_node to plain symtab_node.
11204 (referenced_from_this_partition_p): Change first parameter
11205 from struct symtab_node to plain symtab_node.
11207 2014-08-10 Marek Polacek <polacek@redhat.com>
11210 * gcc/doc/invoke.texi: Document -Wc90-c99-compat.
11212 2014-08-09 Jan Hubicka <hubicka@ucw.cz>
11214 * ipa-devirt.c (get_dynamic_type): Handle case when instance is in
11215 DECL correctly; do not give up on types in static storage.
11217 2014-08-09 Paolo Carlini <paolo.carlini@oracle.com>
11219 * doc/invoke.texi ([Wnarrowing]): Update for non-constants in C++11.
11221 2014-08-09 Roman Gareev <gareevroman@gmail.com>
11223 * graphite-isl-ast-to-gimple.c:
11224 (translate_isl_ast_node_user): Use nb_loops instead of loop->num + 1.
11226 * gcc.dg/graphite/isl-ast-gen-user-1.c: New testcase.
11228 2014-08-08 Guozhi Wei <carrot@google.com>
11230 * config/rs6000/rs6000.md (*movdi_internal64): Add a new constraint.
11232 2014-08-08 Cary Coutant <ccoutant@google.com>
11234 * dwarf2out.c (get_skeleton_type_unit): Remove.
11235 (output_skeleton_debug_sections): Remove skeleton type units.
11236 (output_comdat_type_unit): Likewise.
11237 (dwarf2out_finish): Likewise.
11239 2014-08-07 Yi Yang <ahyangyi@google.com>
11241 * predict.c (expr_expected_value_1): Remove the redundant assignment.
11243 2014-08-08 Richard Biener <rguenther@suse.de>
11245 * lto-streamer.h (struct lto_input_block): Make it a class
11246 with a constructor.
11247 (LTO_INIT_INPUT_BLOCK, LTO_INIT_INPUT_BLOCK_PTR): Remove.
11248 (struct lto_function_header, struct lto_simple_header,
11249 struct lto_simple_header_with_strings,
11250 struct lto_decl_header, struct lto_function_header): Make
11251 a simple inheritance hieararchy. Remove unused fields.
11252 (struct lto_asm_header): Remove.
11253 * lto-streamer-out.c (produce_asm): Adjust.
11254 (lto_output_toplevel_asms): Likewise.
11255 (produce_asm_for_decls): Likewise.
11256 * lto-section-out.c (lto_destroy_simple_output_block): Likewise.
11257 * data-streamer-in.c (string_for_index): Likewise.
11258 * ipa-inline-analysis.c (inline_read_section): Likewise.
11259 * ipa-prop.c (ipa_prop_read_section): Likewise.
11260 (read_replacements_section): Likewise.
11261 * lto-cgraph.c (input_cgraph_opt_section): Likewise.
11262 * lto-section-in.c (lto_create_simple_input_block): Likewise.
11263 (lto_destroy_simple_input_block): Likewise.
11264 * lto-streamer-in.c (lto_read_body_or_constructor): Likewise.
11265 (lto_input_toplevel_asms): Likewise.
11267 2014-08-08 Alexander Ivchenko <alexander.ivchenko@intel.com>
11268 Maxim Kuznetsov <maxim.kuznetsov@intel.com>
11269 Anna Tikhonova <anna.tikhonova@intel.com>
11270 Ilya Tocar <ilya.tocar@intel.com>
11271 Andrey Turetskiy <andrey.turetskiy@intel.com>
11272 Ilya Verbin <ilya.verbin@intel.com>
11273 Kirill Yukhin <kirill.yukhin@intel.com>
11274 Michael Zolotukhin <michael.v.zolotukhin@intel.com>
11276 * common/config/i386/i386-common.c
11277 (OPTION_MASK_ISA_AVX512DQ_SET): Define.
11278 (OPTION_MASK_ISA_AVX512DQ_UNSET): Ditto.
11279 (ix86_handle_option): Handle OPT_mavx512dq.
11280 * config/i386/cpuid.h (bit_AVX512DQ): Define.
11281 * config/i386/driver-i386.c (host_detect_local_cpu): Detect avx512dq,
11282 set -mavx512dq accordingly.
11283 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
11284 OPTION_MASK_ISA_AVX512DQ.
11285 * config/i386/i386.c (ix86_target_string): Handle -mavx512dq.
11286 (ix86_option_override_internal): Define PTA_AVX512DQ, handle
11287 PTA_AVX512DQ and OPTION_MASK_ISA_AVX512DQ.
11288 (ix86_valid_target_attribute_inner_p): Handle OPT_mavx512dq.
11289 * config/i386/i386.h (TARGET_AVX512DQ): Define.
11290 (TARGET_AVX512DQ_P(x)): Ditto.
11291 * config/i386/i386.opt: Add mavx512dq.
11293 2014-08-08 Richard Biener <rguenther@suse.de>
11295 * builtins.c (c_getstr, readonly_data_expr, init_target_chars,
11296 target_percent, target_percent_s): Export.
11297 (var_decl_component_p, fold_builtin_memory_op, fold_builtin_memset,
11298 fold_builtin_bzero, fold_builtin_strcpy, fold_builtin_strncpy,
11299 fold_builtin_strcat, fold_builtin_fputs, fold_builtin_memory_chk,
11300 fold_builtin_stxcpy_chk, fold_builtin_stxncpy_chk,
11301 fold_builtin_sprintf_chk_1, fold_builtin_snprintf_chk_1):
11302 Move to gimple-fold.c.
11303 (fold_builtin_2): Remove handling of bzero, fputs, fputs_unlocked,
11305 (fold_builtin_3): Remove handling of memset, bcopy, memcpy,
11306 mempcpy, memmove, strncpy, strcpy_chk and stpcpy_chk.
11307 (fold_builtin_4): Remove handling of memcpy_chk, mempcpy_chk,
11308 memmove_chk, memset_chk, strncpy_chk and stpncpy_chk.
11309 (rewrite_call_expr_array): Remove.
11310 (fold_builtin_sprintf_chk): Likewise.
11311 (fold_builtin_snprintf_chk): Likewise.
11312 (fold_builtin_varargs): Remove handling of sprintf_chk,
11313 vsprintf_chk, snprintf_chk and vsnprintf_chk.
11314 (gimple_fold_builtin_sprintf_chk): Remove.
11315 (gimple_fold_builtin_snprintf_chk): Likewise.
11316 (gimple_fold_builtin_varargs): Likewise.
11317 (fold_call_stmt): Do not call gimple_fold_builtin_varargs.
11318 * predict.c (optimize_bb_for_size_p): Handle NULL bb.
11319 * gimple.c (gimple_seq_add_seq_without_update): New function.
11320 * gimple.h (gimple_seq_add_seq_without_update): Declare.
11321 * gimple-fold.c: Include output.h.
11322 (gsi_replace_with_seq_vops): New function, split out from ...
11323 (gimplify_and_update_call_from_tree): ... here.
11324 (replace_call_with_value): New function.
11325 (replace_call_with_call_and_fold): Likewise.
11326 (var_decl_component_p): Moved from builtins.c.
11327 (gimple_fold_builtin_memory_op): Moved from builtins.c
11328 fold_builtin_memory_op and rewritten to GIMPLE.
11329 (gimple_fold_builtin_memset): Likewise.
11330 (gimple_fold_builtin_strcpy): Likewise.
11331 (gimple_fold_builtin_strncpy): Likewise.
11332 (gimple_fold_builtin_strcat): Likewise.
11333 (gimple_fold_builtin_fputs): Likewise.
11334 (gimple_fold_builtin_memory_chk): Likewise.
11335 (gimple_fold_builtin_stxcpy_chk): Likewise.
11336 (gimple_fold_builtin_stxncpy_chk): Likewise.
11337 (gimple_fold_builtin_snprintf_chk): Likewise.
11338 (gimple_fold_builtin_sprintf_chk): Likewise.
11339 (gimple_fold_builtin_strlen): New function.
11340 (gimple_fold_builtin_with_strlen): New function split out from
11341 gimple_fold_builtin.
11342 (gimple_fold_builtin): Change signature and handle
11343 bzero, memset, bcopy, memcpy, mempcpy and memmove folding
11344 here. Call gimple_fold_builtin_with_strlen.
11345 (gimple_fold_call): Adjust.
11347 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11349 * calls.c (precompute_arguments): Check
11350 promoted_for_signed_and_unsigned_p and set the promoted mode.
11351 (promoted_for_signed_and_unsigned_p): New function.
11352 (expand_expr_real_1): Check promoted_for_signed_and_unsigned_p
11353 and set the promoted mode.
11354 * expr.h (promoted_for_signed_and_unsigned_p): New function definition.
11355 * cfgexpand.c (expand_gimple_stmt_1): Call emit_move_insn if
11356 SUBREG is promoted with SRP_SIGNED_AND_UNSIGNED.
11359 2014-08-08 Kugan Vivekanandarajah <kuganv@linaro.org>
11361 * calls.c (precompute_arguments): Use new SUBREG_PROMOTED_SET
11362 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11363 (expand_call): Likewise.
11364 * cfgexpand.c (expand_gimple_stmt_1): Use SUBREG_PROMOTED_SIGN
11365 to get promoted mode.
11366 * combine.c (record_promoted_value): Skip > 0 comparison with
11367 SUBREG_PROMOTED_UNSIGNED_P as it now returns only 0 or 1.
11368 * expr.c (convert_move): Use SUBREG_CHECK_PROMOTED_SIGN instead
11369 of SUBREG_PROMOTED_UNSIGNED_P.
11370 (convert_modes): Likewise.
11371 (store_expr): Use SUBREG_PROMOTED_SIGN to get promoted mode.
11372 Use SUBREG_CHECK_PROMOTED_SIGN instead of SUBREG_PROMOTED_UNSIGNED_P.
11373 (expand_expr_real_1): Use new SUBREG_PROMOTED_SET instead of
11374 SUBREG_PROMOTED_UNSIGNED_SET.
11375 * function.c (assign_parm_setup_reg): Use new SUBREG_PROMOTED_SET
11376 instead of SUBREG_PROMOTED_UNSIGNED_SET.
11377 * ifcvt.c (noce_emit_cmove): Updated to use SUBREG_PROMOTED_GET and
11378 SUBREG_PROMOTED_SET.
11379 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Use
11380 SUBREG_PROMOTED_SET instead of SUBREG_PROMOTED_UNSIGNED_SET.
11381 * optabs.c (widen_operand): Use SUBREG_CHECK_PROMOTED_SIGN instead
11382 of SUBREG_PROMOTED_UNSIGNED_P.
11383 * rtl.h (SUBREG_PROMOTED_UNSIGNED_SET): Remove.
11384 (SUBREG_PROMOTED_SET): New define.
11385 (SUBREG_PROMOTED_GET): Likewise.
11386 (SUBREG_PROMOTED_SIGN): Likewise.
11387 (SUBREG_PROMOTED_SIGNED_P): Likewise.
11388 (SUBREG_CHECK_PROMOTED_SIGN): Likewise.
11389 (SUBREG_PROMOTED_UNSIGNED_P): Updated.
11390 * rtlanal.c (unsigned_reg_p): Use new SUBREG_PROMOTED_GET
11391 instead of SUBREG_PROMOTED_UNSIGNED_GET.
11392 (nonzero_bits1): Skip > 0 comparison with the results as
11393 SUBREG_PROMOTED_UNSIGNED_P now returns only 0 or 1.
11394 (num_sign_bit_copies1): Use SUBREG_PROMOTED_SIGNED_P instead
11395 of !SUBREG_PROMOTED_UNSIGNED_P.
11396 * simplify-rtx.c (simplify_unary_operation_1): Use new
11397 SUBREG_PROMOTED_SIGNED_P instead of !SUBREG_PROMOTED_UNSIGNED_P.
11398 (simplify_subreg): Use new SUBREG_PROMOTED_SIGNED_P,
11399 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_SET instead of
11400 SUBREG_PROMOTED_UNSIGNED_P and SUBREG_PROMOTED_UNSIGNED_SET.
11402 2014-08-07 Jan Hubicka <hubicka@ucw.cz>
11404 * ipa-devirt.c: Include gimple-pretty-print.h
11405 (referenced_from_vtable_p): Exclude DECL_EXTERNAL from
11407 (decl_maybe_in_construction_p): Fix conditional on cdtor check
11408 (get_polymorphic_call_info): Fix return value
11409 (type_change_info): New sturcture based on ipa-prop
11411 (noncall_stmt_may_be_vtbl_ptr_store): New predicate
11412 based on ipa-prop variant.
11413 (extr_type_from_vtbl_ptr_store): New function
11414 based on ipa-prop variant.
11415 (record_known_type): New function.
11416 (check_stmt_for_type_change): New function.
11417 (get_dynamic_type): New function.
11418 * ipa-prop.c (ipa_analyze_call_uses): Use get_dynamic_type.
11419 * tree-ssa-pre.c: ipa-utils.h
11420 (eliminate_dom_walker::before_dom_children): Use ipa-devirt
11421 machinery; sanity check with ipa-prop devirtualization.
11422 * trans-mem.c (ipa_tm_insert_gettmclone_call): Clear
11425 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11427 * Makefile.in: Remove references to pointer-set.c and pointer-set.h.
11428 * alias.c, cfgexpand.c, cgraphbuild.c,
11429 config/aarch64/aarch64-builtins.c, config/aarch64/aarch64.c,
11430 config/alpha/alpha.c, config/darwin.c, config/i386/i386.c,
11431 config/i386/winnt.c, config/ia64/ia64.c, config/m32c/m32c.c,
11432 config/mep/mep.c, config/mips/mips.c, config/rs6000/rs6000.c,
11433 config/s390/s390.c, config/sh/sh.c, config/sparc/sparc.c,
11434 config/spu/spu.c, config/stormy16/stormy16.c, config/tilegx/tilegx.c,
11435 config/tilepro/tilepro.c, config/xtensa/xtensa.c, dominance.c,
11436 dse.c, except.c, gengtype.c, gimple-expr.c,
11437 gimple-ssa-strength-reduction.c, gimplify.c, ifcvt.c,
11438 ipa-visibility.c, lto-streamer.h, omp-low.c, predict.c, stmt.c,
11439 tree-affine.c, tree-cfg.c, tree-eh.c, tree-inline.c, tree-nested.c,
11440 tree-scalar-evolution.c, tree-ssa-loop-im.c, tree-ssa-loop-niter.c,
11441 tree-ssa-phiopt.c, tree-ssa-structalias.c, tree-ssa-uninit.c,
11442 tree-ssa.c, tree.c, var-tracking.c, varpool.c: Remove includes of
11444 * pointer-set.c: Remove file.
11445 * pointer-set.h: Remove file.
11447 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11449 * config/arm/arm.md (*cmov<mode>): Set type attribute to fcsel.
11450 * config/arm/types.md (f_sels, f_seld): Delete.
11452 2014-08-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11454 * config/aarch64/aarch64.md (absdi2): Set simd attribute.
11455 (aarch64_reload_mov<mode>): Predicate on TARGET_FLOAT.
11456 (aarch64_movdi_<mode>high): Likewise.
11457 (aarch64_mov<mode>high_di): Likewise.
11458 (aarch64_movdi_<mode>low): Likewise.
11459 (aarch64_mov<mode>low_di): Likewise.
11460 (aarch64_movtilow_tilow): Likewise.
11461 Add comment explaining usage of fp,simd attributes and of
11462 TARGET_FLOAT and TARGET_SIMD.
11464 2014-08-07 Ian Bolton <ian.bolton@arm.com>
11465 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11467 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate):
11468 Use MOVN when one of the half-words is 0xffff.
11470 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11472 * config/arm/thumb1.md (*thumb1_movqi_insn): Copy of thumb1_movhi_insn.
11474 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11476 * haifa-sched.c (SCHED_SORT): Delete. Macro used exactly once.
11477 (enum rfs_decition:RFS_*): New constants wrapped in an enum.
11478 (rfs_str): String corresponding to RFS_* constants.
11479 (rank_for_schedule_stats_t): New typedef.
11480 (rank_for_schedule_stats): New static variable.
11481 (rfs_result): New static function.
11482 (rank_for_schedule): Track statistics for deciding heuristics.
11483 (rank_for_schedule_stats_diff, print_rank_for_schedule_stats): New
11485 (ready_sort): Use them for debug printouts.
11486 (schedule_block): Init statistics state. Print statistics on
11487 rank_for_schedule decisions.
11489 2014-08-07 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
11491 * haifa-sched.c (rank_for_schedule): Fix INSN_TICK-based heuristics.
11493 2014-08-07 Ilya Tocar <ilya.tocar@intel.com>
11495 * config/i386/sse.md (vec_extract_lo_<mode><mask_name>): Fix
11498 2014-08-07 Trevor Saunders <tsaunders@mozilla.com>
11500 * hash-map.h (default_hashmap_traits): Adjust overloads of hash
11501 function to not conflict.
11502 * alias.c, cfgexpand.c, dse.c, except.h, gimple-expr.c,
11503 gimple-ssa-strength-reduction.c, gimple-ssa.h, ifcvt.c,
11504 lto-streamer-out.c, lto-streamer.h, tree-affine.c, tree-affine.h,
11505 tree-predcom.c, tree-scalar-evolution.c, tree-ssa-loop-im.c,
11506 tree-ssa-loop-niter.c, tree-ssa.c, value-prof.c: Use hash_map instead
11509 2014-08-07 Marek Polacek <polacek@redhat.com>
11511 * fold-const.c (fold_binary_loc): Add folding of
11512 (PTR0 - (PTR1 p+ A) -> (PTR0 - PTR1) - A.
11514 2013-08-07 Ilya Enkovich <ilya.enkovich@intel.com>
11516 * config/elfos.h (ASM_DECLARE_OBJECT_NAME): Use decl size
11517 instead of type size.
11518 (ASM_FINISH_DECLARE_OBJECT): Likewise.
11520 2014-08-07 Marat Zakirov <m.zakirov@samsung.com>
11522 * config/arm/thumb1.md (*thumb1_movhi_insn): Handle stack pointer.
11523 (*thumb1_movqi_insn): Likewise.
11524 * config/arm/thumb2.md (*thumb2_movhi_insn): Likewise.
11526 2014-08-07 Tom de Vries <tom@codesourcery.com>
11528 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11529 (glibc_2_11_or_earlier): Remove effective-target keywords.
11531 2014-08-07 Kugan Vivekanandarajah <kuganv@linaro.org>
11533 * config/arm/arm.c (bdesc_2arg): Fix typo.
11534 (arm_atomic_assign_expand_fenv): Remove The default implementation.
11536 2014-08-07 Zhenqiang Chen <zhenqiang.chen@arm.com>
11538 * tree-ssa-loop-ivopts.c (get_address_cost): Try aligned offset.
11540 2014-08-06 Vladimir Makarov <vmakarov@redhat.com>
11543 * haifa-sched.c (advance_one_cycle): Fix dump.
11544 (schedule_block): Don't advance cycle if we are already at the
11545 beginning of the cycle.
11547 2014-08-06 Martin Jambor <mjambor@suse.cz>
11550 * cgraphclones.c (cgraph_node::create_clone): Also copy tm_clone.
11552 2014-08-06 Richard Biener <rguenther@suse.de>
11555 * lto-streamer-in.c (lto_input_tree_1): Assert we do not read
11557 (lto_input_tree): Pop SCCs here.
11559 2014-08-06 Richard Biener <rguenther@suse.de>
11561 PR tree-optimization/61320
11562 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Properly
11563 handle misaligned loads.
11565 2014-08-06 Alan Lawrence <alan.lawrence@arm.com>
11567 * config/aarch64/aarch64.c (aarch64_evpc_dup): Enable for bigendian.
11568 (aarch64_expand_vec_perm_const): Check for dup before zip.
11570 2014-08-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11572 * config/aarch64/aarch64.c (aarch64_classify_address): Use REG_P and
11573 CONST_INT_P instead of GET_CODE and compare.
11574 (aarch64_select_cc_mode): Likewise.
11575 (aarch64_print_operand): Likewise.
11576 (aarch64_rtx_costs): Likewise.
11577 (aarch64_simd_valid_immediate): Likewise.
11578 (aarch64_simd_check_vect_par_cnst_half): Likewise.
11579 (aarch64_simd_emit_pair_result_insn): Likewise.
11581 2014-08-05 David Malcolm <dmalcolm@redhat.com>
11583 * gdbhooks.py (find_gcc_source_dir): New helper function.
11584 (class PassNames): New class, locating and parsing passes.def.
11585 (class BreakOnPass): New command "break-on-pass".
11587 2014-08-05 Trevor Saunders <tsaunders@mozilla.com>
11589 * tree-ssa.c (redirect_edge_var_map_dup): insert newe before
11592 2014-08-05 Richard Biener <rguenther@suse.de>
11594 PR rtl-optimization/61672
11595 * emit-rtl.h (mem_attrs_eq_p): Declare.
11596 * emit-rtl.c (mem_attrs_eq_p): Export. Handle NULL mem-attrs.
11597 * cse.c (exp_equiv_p): Use mem_attrs_eq_p.
11598 * cfgcleanup.c (merge_memattrs): Likewise.
11599 Include emit-rtl.h.
11601 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11603 * config/aarch64/arm_neon.h (vqdmlals_lane_s32): Use scalar types
11604 rather than singleton vectors.
11605 (vqdmlsls_lane_s32): Likewise.
11607 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11609 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_laneq<mode>):
11610 Use VSDQ_HSI mode iterator.
11611 (aarch64_sqrdmulh_laneq<mode>): Likewise.
11612 (aarch64_sq<r>dmulh_laneq<mode>_internal): New define_insn.
11613 * config/aarch64/aarch64-simd-builtins.def (sqdmulh_laneq):
11614 Use BUILTIN_VDQHS macro.
11615 (sqrdmulh_laneq): Likewise.
11616 * config/aarch64/arm_neon.h (vqdmlalh_laneq_s16): New intrinsic.
11617 (vqdmlals_laneq_s32): Likewise.
11618 (vqdmlslh_laneq_s16): Likewise.
11619 (vqdmlsls_laneq_s32): Likewise.
11620 (vqdmulhh_laneq_s16): Likewise.
11621 (vqdmulhs_laneq_s32): Likewise.
11622 (vqrdmulhh_laneq_s16): Likewise.
11623 (vqrdmulhs_laneq_s32): Likewise.
11625 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11627 * config/aarch64/arm_neon.h (vmul_f64): New intrinsic.
11628 (vmuld_laneq_f64): Likewise.
11629 (vmuls_laneq_f32): Likewise.
11630 (vmul_n_f64): Likewise.
11631 (vmuld_lane_f64): Reimplement in C.
11632 (vmuls_lane_f32): Likewise.
11634 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11636 * config/arm/cortex-a15.md (cortex_a15_alu_shift): Add crc type
11638 * config/arm/cortex-a53.md (cortex_a53_alu_shift): Likewise.
11640 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11642 * config/arm/arm.md (clzsi2): Set predicable_short_it attr to no.
11643 (rbitsi2): Likewise.
11644 (*arm_rev): Set predicable and predicable_short_it attributes.
11646 2014-08-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11648 * convert.c (convert_to_integer): Guard transformation to lrint by
11651 2014-08-05 James Greenhalgh <james.greenhalgh@arm.com>
11653 * config/aarch64/aarch64-builtins.c
11654 (aarch64_simd_builtin_type_mode): Delete.
11655 (v8qi_UP): Remap to V8QImode.
11656 (v4hi_UP): Remap to V4HImode.
11657 (v2si_UP): Remap to V2SImode.
11658 (v2sf_UP): Remap to V2SFmode.
11659 (v1df_UP): Remap to V1DFmode.
11660 (di_UP): Remap to DImode.
11661 (df_UP): Remap to DFmode.
11662 (v16qi_UP):V16QImode.
11663 (v8hi_UP): Remap to V8HImode.
11664 (v4si_UP): Remap to V4SImode.
11665 (v4sf_UP): Remap to V4SFmode.
11666 (v2di_UP): Remap to V2DImode.
11667 (v2df_UP): Remap to V2DFmode.
11668 (ti_UP): Remap to TImode.
11669 (ei_UP): Remap to EImode.
11670 (oi_UP): Remap to OImode.
11671 (ci_UP): Map to CImode.
11672 (xi_UP): Remap to XImode.
11673 (si_UP): Remap to SImode.
11674 (sf_UP): Remap to SFmode.
11675 (hi_UP): Remap to HImode.
11676 (qi_UP): Remap to QImode.
11677 (aarch64_simd_builtin_datum): Make mode a machine_mode.
11678 (VAR1): Build builtin name.
11679 (aarch64_init_simd_builtins): Remove dead code.
11681 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11683 * graphite-isl-ast-to-gimple.c:
11684 (set_options): New function.
11685 (scop_to_isl_ast): Add calling of set_options.
11687 2014-08-05 Jakub Jelinek <jakub@redhat.com>
11689 * loop-unroll.c (struct iv_to_split): Remove n_loc and loc fields.
11690 (analyze_iv_to_split_insn): Don't initialize them.
11691 (get_ivts_expr): Removed.
11692 (allocate_basic_variable, insert_base_initialization): Use
11693 SET_SRC instead of *get_ivts_expr.
11694 (split_iv): Use &SET_SRC instead of get_ivts_expr.
11696 2014-08-05 Roman Gareev <gareevroman@gmail.com>
11698 * graphite-isl-ast-to-gimple.c: Add a new struct ast_build_info.
11699 (translate_isl_ast_for_loop): Add checking of the
11700 flag_loop_parallelize_all.
11701 (ast_build_before_for): New function.
11702 (scop_to_isl_ast): Add checking of the
11703 flag_loop_parallelize_all.
11704 * graphite-dependences.c: Move the defenition of the
11705 scop_get_dependences from graphite-optimize-isl.c to this file.
11706 (apply_schedule_on_deps): Add checking of the ux's emptiness.
11707 (carries_deps): Add checking of the x's value.
11708 * graphite-optimize-isl.c: Move the defenition of the
11709 scop_get_dependences to graphite-dependences.c.
11710 * graphite-poly.h: Add declarations of scop_get_dependences
11713 2014-08-04 Rohit <rohitarulraj@freescale.com>
11716 * config/rs6000/rs6000.c (rs6000_reg_names): Add SPE high register
11718 (alt_reg_names): Likewise.
11719 (rs6000_dwarf_register_span): For SPE high registers, replace
11720 dwarf register numbers with GCC hard register numbers.
11721 (rs6000_init_dwarf_reg_sizes_extra): Likewise.
11722 (rs6000_dbx_register_number): For SPE high registers, return dwarf
11723 register number for the corresponding GCC hard register number.
11724 * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Update based on 32
11725 newly added GCC hard register numbers for SPE high registers.
11726 (DWARF_FRAME_REGISTERS): Likewise.
11727 (DWARF_REG_TO_UNWIND_COLUMN): Likewise.
11728 (DWARF_FRAME_REGNUM): Likewise.
11729 (FIXED_REGISTERS): Likewise.
11730 (CALL_USED_REGISTERS): Likewise.
11731 (CALL_REALLY_USED_REGISTERS): Likewise.
11732 (REG_ALLOC_ORDER): Likewise.
11733 (enum reg_class): Likewise.
11734 (REG_CLASS_NAMES): Likewise.
11735 (REG_CLASS_CONTENTS): Likewise.
11736 (SPE_HIGH_REGNO_P): New macro to identify SPE high registers.
11738 2014-08-04 Richard Biener <rguenther@suse.de>
11740 * gimple-fold.h (gimple_fold_builtin): Remove.
11741 * gimple-fold.c (gimple_fold_builtin): Make static.
11742 * tree-ssa-ccp.c (pass_fold_builtins::execute): Use
11743 fold_stmt, not gimple_fold_builtin.
11745 2014-08-04 Martin Liska <mliska@suse.cz>
11747 * cgraph.h (csi_end_p): Removed.
11748 (csi_next): Likewise.
11749 (csi_node): Likewise.
11750 (csi_start): Likewise.
11751 (cgraph_node_in_set_p): Likewise.
11752 (cgraph_node_set_size): Likewise.
11753 (vsi_end_p): Likewise.
11754 (vsi_next): Likewise.
11755 (vsi_node): Likewise.
11756 (vsi_start): Likewise.
11757 (varpool_node_set_size): Likewise.
11758 (cgraph_node_set_nonempty_p): Likewise.
11759 (varpool_node_set_nonempty_p): Likewise.
11760 * cgraphunit.c (cgraph_process_new_functions): vec replaces
11762 * ipa-inline-transform.c: Likewise.
11763 * ipa-utils.c (cgraph_node_set_new): Removed.
11764 (cgraph_node_set_add): Likewise.
11765 (cgraph_node_set_remove): Likewise.
11766 (cgraph_node_set_find): Likewise.
11767 (dump_cgraph_node_set): Likewise.
11768 (debug_cgraph_node_set): Likewise.
11769 (free_cgraph_node_set): Likewise.
11770 (varpool_node_set_new): Likewise.
11771 (varpool_node_set_add): Likewise.
11772 (varpool_node_set_remove): Likewise.
11773 (varpool_node_set_find): Likewise.
11774 (dump_varpool_node_set): Likewise.
11775 (free_varpool_node_set): Likewise.
11776 (debug_varpool_node_set): Likewise.
11777 * tree-emutls.c (struct tls_var_data):
11778 (emutls_index): Removed.
11779 (emutls_decl): Likewise.
11780 (gen_emutls_addr): Function implementation uses newly added
11781 hash_map<varpool_node *, tls_var_data>.
11782 (clear_access_vars): Likewise.
11783 (create_emultls_var): Likewise.
11784 (ipa_lower_emutls): Likewise.
11785 (reset_access): New function.
11787 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11789 * config/i386/i386.c (ix86_option_override_internal): Add
11790 PTA_RDRND and PTA_MOVBE for bdver4.
11792 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11793 James Greenhalgh <james.greenhalgh@arm.com>
11795 * doc/md.texi (clrsb): Document.
11796 (clz): Change reference to x into operand 1.
11798 (popcount): Likewise.
11800 2014-08-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11803 * gcc/optabs.c (expand_atomic_test_and_set): Do not try to emit
11804 move to subtarget in serial version if result is ignored.
11806 2014-08-04 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
11807 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
11809 * sched-deps.c (try_group_insn): Generalise macro fusion hook usage
11810 to any two insns. Update comment. Rename to sched_macro_fuse_insns.
11811 (sched_analyze_insn): Update use of try_group_insn to
11812 sched_macro_fuse_insns.
11813 * config/i386/i386.c (ix86_macro_fusion_pair_p): Reject 2nd
11814 arguments that are not conditional jumps.
11816 2014-08-04 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
11818 * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended
11819 family information. Handle BTVER2 cpu with cpuid family value.
11821 2014-08-04 Tom de Vries <tom@codesourcery.com>
11823 * doc/sourcebuild.texi (glibc, glibc_2_12_or_later)
11824 (glibc_2_11_or_earlier): Document effective-target keywords.
11826 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11828 * ipa-devirt.c (odr_type_warn_count): Add type.
11829 (possible_polymorphic_call_targets): Set it.
11830 (ipa_devirt): Use it.
11832 2014-08-01 Jan Hubicka <hubicka@ucw.cz>
11834 * doc/invoke.texi (Wsuggest-final-types, Wsuggest-final-methods):
11836 * ipa-devirt.c: Include hash-map.h
11837 (struct polymorphic_call_target_d): Add type_warning and decl_warning.
11838 (clear_speculation): Break out of ...
11839 (get_class_context): ... here; speed up handling obviously useless
11841 (odr_type_warn_count, decl_warn_count): New structures.
11842 (final_warning_record): New structure.
11843 (final_warning_records): New static variable.
11844 (possible_polymorphic_call_targets): Cleanup handling of
11845 speculative info; do not build speculation when user do not care;
11846 record info about warnings when asked for.
11847 (add_decl_warning): New function.
11848 (type_warning_cmp): New function.
11849 (decl_warning_cmp): New function.
11850 (ipa_devirt): Handle -Wsuggest-final-methods and -Wsuggest-final-types.
11851 (gate): Enable pass when warnings are requested.
11852 * common.opt (Wsuggest-final-types, Wsuggest-final-methods): New
11855 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11857 * hash-map.h (default_hashmap_traits::mark_key_deleted):
11859 (hash_map::remove): New method.
11860 (hash_map::traverse): New method.
11861 * cgraph.h, except.c, except.h, gimple-ssa-strength-reduction.c,
11862 ipa-utils.c, lto-cgraph.c, lto-streamer.h, omp-low.c, predict.c,
11863 tree-cfg.c, tree-cfgcleanup.c, tree-eh.c, tree-eh.h, tree-inline.c,
11864 tree-inline.h, tree-nested.c, tree-sra.c, tree-ssa-loop-im.c,
11865 tree-ssa-loop-ivopts.c, tree-ssa-reassoc.c, tree-ssa-structalias.c,
11866 tree-ssa.c, tree-ssa.h, var-tracking.c: Use hash_map instead of
11869 2014-08-02 Trevor Saunders <tsaunders@mozilla.com>
11871 * hash-set.h: new File.
11872 * cfgexpand.c, cfgloop.c, cgraph.c, cgraphbuild.c, cgraphunit.c,
11873 cprop.c, cse.c, gimple-walk.c, gimple-walk.h, gimplify.c, godump.c,
11874 ipa-devirt.c, ipa-pure-const.c, ipa-visibility.c, ipa.c, lto-cgraph.c,
11875 lto-streamer-out.c, stmt.c, tree-cfg.c, tree-core.h, tree-eh.c,
11876 tree-inline.c, tree-inline.h, tree-nested.c, tree-pretty-print.c,
11877 tree-ssa-loop-niter.c, tree-ssa-phiopt.c, tree-ssa-threadedge.c,
11878 tree-ssa-uninit.c, tree.c, tree.h, value-prof.c, varasm.c,
11879 varpool.c: Use hash_set instead of pointer_set.
11881 2014-08-01 Alan Lawrence <alan.lawrence@arm.com>
11883 * config/aarch64/aarch64-simd-builtins.def (dup_lane, get_lane): Delete.
11885 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11887 * config/aarch64/aarch64.c (aarch64_classify_address): Accept all offset
11888 for frame access when strict_p is false.
11890 2014-08-01 Renlin Li <renlin.li@arm.com>
11891 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11893 * config/aarch64/aarch64.c (offset_7bit_signed_scaled_p): Rename to
11894 aarch64_offset_7bit_signed_scaled_p, remove static and use it.
11895 * config/aarch64/aarch64-protos.h (aarch64_offset_7bit_signed_scaled_p):
11897 * config/aarch64/predicates.md (aarch64_mem_pair_offset): Define new
11899 * config/aarch64/aarch64.md (loadwb_pair, storewb_pair): Use
11900 aarch64_mem_pair_offset.
11902 2014-08-01 Jiong Wang <jiong.wang@arm.com>
11904 * config/aarch64/aarch64.md (loadwb_pair<GPI:mode>_<P:mode>): Fix
11906 (loadwb_pair<GPI:mode>_<P:mode>): Likewise.
11907 * config/aarch64/aarch64.c (aarch64_gen_loadwb_pair): Likewise.
11909 2014-08-01 Matthew Fortune <matthew.fortune@imgtec.com>
11911 * config/mips/mips.h (REGISTER_PREFIX): Define macro.
11913 2014-08-01 James Greenhalgh <james.greenhalgh@arm.com>
11915 PR regression/61510
11916 * cgraphunit.c (analyze_functions): Use get_create rather than get
11917 for decls which are clones of abstract functions.
11919 2014-08-01 Martin Liska <mliska@suse.cz>
11921 * gimple-iterator.h (gsi_next_nonvirtual_phi): New function.
11922 * ipa-prop.h (count_formal_params): Global function created from static.
11923 * ipa-prop.c (count_formal_params): Likewise.
11924 * ipa-utils.c (ipa_merge_profiles): Be more tolerant if we merge
11925 profiles for semantically equivalent functions.
11926 * passes.c (do_per_function): If we load body of a function
11927 during WPA, this condition should behave same.
11928 * varpool.c (ctor_for_folding): More tolerant assert for variable
11929 aliases created during WPA.
11931 2014-08-01 Martin Liska <mliska@suse.cz>
11933 * doc/invoke.texi (Options That Control Optimization): Documentation
11934 for -foptimize-strlen introduced. Optimization levels default options
11937 2014-08-01 Jakub Jelinek <jakub@redhat.com>
11939 * opts.c (common_handle_option): Handle -fsanitize=alignment.
11940 * ubsan.h (enum ubsan_null_ckind): Add UBSAN_CTOR_CALL.
11941 (ubsan_expand_bounds_ifn, ubsan_expand_null_ifn): Change return
11943 * stor-layout.h (min_align_of_type): New prototype.
11944 * asan.c (pass_sanopt::execute): Don't perform gsi_next if
11945 ubsan_expand* told us not to do it. Remove the extra gsi_end_p
11947 * ubsan.c: Include builtins.h.
11948 (ubsan_expand_bounds_ifn): Change return type to bool,
11949 always return true.
11950 (ubsan_expand_null_ifn): Change return type to bool, change
11951 argument to gimple_stmt_iterator *. Handle both null and alignment
11952 sanitization, take type from ckind argument's type rather than
11954 (instrument_member_call): Removed.
11955 (instrument_mem_ref): Remove t argument, add mem and base arguments.
11956 Handle both null and alignment sanitization, don't say whole
11957 struct access is member access. Build 3 argument IFN_UBSAN_NULL
11958 call instead of 2 argument.
11959 (instrument_null): Adjust instrument_mem_ref caller. Don't
11960 instrument calls here.
11961 (pass_ubsan::gate, pass_ubsan::execute): Handle SANITIZE_ALIGNMENT
11962 like SANITIZE_NULL.
11963 * stor-layout.c (min_align_of_type): New function.
11964 * flag-types.h (enum sanitize_code): Add SANITIZE_ALIGNMENT.
11965 Or it into SANITIZE_UNDEFINED.
11966 * doc/invoke.texi (-fsanitize=alignment): Document.
11968 2014-07-31 Andi Kleen <ak@linux.intel.com>
11970 * tree-ssa-tail-merge.c (same_succ_hash): Convert to inchash.
11972 2014-07-31 Andi Kleen <ak@linux.intel.com>
11974 * tree-ssa-sccvn.c (vn_reference_op_compute_hash): Convert to
11976 (vn_reference_compute_hash): Dito.
11977 (vn_nary_op_compute_hash): Dito.
11978 (vn_phi_compute_hash): Dito.
11979 * tree-ssa-sccvn.h (vn_hash_constant_with_type): Dito.
11981 2014-07-31 Andi Kleen <ak@linux.intel.com>
11983 * tree-ssa-dom.c (iterative_hash_exprs_commutative):
11984 Rename to inchash:add_expr_commutative. Convert to inchash.
11985 (iterative_hash_hashable_expr): Rename to
11986 inchash:add_hashable_expr. Convert to inchash.
11987 (avail_expr_hash): Dito.
11989 2014-07-31 Andi Kleen <ak@linux.intel.com>
11991 * ipa-devirt.c (polymorphic_call_target_hasher::hash):
11992 Convert to inchash.
11994 2014-07-31 Andi Kleen <ak@linux.intel.com>
11996 * asan.c (asan_mem_ref_hasher::hash): Convert to inchash.
11998 2014-07-31 Andi Kleen <ak@linux.intel.com>
12000 * Makefile.in (OBJS): Add rtlhash.o
12001 * dwarf2out.c (addr_table_entry_do_hash): Convert to inchash.
12002 (loc_checksum): Dito.
12003 (loc_checksum_ordered): Dito.
12004 (hash_loc_operands): Dito.
12006 (hash_loc_list): Dito.
12007 * rtl.c (iterative_hash_rtx): Moved to rtlhash.c
12008 * rtl.h (iterative_hash_rtx): Moved to rtlhash.h
12009 * rtlhash.c: New file.
12010 * rtlhash.h: New file.
12012 2014-07-31 Andi Kleen <ak@linux.intel.com>
12014 * inchash.h (inchash): Change inchash class to namespace.
12015 (class hash): ... Rename from inchash.
12016 (add_object): Move from macro to class template.
12017 * lto-streamer-out.c (hash_tree): Change inchash
12019 * tree.c (build_type_attribute_qual_variant): Dito.
12020 (type_hash_list): Dito.
12021 (attribute_hash_list): Dito.
12022 (iterative_hstate_expr): Rename to inchash::add_expr
12023 (build_range_type_1): Change inchash to inchash::hash
12024 and use hash::add_expr.
12025 (build_array_type_1): Dito.
12026 (build_function_type): Dito
12027 (build_method_type_directly): Dito.
12028 (build_offset_type): Dito.
12029 (build_complex_type): Dito.
12030 (make_vector_type): Dito.
12031 * tree.h (iterative_hash_expr): Dito.
12033 2014-07-31 Chen Gang <gang.chen.5i5j@gmail.com>
12035 * gcc.c (do_spec_1): Allocate enough space for saved_suffix.
12037 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12039 * config/aarch64/arm_neon.h (vpadd_<suf><8,16,32,64>): Move to
12040 correct alphabetical position.
12041 (vpaddd_f64): Rewrite using builtins.
12042 (vpaddd_s64): Move to correct alphabetical position.
12045 2014-07-31 Oleg Endo <olegendo@gcc.gnu.org>
12048 * config/sh/sh.c (sh_legitimate_address_p,
12049 sh_legitimize_reload_address): Handle reg+reg address modes when
12050 ALLOW_INDEXED_ADDRESS is false.
12051 * config/sh/predicates.md (general_movsrc_operand,
12052 general_movdst_operand): Likewise.
12054 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12056 * config/aarch64/aarch64-builtins.c
12057 (aarch64_gimple_fold_builtin): Don't fold reduction operations for
12060 2014-07-31 James Greenhalgh <james.greenhalgh@arm.com>
12062 * config/aarch64/aarch64.c (aarch64_simd_vect_par_cnst_half): Vary
12063 the generated mask based on BYTES_BIG_ENDIAN.
12064 (aarch64_simd_check_vect_par_cnst_half): New.
12065 * config/aarch64/aarch64-protos.h
12066 (aarch64_simd_check_vect_par_cnst_half): New.
12067 * config/aarch64/predicates.md (vect_par_cnst_hi_half): Refactor
12068 the check out to aarch64_simd_check_vect_par_cnst_half.
12069 (vect_par_cnst_lo_half): Likewise.
12070 * config/aarch64/aarch64-simd.md
12071 (aarch64_simd_move_hi_quad_<mode>): Always use vec_par_cnst_lo_half.
12072 (move_hi_quad_<mode>): Always generate a low mask.
12074 2014-07-30 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12076 * doc/invoke.texi (AVR Options): Add documentation about
12077 __AVR_DEVICE_NAME__ built-in macro.
12079 2014-07-31 Charles Baylis <charles.baylis@linaro.org>
12082 * config/arm/neon.md (ashldi3_neon): Don't emit arm_ashldi3_1bit unless
12083 constraints are satisfied.
12084 (<shift>di3_neon): Likewise.
12086 2014-07-31 Richard Biener <rguenther@suse.de>
12088 PR tree-optimization/61964
12089 * tree-ssa-tail-merge.c (gimple_equal_p): Handle non-SSA LHS solely
12090 by structural equality.
12092 2014-07-31 Yury Gribov <y.gribov@samsung.com>
12094 * doc/cpp.texi (__SANITIZE_ADDRESS__): Updated description.
12095 * doc/invoke.texi (-fsanitize=kernel-address): Describe new option.
12096 * flag-types.h (SANITIZE_USER_ADDRESS, SANITIZE_KERNEL_ADDRESS):
12098 * gcc.c (sanitize_spec_function): Support new option.
12099 (SANITIZER_SPEC): Remove now redundant check.
12100 * opts.c (common_handle_option): Support new option.
12101 (finish_options): Check for incompatibilities.
12102 * toplev.c (process_options): Split userspace-specific checks.
12104 2014-07-31 Richard Biener <rguenther@suse.de>
12106 * lto-streamer.h (struct output_block): Remove global.
12107 (struct data_in): Remove labels, num_named_labels and
12108 num_unnamed_labels.
12109 * lto-streamer-in.c (lto_data_in_delete): Do not free labels.
12110 * lto-streamer-out.c (produce_asm_for_decls): Do not set global.
12112 2014-07-31 Marc Glisse <marc.glisse@inria.fr>
12115 * common.opt (-Wreturn-local-addr): Moved from c.opt.
12116 * gimple-ssa-isolate-paths.c: Include diagnostic-core.h and intl.h.
12117 (isolate_path): New argument to avoid inserting a trap.
12118 (find_implicit_erroneous_behaviour): Handle returning the address
12119 of a local variable.
12120 (find_explicit_erroneous_behaviour): Likewise.
12122 2014-07-31 Bingfeng Mei <bmei@broadcom.com>
12125 * toplev.c (init_random_seed): Move piece of code never called to
12127 (set_random_seed): see above.
12129 2014-07-31 Tom de Vries <tom@codesourcery.com>
12131 * tree-ssa-loop.c (pass_tree_loop_init::execute): Remove dead code.
12133 2014-07-31 Richard Sandiford <rdsandiford@googlemail.com>
12135 * ira.c (insn_contains_asm_1, insn_contains_asm): Delete.
12136 (compute_regs_asm_clobbered): Use extract_asm_operands instead.
12138 2014-07-31 Richard Biener <rguenther@suse.de>
12140 * data-streamer.h (streamer_write_data_stream): Declare here,
12142 * lto-streamer.h (lto_output_data_stream): ... this. Remove.
12143 * lto-cgraph.c (lto_output_node): Adjust.
12144 (lto_output_varpool_node): Likewise.
12145 * data-streamer-out.c (streamer_string_index): Likewise.
12146 (streamer_write_data_stream, lto_append_block): Move from ...
12147 * lto-section-out.c (lto_output_data_stream,
12148 lto_append_block): ... here.
12150 2014-07-30 Mike Stump <mikestump@comcast.net>
12152 * configure.ac: Also check for popen.
12153 * tree-loop-distribution.c (dot_rdg): Autoconfize popen use.
12154 * configure: Regenerate.
12155 * config.in: Regenerate.
12157 2014-07-30 Martin Jambor <mjambor@suse.cz>
12159 * tree-sra.c (sra_ipa_modify_assign): Change type of the first
12160 parameter to gimple.
12162 2014-07-30 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12164 * config/s390/s390.c (s390_emit_tpf_eh_return): Pass original return
12165 address as second parameter to __tpf_eh_return routine.
12167 2014-07-30 Jiong Wang <jiong.wang@arm.com>
12169 * config/arm/arm.c (arm_get_frame_offsets): Adjust condition for
12172 2014-07-30 Tom Tromey <tromey@redhat.com>
12175 * doc/invoke.texi (Warning Options): Document -Wdesignated-init.
12176 * doc/extend.texi (Type Attributes): Document designated_init
12179 2014-07-30 Roman Gareev <gareevroman@gmail.com>
12181 * graphite-isl-ast-to-gimple.c:
12182 (gcc_expression_from_isl_ast_expr_id): Add calling of fold_convert.
12183 (gcc_expression_from_isl_expression): Pass type to
12184 gcc_expression_from_isl_ast_expr_id.
12186 2014-07-30 Richard Biener <rguenther@suse.de>
12188 * lto-streamer.h (lto_write_data): New function.
12189 * langhooks.c (lhd_append_data): Do not free block.
12190 * lto-section-out.c (lto_write_data): New function writing
12191 raw data to the current section.
12192 (lto_write_stream): Adjust for langhook semantic change.
12193 (lto_destroy_simple_output_block): Write header directly.
12194 * lto-opts.c (lto_write_options): Write options directly.
12195 * lto-streamer-out.c (produce_asm): Write heaeder directly.
12196 (lto_output_toplevel_asms): Likewise.
12197 (copy_function_or_variable): Copy data directly.
12198 (write_global_references): Output index table directly.
12199 (lto_output_decl_state_refs): Likewise.
12200 (write_symbol): Write data directly.
12201 (produce_symtab): Adjust.
12202 (produce_asm_for_decls): Output header and refs directly.
12204 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12206 * ipa-devirt.c (polymorphic_call_target_d): Rename nonconstruction_targets
12207 to speculative_targets
12208 (get_class_context): Fix handling of contextes without outer type;
12209 avoid matching non-polymorphic types in LTO.
12210 (possible_polymorphic_call_targets): Trun nonconstruction_targetsp
12211 parameter to speculative_targetsp; handle speculation.
12212 (dump_possible_polymorphic_call_targets): Update dumping.
12214 2014-07-29 Jan Hubicka <hubicka@ucw.cz>
12216 * common.opt (Wodr): Enable by default.
12218 2014-07-29 Olivier Hainque <hainque@adacore.com>
12220 * config/vxworksae.h (VXWORKS_OVERRIDE_OPTIONS): Define.
12222 2014-07-29 H.J. Lu <hongjiu.lu@intel.com>
12225 * gengtype.c (strtoken): New function.
12226 (create_user_defined_type): Replace strtok with strtoken.
12228 2014-07-29 Nathan Sidwell <nathan@acm.org>
12230 * gcov-io.c (gcov_var): Make hidden.
12231 * gcov-tool.c (gcov_list, gcov_exit): Remove declarations.
12232 (gcov_do_dump): Declare.
12233 (gcov_output_files): Call gcov_do_dump, not gcov_exit).
12235 2014-07-29 Martin Jambor <mjambor@suse.cz>
12237 * tree-sra.c (sra_modify_constructor_assign): Change type of stmt
12238 parameter to gimple.
12239 (sra_modify_assign): Likewise.
12241 2014-07-29 Richard Biener <rguenther@suse.de>
12243 PR middle-end/52478
12244 * expr.c (expand_expr_real_2): Revert last change.
12246 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12248 * cgraph.c (cgraph_node::create_indirect_edge): Copy speculative data.
12249 * cgraph.h (cgraph_indirect_call_info): Add speculative data.
12250 * gimple-fold.c (fold_gimple_assign): Fix check for virtual
12252 * ipa-devirt.c (ipa_dummy_polymorphic_call_context): Update
12253 (contains_type_p): Forward declare.
12254 (polymorphic_call_target_hasher::hash): Hash speculative info.
12255 (polymorphic_call_target_hasher::equal): Compare speculative info.
12256 (get_class_context): Handle speuclation.
12257 (contains_type_p): Update.
12258 (get_polymorphic_call_info_for_decl): Update.
12259 (walk_ssa_copies): Break out from ...
12260 (get_polymorphic_call_info): ... here; set speculative context
12262 * ipa-prop.c (ipa_write_indirect_edge_info,
12263 ipa_read_indirect_edge_info): Stream speculative context.
12264 * ipa-utils.h (ipa_polymorphic_call_context): Add speculative info
12265 (SPECULATIVE_OFFSET, SPECULATIVE_OUTER_TYPE,
12266 SPECULATIVE_MAYBE_DERIVED_TYPE).
12267 (possible_polymorphic_call_targets overriders): Update.
12268 (dump_possible_polymorphic_call_targets overriders): Update.
12269 (dump_possible_polymorphic_call_target_p overriders): Update.
12271 2014-07-28 Jan Hubicka <hubicka@ucw.cz>
12273 * gimple-fold.c (fold_gimple_assign): Fix condition guarding
12274 ipa-devirt path; fix thinko there.
12276 2014-07-28 Trevor Saunders <tsaunders@mozilla.com>
12278 * config/i386/i386.c (ix86_return_in_memory): Replace one
12279 ATTRIBUTE_UNUSED where the attribute can actually sometimes be unused.
12281 2014-07-28 Marek Polacek <polacek@redhat.com>
12283 * doc/invoke.texi (-Wno-odr): Fix @item entry. Tweak wording.
12285 2014-07-28 Peter Bergner <bergner@vnet.ibm.com>
12287 * config.gcc (powerpc*-*-linux*): Include gnu-user.h in tm_file.
12288 * config/rs6000/sysv4.h (CC1_SPEC): Undefine it before defining it.
12289 * config/rs6000/linux.h (CPLUSPLUS_CPP_SPEC): Delete define.
12290 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12291 (USE_LD_AS_NEEDED): Likewise.
12292 (ASM_APP_ON): Likewise.
12293 (ASM_APP_OFF): Likewise.
12294 (TARGET_POSIX_IO): Likewise.
12295 * config/rs6000/linux64.h (CPLUSPLUS_CPP_SPEC): Likewise.
12296 (LINK_GCC_C_SEQUENCE_SPEC): Likewise.
12297 (USE_LD_AS_NEEDED): Likewise.
12298 (ASM_APP_ON): Likewise.
12299 (ASM_APP_OFF): Likewise.
12300 (TARGET_POSIX_IO): Likewise.
12302 2014-07-28 Eric Botcazou <ebotcazou@adacore.com>
12304 PR middle-end/61734
12305 * fold-const.c (fold_comparison): Disable X - Y CMP 0 to X CMP Y for
12306 operators other than the equality operators.
12308 2014-07-28 Richard Biener <rguenther@suse.de>
12310 PR middle-end/52478
12311 * optabs.c (gen_int_libfunc): For -ftrapv libfuncs make
12312 sure to register SImode ones, not only >= word_mode ones.
12313 * expr.c (expand_expr_real_2): When expanding -ftrapv
12314 binops do not use OPTAB_LIB_WIDEN.
12316 2014-07-28 Richard Sandiford <rdsandiford@googlemail.com>
12318 PR middle-end/61919
12319 * tree-outof-ssa.c (insert_partition_copy_on_edge)
12320 (insert_value_copy_on_edge, insert_rtx_to_part_on_edge)
12321 (insert_part_to_rtx_on_edge): Copy partition_to_pseudo rtxes before
12322 inserting them in the insn stream.
12324 2014-07-28 Marek Polacek <polacek@redhat.com>
12326 PR middle-end/61913
12327 * common.opt (Wodr): Add Var.
12329 2014-07-28 Richard Biener <rguenther@suse.de>
12331 PR tree-optimization/61921
12332 * tree-ssa-structalias.c (create_variable_info_for_1): Check
12333 if there is a varpool node before dereferencing it.
12335 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12337 * graphite-sese-to-poly.c:
12338 (new_pbb_from_pbb): Set a new id of pbb1->domain (instead of using the
12339 id of the pbb), which contains pointer to the pbb1.
12341 * gcc.dg/graphite/isl-ast-gen-if-2.c: New testcase.
12343 2014-07-28 Roman Gareev <gareevroman@gmail.com>
12345 * graphite-isl-ast-to-gimple.c:
12346 (graphite_create_new_guard): New function.
12347 (translate_isl_ast_node_if): New function.
12348 (translate_isl_ast): Add calling of translate_isl_ast_node_if.
12350 * gcc.dg/graphite/isl-ast-gen-if-1.c: New testcase.
12352 2014-07-27 Anthony Green <green@moxielogic.com>
12354 * config.gcc: Add moxie-*-moxiebox* configuration.
12355 * config/moxie/moxiebox.h: New file.
12357 2014-07-26 Andrew Pinski <apinski@cavium.com>
12359 * config/aarch64/aarch64.md (*extr_insv_lower_reg<mode>): Remove +
12360 from the read only register.
12362 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12364 * ira-costs.c (find_costs_and_classes): For -O0, use the best class
12365 as the allocation class if it isn't likely to be spilled.
12367 2014-07-26 Richard Sandiford <rdsandiford@googlemail.com>
12369 * rtl.h (tls_referenced_p): Declare.
12370 * rtlanal.c (tls_referenced_p_1, tls_referenced_p): New functions.
12371 * config/mips/mips.c (mips_tls_symbol_ref_1): Delete.
12372 (mips_cannot_force_const_mem): Use tls_referenced_p.
12373 * config/pa/pa-protos.h (pa_tls_referenced_p): Delete.
12374 * config/pa/pa.h (CONSTANT_ADDRESS_P): Use tls_referenced_p
12375 instead of pa_tls_referenced_p.
12376 * config/pa/pa.c (hppa_legitimize_address, pa_cannot_force_const_mem)
12377 (pa_emit_move_sequence, pa_emit_move_sequence): Likewise.
12378 (pa_legitimate_constant_p): Likewise.
12379 (pa_tls_symbol_ref_1, pa_tls_referenced_p): Delete.
12380 * config/rs6000/rs6000.c (rs6000_tls_referenced_p): Delete.
12381 (rs6000_cannot_force_const_mem, rs6000_emit_move)
12382 (rs6000_address_for_altivec): Use tls_referenced_p instead of
12383 rs6000_tls_referenced_p.
12384 (rs6000_tls_symbol_ref_1): Delete.
12386 2014-07-26 Marc Glisse <marc.glisse@inria.fr>
12389 * simplify-rtx.c (simplify_binary_operation_1) <VEC_SELECT>:
12390 Optimize inverse of a VEC_CONCAT.
12392 2014-07-25 Xinliang David Li <davidxl@google.com>
12394 * params.def: New parameter.
12395 * coverage.c (get_coverage_counts): Check new flag.
12396 (coverage_compute_profile_id): Check new flag.
12397 (coverage_begin_function): Check new flag.
12398 (coverage_end_function): Check new flag.
12399 * value-prof.c (coverage_node_map_initialized_p): New function.
12400 (init_node_map): Populate map with all functions.
12401 * doc/invoke.texi: Document new parameter.
12403 2014-07-25 Jan Hubicka <hubicka@ucw.cz>
12404 Richard Biener <rguenther@suse.de>
12406 * lto-streamer-out.c (struct sccs): Turn to ...
12407 (class DFS): ... this one; refactor the DFS walk so it can
12408 be re-done on per-SCC basis.
12409 (DFS::DFS): New constructor.
12410 (DFS::~DFS): New destructor.
12411 (hash_tree): Add new MAP argument holding in-SCC hash values;
12412 remove POINTER_TYPE hashing hack.
12413 (scc_entry_compare): Rename to ...
12414 (DFS::scc_entry_compare): ... this one.
12415 (hash_scc): Rename to ...
12416 (DFS::hash_scc): ... this one; pass output_block instead
12417 of streamer_cache; work harder to get unique and stable SCC
12419 (DFS_write_tree): Rename to ...
12420 (DFS::DFS_write_tree): ... this one; add SINGLE_P parameter.
12421 (lto_output_tree): Update.
12423 2014-07-25 Andi Kleen <ak@linux.intel.com>
12425 * lto-streamer-out.c (hash_tree): Convert to inchash.
12427 2014-07-25 Andi Kleen <ak@linux.intel.com>
12429 * tree.c (build_type_attribute_qual_variant): Use inchash.
12430 (type_hash_list): Dito.
12431 (attribute_hash_list): Dito
12432 (iterative_hstate_expr): Dito.
12433 (iterative_hash_expr): Dito.
12434 (build_range_type_1): Dito.
12435 (build_array_type_1): Dito.
12436 (build_function_type): Dito.
12437 (build_method_type_directly): Dito.
12438 (build_offset_type): Dito.
12439 (build_complex_type): Dito.
12440 (make_vector_type): Dito.
12441 * tree.h (iterative_hash_expr): Add compat wrapper.
12442 (iterative_hstate_expr): Add.
12444 2014-07-25 Andi Kleen <ak@linux.intel.com>
12446 * Makefile.in (OBJS): Add inchash.o.
12447 (PLUGIN_HEADERS): Add inchash.h.
12448 * ipa-devirt.c: Include inchash.h.
12449 * lto-streamer-out.c: Dito.
12450 * tree-ssa-dom.c: Dito.
12451 * tree-ssa-pre.c: Dito.
12452 * tree-ssa-sccvn.c: Dito.
12453 * tree-ssa-tail-merge.c: Dito.
12455 * tree.c (iterative_hash_hashval_t): Move to ...
12456 (iterative_hash_host_wide_int): Move to ...
12457 * inchash.c: Here. New file.
12458 * tree.h (iterative_hash_hashval_t): Move to ...
12459 (iterative_hash_host_wide_int): Move to ...
12460 * inchash.h: Here. New file.
12462 2014-07-25 Richard Biener <rguenther@suse.de>
12464 PR middle-end/61762
12465 PR middle-end/61894
12466 * fold-const.c (native_encode_int): Add and handle offset
12467 parameter to do partial encodings of expr.
12468 (native_encode_fixed): Likewise.
12469 (native_encode_real): Likewise.
12470 (native_encode_complex): Likewise.
12471 (native_encode_vector): Likewise.
12472 (native_encode_string): Likewise.
12473 (native_encode_expr): Likewise.
12474 * fold-const.c (native_encode_expr): Add offset parameter
12476 * gimple-fold.c (fold_string_cst_ctor_reference): Remove.
12477 (fold_ctor_reference): Handle all reads from tcc_constant
12480 2014-07-25 Richard Biener <rguenther@suse.de>
12482 * tree-inline.c (estimate_move_cost): Mark speed_p argument
12483 as possibly unused.
12485 2014-07-23 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
12487 * config/avr/avr-c.c (avr_cpu_cpp_builtins): Add __AVR_DEVICE_NAME__.
12489 2014-07-24 Kyle McMartin <kyle@redhat.com>
12491 * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define.
12493 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12495 * config/rs6000/rs6000-protos.h (rs6000_special_adjust_field_align_p):
12497 * config/rs6000/rs6000.c (rs6000_special_adjust_field_align_p): New
12499 * config/rs6000/sysv4.h (ADJUST_FIELD_ALIGN): Call it.
12500 * config/rs6000/linux64.h (ADJUST_FIELD_ALIGN): Likewise.
12501 * config/rs6000/freebsd64.h (ADJUST_FIELD_ALIGN): Likewise.
12503 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12505 * config/rs6000/rs6000.c (rs6000_function_arg_boundary): In the AIX
12506 and ELFv2 ABI, do not use the "mode == BLKmode" check to test for
12507 aggregate types. Instead, *all* aggregate types, except for single-
12508 element or homogeneous float/vector aggregates, are quadword-aligned
12509 if required by their type alignment. Issue -Wpsabi note when a type
12510 is now treated differently than before.
12512 2014-07-24 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
12514 * config/rs6000/rs6000.c (rs6000_function_arg): If a float argument
12515 does not fit fully into floating-point registers, and there is still
12516 space in the register parameter area, use GPRs to pass those parts
12517 of the argument. Issue -Wpsabi note if any parameter is now treated
12518 differently than before.
12519 (rs6000_arg_partial_bytes): Update.
12521 2014-07-24 Uros Bizjak <ubizjak@gmail.com>
12523 * config/alpha/elf.h: Define TARGET_UNWIND_TABLES_DEFAULT.
12525 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12527 * rtl.h (target_rtl): Remove lang_dependent_initialized.
12528 * toplev.c (initialize_rtl): Don't use it. Move previously
12529 "language-dependent" calls to...
12530 (backend_init): ...here.
12531 (lang_dependent_init_target): Don't set lang_dependent_initialized.
12532 Assert that RTL initialization hasn't happend yet.
12534 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12536 PR rtl-optimization/61629
12537 * reginfo.c (reinit_regs): Only call ira_init and recog_init if
12538 they have already been initialized.
12540 2014-07-24 Richard Sandiford <rdsandiford@googlemail.com>
12542 PR middle-end/61268
12543 * function.c (assign_parm_setup_reg): Prevent invalid sharing of
12544 DECL_INCOMING_RTL and entry_parm.
12545 (get_arg_pointer_save_area): Likewise arg_pointer_save_area.
12546 * calls.c (load_register_parameters): Likewise argument values.
12547 (emit_library_call_value_1, store_one_arg): Likewise argument
12549 * config/i386/i386.c (assign_386_stack_local): Likewise the local
12551 * explow.c (validize_mem): Modify the argument in-place.
12553 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12555 * config/aarch64/aarch64.c (aarch64_popwb_single_reg): New function.
12556 (aarch64_expand_epilogue): Optimize epilogue when !frame_pointer_needed.
12558 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12560 * config/aarch64/aarch64.c (aarch64_pushwb_single_reg): New function.
12561 (aarch64_expand_prologue): Optimize prologue when !frame_pointer_needed.
12563 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12565 * config/aarch64/aarch64.c (aarch64_restore_callee_saves)
12566 (aarch64_save_callee_saves): New parameter "skip_wb".
12567 (aarch64_expand_prologue, aarch64_expand_epilogue): Update call site.
12569 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12571 * config/aarch64/aarch64.h (frame): New fields "wb_candidate1" and
12573 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize above.
12575 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12577 * graphite-isl-ast-to-gimple.c:
12578 (graphite_create_new_loop): Add calling of isl_id_free to properly
12579 decrement reference counts.
12581 * gcc.dg/graphite/isl-ast-gen-blocks-4.c: New testcase.
12583 2014-07-24 Martin Liska <mliska@suse.cz>
12584 * config/mips/mips.c (mips_start_unique_function): Correct cgraph_node
12586 * config/rs6000/rs6000.c (call_ABI_of_interest): Likewise.
12587 (rs6000_code_end): Likewise.
12589 2014-07-24 Martin Liska <mliska@suse.cz>
12591 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): Correct
12592 symtab_node funtion used.
12593 (rs6000_xcoff_declare_object_name): Likewise.
12595 2014-07-24 Martin Liska <mliska@suse.cz>
12597 * cgraphunit.c (compile): Correct function used.
12599 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12601 * lto-streamer-out.c (tree_is_indexable): Consider IMPORTED_DECL
12604 2014-07-24 Jan Hubicka <hubicka@ucw.cz>
12607 * varasm.c (bss_initializer_p): Handle offlined ctors.
12608 (align_variable, get_variable_align): Likewise.
12609 (make_decl_one_only): Likewise.
12610 (default_binds_local_p_1): Likewise.
12611 (decl_binds_to_current_def_p): Likewise.
12612 (get_variable_section): Get constructor if it is offlined.
12613 (assemble_variable_contents): Sanity check that the caller
12614 streamed in the ctor in LTO.
12616 2014-07-24 Roman Gareev <gareevroman@gmail.com>
12618 * graphite-isl-ast-to-gimple.c:
12619 (binary_op_to_tree): Add calling of translate_isl_ast_node_block.
12620 (gcc_expression_from_isl_expr_op): Move isl_ast_op_pdiv_q,
12621 isl_ast_op_pdiv_r to the different case.
12623 * gcc.dg/graphite/isl-ast-gen-blocks-3.c: New testcase.
12625 2014-07-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
12627 PR middle-end/61876
12628 * convert.c (convert_to_integer): Do not convert BUILT_IN_ROUND and cast
12629 when flag_errno_math is on.
12631 2014-07-24 Martin Liska <mliska@suse.cz>
12633 * cgraph.h (varpool_node):
12634 (availability get_availability (void)):
12635 created from cgraph_variable_initializer_availability
12636 (inline varpool_node *ultimate_alias_target (availability *availability = NULL)
12637 created from: cgraph_variable_initializer_availability
12638 (inline varpool_node *get_alias_target (void)): created from varpool_alias_target
12639 (void finalize_named_section_flags (void)):
12640 created from varpool_finalize_named_section_flags
12641 (bool assemble_decl (void)): created from varpool_assemble_decl
12642 (void analyze (void)): created from varpool_analyze_node
12643 (bool call_for_node_and_aliases (bool (*callback) (varpool_node *, void *),
12644 void *data, bool include_overwritable)): created fromvarpool_for_node_and_aliases
12645 (void remove_initializer (void)): created from varpool_remove_initializer
12646 (tree get_constructor (void)): created from varpool_get_constructor
12647 (bool externally_visible_p (void)): created from varpool_externally_visible_p
12648 (bool ctor_useable_for_folding_p (void)): created from varpool_ctor_useable_for_folding_p
12649 (inline bool all_refs_explicit_p ()): created from varpool_all_refs_explicit_p
12650 (inline bool can_remove_if_no_refs_p (void)): created from varpool_can_remove_if_no_refs
12651 (static inline varpool_node *get (const_tree decl)): created from varpool_get_node
12652 (static void finalize_decl (tree decl)): created from varpool_finalize_decl
12653 (static bool output_variables (void)): created from varpool_output_variables
12654 (static varpool_node * create_extra_name_alias (tree alias, tree decl)):
12655 created from varpool_extra_name_alias
12656 (static varpool_node * create_alias (tree, tree)): created from varpool_create_variable_alias
12657 (static void dump_varpool (FILE *f)): created from dump_varpool
12658 (static void DEBUG_FUNCTION debug_varpool (void)): created from debug_varpool
12659 (static varpool_node *create_empty (void)): created from varpool_create_empty_node
12660 (static varpool_node *get_create (tree decl)): created from varpool_node_for_decl
12661 (static varpool_node *get_for_asmname (tree asmname)): created from varpool_node_for_asm
12662 (void assemble_aliases (void)): created from assemble_aliases
12664 2014-07-24 Martin Liska <mliska@suse.cz>
12666 * cgraph.h (symtab_node):
12667 (void register_symbol (void)): created from symtab_register_node
12668 (void remove (void)): created from symtab_remove_node
12669 (void dump (FILE *f)): created from dump_symtab_node
12670 (void DEBUG_FUNCTION debug (void)): created from debug_symtab_node
12671 (void DEBUG_FUNCTION verify (void)): created from verify_symtab_node
12672 (struct ipa_ref *add_reference (symtab_node *referred_node,
12673 enum ipa_ref_use use_type)): created from add_reference
12674 (struct ipa_ref *add_reference (symtab_node *referred_node,
12675 enum ipa_ref_use use_type, gimple stmt)): created from add_reference
12676 (struct ipa_ref *maybe_add_reference (tree val, enum ipa_ref_use use_type,
12677 gimple stmt)): created from maybe_add_reference
12678 (bool semantically_equivalent_p (symtab_node *target)): created from
12679 symtab_semantically_equivalent_p
12680 (void remove_from_same_comdat_group (void)): created from
12681 remove_from_same_comdat_group
12682 (void add_to_same_comdat_group (symtab_node *old_node)): created from
12683 symtab_add_to_same_comdat_group
12684 (void dissolve_same_comdat_group_list (void)): created from
12685 symtab_dissolve_same_comdat_group_list
12686 (bool used_from_object_file_p (void)): created from symtab_used_from_object_file_p
12687 (symtab_node *ultimate_alias_target (enum availability *avail = NULL)):
12688 created from symtab_alias_ultimate_target
12689 (inline symtab_node *next_defined_symbol (void)): created from
12690 symtab_next_defined_symbol
12691 (bool resolve_alias (symtab_node *target)): created from
12692 symtab_resolve_alias
12693 (bool call_for_symbol_and_aliases (bool (*callback) (symtab_node *, void *),
12694 void *data, bool include_overwrite)): created from symtab_for_node_and_aliases
12695 (symtab_node *noninterposable_alias (void)): created from symtab_nonoverwritable_alias
12696 (inline symtab_node *get_alias_target (void)): created from symtab_alias_target
12697 (void set_section (const char *section)): created from set_section_1
12698 (enum availability get_availability (void)): created from symtab_node_availability
12699 (void make_decl_local (void)): created from symtab_make_decl_local
12700 (bool real_symbol_p (void)): created from symtab_read_node
12701 (can_be_discarded_p (void)): created from symtab_can_be_discarded
12702 (inline bool comdat_local_p (void)): created from symtab_comdat_local_p
12703 (inline bool in_same_comdat_group_p (symtab_node *target)): created from
12704 symtab_in_same_comdat_p;
12705 (bool address_taken_from_non_vtable_p (void)): created from
12706 address_taken_from_non_vtable_p
12707 (static inline symtab_node *get (const_tree decl)): created from symtab_get_node
12708 (static void dump_table (FILE *)): created from dump_symtab
12709 (static inline DEBUG_FUNCTION void debug_symtab (void)): created from debug_symtab
12710 (static DEBUG_FUNCTION void verify_symtab_nodes (void)): created from verify_symtab
12711 (static bool used_from_object_file_p_worker (symtab_node *node)): created from
12712 symtab_used_from_object_file_p
12713 (void dump_base (FILE *)): created from dump_symtab_base
12714 (bool DEBUG_FUNCTION verify_base (void)): created from verify_symtab_base
12715 (void unregister (void)): created from symtab_unregister_node
12716 (struct symbol_priority_map *priority_info (void)): created from symtab_priority_info
12717 (static bool set_implicit_section (symtab_node *n, void *)): created from set_implicit_section
12718 (static bool noninterposable_alias (symtab_node *node, void *data)): created from
12719 symtab_nonoverwritable_alias_1
12720 * cgraph.h (cgraph_node):
12721 (bool remove_symbol_and_inline_clones (cgraph_node *forbidden_node = NULL)):
12722 created from cgraph_remove_node_and_inline_clones
12723 (void record_stmt_references (gimple stmt)): created from ipa_record_stmt_references
12724 (void set_call_stmt_including_clones (gimple old_stmt, gimple new_stmt,
12725 bool update_speculative = true)): created from cgraph_set_call_stmt_including_clones
12726 (cgraph_node *function_symbol (enum availability *avail = NULL)):
12727 created from cgraph_function_node
12728 (cgraph_node *create_clone (tree decl, gcov_type count, int freq, bool update_original,
12729 vec<cgraph_edge *> redirect_callers, bool call_duplication_hook,
12730 struct cgraph_node *new_inlined_to, bitmap args_to_skip)):
12731 created from cgraph_create_clone
12732 (cgraph_node *create_virtual_clone (vec<cgraph_edge *> redirect_callers,
12733 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, const char * suffix)):
12734 created from cgraph_create_virtual_clone
12735 (cgraph_node *find_replacement (void)): created from cgraph_find_replacement_node
12736 (cgraph_node *create_version_clone (tree new_decl, vec<cgraph_edge *> redirect_callers,
12737 bitmap bbs_to_copy)): created from cgraph_copy_node_for_versioning
12738 (cgraph_node *create_version_clone_with_body (vec<cgraph_edge *> redirect_callers,
12739 vec<ipa_replace_map *, va_gc> *tree_map, bitmap args_to_skip, bool skip_return,
12740 bitmap bbs_to_copy, basic_block new_entry_block, const char *clone_name)):
12741 created from cgraph_function_version_info
12742 (struct cgraph_function_version_info *insert_new_function_version (void)):
12743 created from insert_new_cgraph_node_version
12744 (struct cgraph_function_version_info *function_version (void)): created from
12745 get_cgraph_node_version
12746 (void analyze (void)): created from analyze_function
12747 (cgraph_node * create_thunk (tree alias, tree, bool this_adjusting,
12748 HOST_WIDE_INT fixed_offset, HOST_WIDE_INT virtual_value, tree virtual_offset,
12749 tree real_alias) cgraph_add_thunk
12750 (inline cgraph_node *get_alias_target (void)): created from cgraph_alias_target
12751 (cgraph_node *ultimate_alias_target (availability *availability = NULL)):
12752 created from cgraph_function_or_thunk_node
12753 (bool expand_thunk (bool output_asm_thunks, bool force_gimple_thunk)):
12754 created from expand_thunk
12755 (void reset (void)): created from cgraph_reset_node
12756 (void create_wrapper (cgraph_node *target)): created from cgraph_make_wrapper
12757 (void DEBUG_FUNCTION verify_node (void)): created from verify_cgraph_node
12758 (void remove (void)): created from cgraph_remove_node
12759 (void dump (FILE *f)): created from dump_cgraph_node
12760 (void DEBUG_FUNCTION debug (void)): created from debug_cgraph_node
12761 (bool get_body (void)): created from cgraph_get_body
12762 (void release_body (void)): created from cgraph_release_function_body
12763 (void unnest (void)): created from cgraph_unnest_node
12764 (void make_local (void)): created from cgraph_make_node_local
12765 (void mark_address_taken (void)): created from cgraph_mark_address_taken_node
12766 (struct cgraph_edge *create_edge (cgraph_node *callee, gimple call_stmt,
12767 gcov_type count, int freq)): created from cgraph_create_edge
12768 (struct cgraph_edge *create_indirect_edge (gimple call_stmt, int ecf_flags,
12769 gcov_type count, int freq)): created from cgraph_create_indirect_edge
12770 (void create_edge_including_clones (struct cgraph_node *callee, gimple old_stmt,
12771 gimple stmt, gcov_type count, int freq, cgraph_inline_failed_t reason)):
12772 created from cgraph_create_edge_including_clones
12773 (cgraph_edge *get_edge (gimple call_stmt)): created from cgraph_edge
12774 (vec<cgraph_edge *> collect_callers (void)): created from collect_callers_of_node
12775 (void remove_callers (void)): created from cgraph_node_remove_callers
12776 (void remove_callees (void)): created from cgraph_node_remove_callees
12777 (enum availability get_availability (void)): created from cgraph_function_body_availability
12778 (void set_nothrow_flag (bool nothrow)): created from cgraph_set_nothrow_flag
12779 (void set_const_flag (bool readonly, bool looping)): created from cgraph_set_const_flag
12780 (void set_pure_flag (bool pure, bool looping)): created from cgraph_set_pure_flag
12781 (void call_duplication_hooks (cgraph_node *node2)): created from
12782 cgraph_call_node_duplication_hooks
12783 (bool call_for_symbol_and_aliases (bool (*callback) (cgraph_node *, void *),
12784 void *data, bool include_overwritable)): created from cgraph_for_node_and_aliases
12785 (bool call_for_symbol_thunks_and_aliases (bool (*callback) (cgraph_node *node, void *data),
12786 void *data, bool include_overwritable)): created from cgraph_for_node_thunks_and_aliases
12787 (void call_function_insertion_hooks (void)):
12788 created from cgraph_call_function_insertion_hooks
12789 (inline void mark_force_output (void)): created from cgraph_mark_force_output_node
12790 (bool local_p (void)): created from cgraph_local_node
12791 (bool can_be_local_p (void)): created from cgraph_node_can_be_local_p
12792 (bool cannot_return_p (void)): created from cgraph_node_cannot_return
12793 (bool only_called_directly_p (void)): created from cgraph_only_called_directly_p
12794 (inline bool only_called_directly_or_aliased_p (void)):
12795 created from cgraph_only_called_directly_or_aliased_p
12796 (bool will_be_removed_from_program_if_no_direct_calls_p (void)):
12797 created from cgraph_will_be_removed_from_program_if_no_direct_calls
12798 (bool can_remove_if_no_direct_calls_and_refs_p (void)):
12799 created from cgraph_can_remove_if_no_direct_calls_and_refs_p
12800 (bool can_remove_if_no_direct_calls_p (void)):
12801 created from cgraph_can_remove_if_no_direct_calls_p
12802 (inline bool has_gimple_body_p (void)):
12803 created from cgraph_function_with_gimple_body_p
12804 (bool optimize_for_size_p (void)): created from cgraph_optimize_for_size_p
12805 (static void dump_cgraph (FILE *f)): created from dump_cgraph
12806 (static inline void debug_cgraph (void)): created from debug_cgraph
12807 (static void record_function_versions (tree decl1, tree decl2)):
12808 created from record_function_versions
12809 (static void delete_function_version (tree decl)):
12810 created from delete_function_version
12811 (static void add_new_function (tree fndecl, bool lowered)):
12812 created from cgraph_add_new_function
12813 (static inline cgraph_node *get (const_tree decl)): created from cgraph_get_node
12814 (static cgraph_node * create (tree decl)): created from cgraph_create_node
12815 (static cgraph_node * create_empty (void)): created from cgraph_create_empty_node
12816 (static cgraph_node * get_create (tree)): created from cgraph_get_create_node
12817 (static cgraph_node *get_for_asmname (tree asmname)):
12818 created from cgraph_node_for_asm
12819 (static cgraph_node * create_same_body_alias (tree alias, tree decl)):
12820 created from cgraph_same_body_alias
12821 (static bool used_from_object_file_p_worker (cgraph_node *node,
12822 void *): new function
12823 (static bool non_local_p (cgraph_node *node, void *)):
12824 created from cgraph_non_local_node_p_1
12825 (static void DEBUG_FUNCTION verify_cgraph_nodes (void)):
12826 created from verify_cgraph
12827 (static bool make_local (cgraph_node *node, void *)):
12828 created from cgraph_make_node_local
12829 (static cgraph_node *create_alias (tree alias, tree target)):
12830 created from cgraph_create_function_alias
12831 (static cgraph_edge * create_edge (cgraph_node *caller, cgraph_node *callee,
12832 gimple call_stmt, gcov_type count, int freq, bool indir_unknown_callee)):
12833 created from cgraph_create_edge_1
12834 * cgraph.h (varpool_node):
12835 (void remove (void)): created from varpool_remove_node
12836 (void dump (FILE *f)): created from dump_varpool_node
12838 2014-07-24 Richard Biener <rguenther@suse.de>
12841 * tree-ssa-structalias.c (create_variable_info_for_1):
12842 Use varpool_get_constructor.
12843 (create_variable_info_for): Likewise.
12845 2014-07-24 Jiong Wang <jiong.wang@arm.com>
12847 * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't
12848 subtract outgoing area size when restoring stack_pointer_rtx.
12850 2014-07-24 Nick Clifton <nickc@redhat.com>
12852 * config/rx/rx.md (stack_push): Adjust RTL to account for the fact
12853 that operations are taking place in parallel.
12854 * config/rx.h (FRAME_POINTER_CFA_OFFSET): Delete.
12856 2014-07-24 Thomas Schwinge <thomas@codesourcery.com>
12858 * omp-low.c (extract_omp_for_data): Add missing break statement.
12860 2014-07-24 Richard Biener <rguenther@suse.de>
12862 * tree-inline.h (estimate_move_cost): Add speed_p parameter.
12863 * tree-inline.c (estimate_move_cost): Add speed_p parameter
12864 and adjust MOVE_RATIO query accordingly.
12865 (estimate_num_insns): Adjust callers.
12866 * ipa-prop.c (ipa_populate_param_decls): Likewise.
12867 * ipa-cp.c (gather_context_independent_values,
12868 estimate_local_effects): Likewise.
12869 * ipa-split.c (consider_split): Likewise.
12871 2014-07-24 Trevor Saunders <tsaunders@mozilla.com>
12873 * config/i386/driver-i386.c: Remove names of unused arguments and
12874 unnecessary unused attributes.
12875 * config/i386/host-mingw32.c: Likewise.
12876 * config/i386/i386.c: Likewise.
12877 * config/i386/winnt-stubs.c: Likewise.
12878 * config/i386/winnt.c: Likewise.
12880 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12882 * config/aarch64/aarch64.c (aarch64_popwb_pair_reg)
12883 (aarch64_gen_loadwb_pair): New helper function.
12884 (aarch64_expand_epilogue): Simplify code using new helper functions.
12885 * config/aarch64/aarch64.md (loadwb_pair<GPF:mode>_<P:mode>): Define.
12887 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12889 * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg)
12890 (aarch64_gen_storewb_pair): New helper function.
12891 (aarch64_expand_prologue): Simplify code using new helper functions.
12892 * config/aarch64/aarch64.md (storewb_pair<GPF:mode>_<P:mode>): Define.
12894 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12896 * config/aarch64/aarch64.md: (aarch64_save_or_restore_callee_saves):
12897 Rename to aarch64_save_callee_saves, remove restore code.
12898 (aarch64_restore_callee_saves): New function.
12900 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12902 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Deleted.
12903 (aarch64_save_callee_saves): New function to handle reg save
12904 for both core and vectore regs.
12906 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12908 * config/aarch64/aarch64.c (aarch64_gen_load_pair)
12909 (aarch64_gen_store_pair): New helper function.
12910 (aarch64_save_or_restore_callee_save_registers)
12911 (aarch64_save_or_restore_fprs): Use new helper functions.
12913 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12915 * config/aarch64/aarch64.c (aarch64_next_callee_save): New function.
12916 (aarch64_save_or_restore_callee_save_registers)
12917 (aarch64_save_or_restore_fprs): Use aarch64_next_callee_save.
12919 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12921 * config/aarch64/aarch64.c
12922 (aarch64_save_or_restore_callee_save_registers)
12923 (aarch64_save_or_restore_fprs): Hoist calculation of register rtx.
12925 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12927 * config/aarch64/aarch64.c
12928 (aarch64_save_or_restore_callee_save_registers)
12929 (aarch64_save_or_restore_fprs): Remove 'increment'.
12931 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12933 * config/aarch64/aarch64.c
12934 (aarch64_save_or_restore_callee_save_registers)
12935 (aarch64_save_or_restore_fprs): Use register offset in
12936 cfun->machine->frame.reg_offset.
12938 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12940 * config/aarch64/aarch64.c
12941 (aarch64_save_or_restore_callee_save_registers)
12942 (aarch64_save_or_restore_fprs): Remove base_rtx.
12944 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12946 * config/aarch64/aarch64.c
12947 (aarch64_save_or_restore_callee_save_registers): Rename 'offset'
12948 to 'start_offset'. Remove local variable 'start_offset'.
12950 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12952 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Change
12953 type to HOST_WIDE_INT.
12955 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12957 * config/aarch64/aarch64.c (aarch64_expand_prologue)
12958 (aarch64_save_or_restore_fprs)
12959 (aarch64_save_or_restore_callee_save_registers): GNU-Stylize code.
12961 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12963 * config/arm/t-rtems-eabi: Add
12964 mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard,
12965 mthumb/march=armv7-m/mfpu=fpv4-sp-d16/mfloat-abi=hard,
12966 mbig-endian/mthumb/march=armv7-r, and
12967 mbig-endian/mthumb/march=armv7-r/mfpu=vfpv3-d16/mfloat-abi=hard
12970 2014-07-23 Sebastian Huber <sebastian.huber@embedded-brains.de>
12971 Chris Johns <chrisj@rtems.org>
12972 Joel Sherrill <joel.sherrill@oarcorp.com>
12974 * config.gcc: Add nios2-*-rtems*.
12975 * config/nios2/rtems.h: New file.
12976 * gcc/config/nios2/t-rtems: New file.
12978 2014-07-23 Segher Boessenkool <segher@kernel.crashing.org>
12981 * config/rs6000/rs6000.c (paired_expand_vector_init): Only allow
12982 constant numbers, not general constants.
12983 (rs6000_expand_vector_init): Ditto.
12985 2014-07-23 Nathan Sidwell <nathan@acm.org>
12987 * gcov-tool.c (gcov_list): Declare here.
12988 (set_gcov_list): Remove.
12989 (gcov_output_files): Set gcov_list directly.
12991 2014-07-23 Host Schirmeier <horst@schirmeier.com>
12993 * doc/invoke.texi: -O3 enables -ftree-loop-distribute-patterns.
12995 2014-07-23 Jiong Wang <jiong.wang@arm.com>
12997 * config/arm/arm.c (arm_get_frame_offsets): If both r3 and other
12998 callee-saved registers are available for padding purpose
12999 and r3 is not mandatory, then prefer use those callee-saved
13002 2014-07-23 Richard Biener <rguenther@suse.de>
13004 * params.def (PARAM_MAX_COMBINE_INSNS): New.
13005 * combine.c: Include statistics.h and params.h.
13006 (combine_instructions): Guard three and four insn combines
13007 with max-combine-insns value. Record statistics for combines
13009 * doc/invoke.texi (max-combine-insns): Document new param.
13011 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13013 * graphite-isl-ast-to-gimple.c:
13014 (translate_isl_ast_node_block): New function.
13015 (translate_isl_ast): Add calling of translate_isl_ast_node_block.
13017 * gcc.dg/graphite/isl-ast-gen-blocks-1.c: New testcase.
13018 * gcc.dg/graphite/isl-ast-gen-blocks-2.c: New testcase.
13020 2014-07-23 Roman Gareev <gareevroman@gmail.com>
13022 * graphite-isl-ast-to-gimple.c:
13023 (get_max_schedule_dimensions): New function.
13024 (extend_schedule): Likewise.
13025 (generate_isl_schedule): Add calling of extend_schedule and
13026 get_max_schedule_dimensions.
13028 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13030 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle CLRSB, CLZ.
13031 (case UNSPEC): Handle UNSPEC_RBIT.
13033 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13035 * config/aarch64/aarch64.md: Delete UNSPEC_CLS.
13036 (clrsb<mode>2): Use clrsb RTL code instead of UNSPEC_CLS.
13038 2014-07-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13040 * config/aarch64/arm_neon.h (vbsl_f64): New intrinsic.
13042 2014-07-22 Roman Gareev <gareevroman@gmail.com>
13044 * graphite-isl-ast-to-gimple.c:
13045 Add inclusion of gimple-ssa.h, tree-into-ssa.h.
13046 (ivs_params_clear):
13047 (build_iv_mapping): New function.
13048 (translate_isl_ast_node_user): Likewise.
13049 (translate_isl_ast): Add calling of translate_isl_ast_node_user.
13051 * gcc.dg/graphite/isl-ast-gen-single-loop-1.c: New testcase.
13052 * gcc.dg/graphite/isl-ast-gen-single-loop-2.c: New testcase.
13053 * gcc.dg/graphite/isl-ast-gen-single-loop-3.c: New testcase.
13055 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13058 * config/arm/arm.md (setmem): New pattern.
13059 * config/arm/arm-protos.h (struct tune_params): New fields.
13060 (arm_gen_setmem): New prototype.
13061 * config/arm/arm.c (arm_slowmul_tune): Initialize new fields.
13062 (arm_fastmul_tune, arm_strongarm_tune, arm_xscale_tune): Ditto.
13063 (arm_9e_tune, arm_v6t2_tune, arm_cortex_tune): Ditto.
13064 (arm_cortex_a8_tune, arm_cortex_a7_tune): Ditto.
13065 (arm_cortex_a15_tune, arm_cortex_a53_tune): Ditto.
13066 (arm_cortex_a57_tune, arm_cortex_a5_tune): Ditto.
13067 (arm_cortex_a9_tune, arm_cortex_a12_tune): Ditto.
13068 (arm_v7m_tune, arm_v6m_tune, arm_fa726te_tune): Ditto.
13069 (arm_const_inline_cost): New function.
13070 (arm_block_set_max_insns): New function.
13071 (arm_block_set_non_vect_profit_p): New function.
13072 (arm_block_set_vect_profit_p): New function.
13073 (arm_block_set_unaligned_vect): New function.
13074 (arm_block_set_aligned_vect): New function.
13075 (arm_block_set_unaligned_non_vect): New function.
13076 (arm_block_set_aligned_non_vect): New function.
13077 (arm_block_set_vect, arm_gen_setmem): New functions.
13079 2014-07-21 Bin Cheng <bin.cheng@arm.com>
13081 * config/arm/arm.c (output_move_neon): Handle REG explicitly.
13083 2014-07-21 Uros Bizjak <ubizjak@gmail.com>
13086 * config/i386/avx512fintrin.h: Move constants for mantissa extraction
13087 out of #ifdef __OPTIMIZE__.
13089 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13091 * cse.c (exp_equiv_p) <MEM>: For GCSE, return 0 for expressions with
13092 different trapping status if -fnon-call-exceptions is enabled.
13094 2014-07-20 Eric Botcazou <ebotcazou@adacore.com>
13096 * expr.c (store_field): Handle VOIDmode for calls that return values
13097 in multiple locations.
13099 2014-07-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
13101 * config/rs6000/altivec.md (unspec enum): Fix typo in UNSPEC_VSLDOI.
13102 (altivec_vsldoi_<mode>): Likewise.
13104 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13106 * graphite-isl-ast-to-gimple.c: Fixes a formatting issue related
13107 to the number of characters in the line.
13109 2014-07-20 Roman Gareev <gareevroman@gmail.com>
13111 * graphite-isl-ast-to-gimple.c: Add using of
13112 build_nonstandard_integer_type instead of int128_integer_type_node.
13114 2014-07-19 Eric Botcazou <ebotcazou@adacore.com>
13116 * toplev.c (output_stack_usage): Adjust the location of the warning.
13118 2014-07-19 Daniel Cederman <cederman@gaisler.com>
13120 * config/sparc/sync.md (*membar_storeload_leon3): New insn.
13121 (*membar_storeload): Disable for LEON3.
13123 2014-07-18 Bernd Edlinger <bernd.edlinger@hotmail.de>
13125 PR rtl-optimization/61461
13126 * sched-vis.c (print_pattern) <ADDR_VEC, ADDR_DIFF_VEC>: Fixed.
13128 2014-07-18 Uros Bizjak <ubizjak@gmail.com>
13131 * config/i386/sse.md (avx512f_vextract<shuffletype>32x4_1_maskm):
13132 Fix instruction constraint.
13133 (<mask_codefor>avx512f_vextract<shuffletype>32x4_1<mask_name>): Ditto.
13135 2014-07-18 Jonathan Wakely <jwakely@redhat.com>
13137 * doc/extend.texi (Template Instantiation): Remove stray parenthesis.
13139 2014-07-18 Chung-Ju Wu <jasonwucj@gmail.com>
13141 * config/nds32/nds32.c (nds32_can_eliminate): Follow the
13142 GNU coding standards.
13143 (nds32_register_move_cost): Likewise.
13144 (nds32_memory_move_cost): Likewise.
13145 (nds32_address_cost): Likewise.
13147 2014-07-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
13149 * config/mmix/mmix.c (mmix_intval): Drop unused automatic variable.
13151 2014-07-17 John David Anglin <danglin@gcc.gnu.org>
13153 * config/pa/pa-linux.h (TARGET_OS_CPP_BUILTINS): Remove defines for
13154 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1, __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2
13155 and __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4.
13156 (HAVE_sync_compare_and_swapqi): Define.
13157 (HAVE_sync_compare_and_swaphi): Likewise.
13158 (HAVE_sync_compare_and_swapsi): Likewise.
13160 2014-07-17 Richard Sandiford <rdsandiford@googlemail.com>
13162 * config/mips/p5600.md: Add missing cpu tests.
13164 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13166 * config/aarch64/arm_neon.h (vfma_f64): New intrinsic.
13167 (vmla_f64): Likewise.
13168 (vfms_f64): Likewise.
13169 (vmls_f64): Likewise.
13171 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13173 * config/aarch64/aarch64.c (aarch64_frint_unspec_p): New function.
13174 (aarch64_rtx_costs): Handle FIX, UNSIGNED_FIX, UNSPEC.
13176 2014-07-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13178 * config/aarch64/arm_neon.h (vmlal_high_lane_s16): Fix type.
13179 (vmlal_high_lane_s32): Likewise.
13180 (vmlal_high_lane_u16): Likewise.
13181 (vmlal_high_lane_u32): Likewise.
13182 (vmlsl_high_lane_s16): Likewise.
13183 (vmlsl_high_lane_s32): Likewise.
13184 (vmlsl_high_lane_u16): Likewise.
13185 (vmlsl_high_lane_u32): Likewise.
13187 2014-07-17 Terry Guo <terry.guo@arm.com>
13189 * config/arm/types.md (alu_reg): Replaced by alu_sreg and alu_dsp_reg.
13190 (alus_reg): Renamed to alus_sreg.
13191 * config/arm/arm-fixed.md: Change type of non-dsp instructions
13192 from alu_reg to alu_sreg. Change type of dsp instructions from
13193 alu_reg to alu_dsp_reg.
13194 * config/arm/thumb1.md: Likewise.
13195 * config/arm/thumb2.md: Likewise.
13196 * config/arm/arm.c (cortexa7_older_only): Use new ALU type names.
13197 * config/arm/arm1020e.md (1020alu_op): Replace alu_reg and alus_reg
13198 with alu_sreg and alus_sreg.
13199 * config/arm/arm1026ejs.md (alu_op): Likewise.
13200 * config/arm/arm1136jfs.md (11_alu_op): Likewise.
13201 * config/arm/arm926ejs.md (9_alu_op): Likewise.
13202 * config/arm/fa526.md (526_alu_op): Likewise.
13203 * config/arm/fa606te.md (606te_alu_op): Likewise.
13204 * config/arm/fa626te.md (626te_alu_op): Likewise.
13205 * config/arm/fa726te.md (726te_alu_op): Likewise.
13206 * config/arm/fmp626.md (mp626_alu_op): Likewise.
13207 * config/arm/arm.md (core_cycles): Replace alu_reg and alus_reg with
13208 alu_sreg, alu_dsp_reg and alus_sreg.
13209 * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
13210 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13211 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13212 * config/arm/cortex-a7.md (cortex_a7_alu_sreg): Likewise.
13213 * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
13214 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13215 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13216 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13217 * config/arm/marvell-pj4.md (pj4_alu, pj4_alu_conds): Likewise.
13218 * config/aarch64/aarch64.md (*addsi3_aarch64, *addsi3_aarch64_uxtw,
13219 subsi3, *adddi3_aarch64, *subsi3_uxtw, subdi3, absdi2, neg<mode>2,
13220 *negsi2_uxtw, tlsle_small_<mode>): Rename type alu_reg to alu_sreg.
13221 (add<mode>3_compare0, *addsi3_compare0_uxtw, *add<mode>3nr_compare0,
13222 sub<mode>3_compare0, *compare_neg<mode>, *neg<mode>2_compare0,
13223 subsi3_compare0_uxtw, *negsi2_compare0_uxtw, *cmp<mode>): Rename type
13224 alus_reg to alus_sreg.
13226 2014-07-17 Andreas Schwab <schwab@linux-m68k.org>
13228 * real.c (encode_ieee_extended_motorola): Clear integer bit in the
13231 2014-07-17 Richard Biener <rguenther@suse.de>
13233 PR rtl-optimization/61801
13234 * sched-deps.c (sched_analyze_2): For ASM_OPERANDS and ASM_INPUT
13235 don't set reg_pending_barrier if it appears in a debug-insn.
13237 2014-07-16 DJ Delorie <dj@redhat.com>
13239 * config/rx/rx.c (rx_option_override): Fix alignment values.
13240 (rx_align_for_label): Likewise.
13242 2014-07-17 Hans-Peter Nilsson <hp@axis.com>
13245 * config/cris/cris.c (TARGET_LEGITIMATE_CONSTANT_P)
13246 (TARGET_CANNOT_FORCE_CONST_MEM): Define.
13247 (cris_cannot_force_const_mem, cris_legitimate_constant_p): New
13249 (cris_print_index, cris_print_operand, cris_constant_index_p)
13250 (cris_side_effect_mode_ok): Replace CONSTANT_P with CRIS_CONSTANT_P.
13251 (cris_address_cost): Ditto last CONSTANT_P.
13252 (cris_symbol_type_of): Rename from cris_pic_symbol_type_of. All
13253 callers changed. Yield cris_offsettable_symbol for non-PIC
13254 constant symbolic expressions including labels. Yield cris_unspec
13256 (cris_expand_pic_call_address): New parameter MARKERP. Set its
13257 target to pic_offset_table_rtx for calls that will likely go
13258 through PLT, const0_rtx when they can't. All callers changed.
13259 Assert flag_pic. Use CONSTANT_P, not CONSTANT_ADDRESS_P, for
13260 symbolic expressions to be PICified. Remove second, redundant,
13261 assert on can_create_pseudo_p returning non-zero. Use
13262 replace_equiv_address_nv, not replace_equiv_address, for final
13264 * config/cris/cris.md ("movsi"): Move variable t to pattern
13265 toplevel. Adjust assert for new cris_symbol_type member. Use
13266 CONSTANT_P instead of CONSTANT_ADDRESS_P.
13267 ("*movsi_internal") <case 9>: Make check for valid unspec operands
13269 <case CRIS_UNSPEC_PCREL, CRIS_UNSPEC_PLT_PCREL>: Clear condition codes.
13270 ("call", "call_value"): Use second incoming operand as a marker
13271 for pic-offset-table-register being used.
13272 ("*expanded_call_non_v32", "*expanded_call_v32")
13273 ("*expanded_call_value_non_v32", "*expanded_call_value_v32"): For
13274 second incoming operand to CALL, match cris_call_type_marker.
13275 ("*expanded_call_value_side"): Ditto. Disable before reload_completed.
13276 ("*expanded_call_side"): Ditto. Fix typo in comment.
13277 (moverside, movemside peepholes): Check for CRIS_CONSTANT_P, not
13279 * config/cris/predicates.md ("cris_call_type_marker"): New predicate.
13280 * config/cris/cris.h (CRIS_CONSTANT_P): New macro.
13281 (enum cris_symbol_type): Rename from cris_pic_symbol_type. All
13282 users changed. Add members cris_offsettable_symbol and cris_unspec.
13283 (cris_symbol_type): Rename from cris_pic_symbol_type.
13284 * config/cris/constraints.md ("T"): Use CRIS_CONSTANT_P, not
13286 * config/cris/cris-protos.h (cris_symbol_type_of,
13287 cris_expand_pic_call_address): Adjust prototypes.
13288 (cris_legitimate_constant_p): New prototype.
13290 * config.gcc (crisv32-*-linux* | cris-*-linux*): Do not override
13291 an existing tmake_file. Don't add t-slibgcc and t-linux.
13293 2014-07-17 Jason Merrill <jason@redhat.com>
13296 * symtab.c (symtab_remove_from_same_comdat_group): Also
13297 set_comdat_group to NULL_TREE.
13298 (verify_symtab): Fix diagnostic.
13300 2014-07-16 David Wohlferd <dw@LimeGreenSocks.com>
13303 * config/i386/ia32intrin.h: Use __LP64__ to determine size of long.
13305 2014-07-16 Dodji Seketeli <dodji@redhat.com>
13307 Support location tracking for built-in macro tokens
13308 * input.h (is_location_from_builtin_token): New function declaration.
13309 * input.c (is_location_from_builtin_token): New function definition.
13310 * toplev.c (general_init): Tell libcpp what the pre-defined
13311 spelling location for built-in tokens is.
13313 2014-07-16 Jakub Jelinek <jakub@redhat.com>
13315 * omp-low.c (create_omp_child_function): Don't set DECL_NAMELESS
13316 on the FUNCTION_DECL.
13318 2014-07-16 Richard Biener <rguenther@suse.de>
13321 * doc/extend.texi (always_inline): Clarify.
13323 2014-07-15 Eric Christopher <echristo@gmail.com>
13325 * doc/invoke.texi (Link Options): Document -z option.
13327 2014-07-15 Uros Bizjak <ubizjak@gmail.com>
13329 * config/alpha/alpha.c (alpha_atomic_assign_expand_fenv): New.
13330 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
13332 2014-07-15 Jan Hubicka <hubicka@ucw.cz>
13334 * fold-const.c (fold_checksum_tree): Fix typo in previous patch.
13336 2014-07-15 Bernd Schmidt <bernds@codesourcery.com>
13338 * asan.c (asan_finish_file): Use varpool_finalize_decl instead of
13339 varpool_assemble_decl.
13340 * varpool.c (varpool_assemble_decl): Assert that node->definition is
13343 2014-07-15 Michael Matz <matz@suse.de>
13345 PR rtl-optimization/61772
13346 * ifcvt.c (dead_or_predicable): Check jump to be free of side effects.
13348 2014-07-15 Richard Biener <rguenther@suse.de>
13350 * opts.c (default_options_table): Disable bit-ccp at -Og.
13352 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13354 * fold-const.c (fold_checksum_tree): Move checking of DECL_RESULT.
13356 2014-07-14 Jan Hubicka <hubicka@ucw.cz>
13358 * tree.c (tree_code_size): Add TRANSLATION_UNIT_DECL,
13359 NAMESPACE_DECL, IMPORTED_DECL and NAMELIST_DECL;
13360 call langhook for unknown declaration.
13361 (find_decls_types_r): Do not walk DECL_ARGUMENT_FLD.
13362 * tree.h (DECL_ARGUMENTS): Update.
13363 * print-tree.c (print_node): Update.
13364 * tree-core.h (tree_decl_non_common): Remove arguments.
13365 (tree_function_decl): Add arguments.
13367 2014-07-14 Richard Earnshaw <rearnsha@arm.com>
13369 * aarch64.md (add_losym_<mode>): Set type to alu_imm.
13371 2014-07-14 Richard Biener <rguenther@suse.de>
13373 PR tree-optimization/61779
13374 * tree-ssa-copy.c (copy_prop_visit_cond_stmt): Always try
13375 simplifying a condition.
13377 2014-07-14 Richard Biener <rguenther@suse.de>
13379 * builtins.c (c_strlen): Make only_value == 2 really only
13380 affect warning generation.
13382 2014-07-14 Richard Biener <rguenther@suse.de>
13384 PR tree-optimization/61757
13385 PR tree-optimization/61783
13386 PR tree-optimization/61787
13387 * tree-ssa-dom.c (record_equality): Revert canonicalization
13388 change and add comment.
13389 (propagate_rhs_into_lhs): Revert previous fix, removing
13390 loop depth restriction again.
13392 2014-07-14 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13394 * config/arm/cortex-a15.md (cortex_a15_alu): Handle clz, rbit.
13395 * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
13396 * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
13397 * config/arm/cortex-a7.md (cortex_a7_alu_reg): Likewise.
13398 * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
13399 * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
13400 * config/arm/cortex-r4.md (cortex_r4_alu): Likewise.
13402 2014-07-14 Richard Biener <rguenther@suse.de>
13404 * cgraph.h (decl_in_symtab_p): Make inline.
13406 2014-07-14 Jakub Jelinek <jakub@redhat.com>
13408 PR middle-end/61294
13409 * doc/invoke.texi (-Wmemset-transposed-args): Document.
13412 * config/i386/i386.c (classify_argument): Don't merge classes above
13415 2014-07-13 Jan Hubicka <hubicka@ucw.cz>
13417 * cgraph.h (symtab_node): Add nonzero_address.
13418 (decl_in_symtab_p): Break out from ...
13419 (symtab_get_node): ... here.
13420 * fold-const.c: Include cgraph.h
13421 (tree_single_nonzero_warnv_p): Use symtab to determine
13422 if symbol is non-zero.
13423 * symtab.c (symtab_node::nonzero_address): New method.
13425 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13427 * ipa-devirt.c (odr_subtypes_equivalent_p): Disable temporary hack
13428 forgotten in previous commit.
13430 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13432 * tree.c (type_in_anonymous_namespace_p): Ignore TREE_PUBLIC
13434 * ipa-devirt.c: Include stor-layout.h and intl.h
13435 (odr_subtypes_equivalent_p): New function.
13436 (warn_odr): New function.
13437 (warn_type_mismatch): New function.
13438 (odr_types_equivalent_p): New function.
13439 (add_type_duplicate): Use it.
13440 * common.opt (Wodr): New flag.
13441 * doc/invoke.texi (Wodr): Document new warning.
13443 2014-07-12 Jan Hubicka <hubicka@ucw.cz>
13445 * timevar.def (TV_IPA_LTO_DECL_INIT_IO): Remove.
13446 (TV_IPA_LTO_CTORS_IN, TV_IPA_LTO_CTORS_OUT): New timevar.
13447 * cgraph.c (cgraph_get_body): Push GIMPLE_IN timevar.
13448 (varpool_get_constructor): Push CTORS_IN timevar.
13449 * lto-streamer-out.c (lto_output): Push TV_IPA_LTO_CTORS_OUT timevar.
13451 2014-07-12 Uros Bizjak <ubizjak@gmail.com>
13453 * config/i386/i386-builtin-types.def: Add USHORT_FTYPE_VOID.
13454 Remove VOID_FTYPE_PUSHORT.
13455 * config/i386/i386.c (bdesc_special_args) <__builtin_ia32_fnstsw>:
13456 Change code to USHORT_FTYPE_VOID.
13457 (ix86_expand_special_args_builtin): Handle USHORT_FTYPE_VOID.
13458 (ix86_expand_builtin): Remove IX86_BUILTIN_FNSTSW handling.
13459 (ix86_atomic_assign_expand_fenv): Update for
13460 __builtin_ia32_fnstsw changes.
13461 * config/i386/i386.md (x86_fnstsw_1): Set length unconditionally to 2.
13462 (fnstsw): Change operand 0 to nonimmediate operand.
13464 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13466 * vapool.c: Include tree-ssa-alias.h, gimple.h and lto-streamer.h
13467 (varpool_get_constructor): New function.
13468 (varpool_ctor_useable_for_folding_p): Break out from ...
13469 (ctor_for_folding): ... here; use varpool_get_constructor.
13470 (varpool_assemble_decl): Likewise.
13471 * lto-streamer.h (struct output_block): Turn cgraph_node
13473 (lto_input_variable_constructor): Declare.
13474 * ipa-visibility.c (function_and_variable_visibility): Use
13475 varpool_get_constructor.
13476 * cgraph.h (varpool_get_constructor): Declare.
13477 (varpool_ctor_useable_for_folding_p): New function.
13478 * lto-streamer-out.c (get_symbol_initial_value): Take encoder
13479 parameter; return error_mark_node for non-trivial constructors.
13480 (lto_write_tree_1, DFS_write_tree): Update use of
13481 get_symbol_initial_value.
13482 (output_function): Update initialization of symbol.
13483 (output_constructor): New function.
13484 (copy_function): Rename to ..
13485 (copy_function_or_variable): ... this one; handle vars too.
13486 (lto_output): Output variable sections.
13487 * lto-streamer-in.c (input_constructor): New function.
13488 (lto_read_body): Rename from ...
13489 (lto_read_body_or_constructor): ... this one; handle vars too.
13490 (lto_input_variable_constructor): New function.
13491 * ipa-prop.c (ipa_prop_write_jump_functions,
13492 ipa_prop_write_all_agg_replacement): Update.
13493 * lto-cgraph.c (compute_ltrans_boundary): Use it.
13494 (output_cgraph_opt_summary): Set symbol to NULL.
13496 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13498 * ipa-prop.c (ipa_binfo_from_known_type_jfunc): In LTO do not walk
13499 non-polymorphic types.
13500 * ipa-cp.c (ipa_get_jf_ancestor_result): Likewise.
13501 * ipa-devirt.c (types_same_for_odr): Do not explode when one
13502 of types is not polymorphic.
13504 2014-07-11 Vladimir Makarov <vmakarov@redhat.com>
13506 * lra-constraints.c (remove_inheritance_pseudos): Process
13507 destination pseudo too.
13509 2014-07-11 Rong Xu <xur@google.com>
13511 * gcov-tool.c (gcov_output_files): Fix build error introduced in
13514 2014-07-11 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
13516 * config/avr/avr-arch.h (avr_mcu_t): Add text section start attribute.
13517 * config/avr/avr-devices.c (AVR_MCU): Same.
13518 (avr_mcu_types): add text start value to end of device list.
13519 * config/avr/avr-mcus.def: Add text section start for all devices.
13520 (ata5782): Add new avr5 device.
13522 * config/avr/avr-tables.opt: Regenerate.
13523 * config/avr/avr.h: Add declaration for text section start handler.
13524 (EXTRA_SPEC_FUNCTIONS): Add text section start handler to
13526 (LINK_SPEC): Include text section start handler to linker spec.
13527 * config/avr/driver-avr.c (avr_device_to_text_start): New function to
13528 pass -Ttext option to linker if the text section start for the device
13530 * config/avr/t-multilib: Regenerate.
13531 * doc/avr-mmcu.texi: Regenerate.
13533 2014-07-11 David Edelsohn <dje.gcc@gmail.com>
13535 * config/rs6000/aix51.h (LINK_SPEC): Remove -bnodelcsect.
13536 * config/rs6000/aix52.h (LINK_SPEC): Same.
13537 * config/rs6000/aix53.h (LINK_SPEC): Same.
13538 * config/rs6000/aix61.h (LINK_SPEC): Same.
13539 * config/rs6000/xcoff.h (MAKE_DECL_ONE_ONLY): Define.
13541 2014-07-11 Roman Gareev <gareevroman@gmail.com>
13543 * graphite-isl-ast-to-gimple.c (gmp_cst_to_tree): New function.
13544 (graphite_verify): New function.
13545 (ivs_params_clear): New function.
13546 (gcc_expression_from_isl_ast_expr_id): New function.
13547 (gcc_expression_from_isl_expr_int): New function.
13548 (binary_op_to_tree): New function.
13549 (ternary_op_to_tree): New function.
13550 (unary_op_to_tree): New function.
13551 (nary_op_to_tree): New function.
13552 (gcc_expression_from_isl_expr_op): New function.
13553 (gcc_expression_from_isl_expression): New function.
13554 (graphite_create_new_loop): New function.
13555 (translate_isl_ast_for_loop): New function.
13556 (get_upper_bound): New function.
13557 (graphite_create_new_loop_guard): New function.
13558 (translate_isl_ast_node_for): New function.
13559 (translate_isl_ast): New function.
13560 (add_parameters_to_ivs_params): New function.
13561 (scop_to_isl_ast): New parameter ip.
13562 (graphite_regenerate_ast_isl): Add generation of GIMPLE code.
13564 2014-07-11 Jan Hubicka <hubicka@ucw.cz>
13566 * config/xtensa/predicates.md (call expander): Update for
13567 DECL_SECTION_NAME being string.
13569 2014-07-11 Richard Biener <rguenther@suse.de>
13571 PR middle-end/61473
13572 * builtins.c (fold_builtin_memory_op): Inline memory moves that
13573 can be implemented with a single load followed by a single store.
13574 (c_strlen): Only warn when only_value is not 2.
13576 2014-07-11 Evgeny Stupachenko <evstupac@gmail.com>
13578 * config/i386/i386.c (expand_vec_perm_pblendv): Disable for AVX.
13580 2014-07-11 Marat Zakirov <m.zakirov@samsung.com>
13583 * config/arm/arm.md (*movhi_insn_arch4): Handle stack pointer.
13584 (*movhi_bytes): Likewise.
13585 (*arm_movqi_insn): Likewise.
13587 2014-07-11 Uros Bizjak <ubizjak@gmail.com>
13590 * config/alpha/alpha.c: Include tree-pass.h, context.h
13591 and pass_manager.h.
13592 (pass_data_handle_trap_shadows): New pass.
13593 (pass_handle_trap_shadows::gate): New pass gate function.
13594 (make_pass_handle_trap_shadows): New function.
13595 (rest_of_handle_trap_shadows): Ditto.
13597 (alpha_align_insns_1): Rename from alpha_align_insns.
13598 (pass_data_align_insns): New pass.
13599 (pass_align_insns::gate): New pass gate function.
13600 (make_pass_aling_insns): New function.
13601 (rest_of_align_insns): Ditto.
13602 (alpha_align_insns): Ditto.
13604 (alpha_option_override): Declare handle_trap_shadows info
13605 and align_insns_info. Register handle_trap_shadows and align_insns
13607 (alpha_reorg): Do not call alpha_trap_shadows and
13608 alpha_align_insn from here.
13610 (alpha_pad_function_end): Do not skip BARRIERs.
13612 2014-07-10 Rong Xu <xur@google.com>
13614 Add gcov-tool: an offline gcda profile processing tool support.
13615 * gcov-io.c (gcov_position): Make avaialble to gcov-tool.
13616 (gcov_is_error): Ditto.
13617 (gcov_read_string): Ditto.
13618 (gcov_read_sync): Ditto.
13619 * gcov-io.h: Move counter defines to gcov-counter.def.
13620 * gcov-dump.c (tag_counters): Use gcov-counter.def.
13621 * coverage.c: Ditto.
13622 * gcov-tool.c: Offline gcda profile processing tool.
13623 (unlink_gcda_file): Remove one gcda file.
13624 (unlink_profile_dir): Remove gcda files from the profile path.
13625 (gcov_output_files): Output gcda files to an output dir.
13626 (profile_merge): Merge two profiles in directory.
13627 (print_merge_usage_message): Print merge usage.
13628 (merge_usage): Print merge usage and exit.
13629 (do_merge): Driver for profile merge sub-command.
13630 (profile_rewrite): Rewrite profile.
13631 (print_rewrite_usage_message): Print rewrite usage.
13632 (rewrite_usage): Print rewrite usage and exit.
13633 (do_rewrite): Driver for profile rewrite sub-command.
13634 (print_usage): Print gcov-info usage and exit.
13635 (print_version): Print gcov-info version.
13636 (process_args): Process arguments.
13637 (main): Main routine for gcov-tool.
13638 * Makefile.in: Build and install gcov-tool.
13639 * gcov-counter.def: New file split from gcov-io.h.
13640 * doc/gcc.texi: Include gcov-tool.texi.
13641 * doc/gcov-tool.texi: Document for gcov-tool.
13643 2014-07-10 Richard Biener <rguenther@suse.de>
13645 PR tree-optimization/61757
13646 * tree-ssa-dom.c (loop_depth_of_name): Restore.
13647 (propagate_rhs_into_lhs): Revert part of last change.
13649 2014-07-10 Thomas Schwinge <thomas@codesourcery.com>
13651 * fold-const.c (fold_checksum_tree): Look at DECL_VINDEX only for
13654 2014-07-10 Eric Botcazou <ebotcazou@adacore.com>
13656 PR middle-end/53590
13657 * function.c (allocate_struct_function): Revert r188667 change.
13659 * gimple-low.c (lower_builtin_setjmp): Use properly-typed constant.
13661 2014-07-10 Tom G. Christensen <tgc@jupiterrise.com>
13663 * doc/install.texi: Remove links to defunct package providers for
13666 2014-07-09 Tom de Vries <tom@codesourcery.com>
13668 * final.c (get_call_fndecl): Declare.
13669 (self_recursive_call_p): New function.
13670 (collect_fn_hard_reg_usage): Handle self-recursive function calls.
13672 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13674 * ipa-devirt.c (record_node): Walk through aliases.
13676 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13678 * lto-streamer-out.c (hash_scc): Avoid quadratic hashing loop.
13680 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13683 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
13685 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13687 * ipa-visibility.c (function_and_variable_visibility): Remove
13688 temporary hack disabling local aliases on AIX.
13690 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13692 * ipa-cp.c (devirtualization_time_bonus): Walk through aliases.
13693 * ipa-inline-analysis.c (estimate_edge_devirt_benefit): Likewise.
13695 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13697 * rs6000/rs6000-protos.h (rs6000_xcoff_declare_object_name): Declare.
13698 * rs6000/rs6000.c: Inline output of .set instruction.
13699 (declare_alias_data): New struct.
13700 (rs6000_declare_alias): New function.
13701 (rs6000_xcoff_declare_function_name): Use it.
13702 (rs6000_xcoff_declare_object_name): New function.
13703 * config/rs6000/xcoff.h: Define ASM_DECLARE_OBJECT_NAME.
13704 (ASM_OUTPUT_DEF): Turn to empty definition.
13706 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13709 * hash-table.h: use hash_table::value_type instead of
13710 Descriptor::value_type in the return types of several methods.
13712 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13714 * tree-pass.h (pass_data): Remove has_execute member.
13715 * passes.c (execute_one_pass): Don't check pass->has_execute.
13716 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
13717 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
13718 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
13719 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
13720 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
13721 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
13722 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
13723 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
13724 gimple-low.c, gimple-ssa-isolate-paths.c,
13725 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
13726 ipa-comdats.c, ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c,
13727 ipa-inline.c, ipa-profile.c, ipa-pure-const.c, ipa-reference.c,
13728 ipa-split.c, ipa-visibility.c, ipa.c, ira.c, jump.c, loop-init.c,
13729 lower-subreg.c, mode-switching.c, modulo-sched.c, omp-low.c, passes.c,
13730 postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
13731 reg-stack.c, regcprop.c, reginfo.c, regrename.c, reorg.c, sched-rgn.c,
13732 stack-ptr-mod.c, store-motion.c, tracer.c, trans-mem.c,
13733 tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c, tree-complex.c,
13734 tree-eh.c, tree-emutls.c, tree-if-conv.c, tree-into-ssa.c,
13735 tree-loop-distribution.c, tree-nrv.c, tree-object-size.c,
13736 tree-parloops.c, tree-pass.h, tree-predcom.c, tree-profile.c,
13737 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
13738 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
13739 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
13740 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
13741 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
13742 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
13743 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
13744 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
13745 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
13746 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
13747 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c,
13748 web.c: Remove initializer for pass_data::has_execute.
13750 2014-07-08 Trevor Saunders <tsaunders@mozilla.com>
13752 * graphite-htab.h: Use hash_map instead of hash_table.
13753 * graphite-clast-to-gimple.c: Adjust.
13754 * passes.c: Use hash_map instead of hash_table.
13755 * sese.c: Likewise.
13756 * sese.h: Remove now unused code.
13758 2014-07-08 Sriraman Tallam <tmsriram@google.com>
13761 * config/i386/i386.c (ix86_in_large_data_p): Check for size less
13764 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13766 PR rtl-optimization/61673
13767 * combine.c (simplify_comparison): Test just mode's sign bit
13768 in tmode rather than the sign bit and any bits above it.
13770 2014-07-08 Roman Gareev <gareevroman@gmail.com>
13772 * graphite-isl-ast-to-gimple.c (generate_isl_context):
13773 Add __isl_give to the declaration.
13774 (generate_isl_schedule): Likewise.
13775 (scop_to_isl_ast): Likewise.
13777 2014-07-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13779 * config/arm/arm.c (cortexa5_extra_costs): New table.
13780 (arm_cortex_a5_tune): Use cortexa5_extra_costs.
13782 2014-07-08 Jakub Jelinek <jakub@redhat.com>
13784 PR tree-optimization/61725
13785 * tree-vrp.c (extract_range_basic): Don't assume vr0 is unsigned
13786 range, use range_includes_zerop_p instead of integer_zerop on
13787 vr0->min, only use log2 of max if min is not negative.
13789 2014-07-08 Richard Biener <rguenther@suse.de>
13791 * tree-ssa-dom.h (loop_depth_of_name): Remove.
13792 * tree-ssa-dom.c (record_equivalences_from_phis): Remove
13793 restriction on loop depth difference.
13794 (record_equality): Likewise.
13795 (propagate_rhs_into_lhs): Likewise. Simplify condition.
13796 (loop_depth_of_name): Remove.
13797 * tree-ssa-copy.c (copy_prop_visit_phi_node): Remove
13798 restriction on loop depth difference.
13799 (init_copy_prop): Likewise.
13801 2014-07-08 Jan Hubicka <hubicka@ucw.cz>
13803 * tree-ssa-alias.c (walk_aliased_vdefs_1): Add FUNCTION_ENTRY_REACHED
13805 (walk_aliased_vdefs): Likewise.
13806 * tree-ssa-alias.h (walk_aliased_vdefs): Likewise.
13807 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers
13808 (detect_type_change_from_memory_writes): Check if entry was reached.
13810 2014-07-08 Richard Biener <rguenther@suse.de>
13812 PR tree-optimization/61681
13813 * tree-ssa-structalias.c (find_what_var_points_to): Expand
13814 NONLOCAL inside ESCAPED.
13816 2014-07-08 Richard Biener <rguenther@suse.de>
13818 PR tree-optimization/61680
13819 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
13820 Handle properly all read-write dependences with group accesses.
13822 2014-07-08 Yuri Rumyantsev <ysrumyan@gmail.com>
13824 PR tree-optimization/61576
13825 * tree-if-conv.c (is_cond_scalar_reduction): Add check that basic
13826 block containing reduction statement is predecessor of phi basi block.
13828 2014-07-08 Marek Polacek <polacek@redhat.com>
13831 * fold-const.c (round_up_loc): Change the parameter type.
13833 * fold-const.h (round_up_loc): Adjust declaration.
13834 * stor-layout.c (finalize_record_size): Check for too large types.
13836 2014-07-07 Jan Hubicka <hubicka@ucw.cz>
13838 * symtab.c: Include calls.h.
13839 (symtab_nonoverwritable_alias_1): Check sanity of the local alias.
13841 2014-07-07 Maciej W. Rozycki <macro@codesourcery.com>
13843 * config/rs6000/rs6000.c (output_vec_const_move): Handle
13844 little-endian code generation.
13845 * config/rs6000/spe.md (spe_evmergehi): Rename to...
13846 (vec_perm00_v2si): ... this. Handle little-endian code generation.
13847 (spe_evmergehilo): Rename to...
13848 (vec_perm01_v2si): ... this. Handle little-endian code generation.
13849 (spe_evmergelo): Rename to...
13850 (vec_perm11_v2si): ... this. Handle little-endian code generation.
13851 (spe_evmergelohi): Rename to...
13852 (vec_perm10_v2si): ... this. Handle little-endian code generation.
13853 (spe_evmergehi, spe_evmergehilo): New expanders.
13854 (spe_evmergelo, spe_evmergelohi): Likewise.
13855 (*frob_<SPE64:mode>_<DITI:mode>): Handle little-endian code generation.
13856 (*frob_tf_ti): Likewise.
13857 (*frob_<mode>_di_2): Likewise.
13858 (*frob_tf_di_8_2): Likewise.
13859 (*frob_di_<mode>): Likewise.
13860 (*frob_ti_tf): Likewise.
13861 (*frob_<DITI:mode>_<SPE64:mode>_2): Likewise.
13862 (*frob_ti_<mode>_8_2): Likewise.
13863 (*frob_ti_tf_2): Likewise.
13864 (mov_si<mode>_e500_subreg0): Rename to...
13865 (mov_si<mode>_e500_subreg0_be): ... this. Restrict to the big
13867 (*mov_si<mode>_e500_subreg0_le): New instruction pattern.
13868 (*mov_si<mode>_e500_subreg0_elf_low): Rename to...
13869 (*mov_si<mode>_e500_subreg0_elf_low_be): ... this. Restrict to
13870 the big endianness only.
13871 (*mov_si<mode>_e500_subreg0_elf_low_le): New instruction pattern.
13872 (*mov_si<mode>_e500_subreg0_2): Rename to...
13873 (*mov_si<mode>_e500_subreg0_2_be): ... this. Restrict to the
13874 big big endianness only.
13875 (*mov_si<mode>_e500_subreg0_2_le): New instruction pattern.
13876 (*mov_si<mode>_e500_subreg4): Rename to...
13877 (*mov_si<mode>_e500_subreg4_be): ... this. Restrict to the big
13879 (mov_si<mode>_e500_subreg4_le): New instruction pattern.
13880 (*mov_si<mode>_e500_subreg4_elf_low): Rename to...
13881 (*mov_si<mode>_e500_subreg4_elf_low_be): ... this. Restrict to
13882 the big endianness only.
13883 (*mov_si<mode>_e500_subreg4_elf_low_le): New instruction/splitter
13885 (*mov_si<mode>_e500_subreg4_2): Rename to...
13886 (*mov_si<mode>_e500_subreg4_2_be): ... this. Restrict to the big
13888 (*mov_si<mode>_e500_subreg4_2_le): New instruction pattern.
13889 (*mov_sitf_e500_subreg8): Rename to...
13890 (*mov_sitf_e500_subreg8_be): ... this. Restrict to the big
13892 (*mov_sitf_e500_subreg8_le): New instruction pattern.
13893 (*mov_sitf_e500_subreg8_2): Rename to...
13894 (*mov_sitf_e500_subreg8_2_be): ... this. Restrict to the big
13896 (*mov_sitf_e500_subreg8_2_le): New instruction pattern.
13897 (*mov_sitf_e500_subreg12): Rename to...
13898 (*mov_sitf_e500_subreg12_be): ... this. Restrict to the big
13900 (*mov_sitf_e500_subreg12_le): New instruction pattern.
13901 (*mov_sitf_e500_subreg12_2): Rename to...
13902 (*mov_sitf_e500_subreg12_2_be): ... this. Restrict to the big
13904 (*mov_sitf_e500_subreg12_2_le): New instruction pattern.
13906 2014-07-07 Max Ostapenko <m.ostapenko@partner.samsung.com>
13908 * asan.c (instrument_strlen_call): Do not instrument first byte
13909 in strlen if already instrumented.
13911 2014-07-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
13913 * config/arm/arm.opt (mwords-little-endian): Delete.
13914 * config/arm/arm.h (TARGET_CPU_CPP_BUILTINS): Remove handling
13915 of TARGET_LITTLE_WORDS.
13916 (WORDS_BIG_ENDIAN): Define to BYTES_BIG_ENDIAN.
13917 * config/arm/arm.c (arm_option_override): Remove TARGET_LITTLE_WORDS
13919 * doc/invoke.texi: Remove references to -mwords-little-endian.
13921 2014-07-07 Jakub Jelinek <jakub@redhat.com>
13923 * expmed.c (struct init_expmed_rtl): Change all fields but
13924 pow2 and cint from struct rtx_def to rtx.
13925 (init_expmed_one_conv, init_expmed_one_mode): Adjust for that change.
13926 (init_expmed): Likewise. Allocate all the 18 rtxes and ggc_free them
13929 2014-07-06 Marek Polacek <polacek@redhat.com>
13932 * doc/invoke.texi: Document -Wsizeof-array-argument.
13934 2014-07-05 Gerald Pfeifer <gerald@pfeifer.com>
13936 * wide-int.h (wide_int_storage): Change declaration from struct
13939 2014-07-05 Jan Hubicka <hubicka@ucw.cz>
13941 * cgraph.c (cgraph_create_indirect_edge): Update call of
13942 get_polymorphic_call_info.
13943 * ipa-utils.h (get_polymorphic_call_info): Add parameter CALL.
13944 (possible_polymorphic_call_targets): Add parameter call.
13945 (decl_maybe_in_construction_p): New predicate.
13946 (get_polymorphic_call_info): Add parameter call;
13947 use decl_maybe_in_construction_p.
13948 * gimple-fold.c (fold_gimple_assign): Update use of
13949 possible_polymorphic_call_targets.
13950 (gimple_fold_call): Likewise.
13951 * ipa-prop.c: Inlcude calls.h
13952 (ipa_binfo_from_known_type_jfunc): Check that known type is record.
13953 (param_type_may_change_p): New predicate.
13954 (detect_type_change_from_memory_writes): Break out from ...
13955 (detect_type_change): ... this one; use param_type_may_change_p.
13956 (detect_type_change_ssa): Use param_type_may_change_p.
13957 (compute_known_type_jump_func): Use decl_maybe_in_construction_p.
13959 2014-07-05 Charles Baylis <charles.baylis@linaro.org>
13962 * config/arm/arm-protos.h (arm_legitimate_address_p,
13963 arm_is_constant_pool_ref): Add prototypes.
13964 * config/arm/arm.c (arm_legitimate_address_p): Remove static.
13965 (arm_is_constant_pool_ref) New function.
13966 * config/arm/arm.md (unaligned_loadhis, arm_zero_extendhisi2_v6,
13967 arm_zero_extendqisi2_v6): Use Uh constraint for memory operand.
13968 (arm_extendhisi2, arm_extendhisi2_v6): Use Uh constraint for memory
13969 operand. Remove pool_range and neg_pool_range attributes.
13970 (arm_extendqihi_insn, arm_extendqisi, arm_extendqisi_v6): Remove
13971 pool_range and neg_pool_range attributes.
13972 * config/arm/constraints.md (Uh): New constraint.
13973 (Uq): Don't allow constant pool references.
13975 2014-07-04 James Greenhalgh <james.greenhalgh@arm.com>
13977 * config/aarch64/aarch64-simd.md (move_lo_quad_internal_<mode>): New.
13978 (move_lo_quad_internal_be_<mode>): Likewise.
13979 (move_lo_quad_<mode>): Convert to define_expand.
13980 (aarch64_simd_move_hi_quad_<mode>): Gate on BYTES_BIG_ENDIAN.
13981 (aarch64_simd_move_hi_quad_be_<mode>): New.
13982 (move_hi_quad_<mode>): Use appropriate insn for BYTES_BIG_ENDIAN.
13983 (aarch64_combinez<mode>): Gate on BYTES_BIG_ENDIAN.
13984 (aarch64_combinez_be<mode>): New.
13985 (aarch64_combine<mode>): Convert to define_expand.
13986 (aarch64_combine_internal<mode>): New.
13987 (aarch64_simd_combine<mode>): Remove bogus RTL description.
13989 2014-07-04 Tom de Vries <tom@codesourcery.com>
13991 * doc/md.texi (@subsection Constraint Modifier Characters): Clarify
13992 combination of earlyclobber and read/write modifiers.
13994 2014-07-04 Tom de Vries <tom@codesourcery.com>
13996 * config/aarch64/aarch64-simd.md
13997 (define_insn "vec_unpack_trunc_<mode>"): Fix constraint.
13999 2014-07-04 Richard Earnshaw <rearnsha@arm.com>
14002 * config/aarch64/aarch64.h (OPTION_DEFAULT_SPECS): Define.
14004 2014-07-04 Jakub Jelinek <jakub@redhat.com>
14006 PR middle-end/61654
14007 * cgraphunit.c (expand_thunk): Call free_dominance_info.
14009 PR tree-optimization/61684
14010 * tree-ssa-ifcombine.c (recognize_single_bit_test): Make sure
14011 rhs1 of conversion is a SSA_NAME before using SSA_NAME_DEF_STMT on it.
14013 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14014 Kito Cheng <kito@0xlab.org>
14015 Monk Chiang <sh.chiang04@gmail.com>
14017 * config/nds32/nds32.c (nds32_have_prologue_p): Move to ...
14018 (nds32_symbol_load_store_p): Move to ...
14019 (nds32_fp_as_gp_check_available): Move to ...
14020 * config/nds32/nds32-fp-as-gp.c: ... here.
14021 * config/nds32/nds32-protos.h (nds32_symbol_load_store_p): Remove
14022 extern declaration.
14024 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14025 Kito Cheng <kito@0xlab.org>
14026 Monk Chiang <sh.chiang04@gmail.com>
14028 * config/nds32/nds32.c (nds32_expand_load_multiple): Move to ...
14029 (nds32_expand_store_multiple): Move to ...
14030 (nds32_expand_movmemqi): Move to ...
14031 * config/nds32/nds32-memory-manipulation.c: ... here.
14033 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14034 Kito Cheng <kito@0xlab.org>
14035 Monk Chiang <sh.chiang04@gmail.com>
14037 * config/nds32/nds32.c (nds32_byte_to_size): Move to ...
14038 (nds32_output_casesi_pc_relative): Move to ...
14039 (nds32_output_casesi): Move to ...
14040 (nds32_mem_format): Move to ...
14041 (nds32_output_16bit_store): Move to ...
14042 (nds32_output_16bit_load): Move to ...
14043 (nds32_output_32bit_store): Move to ...
14044 (nds32_output_32bit_load): Move to ...
14045 (nds32_output_32bit_load_s): Move to ...
14046 (nds32_output_stack_push): Move to ...
14047 (nds32_output_stack_pop): Move to ...
14048 * config/nds32/nds32-md-auxiliary.c: ... here.
14050 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14051 Ling-Hua Tseng <uranus@tinlans.org>
14053 * config/nds32/nds32-pipelines-auxiliary.c: Add comment to describe
14054 the purpose of this file.
14056 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14057 Kito Cheng <kito@0xlab.org>
14058 Monk Chiang <sh.chiang04@gmail.com>
14060 * config/nds32/nds32.c (nds32_rtx_costs): Move implementation to ...
14061 (nds32_address_cost): Move implementation to ...
14062 * config/nds32/nds32-cost.c: ... here.
14063 * config/nds32/nds32-protos.h (nds32_rtx_costs_impl): Declare.
14064 (nds32_address_cost_impl): Declare.
14066 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14067 Kito Cheng <kito@0xlab.org>
14068 Monk Chiang <sh.chiang04@gmail.com>
14070 * config/nds32/nds32.c
14071 (nds32_consecutive_registers_load_store_p): Move to ...
14072 (nds32_valid_multiple_load_store): Move to ...
14073 (nds32_valid_stack_push_pop): Move to ...
14074 (nds32_can_use_bclr_p): Move to ...
14075 (nds32_can_use_bset_p): Move to ...
14076 (nds32_can_use_btgl_p): Move to ...
14077 (nds32_can_use_bitci_p): Move to ...
14078 * config/nds32/nds32-predicates.c: ... here.
14080 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14081 Kito Cheng <kito@0xlab.org>
14082 Monk Chiang <sh.chiang04@gmail.com>
14084 * config/nds32/nds32.c
14085 (nds32_expand_builtin_null_ftype_reg): Move to ...
14086 (nds32_expand_builtin_reg_ftype_imm): Move to ...
14087 (nds32_expand_builtin_null_ftype_reg_imm): Move to ...
14088 (nds32_init_builtins): Move implementation to ...
14089 (nds32_expand_builtin): Move implementation to ...
14090 * config/nds32/nds32-intrinsic.c: ... here.
14091 * config/nds32/nds32-protos.h (nds32_init_builtins_impl): Declare.
14092 (nds32_expand_builtin_impl): Declare.
14094 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14095 Kito Cheng <kito@0xlab.org>
14096 Monk Chiang <sh.chiang04@gmail.com>
14098 * config/nds32/nds32.c (nds32_emit_section_head_template): Move to ...
14099 (nds32_emit_section_tail_template): Move to ...
14100 (nds32_emit_isr_jmptbl_section): Move to ...
14101 (nds32_emit_isr_vector_section): Move to ...
14102 (nds32_emit_isr_reset_conten): Move to ...
14103 (nds32_check_isr_attrs_conflict): Move to ...
14104 (nds32_construct_isr_vectors_information): Move to ...
14105 (nds32_asm_file_start): Move implementation to ...
14106 (nds32_asm_file_end): Move implementation to ...
14107 * config/nds32/nds32-isr.c: ... here.
14108 * config/nds32/nds32-protos.h
14109 (nds32_check_isr_attrs_conflict): Declare.
14110 (nds32_construct_isr_vectors_information): Declare.
14111 (nds32_asm_file_start_for_isr): Declare.
14112 (nds32_asm_file_end_for_isr): Declare.
14114 2014-07-04 Chung-Ju Wu <jasonwucj@gmail.com>
14115 Kito Cheng <kito@0xlab.org>
14116 Monk Chiang <sh.chiang04@gmail.com>
14118 * config.gcc (nds32*): Add new modules to extra_objs.
14119 (nds32le-*-*): Use t-nds32 makefile fragment for new modules.
14120 (nds32be-*-*): Likewise.
14121 * config/nds32/nds32-cost.c: New file.
14122 * config/nds32/nds32-fp-as-gp.c: New file.
14123 * config/nds32/nds32-intrinsic.c: New file.
14124 * config/nds32/nds32-isr.c: New file.
14125 * config/nds32/nds32-md-auxiliary.c: New file.
14126 * config/nds32/nds32-memory-manipulation.c: New file.
14127 * config/nds32/nds32-pipelines-auxiliary.c: New file.
14128 * config/nds32/nds32-predicates.c: New file.
14129 * config/nds32/t-nds32: New file.
14131 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14133 PR tree-optimization/61682
14134 * wide-int.cc (wi::mul_internal): Handle high correctly for umul_ppmm
14135 using cases and when one of the operands is equal to 1.
14137 2014-07-03 Segher Boessenkool <segher@kernel.crashing.org>
14139 * config/rs6000/rs6000.md (rotl<mode>3, ashl<mode>3, lshr<mode>3,
14140 ashr<mode>3): Correct mode of operands[2].
14141 (rotl<mode>3_dot, rotl<mode>3_dot2, ashl<mode>3_dot, ashl<mode>3_dot2,
14142 lshr<mode>3_dot, lshr<mode>3_dot2, ashr<mode>3_dot, ashr<mode>3_dot2):
14143 Correct mode of operands[2]. Fix split condition.
14145 2014-07-03 Richard Earnshaw <rearnsha@arm.com>
14147 * arm.md (arch): Add armv6_or_vfpv3.
14148 (arch_enabled): Add test for the above.
14149 * vfp.md (divsf_vfp, divdf_vfp): Add earlyclobber when code can run
14151 (sqrtsf_vfp, sqrtdf_vfp): Likewise.
14153 2014-07-03 Jakub Jelinek <jakub@redhat.com>
14155 * gcov-io.c (gcov_read_words): Don't call memmove if excess is 0.
14156 * data-streamer-in.c (streamer_read_hwi): Shift UHWI 1 instead of
14157 HWI 1 and negate the unsigned value.
14158 * expmed.c (expand_sdiv_pow2): For modes wider than word always
14159 use AND instead of shift.
14160 * wide-int-print.cc (print_decs): Negate UHWI instead of HWI.
14162 2014-07-03 Marek Polacek <polacek@redhat.com>
14164 * doc/invoke.texi (-fsanitize=bounds): Tweak wording.
14165 (-fsanitize=float-divide-by-zero): Move to the table with
14166 -fsanitize=undefined suboptions.
14167 (-fsanitize=float-cast-overflow): Likewise.
14169 2014-07-03 Maciej W. Rozycki <macro@codesourcery.com>
14171 * config/rs6000/rs6000.c (rs6000_adjust_atomic_subword): Use
14172 BYTES_BIG_ENDIAN rather than WORDS_BIG_ENDIAN to check for byte
14175 2014-07-03 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14177 * loop-invariant.c (struct invariant): Add a new member: eqno;
14178 (find_identical_invariants): Update eqno;
14179 (create_new_invariant): Init eqno;
14180 (get_inv_cost): Compute comp_cost with eqno;
14182 2014-07-02 Segher Boessenkool <segher@kernel.crashing.org>
14184 * genconfig.c (have_rotate_flag, have_rotatert_flag): New variables.
14185 (walk_insn_part) <ROTATE, ROTATERT>: New cases.
14186 (main): Conditionally write HAVE_rotate resp. HAVE_rotatert.
14187 * simplify-rtx.c (simplify_binary_operation_1) <ROTATE, ROTATERT>:
14188 Only do the transformation if both HAVE_rotate and HAVE_rotatert.
14190 2014-07-02 Christian Bruel <christian.bruel@st.com>
14194 * mode-switching.c (struct bb_info): Add mode_out, mode_in caches.
14195 (make_preds_opaque): Delete.
14196 (clear_mode_bit, mode_bit_p, set_mode_bit): New macros.
14197 (commit_mode_sets): New function.
14198 (optimize_mode_switching): Handle current_mode to mode_switching_emit.
14199 Process all modes at once.
14200 * basic-block.h (pre_edge_lcm_avs): Declare.
14201 * lcm.c (pre_edge_lcm_avs): Renamed from pre_edge_lcm.
14202 Call clear_aux_for_edges. Fix comments.
14203 (pre_edge_lcm): New wrapper function to call pre_edge_lcm_avs.
14204 (pre_edge_rev_lcm): Idem.
14205 * config/epiphany/epiphany.c (emit_set_fp_mode): Add prev_mode
14207 * config/epiphany/epiphany-protos.h (emit_set_fp_mode): Idem.
14208 * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
14210 * config/i386/i386.c (x96_emit_mode_set): Idem.
14211 * config/sh/sh.c (sh_emit_mode_set): Likewise. Handle PR toggle.
14212 * config/sh/sh.md (toggle_pr): Defined if TARGET_FPU_SINGLE.
14213 (fpscr_toggle) Disallow from delay slot.
14214 * target.def (emit_mode_set): Add prev_mode parameter.
14215 * doc/tm.texi: Regenerate.
14217 2014-07-02 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14219 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Delete unused
14222 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14224 * ipa-utils.h (method_class_type, vtable_pointer_value_to_binfo,
14225 vtable_pointer_value_to_vtable): Constify.
14226 (contains_polymorphic_type_p): Declare.
14227 * ipa-devirt.c (method_class_type, vtable_pointer_value_to_binfo,
14228 vtable_pointer_value_to_vtable): Constify.
14229 (contains_polymorphic_type_p): New predicate.
14230 * ipa-prop.c (ipa_set_jf_known_type): Allow types containing
14232 (ipa_set_ancestor_jf): Likewise.
14233 (detect_type_change): Return false in easy cases.
14234 (compute_complex_assign_jump_func): Require type to contain
14236 (compute_known_type_jump_func): Likewise.
14238 2014-07-01 Jan Hubicka <hubicka@ucw.cz>
14240 * tree.c (decls_same_for_odr, decls_same_for_odr, types_same_for_odr):
14242 (type_in_anonymous_namespace_p): Constify argument.
14243 * tree.h (types_same_for_odr, type_in_anonymous_namespace_p): Constify.
14244 * ipa-devirt.c (odr_type_d): Add ODR_VIOLATED field.
14245 (main_odr_variant): New function.
14246 (hash_type_name): Make static; update assert; do not ICE on
14248 (types_same_for_odr): Bring here from tree.c; simplify and remove
14249 old structural comparing code that doesn't work for templates.
14250 (odr_hasher::equal): Update assert.
14251 (add_type_duplicate): Return true when bases should be computed;
14252 replace incomplete loader by complete; do not output duplicated
14253 warnings; do not ICE on non-records; set odr_violated flag.
14254 (get_odr_type): Be ready to replace incomplete type by complete
14255 one; work on ODR variants instead of main variants; reorder item
14256 in array so bases have still smaller indexes.
14257 (dump_type_inheritance_graph): Be ready for holdes in odr_types array.
14258 (possible_polymorphic_call_targets): Do not ICE when BINFO is NULL.
14260 2014-07-01 Cary Coutant <ccoutant@google.com>
14262 * dwarf2out.c (remove_addr_table_entry): Remove unnecessary hash table
14264 (resolve_addr_in_expr): When replacing the rtx in a location list
14265 entry, get a new address table entry.
14266 (dwarf2out_finish): Call index_location_lists even if there are no
14267 addr_index_table entries yet.
14269 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14271 * config/i386/winnt.c (i386_pe_section_type_flags): Revert previous
14272 change for not being obvious.
14274 2014-07-01 Trevor Saunders <tsaunders@mozilla.com>
14276 * config/i386/winnt.c (i386_pe_section_type_flags): Remove name of
14279 2014-07-01 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
14281 * config/aarch64/arm_neon.h (vcage_f64): New intrinsic.
14282 (vcagt_f64): Likewise.
14283 (vcale_f64): Likewise.
14284 (vcaled_f64): Likewise.
14285 (vcales_f32): Likewise.
14286 (vcalt_f64): Likewise.
14287 (vcaltd_f64): Likewise.
14288 (vcalts_f32): Likewise.
14290 2014-07-01 Marek Polacek <polacek@redhat.com>
14292 * doc/invoke.texi: Document -Wint-conversion.
14294 2014-07-01 Marek Polacek <polacek@redhat.com>
14297 * doc/invoke.texi: Document -Wincompatible-pointer-types.
14299 2014-07-01 Martin Liska <mliska@suse.cz>
14301 IPA REF alias refactoring
14302 * cgraph.h (iterate_direct_aliases): New function.
14303 (FOR_EACH_ALIAS): New macro iterates all direct aliases for a node.
14304 * cgraph.c (cgraph_for_node_thunks_and_aliases): Usage of
14305 FOR_EACH_ALIAS added.
14306 (cgraph_for_node_and_aliases): Likewise.
14307 * cgraphunit.c (assemble_thunks_and_aliases): Likewise.
14308 * ipa-inline.c (reset_edge_caches): Likewise.
14309 (update_caller_keys): Likewise.
14310 * trans-mem.c (ipa_tm_execute): Likewise.
14311 *varpool.c (varpool_analyze_node): Likewise.
14312 (varpool_for_node_and_aliases): Likewise.
14313 * ipa-ref.h (first_alias): New function.
14314 (last_alias): Likewise.
14315 (has_aliases_p): Likewise.
14316 * ipa-ref.c (ipa_ref::remove_reference): Removal function
14317 is sensitive to IPA_REF_ALIASes.
14318 * symtab.c (symtab_node::add_reference): Node of IPA_REF_ALIAS type
14319 are put at the beginning of the list.
14320 (symtab_node::iterate_direct_aliases): New function.
14322 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14325 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14327 (write_ts_type_common_tree_pointers): Do not stream fields not set
14328 for incomplete types; do not stream duplicated fields for variants;
14329 sanity check that variant and type match.
14330 (write_ts_type_non_common_tree_pointers): Likewise.
14331 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14332 TYPE_SIZE whether type is complete.
14333 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14334 write_ts_type_common_tree_pointers
14335 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14337 2014-06-30 Joseph Myers <joseph@codesourcery.com>
14339 * var-tracking.c (add_stores): Return instead of asserting if old
14340 and new values for conditional store are the same.
14342 2014-06-30 Richard Henderson <rth@redhat.com>
14346 * bb-reorder.c (pass_duplicate_computed_gotos::execute): Cleanup
14347 the cfg if there were any changes.
14348 * passes.def: Revert move of peephole2 after reorder_blocks;
14349 move duplicate_computed_gotos before peephole2.
14351 2014-06-30 Uros Bizjak <ubizjak@gmail.com>
14353 * except.c (emit_note_eh_region_end): New helper function.
14354 (convert_to_eh_region_ranges): Use emit_note_eh_region_end to
14355 emit EH_REGION_END note.
14356 * jump.c (cleanup_barriers): Do not split a call and its
14357 corresponding CALL_ARG_LOCATION note.
14359 2014-06-30 Jeff Law <law@redhat.com>
14361 PR tree-optimization/61607
14362 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Look
14363 deeper into the SSA_NAME_VALUE chain.
14365 2014-06-30 Marek Polacek <polacek@redhat.com>
14367 * convert.c (convert_to_integer): Don't instrument conversions if the
14368 function has no_sanitize_undefined attribute.
14369 * ubsan.c: Don't run the ubsan pass if the function has
14370 no_sanitize_undefined attribute.
14372 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14374 * doc/invoke.texi (-fsanitize=bounds): Move to the table with
14375 -fsanitize=undefined suboptions.
14377 2014-06-30 Alan Lawrence <alan.lawrence@arm.com>
14379 * config/aarch64/aarch64-simd.md (vec_perm): Enable for bigendian.
14380 * config/aarch64/aarch64.c (aarch64_expand_vec_perm): Remove assert
14381 against bigendian and adjust indices.
14383 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14385 * doc/install.texi (Specific, aarch64*-*-*): Fix markup. Reword a bit.
14387 2014-06-30 Marcus Shawcroft <marcus.shawcroft@arm.com>
14390 * config/aarch64/aarch64.md (*aarch64_ashr_sisd_or_int_<mode>3):
14391 Add alternative; make early clobber. Adjust both split patterns
14392 to use operand 0 as the working register.
14394 2014-06-30 Jakub Jelinek <jakub@redhat.com>
14396 * ira-build.c (sort_conflict_id_map): Don't call qsort if num is 0,
14397 as ira_object_id_map might be NULL, or 1.
14399 2014-06-30 Zhenqiang Chen <zhenqiang.chen@linaro.org>
14401 * loop-invariant.c (get_inv_cost): Handle register class.
14402 (gain_for_invariant): Check the register pressure of the inv
14403 and its overlapped register class, other than all.
14405 2014-06-30 Gerald Pfeifer <gerald@pfeifer.com>
14407 * doc/invoke.texi (Optimize Options): Fix descriptions of
14408 ipa-cp-loop-hint-bonus and ipa-cp-array-index-hint-bonus.
14410 2014-06-29 David Wohlferd <dw@LimeGreenSocks.com>
14412 * doc/extend.texi (Function Attributes): Update 'naked' attribute
14415 2014-06-29 Tobias Grosser <tobias@grosser.es>
14418 * graphite-isl-ast-to-gimple.c: Add missing guards.
14420 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14422 * Makefile.in: Add the compilation of graphite-isl-ast-to-gimple.o.
14423 * common.opt: Add new switch fgraphite-code-generator=[isl|cloog].
14424 * flag-types.h: Add new enum fgraphite_generator.
14425 * graphite-isl-ast-to-gimple.c: New.
14426 * graphite-isl-ast-to-gimple.h: New.
14427 * graphite.c (graphite_transform_loops): Add choice of Graphite
14428 code generator, which depends on flag_graphite_code_gen.
14430 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14432 * graphite-dependences.c (subtract_commutative_associative_deps):
14433 Add NULL checking of the following variables: must_raw_no_source,
14434 may_raw_no_source, must_war_no_source, may_war_no_source,
14435 must_waw_no_source, may_waw_no_source, must_raw, may_raw,
14436 must_war, may_war, must_waw, may_waw.
14438 2014-06-29 Roman Gareev <gareevroman@gmail.com>
14440 * graphite-clast-to-gimple.c: gloog is renamed to
14441 graphite_regenerate_ast_cloog. gloog_error is renamed to
14442 graphite_regenerate_error.
14443 * graphite-clast-to-gimple.h: The definition of the struct
14444 bb_pbb_def is moved to graphite-htab.h.
14445 Add inclusion of the hash-table.h.
14446 * graphite-htab.h: The declaration of the function gloog is moved
14447 to graphite-clast-to-gimple.h and renamed to
14448 graphite_regenerate_ast_cloog.
14449 * graphite.c (graphite_transform_loops): gloog is renamed
14450 to graphite_regenerate_ast_cloog.
14452 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14454 * tree-streamer-out.c (pack_ts_type_common_value_fields): Stream if
14456 (write_ts_type_common_tree_pointers): Do not stream fields not set
14457 for incomplete types; do not stream duplicated fields for variants;
14458 sanity check that variant and type match.
14459 (write_ts_type_non_common_tree_pointers): Likewise.
14460 * tree-streamer-in.c (unpack_ts_type_common_value_fields): Mark in
14461 TYPE_SIZE whether type is complete.
14462 (lto_input_ts_type_common_tree_pointers): Do same changes as in
14463 write_ts_type_common_tree_pointers
14464 (lto_input_ts_type_non_common_tree_pointers): Likewise.
14466 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14468 * cgraph.c (dump_cgraph_node): Dump init&fini priorities.
14470 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14472 * tree-inline.c (remap_type_1): Do not duplicate fields
14473 that are shared in between type and its main variant.
14475 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14477 * ipa-prop.c (ipa_set_jf_known_type): Record always the main variant
14479 (ipa_set_ancestor_jf) Likewise.
14480 (check_stmt_for_type_change): Check that we work on main variant.
14481 (detect_type_change): Look into main variant.
14482 (compute_known_type_jump_func): Check that main variant has BINFO.
14484 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14486 * ipa-devirt.c (set_type_binfo): New function.
14487 (add_type_duplicate): Use it.
14488 (get_odr_type): Sanity check that binfos points to main variants.
14489 (get_class_context): Be sure the context's outer_type is main variant.
14490 (contains_type_p): Walk main variant.
14491 (get_polymorphic_call_info_for_decl): Set outer_type to be
14493 (get_polymorphic_call_info): Likewise.
14494 (possible_polymorphic_call_targets): Sanity check that we operate
14497 2014-06-28 Jan Hubicka <hubicka@ucw.cz>
14499 * stor-layout.c (finish_builtin_struct): Copy fields into the variants.
14501 2014-06-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
14503 * config/rs6000/rs6000.c (rs6000_aggregate_candidate): Revert
14504 accidental change due to wide-int branch merge.
14506 2014-06-27 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
14508 * configure.ac (gcc_cv_as_compress_debug): Check for assembler
14509 compressed debug support.
14510 (gcc_cv_ld_compress_debug): Check for linker compressed debug support.
14511 * configure: Regenerate.
14512 * config.in: Regenerate.
14513 * common.opt (compressed_debug_sections): New enum.
14514 (gz, gz=): New options.
14515 * gcc.c (LINK_COMPRESS_DEBUG_SPEC, ASM_COMPRESS_DEBUG_SPEC): Define.
14516 (LINK_COMMAND_SPEC): Invoke LINK_COMPRESS_DEBUG_SPEC.
14517 (asm_options): Invoke ASM_COMPRESS_DEBUG_SPEC.
14518 * config/darwin.h (LINK_COMMAND_SPEC_A): Invoke
14519 LINK_COMPRESS_DEBUG_SPEC.
14520 * config/i386/djgpp.h (LINK_COMMAND_SPEC): Likewise.
14521 * opts.c (common_handle_option): Handle OPT_gz, OPT_gz_.
14522 * doc/invoke.texi (Option Summary, Debugging Options): Add -gz[=type].
14523 (Debugging Options): Document -gz[=type].
14525 2014-06-27 Martin Jambor <mjambor@suse.cz>
14528 * cgraphclones.c (duplicate_thunk_for_node): Removed parameter
14529 args_to_skip, use those from node instead. Copy args_to_skip and
14530 combined_args_to_skip from node to the new thunk.
14531 (redirect_edge_duplicating_thunks): Removed parameter args_to_skip.
14532 (cgraph_create_virtual_clone): Moved computation of
14533 combined_args_to_skip...
14534 (cgraph_clone_node): ...here, simplify it to bitmap_ior..
14536 2014-06-27 trevor Saunders <tsaunders@mozilla.com>
14538 * config/i386/winnt.c (i386_pe_section_type_flags): Remove
14539 redundant diagnostic machinary.
14541 2014-06-27 Richard Biener <rguenther@suse.de>
14543 * tree-ssa-math-opts.c (bswap_replace): Fix
14544 SLOW_UNALIGNED_ACCESS test to only apply to unaligned object.
14546 2014-06-27 Martin Liska <mliska@suse.cz>
14548 * gimple.h (gimple_location_safe): New function introduced.
14549 * cgraphunit.c (walk_polymorphic_call_targets): Usage
14550 of gimple_location_safe replaces gimple_location.
14551 (gimple_fold_call): Likewise.
14552 * ipa-devirt.c (ipa_devirt): Likewise.
14553 * ipa-prop.c (ipa_make_edge_direct_to_target): Likewise.
14554 * ipa.c (walk_polymorphic_call_targets): Likewise.
14555 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Likewise.
14557 2014-06-27 Jakub Jelinek <jakub@redhat.com>
14559 PR tree-optimization/57233
14560 PR tree-optimization/61299
14561 * tree-vect-generic.c (get_compute_type, count_type_subparts): New
14563 (expand_vector_operations_1): Use them. If {L,R}ROTATE_EXPR
14564 would be lowered to scalar shifts, check if corresponding
14565 shifts and vector BIT_IOR_EXPR are supported and don't lower
14566 or lower just to narrower vector type in that case.
14567 * expmed.c (expand_shift_1): Fix up handling of vector
14568 shifts and rotates.
14570 2014-06-26 Uros Bizjak <ubizjak@gmail.com>
14573 * config/alpha/alpha.c (alpha_handle_trap_shadows): Handle BARRIER RTX.
14575 2014-06-26 Jan Hubicka <hubicka@ucw.cz>
14577 * doc/invoke.texi (-fsemantic-interposition): Document.
14578 * common.opt (fsemantic-interposition): New flag.
14579 * varasm.c (decl_replaceable_p): Use it.
14581 2014-06-26 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
14584 * config/rs6000/vsx.md (vsx_extract_v4sf): Fix bug with element
14585 extraction other than index 3.
14587 2014-06-26 Teresa Johnson <tejohnson@google.com>
14589 * doc/invoke.texi: Fix typo.
14590 * dumpfile.c: Add support for documented -fdump-* options
14591 optimized/missed/note/optall.
14593 2014-06-26 Martin Jambor <mjambor@suse.cz>
14595 * params.def (PARAM_ALLOW_LOAD_DATA_RACES)
14596 (PARAM_ALLOW_PACKED_LOAD_DATA_RACES)
14597 (PARAM_ALLOW_PACKED_STORE_DATA_RACES): Removed.
14598 (PARAM_ALLOW_STORE_DATA_RACES): Set default to zero.
14599 * opts.c (default_options_optimization): Set
14600 PARAM_ALLOW_STORE_DATA_RACES to one at -Ofast.
14601 * doc/invoke.texi (allow-load-data-races)
14602 (allow-packed-load-data-races, allow-packed-store-data-races): Removed.
14603 (allow-store-data-races): Document the new default.
14605 2014-06-26 Martin Jambor <mjambor@suse.cz>
14607 * ipa-prop.c (ipa_impossible_devirt_target): No longer static,
14608 renamed to ipa_impossible_devirt_target. Fix typo.
14609 * ipa-prop.h (ipa_impossible_devirt_target): Declare.
14610 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use
14611 ipa_impossible_devirt_target.
14613 2014-06-26 Richard Biener <rguenther@suse.de>
14615 PR tree-optimization/61607
14616 * tree-ssa-copy.c (copy_prop_visit_phi_node): Adjust comment
14617 explaining why we restrict copies on loop depth.
14618 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14620 (record_equivalences_from_phis): Instead add it here.
14622 2014-06-26 Bernd Schmidt <bernds@codesourcery.com>
14624 * Makefile.in (COLLECT2_OBJS): Add collect-utils.o.
14625 (LTO_WRAPPER_OBJS): New variable.
14626 (lto-wrapper$(exeext)): Use it.
14627 * collect2.c: Include "collect-utils.h".
14628 (verbose, debug): Remove variables.
14629 (at_file_supplied): No longer static.
14630 (tool_name): New variable.
14631 (do_wait, fork_execute, maybe_unlink): Don't declare.
14632 (tool_cleanup): No longer static.
14633 (notice): Remove function.
14634 (maybe_run_lto_and_relink, main, do_dsymutil): Add new arg to
14635 fork_execute calls.
14636 (collect_wait, do_wait, collect_execute): Remove functions.
14637 (maybe_unlink): No longer static.
14638 * collect2.h (verbose, debug): Don't declare.
14639 (at_file_supplied): Declare.
14640 * collect-utils.c (utils_cleanup): New arg from_signal. All callers
14642 (collect_execute): Replace with implementation from collect2, plus a
14643 new arg use_atfile. All callers changed.
14644 (collect_wait): Replace with implementation from collect2.
14645 (maybe_unlink_file): Remove function.
14646 (fork_execute): Replace with implementation from collect2, plus a
14647 new arg use_atfile. All callers changed.
14648 (do_wait): Add call to utils_cleanup to the error path.
14649 * collect-utils.h (collect_execute, fork_execute, utils_cleanup)
14650 (tool_cleanup): Adjust declarations.
14651 * lto-wrapper.c (tool_cleanup): Add unused bool argument.
14652 * tlink.c: Include "collect-utils.h".
14653 (tlink_execute): New arg use_atfile. All callers changed.
14654 (tlink_init, tlink_execute): Remove declarations.
14656 * collect-utils.c (save_temps): New variable.
14657 (do_wait): Use it instead of debug. Use fatal_error.
14658 * collect-utils.h (save_temps): Declare.
14659 * collect2.c (verbose): Rename from vflag. All uses changed.
14660 (tool_cleanup): New function, copied from collect_atexit.
14661 (collect_atexit, handler): Just call it.
14662 * collect2.h (verbose): Declaration renamed from vflag.
14663 * lto-wrapper.c (maybe_unlink, run_gcc): Use save_temps instead of
14666 * Makefile.in (ALL_HOST_BACKEND_OBJS): Add collect-utils.o.
14667 (lto-wrapper$(exeext)): Link with collect-utils.o.
14668 * collect-utils.c: New file.
14669 * collect-utils.h: New file.
14670 * lto-wrapper.c: Include "collect-utils.h".
14671 (args_name): Delete variable.
14672 (tool_name): New variable.
14673 (tool_cleanup): New function.
14674 (maybe_unlink): Renamed from maybe_unlink_file. All callers changed.
14675 (lto_wrapper_cleanup, fatal_signal, collect_execute, collect_wait)
14676 (fork_execute): Remove functions.
14678 2014-06-26 Nick Clifton <nickc@redhat.com>
14680 * config/frv/frv.c (frv_in_small_data_p): Remove redundant assert.
14682 * doc/extend.texi (Function Attributes): Fix typo in description
14683 of RX vector attribute.
14685 2014-06-26 James Greenhalgh <james.greenhalgh@arm.com>
14687 * config.gcc (supported_defaults): Error when passing either
14688 --with-tune or --with-arch in conjunction with --with-cpu for ARM.
14690 2014-06-26 Richard Biener <rguenther@suse.de>
14692 * tree-ssa-dom.c (cprop_operand): Remove restriction on
14693 propagating volatile pointers.
14695 2014-06-26 Richard Biener <rguenther@suse.de>
14697 PR tree-optimization/61607
14698 * tree-ssa-threadupdate.c (ssa_redirect_edges): Cancel the
14699 loop if we redirected its latch edge.
14700 (thread_block_1): Do not cancel loops prematurely.
14702 2014-06-25 Jan Hubicka <hubicka@ucw.cz>
14704 * toplev.c (backend_init_target): Move init_emit_regs and
14706 (backend_init) ... here; skip ira_init_once and backend_init_target.
14707 (target_reinit) ... and here; clear
14708 this_target_rtl->lang_dependent_initialized.
14709 (lang_dependent_init_target): Clear
14710 this_target_rtl->lang_dependent_initialized;
14711 break out rtl initialization to ...
14712 (initialize_rtl): ... here; call also backend_init_target
14714 * toplev.h (initialize_rtl): New function.
14715 * function.c: Include toplev.h
14716 (init_function_start): Call initialize_rtl.
14717 * rtl.h (target_rtl): Add target_specific_initialized,
14718 lang_dependent_initialized.
14720 2014-06-25 Paul Gortmaker <paul.gortmaker@windriver.com>
14721 Jakub Jelinek <jakub@redhat.com>
14723 * gcc.c (set_multilib_dir): Malloc "." pointer as well.
14725 2014-06-25 Tom de Vries <tom@codesourcery.com>
14727 * config/arm/arm.c (arm_emit_call_insn): Remove clobber of CC_REGNUM.
14729 2014-06-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
14731 * tree-ssa-forwprop.c (associate_plusminus): For widening conversions
14732 check for undefined overflow in (T)(P + A) - (T)P -> (T)A.
14733 Issue a strict overflow warning if appropriate.
14735 2014-06-25 Martin Liska <mliska@suse.cz>
14737 IPA REF refactoring
14738 * Makefile.in: Removed header file (ipa-ref-inline.h).
14739 * cgraph.c (cgraph_turn_edge_to_speculative): New IPA REF function
14741 (cgraph_speculative_call_info): Likewise.
14742 (cgraph_for_node_thunks_and_aliases): Likewise.
14743 (cgraph_for_node_and_aliases): Likewise.
14744 (verify_cgraph_node): Likewise.
14745 * cgraph.h: Batch of IPA REF functions become member functions of
14746 symtab_node: add_reference, maybe_add_reference, clone_references,
14747 clone_referring, clone_reference, find_reference,
14748 remove_stmt_references, remove_all_references,
14749 remove_all_referring, dump_references, dump_referring,
14750 has_alias_p, iterate_reference, iterate_referring.
14751 * cgraphbuild.c (record_reference): New IPA REF function used.
14752 (record_type_list): Likewise.
14753 (record_eh_tables): Likewise.
14754 (mark_address): Likewise.
14755 (mark_load): Likewise.
14756 (mark_store): Likewise.
14757 (pass_build_cgraph_edges): Likewise.
14758 (rebuild_cgraph_edge): Likewise.
14759 (cgraph_rebuild_references): Likewise.
14760 (pass_remove_cgraph_callee_edges): Likewise.
14761 * cgraphclones.c (cgraph_clone_node): Likewise.
14762 (cgraph_create_virtual_clone): Likewise.
14763 (cgraph_materialize_clone): Likewise.
14764 (cgraph_materialize_all_clones): Likewise.
14765 * cgraphunit.c (cgraph_reset_node): Likewise.
14766 (cgraph_reset_node): Likewise.
14767 (analyze_function): Likewise.
14768 (assemble_thunks_and_aliases): Likewise.
14769 (expand_function): Likewise.
14770 * ipa-comdats.c (propagate_comdat_group): Likewise.
14771 (enqueue_references): Likewise.
14772 * ipa-cp.c (ipcp_discover_new_direct_edges): Likewise.
14773 (create_specialized_node): Likewise.
14774 * ipa-devirt.c (referenced_from_vtable_p): Likewise.
14775 * ipa-inline-transform.c (can_remove_node_now_p_1): Likewise.
14776 * ipa-inline.c (reset_edge_caches): Likewise.
14777 (update_caller_keys): Likewise.
14778 (execute): Likewise.
14779 * ipa-prop.c (remove_described_reference): Likewise.
14780 (propagate_controlled_uses): Likewise.
14781 (ipa_edge_duplication_hook): Likewise.
14782 (ipa_modify_call_arguments): Likewise.
14783 * ipa-pure-const.c (propagate_pure_const): Likewise.
14784 * ipa-ref-inline.h: Header file removed, functions moved
14785 to symtab_node class.
14786 * ipa-ref.c (remove_reference): New class member function.
14787 (cannot_lead_to_return): New class member function.
14788 (referring_ref_list): Likewise.
14789 (referred_ref_list): Likewise.
14790 Rest of functions moved to symtab_node class.
14791 * ipa-ref.h: New member functions remove_reference,
14792 cannot_lead_to_return, referring_ref_list, referred_ref_list added
14794 ipa_ref_list class has new member functions: first_reference,
14795 first_referring, clear, nreferences.
14796 * ipa-reference.c (analyze_function): New IPA REF function used.
14797 (write_node_summary_p): Likewise.
14798 (ipa_reference_write_optimization_summary): Likewise.
14799 * ipa-split.c (split_function): Likewise.
14800 * ipa-utils.c (ipa_reverse_postorder): Likewise.
14801 * ipa-visibility.c (cgraph_non_local_node_p_1): Likewise.
14802 (function_and_variable_visibility): Likewise.
14803 * ipa.c (has_addr_references_p): Likewise.
14804 (process_references): Argument type changed.
14805 (symtab_remove_unreachable_nodes): New IPA REF function used.
14806 (process_references): Likewise.
14807 (set_writeonly_bit): Likewise.
14808 * lto-cgraph.c: Implementation of new symtab_node member functions
14809 that uses new IPA REF functions.
14810 * lto-streamer-in.c (fixup_call_stmt_edges_1): New IPA REF
14812 * lto-streamer-out.c (output_symbol_p): Likewise.
14813 * lto-streamer.h (referenced_from_this_partition_p): Argument type
14815 * symtab.c: Implementation of new IPA REF API.
14816 * trans-mem.c (ipa_tm_create_version_alias): New IPA REF function used.
14817 (ipa_tm_create_version): Likewise.
14818 (ipa_tm_execute): Likewise.
14819 * tree-emutls.c (gen_emutls_addr): Likewise.
14820 * tree-inline.c (copy_bb): Likewise.
14821 (delete_unreachable_blocks_update_callgraph): Likewise.
14822 * varpool.c (varpool_remove_unreferenced_decls): Likewise.
14823 (varpool_for_node_and_aliases): Likewise.
14825 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14827 * config/i386/winnt.c (i386_find_on_wrapper_list): Fix typo.
14829 2014-06-25 Trevor Saunders <tsaunders@mozilla.com>
14832 * fold-const.c (fold_checksum_tree): Use a hash_table of const
14833 tree_node * instead of tree_node *.
14835 (print_fold_checksum): Likewise.
14836 (fold_check_failed): Likewise.
14837 (debug_fold_checksum): Likewise.
14838 (fold_build1_stat_loc): Likewise.
14839 (fold_build2_stat_loc): Likewise.
14840 (fold_build3_stat_loc): Likewise.
14841 (fold_build_call_array_loc): Likewise.
14843 2014-06-25 David Edelsohn <dje.gcc@gmail.com>
14845 * config/rs6000/xcoff.h (ASM_DECLARE_FUNCTION_NAME): Replace
14846 implementation with call to...
14847 * config/rs6000/rs6000.c (rs6000_xcoff_declare_function_name): New
14849 * config/rs6000/rs6000-protos.h (rs6000_xcoff_declare_function_name):
14852 2014-06-25 Marc Glisse <marc.glisse@inria.fr>
14854 PR tree-optimization/57742
14855 * tree-ssa-strlen.c (handle_builtin_memset): Update strinfo
14856 after replacing the statement.
14858 2014-06-25 Nick Clifton <nickc@redhat.com>
14860 * config/v850/v850.c (GHS_default_section_names): Change to const
14862 (GHS_current_section_names): Likewise.
14863 (v850_insert_attributes): Do not build strings, just assign the
14864 names directly. Change the type of 'chosen_section' to const
14866 * config/v850/v850-c.c (ghs_pragma_section): Assign the alias
14867 directly to the array entry.
14868 * config/v850/v850.h (GHS_default_section_names): Change to const
14870 (GHS_current_section_names): Likewise.
14872 2014-06-25 Jakub Jelinek <jakub@redhat.com>
14874 * langhooks-def.h (LANG_HOOKS_OMP_CLAUSE_LINEAR_CTOR): Define.
14875 (LANG_HOOKS_DECLS): Add it.
14876 * gimplify.c (gimplify_omp_for): Make sure OMP_CLAUSE_LINEAR_STEP
14878 * tree.h (OMP_CLAUSE_LINEAR_ARRAY): Define.
14879 * langhooks.h (struct lang_hooks_for_decls): Add
14880 omp_clause_linear_ctor hook.
14881 * omp-low.c (lower_rec_input_clauses): Set max_vf even if
14882 OMP_CLAUSE_LINEAR_ARRAY is set. Don't fold_convert
14883 OMP_CLAUSE_LINEAR_STEP. For OMP_CLAUSE_LINEAR_ARRAY in
14884 combined simd loop use omp_clause_linear_ctor hook.
14886 2014-06-24 Cong Hou <congh@google.com>
14888 * tree-vect-patterns.c (vect_recog_sad_pattern): New function for SAD
14889 pattern recognition.
14890 (type_conversion_p): PROMOTION is true if it's a type promotion
14891 conversion, and false otherwise. Return true if the given expression
14892 is a type conversion one.
14893 * tree-vectorizer.h: Adjust the number of patterns.
14894 * tree.def: Add SAD_EXPR.
14895 * optabs.def: Add sad_optab.
14896 * cfgexpand.c (expand_debug_expr): Add SAD_EXPR case.
14897 * expr.c (expand_expr_real_2): Likewise.
14898 * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
14899 * gimple.c (get_gimple_rhs_num_ops): Likewise.
14900 * optabs.c (optab_for_tree_code): Likewise.
14901 * tree-cfg.c (estimate_operator_cost): Likewise.
14902 * tree-ssa-operands.c (get_expr_operands): Likewise.
14903 * tree-vect-loop.c (get_initial_def_for_reduction): Likewise.
14904 * config/i386/sse.md: Add SSE2 and AVX2 expand for SAD.
14905 * doc/generic.texi: Add document for SAD_EXPR.
14906 * doc/md.texi: Add document for ssad and usad.
14908 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14910 * config/i386/winnt.c (i386_pe_section_type_flags): Fix const
14911 qualification in cast.
14913 2014-06-24 Jan Hubicka <hubicka@ucw.cz>
14915 * tree.c (find_decls_types_r): Do not check DECL_VINDEX for TYPE_DECL.
14916 * tree.h (DECL_VINDEX, DECL_SAVED_TREE): Restrict to DECL_FUNCTION.
14917 * tree-core.h (tree_decl_non_common): Move saved_tree and vindex...
14918 (tree_function_decl): ... here.
14919 * tree-streamer-out.c (write_ts_decl_non_common_tree_pointers): Move
14920 streaming of vindex to ...
14921 (write_ts_function_decl_tree_pointers): ... here.
14922 * tree-streamer-in.c (lto_input_ts_decl_non_common_tree_pointers):
14923 Do not stream DECL_VINDEX.
14924 (lto_input_ts_function_decl_tree_pointers): Stream it here.
14926 2014-06-24 Catherine Moore <clm@codesourcery.com>
14927 Sandra Loosemore <sandra@codesourcery.com>
14929 * config/mips/mips.c (mips_order_regs_for_local_alloc): Delete.
14930 * config/mips/mips.h (ADJUST_REG_ALLOC_ORDER): Delete.
14931 * config/mips/mips-protos.h (mips_order_regs_for_local_alloc): Delete.
14933 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14935 * doc/invoke.texi (Warning Options): Remove duplicated
14936 -Wmaybe-uninitialized.
14938 2014-06-24 Marc Glisse <marc.glisse@inria.fr>
14940 PR tree-optimization/57742
14941 * tree-ssa-strlen.c (get_string_length): Ignore malloc.
14942 (handle_builtin_malloc, handle_builtin_memset): New functions.
14943 (strlen_optimize_stmt): Call them.
14944 * passes.def: Move strlen after loop+dom but before vrp.
14946 2014-06-24 Jakub Jelinek <jakub@redhat.com>
14949 * config/i386/driver-i386.c (host_detect_local_cpu): For unknown
14950 model family 6 CPU with has_longmode never use a CPU without
14953 2014-06-24 H.J. Lu <hongjiu.lu@intel.com>
14956 * config/i386/driver-i386.c (host_detect_local_cpu): Revert
14959 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14961 * alloc-pool.c (alloc_pool_hash): Use hash_map instead of hash_table.
14962 * dominance.c (iterate_fix_dominators): Use hash_map instead of
14964 * hash-map.h: New file.
14965 * ipa-comdats.c: Use hash_map instead of pointer_map.
14967 * lto-section-out.c: Adjust.
14968 * lto-streamer.h: Replace pointer_map with hash_map.
14969 * symtab.c (verify_symtab): Likewise.
14970 * tree-ssa-strlen.c (decl_to_stridxlist_htab): Likewise.
14971 * tree-ssa-uncprop.c (val_ssa_equiv): Likewise.
14972 * tree-streamer.h: Likewise.
14973 * tree-streamer.c: Adjust.
14974 * pointer-set.h: Remove pointer_map.
14976 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14978 * hash-table.h: Add a template arg to choose between storing values
14979 and storing pointers to values, and then provide partial
14980 specializations for both.
14981 * tree-browser.c (tree_upper_hasher): Provide the type the hash table
14982 should store, not the type values should point to.
14983 * tree-into-ssa.c (var_info_hasher): Likewise.
14984 * tree-ssa-dom.c (expr_elt_hasher): Likewise.
14985 * tree-complex.c: Adjust.
14986 * tree-hasher.h (int_tree_hasher): store int_tree_map in the hash
14987 table instead of int_tree_map *.
14988 * tree-parloops.c: Adjust.
14989 * tree-ssa-reassoc.c (ocount_hasher): Don't lie to hash_map about what
14990 type is being stored.
14991 * tree-vectorizer.c: Adjust.
14993 2014-06-24 Trevor Saunders <tsaunders@mozilla.com>
14995 * hash-table.h: Remove a layer of indirection from hash_table so that
14996 it contains the hash table's data instead of a pointer to the data.
14997 * alloc-pool.c, asan.c, attribs.c, bitmap.c, cfg.c,
14998 config/arm/arm.c, config/i386/winnt.c, config/ia64/ia64.c,
14999 config/mips/mips.c, config/sol2.c, coverage.c, cselib.c,
15000 data-streamer-out.c, dse.c, dwarf2cfi.c, dwarf2out.c, except.c,
15001 fold-const.c, gcse.c, ggc-common.c,
15002 gimple-ssa-strength-reduction.c, gimplify.c,
15003 graphite-clast-to-gimple.c, graphite-dependences.c,
15004 graphite-htab.h, graphite.c, haifa-sched.c, ipa-devirt.c,
15005 ipa-profile.c, ira-color.c, ira-costs.c, loop-invariant.c,
15006 loop-iv.c, loop-unroll.c, lto-streamer-in.c, lto-streamer-out.c,
15007 lto-streamer.c, lto-streamer.h, passes.c, plugin.c,
15008 postreload-gcse.c, sese.c, statistics.c, store-motion.c,
15009 trans-mem.c, tree-browser.c, tree-cfg.c, tree-complex.c,
15010 tree-eh.c, tree-into-ssa.c, tree-parloops.c, tree-sra.c,
15011 tree-ssa-ccp.c, tree-ssa-coalesce.c, tree-ssa-dom.c,
15012 tree-ssa-live.c, tree-ssa-loop-im.c,
15013 tree-ssa-loop-ivopts.c, tree-ssa-phiopt.c, tree-ssa-pre.c,
15014 tree-ssa-reassoc.c, tree-ssa-sccvn.c, tree-ssa-strlen.c,
15015 tree-ssa-structalias.c, tree-ssa-tail-merge.c,
15016 tree-ssa-threadupdate.c, tree-ssa-uncprop.c,
15017 tree-vect-data-refs.c, tree-vect-loop.c, tree-vectorizer.c,
15018 tree-vectorizer.h, valtrack.c, valtrack.h, var-tracking.c,
15019 vtable-verify.c, vtable-verify.h: Adjust.
15021 2014-06-24 Richard Biener <rguenther@suse.de>
15023 PR tree-optimization/61572
15024 * tree-ssa-sink.c (statement_sink_location): Do not sink
15025 loads from hard registers.
15027 2014-06-24 Jakub Jelinek <jakub@redhat.com>
15029 * gimplify.c (gimplify_omp_for): For #pragma omp for simd iterator
15030 not mentioned in clauses use private clause if the iterator is
15031 declared in #pragma omp for simd, and when adding lastprivate
15032 instead, add it to the outer #pragma omp for too. Diagnose
15033 if the variable is private in outer context. For simd collapse > 1
15034 loops, replace all iterators with temporaries.
15035 * omp-low.c (lower_rec_input_clauses): Handle LINEAR clause the
15036 same even in collapse > 1 loops.
15038 * gimplify.c (gimplify_scan_omp_clauses) <case OMP_CLAUSE_MAP,
15039 OMP_CLAUSE_TO, OMP_CLAUSE_FROM): Make sure OMP_CLAUSE_SIZE is
15041 <case OMP_CLAUSE_ALIGNED>: Gimplify OMP_CLAUSE_ALIGNED_ALIGNMENT.
15042 (gimplify_adjust_omp_clauses_1): Make sure OMP_CLAUSE_SIZE is
15044 (gimplify_adjust_omp_clauses): Likewise.
15045 * omp-low.c (lower_rec_simd_input_clauses,
15046 lower_rec_input_clauses, expand_omp_simd): Handle non-constant
15047 safelen the same as safelen(1).
15048 * tree-nested.c (convert_nonlocal_omp_clauses,
15049 convert_local_omp_clauses): Handle OMP_CLAUSE_ALIGNED. For
15050 OMP_CLAUSE_{MAP,TO,FROM} if not decl use walk_tree.
15051 (convert_nonlocal_reference_stmt, convert_local_reference_stmt):
15052 Fixup handling of GIMPLE_OMP_TARGET.
15053 (convert_tramp_reference_stmt, convert_gimple_call): Handle
15056 2014-06-24 Chung-Lin Tang <cltang@codesourcery.com>
15058 PR tree-optimization/61554
15059 * tree-ssa-propagate.c: Include "bitmap.h".
15060 (substitute_and_fold_dom_walker): Add 'bitmap need_eh_cleanup' member,
15061 properly update constructor/destructor.
15062 (substitute_and_fold_dom_walker::before_dom_children):
15063 Remove call to gimple_purge_dead_eh_edges, add bb->index to
15064 need_eh_cleaup instead.
15065 (substitute_and_fold): Call gimple_purge_all_dead_eh_edges on
15068 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15070 * varpool.c (dump_varpool_node): Dump used_by_single_function.
15071 * tree-pass.h (make_pass_ipa_single_use): New pass.
15072 * cgraph.h (used_by_single_function): New flag.
15073 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node):
15075 * passes.def (pass_ipa_single_use): Scedule.
15076 * ipa.c (BOTTOM): New macro.
15077 (meet): New function
15078 (propagate_single_user): New function.
15079 (ipa_single_use): New function.
15080 (pass_data_ipa_single_use): New pass.
15081 (pass_ipa_single_use): New pass.
15082 (pass_ipa_single_use::gate): New gate.
15083 (make_pass_ipa_single_use): New function.
15085 2014-06-23 Kai Tietz <ktietz@redhat.com>
15088 * passes.def (peephole2): Move peephole2 pass before sched2 pass.
15089 * config/i386/i386.md (peehole2): Combine memories and indirect jumps.
15091 2014-06-23 Richard Biener <rguenther@suse.de>
15093 * tree-ssa-loop.c (gate_loop): New function.
15094 (pass_tree_loop::gate): Call it.
15095 (pass_data_tree_no_loop, pass_tree_no_loop,
15096 make_pass_tree_no_loop): New.
15097 * tree-vectorizer.c: Include tree-scalar-evolution.c
15098 (pass_slp_vectorize::execute): Initialize loops and SCEV if
15100 (pass_slp_vectorize::clone): New method.
15101 * timevar.def (TV_TREE_NOLOOP): New.
15102 * tree-pass.h (make_pass_tree_no_loop): Declare.
15103 * passes.def (pass_tree_no_loop): New pass group with
15106 2014-06-23 H.J. Lu <hongjiu.lu@intel.com>
15109 * config/i386/driver-i386.c (host_detect_local_cpu): Set arch
15110 to x86-64 if a 32-bit processor supports SSE2 and 64-bit.
15112 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15114 * config/aarch64/aarch64.md (addsi3_aarch64): Set "simd" attr to
15115 "yes" where needed.
15117 2014-06-23 Alan Modra <amodra@gmail.com>
15120 * tree-vrp.c (remove_range_assertions): Do not set is_unreachable
15121 to zero on debug statements.
15123 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15126 * config/aarch64/aarch64-builtins.c (aarch64_types_unop_qualifiers):
15127 Ignore third operand if present by marking qualifier_internal.
15129 * config/aarch64/aarch64-simd-builtins.def (abs): Comment.
15131 * config/aarch64/arm_neon.h (int64x1_t, uint64x1_t): Typedef to GCC
15133 (aarch64_vget_lane_s64, aarch64_vdup_lane_s64,
15134 arch64_vdupq_lane_s64, aarch64_vdupq_lane_u64): Remove macro.
15135 (vqadd_s64, vqadd_u64, vqsub_s64, vqsub_u64, vqneg_s64, vqabs_s64,
15136 vcreate_s64, vcreate_u64, vreinterpret_s64_f64, vreinterpret_u64_f64,
15137 vcombine_u64, vbsl_s64, vbsl_u64, vceq_s64, vceq_u64, vceqz_s64,
15138 vceqz_u64, vcge_s64, vcge_u64, vcgez_s64, vcgt_s64, vcgt_u64,
15139 vcgtz_s64, vcle_s64, vcle_u64, vclez_s64, vclt_s64, vclt_u64,
15140 vcltz_s64, vdup_n_s64, vdup_n_u64, vld1_s64, vld1_u64, vmov_n_s64,
15141 vmov_n_u64, vqdmlals_lane_s32, vqdmlsls_lane_s32,
15142 vqdmulls_lane_s32, vqrshl_s64, vqrshl_u64, vqrshl_u64, vqshl_s64,
15143 vqshl_u64, vqshl_n_s64, vqshl_n_u64, vqshl_n_s64, vqshl_n_u64,
15144 vqshlu_n_s64, vrshl_s64, vrshl_u64, vrshr_n_s64, vrshr_n_u64,
15145 vrsra_n_s64, vrsra_n_u64, vshl_n_s64, vshl_n_u64, vshl_s64,
15146 vshl_u64, vshr_n_s64, vshr_n_u64, vsli_n_s64, vsli_n_u64,
15147 vsqadd_u64, vsra_n_s64, vsra_n_u64, vsri_n_s64, vsri_n_u64,
15148 vst1_s64, vst1_u64, vtst_s64, vtst_u64, vuqadd_s64): Wrap existing
15149 logic in GCC vector extensions
15151 (vpaddd_s64, vaddd_s64, vaddd_u64, vceqd_s64, vceqd_u64, vceqzd_s64
15152 vceqzd_u64, vcged_s64, vcged_u64, vcgezd_s64, vcgtd_s64, vcgtd_u64,
15153 vcgtzd_s64, vcled_s64, vcled_u64, vclezd_s64, vcltd_s64, vcltd_u64,
15154 vcltzd_s64, vqdmlals_s32, vqdmlsls_s32, vqmovnd_s64, vqmovnd_u64
15155 vqmovund_s64, vqrshld_s64, vqrshld_u64, vqrshrnd_n_s64,
15156 vqrshrnd_n_u64, vqrshrund_n_s64, vqshld_s64, vqshld_u64,
15157 vqshld_n_u64, vqshrnd_n_s64, vqshrnd_n_u64, vqshrund_n_s64,
15158 vrshld_u64, vrshrd_n_u64, vrsrad_n_u64, vshld_n_u64, vshld_s64,
15159 vshld_u64, vslid_n_u64, vsqaddd_u64, vsrad_n_u64, vsrid_n_u64,
15160 vsubd_s64, vsubd_u64, vtstd_s64, vtstd_u64): Fix type signature.
15162 (vabs_s64): Use GCC vector extensions; call __builtin_aarch64_absdi.
15164 (vget_high_s64, vget_high_u64): Reimplement with GCC vector
15167 (__GET_LOW, vget_low_u64): Wrap result using vcreate_u64.
15168 (vget_low_s64): Use __GET_LOW macro.
15169 (vget_lane_s64, vget_lane_u64, vdupq_lane_s64, vdupq_lane_u64): Use
15170 gcc vector extensions, add call to __builtin_aarch64_lane_boundsi.
15171 (vdup_lane_s64, vdup_lane_u64,): Add __builtin_aarch64_lane_bound_si.
15172 (vdupd_lane_s64, vdupd_lane_u64): Fix type signature, add
15173 __builtin_aarch64_lane_boundsi, use GCC vector extensions.
15175 (vcombine_s64): Use GCC vector extensions; remove cast.
15176 (vqaddd_s64, vqaddd_u64, vqdmulls_s32, vqshld_n_s64, vqshlud_n_s64,
15177 vqsubd_s64, vqsubd_u64, vrshld_s64, vrshrd_n_s64, vrsrad_n_s64,
15178 vshld_n_s64, vshrd_n_s64, vslid_n_s64, vsrad_n_s64, vsrid_n_s64):
15179 Fix type signature; remove cast.
15181 2014-06-23 Alan Lawrence <alan.lawrence@arm.com>
15184 * config/aarch64/aarch64.c (aarch64_simd_mangle_map): Add entry for
15186 * config/aarch64/aarch64-builtins.c (aarch64_simd_builtin_type_mode):
15188 (BUILTIN_VD1): New.
15189 (BUILTIN_VD_RE): Remove.
15190 (aarch64_init_simd_builtins): Add V1DF to modes/modenames.
15191 (aarch64_fold_builtin): Update reinterpret patterns, df becomes v1df.
15192 * config/aarch64/aarch64-simd-builtins.def (create): Make a v1df
15193 variant but not df.
15194 (vreinterpretv1df*, vreinterpret*v1df): New.
15195 (vreinterpretdf*, vreinterpret*df): Remove.
15196 * config/aarch64/aarch64-simd.md (aarch64_create,
15197 aarch64_reinterpret*): Generate V1DFmode pattern not DFmode.
15198 * config/aarch64/iterators.md (VD_RE): Include V1DF, remove DF.
15200 * config/aarch64/arm_neon.h (float64x1_t): typedef with gcc extensions.
15201 (vcreate_f64): Remove cast, use v1df builtin.
15202 (vcombine_f64): Remove cast, get elements with gcc vector extensions.
15203 (vget_low_f64, vabs_f64, vceq_f64, vceqz_f64, vcge_f64, vgfez_f64,
15204 vcgt_f64, vcgtz_f64, vcle_f64, vclez_f64, vclt_f64, vcltz_f64,
15205 vdup_n_f64, vdupq_lane_f64, vld1_f64, vld2_f64, vld3_f64, vld4_f64,
15206 vmov_n_f64, vst1_f64): Use gcc vector extensions.
15207 (vget_lane_f64, vdupd_lane_f64, vmulq_lane_f64, ): Use gcc extensions,
15208 add range check using __builtin_aarch64_im_lane_boundsi.
15209 (vfma_lane_f64, vfmad_lane_f64, vfma_laneq_f64, vfmaq_lane_f64,
15210 vfms_lane_f64, vfmsd_lane_f64, vfms_laneq_f64, vfmsq_lane_f64): Fix
15211 type signature, use gcc vector extensions.
15212 (vreinterpret_p8_f64, vreinterpret_p16_f64, vreinterpret_f32_f64,
15213 vreinterpret_f64_f32, vreinterpret_f64_p8, vreinterpret_f64_p16,
15214 vreinterpret_f64_s8, vreinterpret_f64_s16, vreinterpret_f64_s32,
15215 vreinterpret_f64_s64, vreinterpret_f64_u8, vreinterpret_f64_u16,
15216 vreinterpret_f64_u32, vreinterpret_f64_u64, vreinterpret_s8_f64,
15217 vreinterpret_s16_f64, vreinterpret_s32_f64, vreinterpret_s64_f64,
15218 vreinterpret_u8_f64, vreinterpret_u16_f64, vreinterpret_u32_f64,
15219 vreinterpret_u64_f64): Use v1df builtin not df.
15221 2014-06-23 James Greenhalgh <james.greenhalgh@arm.com>
15223 * config/aarch64/aarch64.md (*addsi3_aarch64): Add alternative in
15226 2014-06-23 Jan Hubicka <hubicka@ucw.cz>
15228 * lto-cgraph.c (lto_output_node, input_node): Set/get init/fini
15231 2014-06-23 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15233 * loop-invariant.c (pre_check_invariant_p): New function.
15234 (find_invariant_insn): Call pre_check_invariant_p.
15236 2014-06-22 Richard Henderson <rth@redhat.com>
15239 * compare-elim.c (struct comparison): Add eh_note.
15240 (find_comparison_dom_walker::before_dom_children): Don't eliminate
15241 a redundant comparison in a different EH region. Purge EH edges if
15244 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15246 * config/rs6000/rs6000.md (maybe_var_shift): New define_attr.
15247 (var_shift): Use it.
15248 (rotl<mode>3, *rotlsi3_64, *rotl<mode>3_dot, *rotl<mode>3_dot2,
15249 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
15250 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
15251 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
15252 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
15253 *rotlsi3_internal12be, ashl<mode>3, *ashlsi3_64, *ashl<mode>3_dot,
15254 *ashl<mode>3_dot2, lshr<mode>3, *lshrsi3_64, *lshr<mode>3_dot,
15255 *lshr<mode>3_dot2, *ashr<mode>3, *ashrsi3_64, *ashr<mode>3_dot,
15256 *ashr<mode>3_dot2, *rotldi3_internal4, *rotldi3_internal5,
15257 *rotldi3_internal6, *rotldi3_internal7le, *rotldi3_internal7be,
15258 *rotldi3_internal8le, *rotldi3_internal8be, *rotldi3_internal9le,
15259 *rotldi3_internal9be, *rotldi3_internal10le, *rotldi3_internal10be,
15260 *rotldi3_internal11le, *rotldi3_internal11be, *rotldi3_internal12le,
15261 *rotldi3_internal12be, *rotldi3_internal13le, *rotldi3_internal13be,
15262 *rotldi3_internal14le, *rotldi3_internal14be, *rotldi3_internal15le,
15263 *rotldi3_internal15be): Use the new attribute. Merge register and
15264 integer alternatives.
15266 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15268 * config/rs6000/rs6000.md (ashrsi3, two anonymous define_insns and
15269 define_splits, ashrdi3, *ashrdi3_internal1, *ashrdi3_internal2 and
15270 split, *ashrdi3_internal3 and split): Delete, merge into...
15271 (ashr<mode>3): New expander.
15272 (*ashr<mode>3, ashr<mode>3_dot, ashr<mode>3_dot2): New.
15273 (*ashrsi3_64): Fix formatting. Replace "i" by "n".
15275 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15277 * config/rs6000/rs6000.md (rotlsi3, *rotlsi3_internal2 and split,
15278 *rotlsi3_internal3 and split, rotldi3, *rotldi3_internal2 and split,
15279 *rotldi3_internal3 and split): Delete, merge into...
15280 (rotl<mode>3, rotl<mode>3_dot, rotl<mode>3_dot2): New.
15281 (*rotlsi3_64): Fix formatting. Fix condition. Replace "i" by "n".
15282 Use "rotlw" extended mnemonic.
15284 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15286 * config/rs6000/rs6000.md (ashlsi3, two anonymous define_insns
15287 and define_splits, ashldi3, *ashldi3_internal1, *ashldi3_internal2
15288 and split, *ashldi3_internal3 and split): Delete, merge into...
15289 (ashl<mode>3, ashl<mode>3_dot, ashl<mode>3_dot2): New.
15290 (*ashlsi3_64): Fix formatting. Replace "i" by "n".
15292 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15294 * config/rs6000/rs6000.md ("hH"): New define_mode_attr.
15295 (lshrsi3, two anonymous define_insns and define_splits,
15296 lshrdi3, *lshrdi3_internal1, *lshrdi3_internal2 and split,
15297 *lshrdi3_internal3 and split): Delete, merge into...
15298 (lshr<mode>3, lshr<mode>3_dot, lshr<mode>3_dot2): New.
15299 (*lshrsi3_64): Fix formatting. Replace "i" by "n".
15301 2014-06-22 Segher Boessenkool <segher@kernel.crashing.org>
15303 * config/rs6000/rs6000.md (lshrsi3, and its two dot patterns):
15304 Remove "O" alternative.
15306 2014-06-22 Richard Sandiford <rdsandiford@googlemail.com>
15308 * config/mips/mips.c (mips_move_to_gpr_cost): Remove mode argument.
15309 (mips_move_from_gpr_cost): Likewise.
15310 (mips_register_move_cost): Update accordingly.
15311 (mips_secondary_reload_class): Remove name of in_p.
15313 2014-06-22 Marc Glisse <marc.glisse@inria.fr>
15316 * config/i386/i386.md (x86_64_shrd, x86_shrd,
15317 ix86_rotr<dwi>3_doubleword): Replace ashiftrt with lshiftrt.
15319 2014-06-21 Jan-Benedict Glaw <jbglaw@lug-owl.de>
15321 * config/nios2/nios2.c: Include "builtins.h".
15323 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15325 * cgraph.h (tls_model_names): New variable.
15326 * print-tree.c (print_node): Simplify.
15327 * varpool.c (tls_model_names): New variable.
15328 (dump_varpool_node): Output tls model.
15330 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15332 * ipa-visibility.c (function_and_variable_visibility): Disable
15333 temporarily local aliases for some targets.
15335 2014-06-20 Marek Polacek <polacek@redhat.com>
15337 * asan.c (pass_sanopt::execute): Handle IFN_UBSAN_BOUNDS.
15338 * flag-types.h (enum sanitize_code): Add SANITIZE_BOUNDS and or it
15339 into SANITIZE_UNDEFINED.
15340 * doc/invoke.texi: Describe -fsanitize=bounds.
15341 * gimplify.c (gimplify_call_expr): Add gimplification of internal
15342 functions created in the FEs.
15343 * internal-fn.c: Move "internal-fn.h" after "tree.h".
15344 (expand_UBSAN_BOUNDS): New function.
15345 * internal-fn.def (UBSAN_BOUNDS): New internal function.
15346 * internal-fn.h: Don't define internal functions here.
15347 * opts.c (common_handle_option): Add -fsanitize=bounds.
15348 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS,
15349 BUILT_IN_UBSAN_HANDLE_OUT_OF_BOUNDS_ABORT): Add.
15350 * tree-core.h: Define internal functions here.
15351 (struct tree_base): Add ifn field.
15352 * tree-pretty-print.c: Include "internal-fn.h".
15353 (dump_generic_node): Handle functions without CALL_EXPR_FN.
15354 * tree.c (get_callee_fndecl): Likewise.
15355 (build_call_expr_internal_loc): New function.
15356 * tree.def (CALL_EXPR): Update description.
15357 * tree.h (CALL_EXPR_IFN): Define.
15358 (build_call_expr_internal_loc): Declare.
15359 * ubsan.c (get_ubsan_type_info_for_type): Return 0 for non-arithmetic
15361 (ubsan_type_descriptor): Change bool parameter to enum
15362 ubsan_print_style. Adjust the code. Add handling of
15364 (ubsan_expand_bounds_ifn): New function.
15365 (ubsan_expand_null_ifn): Adjust ubsan_type_descriptor call.
15366 (ubsan_build_overflow_builtin): Likewise.
15367 (instrument_bool_enum_load): Likewise.
15368 (ubsan_instrument_float_cast): Likewise.
15369 * ubsan.h (enum ubsan_print_style): New enum.
15370 (ubsan_expand_bounds_ifn): Declare.
15371 (ubsan_type_descriptor): Adjust declaration. Use a default parameter.
15373 2014-06-20 Maciej W. Rozycki <macro@codesourcery.com>
15375 * config/rs6000/rs6000.md: Append `DONE' to preparation
15376 statements of `bswap' pattern splitters.
15378 2014-06-20 Tom de Vries <tom@codesourcery.com>
15380 * target.def (call_fusage_contains_non_callee_clobbers): Update
15382 * doc/tm.texi: Regenerate.
15384 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15385 Max Ostapenko <m.ostapenko@partner.samsung.com>
15388 * asan.c (instrument_strlen_call): Fixed instrumentation of
15391 2014-06-20 Martin Jambor <mjambor@suse.cz>
15394 * ipa-prop.c (impossible_devirt_target): New function.
15395 (try_make_edge_direct_virtual_call): Use it, also instead of
15398 2014-06-20 Yury Gribov <y.gribov@samsung.com>
15399 Max Ostapenko <m.ostapenko@partner.samsung.com>
15402 * asan.c (build_check_stmt): Add condition.
15404 2014-06-20 Martin Jambor <mjambor@suse.cz>
15407 * cgraph.c (clone_of_p): Allow skipped_branch to deal with
15410 2014-06-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15412 * config/aarch64/iterators.md (VCOND): Handle SI and HI modes.
15414 (VCONQ): Make comment more helpful.
15416 * config/aarch64/aarch64-simd.md
15417 (aarch64_sqdmulh_lane<mode>):
15418 Use VCOND for operands 2. Update lane checking and flipping logic.
15419 (aarch64_sqrdmulh_lane<mode>): Likewise.
15420 (aarch64_sq<r>dmulh_lane<mode>_internal): Likewise.
15421 (aarch64_sqdmull2<mode>): Remove VCON, use VQ_HSI mode iterator.
15422 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, VD_HSI): Change mode
15423 attribute of operand 3 to VCOND.
15424 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal, SD_HSI): Likewise.
15425 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
15426 (aarch64_sqdmull_lane<mode>_internal, VD_HSI): Likewise.
15427 (aarch64_sqdmull_lane<mode>_internal, SD_HSI): Likewise.
15428 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
15429 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, VD_HSI: New
15431 (aarch64_sqdml<SBINQOPS:as>l_laneq<mode>_internal, SD_HSI): Likewise.
15432 (aarch64_sqdml<SBINQOPS:as>l2_laneq<mode>_internal): Likewise.
15433 (aarch64_sqdmull_laneq<mode>_internal, VD_HSI): Likewise.
15434 (aarch64_sqdmull_laneq<mode>_internal, SD_HSI): Likewise.
15435 (aarch64_sqdmull2_laneq<mode>_internal): Likewise.
15436 (aarch64_sqdmlal_lane<mode>): Change mode attribute of penultimate
15437 operand to VCOND. Update lane flipping and bounds checking logic.
15438 (aarch64_sqdmlal2_lane<mode>): Likewise.
15439 (aarch64_sqdmlsl_lane<mode>): Likewise.
15440 (aarch64_sqdmull_lane<mode>): Likewise.
15441 (aarch64_sqdmull2_lane<mode>): Likewise.
15442 (aarch64_sqdmlal_laneq<mode>):
15443 Replace VCON usage with VCONQ.
15444 Emit aarch64_sqdmlal_laneq<mode>_internal insn.
15445 (aarch64_sqdmlal2_laneq<mode>): Emit
15446 aarch64_sqdmlal2_laneq<mode>_internal insn.
15447 Replace VCON with VCONQ.
15448 (aarch64_sqdmlsl2_lane<mode>): Replace VCON with VCONQ.
15449 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
15450 (aarch64_sqdmull_laneq<mode>): Emit
15451 aarch64_sqdmull_laneq<mode>_internal insn.
15452 Replace VCON with VCONQ.
15453 (aarch64_sqdmull2_laneq<mode>): Emit
15454 aarch64_sqdmull2_laneq<mode>_internal insn.
15455 (aarch64_sqdmlsl_laneq<mode>): Replace VCON usage with VCONQ.
15456 * config/aarch64/arm_neon.h (vqdmlal_high_lane_s16): Change type
15457 of 3rd argument to int16x4_t.
15458 (vqdmlalh_lane_s16): Likewise.
15459 (vqdmlslh_lane_s16): Likewise.
15460 (vqdmull_high_lane_s16): Likewise.
15461 (vqdmullh_lane_s16): Change type of 2nd argument to int16x4_t.
15462 (vqdmlal_lane_s16): Don't create temporary int16x8_t value.
15463 (vqdmlsl_lane_s16): Likewise.
15464 (vqdmull_lane_s16): Don't create temporary int16x8_t value.
15465 (vqdmlal_high_lane_s32): Change type 3rd argument to int32x2_t.
15466 (vqdmlals_lane_s32): Likewise.
15467 (vqdmlsls_lane_s32): Likewise.
15468 (vqdmull_high_lane_s32): Change type 2nd argument to int32x2_t.
15469 (vqdmulls_lane_s32): Likewise.
15470 (vqdmlal_lane_s32): Don't create temporary int32x4_t value.
15471 (vqdmlsl_lane_s32): Likewise.
15472 (vqdmull_lane_s32): Don't create temporary int32x4_t value.
15473 (vqdmulhh_lane_s16): Change type of second argument to int16x4_t.
15474 (vqrdmulhh_lane_s16): Likewise.
15475 (vqdmlsl_high_lane_s16): Likewise.
15476 (vqdmulhs_lane_s32): Change type of second argument to int32x2_t.
15477 (vqdmlsl_high_lane_s32): Likewise.
15478 (vqrdmulhs_lane_s32): Likewise.
15480 2014-06-20 Tom de Vries <tom@codesourcery.com>
15482 * final.c (collect_fn_hard_reg_usage): Add separate IOR_HARD_REG_SET for
15483 get_call_reg_set_usage.
15485 2014-06-20 Tom de Vries <tom@codesourcery.com>
15487 * final.c (collect_fn_hard_reg_usage): Don't save function_used_regs if
15488 it contains all call_used_regs.
15490 2014-06-20 Tom de Vries <tom@codesourcery.com>
15492 * final.c (collect_fn_hard_reg_usage): Add and use variable
15493 function_used_regs.
15495 2014-06-20 Jan Hubicka <hubicka@ucw.cz>
15497 * cgraph.h (struct symtab_node): Add field in_init_priority_hash
15498 (set_init_priority, get_init_priority, set_fini_priority,
15499 get_fini_priority): New methods.
15500 * tree.c (init_priority_for_decl): Remove.
15501 (init_ttree): Do not initialize init priority.
15502 (decl_init_priority_lookup, decl_fini_priority_lookup): Rewrite.
15503 (decl_priority_info): Remove.
15504 (decl_init_priority_insert): Rewrite.
15505 (decl_fini_priority_insert): Rewrite.
15506 * tree.h (tree_priority_map_eq, tree_priority_map_hash,
15507 tree_priority_map_marked_p): Remove.
15508 * lto-cgraph.c (lto_output_node, input_node): Stream init priorities.
15509 * lto-streamer-out.c (hash_tree): Do not hash priorities.
15510 * tree-streamer-out.c (pack_ts_decl_with_vis_value_fields): Do
15511 not output priorities.
15512 (pack_ts_function_decl_value_fields): Likewise.
15513 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
15514 not input priorities.
15515 (unpack_ts_function_decl_value_fields): Likewise.
15516 * symtab.c (symbol_priority_map): Declare.
15517 (init_priority_hash): Declare.
15518 (symtab_unregister_node): Unregister from priority hash, too.
15519 (symtab_node::get_init_priority, cgraph_node::get_fini_priority):
15521 (symbol_priority_map_eq, symbol_priority_map_hash): New functions.
15522 (symbol_priority_info): New function.
15523 (symtab_node::set_init_priority, cgraph_node::set_fini_priority):
15525 * tree-core.h (tree_priority_map): Remove.
15527 2014-06-20 Jakub Jelinek <jakub@redhat.com>
15529 * tree-ssa-math-opts.c (do_shift_rotate, find_bswap_or_nop_1): Cast
15530 0xff to uint64_t before shifting it up.
15532 2014-06-20 Julian Brown <julian@codesourcery.com>
15533 Chung-Lin Tang <cltang@codesourcery.com>
15535 * config/arm/arm.c (arm_output_mi_thunk): Fix offset for
15536 TARGET_THUMB1_ONLY. Add comments.
15538 2014-06-19 Tom de Vries <tom@codesourcery.com>
15540 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Change
15541 return type to void.
15542 * config/aarch64/aarch64.c (aarch64_emit_call_insn): Same.
15544 2014-06-19 Zhenqiang Chen <zhenqiang.chen@linaro.org>
15546 * loop-invariant.c (get_inv_cost): Skip invariants, which are marked
15547 as "move", from depends_on.
15549 2014-06-19 Terry Guo <terry.guo@arm.com>
15551 * config/arm/thumb1.md (define_split): Split 64bit constant in earlier
15554 2014-06-18 Segher Boessenkool <segher@kernel.crashing.org>
15556 * config/rs6000/rs6000.h (FIXED_REGISTERS): Update comment.
15558 (REG_ALLOC_ORDER): Update comment. Move cr5 earlier.
15560 2014-06-18 Kaz Kojima <kkojima@gcc.gnu.org>
15563 * config/sh/sh.c (prepare_move_operands): Don't process TLS
15564 addresses here if reload in progress or completed.
15566 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15568 * config/mips/constraints.md ("d"): BASE_REG_CLASS replaced by
15569 "TARGET_MIPS16 ? M16_REGS : GR_REGS".
15570 * config/mips/mips.c (mips_regno_to_class): Update for M16_SP_REGS.
15571 (mips_regno_mode_ok_for_base_p): Remove use of !strict_p for MIPS16.
15572 (mips_register_priority): New function that implements the target
15573 hook TARGET_REGISTER_PRIORITY.
15574 (mips_spill_class): Likewise for TARGET_SPILL_CLASS.
15575 (mips_lra_p): Likewise for TARGET_LRA_P.
15576 (TARGET_REGISTER_PRIORITY): Define macro.
15577 (TARGET_SPILL_CLASS): Likewise.
15578 (TARGET_LRA_P): Likewise.
15579 * config/mips/mips.h (reg_class): Add M16_SP_REGS and SPILL_REGS
15581 (REG_CLASS_NAMES): Likewise.
15582 (REG_CLASS_CONTENTS): Likewise.
15583 (BASE_REG_CLASS): Use M16_SP_REGS.
15584 * config/mips/mips.md (*mul_acc_si): Add alternative tuned for LRA.
15585 New set attribute to enable alternatives depending on the register
15587 (*mul_acc_si_r3900, *mul_sub_si): Likewise.
15588 (*lea64): Disable pattern for MIPS16.
15589 * config/mips/mips.opt (mlra): New option.
15591 2014-06-18 Robert Suchanek <robert.suchanek@imgtec.com>
15593 * lra-constraints.c (base_to_reg): New function.
15594 (process_address): Use new function.
15596 2014-06-18 Tom de Vries <tom@codesourcery.com>
15598 * config/aarch64/aarch64-protos.h (aarch64_emit_call_insn): Declare.
15599 * config/aarch64/aarch64.c
15600 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine as true.
15601 (aarch64_emit_call_insn): New function.
15602 (aarch64_load_symref_appropriately): Use aarch64_emit_call_insn instead
15604 * config/aarch64/aarch64.md (define_expand "call_internal")
15605 (define_expand "call_value_internal", define_expand "sibcall_internal")
15606 (define_expand "sibcall_value_internal"): New.
15607 (define_expand "call", define_expand "call_value")
15608 (define_expand "sibcall", define_expand "sibcall_value"): Use internal
15609 expand variant and aarch64_emit_call_insn.
15611 2014-06-18 Radovan Obradovic <robradovic@mips.com>
15612 Tom de Vries <tom@codesourcery.com>
15614 * config/arm/arm-protos.h (arm_emit_call_insn): Add bool parameter.
15615 * config/arm/arm.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
15617 (arm_emit_call_insn): Add and use sibcall parameter. Add IP and CC
15618 clobbers to CALL_INSN_FUNCTION_USAGE.
15619 (define_expand "sibcall_internal")
15620 (define_expand "sibcall_value_internal"): New.
15621 (define_expand "call", define_expand "call_value"): Add argument to
15622 arm_emit_call_insn.
15623 (define_expand "sibcall"): Use sibcall_internal and arm_emit_call_insn.
15624 (define_expand "sibcall_value"): Use sibcall_value_internal and
15625 arm_emit_call_insn.
15627 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15629 * config/arm/bpabi.c (__gnu_uldivmod_helper): Remove.
15631 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15633 * config/arm/bpabi-v6m.S (__aeabi_uldivmod): Perform division using
15636 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15638 * config/arm/bpabi.S (__aeabi_ldivmod, __aeabi_uldivmod,
15639 push_for_divide, pop_for_divide): Use .cfi_* directives for DWARF
15640 annotations. Fix DWARF information.
15642 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15644 * config/arm/bpabi.S (__aeabi_ldivmod): Perform division using
15645 __udivmoddi4, and fixups for negative operands.
15647 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15649 * config/arm/bpabi.S (__aeabi_ldivmod): Optimise stack manipulation.
15651 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15653 * config/arm/bpabi.S (__aeabi_uldivmod): Perform division using call
15656 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15658 * config/arm/bpabi.S (__aeabi_uldivmod): Optimise stack pointer
15661 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15663 * config/arm/bpabi.S (__aeabi_uldivmod, __aeabi_ldivmod): Add comment
15664 describing register usage on function entry and exit.
15666 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15668 * config/arm/bpabi.S (__aeabi_uldivmod): Fix whitespace.
15669 (__aeabi_ldivmod): Fix whitespace.
15671 2014-06-18 Andreas Schwab <schwab@suse.de>
15673 * doc/md.texi (Standard Names): Use @itemx for grouped items.
15674 Remove blank line after @item.
15676 2014-06-18 Richard Henderson <rth@redhat.com>
15679 * config/aarch64/aarch64.md (tlsdesc_small_<PTR>): Clobber CC_REGNUM.
15681 2014-06-18 Charles Baylis <charles.baylis@linaro.org>
15683 * config/arm/arm.c (neon_vector_mem_operand): Allow register
15684 POST_MODIFY for neon loads and stores.
15685 (arm_print_operand): Output post-index register for neon loads and
15688 2014-06-18 Richard Biener <rguenther@suse.de>
15690 * tree-ssa-dce.c (perform_tree_ssa_dce): Fixup bogus commit.
15692 2014-06-18 Richard Biener <rguenther@suse.de>
15694 * tree-pass.h (make_pass_dce_loop): Remove.
15695 * passes.def: Replace pass_dce_loop with pass_dce.
15696 * tree-ssa-dce.c (perform_tree_ssa_dce): If something
15697 changed free niter estimates and reset the scev cache.
15698 (tree_ssa_dce_loop, pass_data_dce_loop, pass_dce_loop,
15699 make_pass_dce_loop): Remove.
15700 * tree-ssa-copy.c: Include tree-ssa-loop-niter.h.
15701 (fini_copy_prop): Return whether something changed. Always
15702 let substitute_and_fold perform DCE and free niter estimates
15703 and reset the scev cache if so.
15704 (execute_copy_prop): If sth changed schedule cleanup-cfg.
15705 (pass_data_copy_prop): Do not unconditionally schedule
15706 cleanup-cfg or update-ssa.
15708 2014-06-18 Yuri Rumyantsev <ysrumyan@gmail.com>
15710 PR tree-optimization/61518
15711 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
15712 reduction var is used in reduction stmt or phi-function only.
15714 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15716 * config/arm/arm_neon.h (vadd_f32): Change #ifdef to __FAST_MATH.
15718 2014-06-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
15720 PR tree-optimization/61517
15721 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adapt to return a stmt
15722 whose rhs's first tree is the source expression instead of the
15724 (find_bswap_or_nop): Likewise.
15725 (bsap_replace): Rename stmt in cur_stmt. Pass gsi by value and src as a
15726 gimple stmt whose rhs's first tree is the source. In the memory source
15727 case, move the stmt to be replaced close to one of the original load to
15728 avoid the problem of a store between the load and the stmt's original
15730 (pass_optimize_bswap::execute): Adapt to change in bswap_replace's
15733 2014-06-18 Andreas Schwab <schwab@suse.de>
15735 PR rtl-optimization/54555
15736 * postreload.c (move2add_use_add2_insn): Substitute
15737 STRICT_LOW_PART only if it is cheaper.
15739 2014-06-18 Uros Bizjak <ubizjak@gmail.com>
15741 * config/i386/i386.md (*sibcall_memory): Rename from *sibcall_intern.
15742 Do not use unspec as call operand. Use memory_operand instead of
15743 memory_nox32_operand and add "m" operand constraint. Disable
15744 pattern for TARGET_X32.
15745 (*sibcall_pop_memory): Ditto.
15746 (*sibcall_value_memory): Ditto.
15747 (*sibcall_value_pop_memory): Ditto.
15748 (sibcall peepholes): Merge SImode and DImode patterns using
15749 W mode iterator. Use memory_operand instead of memory_nox32_operand.
15750 Disable pattern for TARGET_X32. Check if eliminated register is
15751 really dead after call insn. Generate call RTX without unspec operand.
15752 (sibcall_value peepholes): Ditto.
15753 (sibcall_pop peepholes): Fix call insn RTXes. Use memory_operand
15754 instead of memory_nox32_operand. Check if eliminated register is
15755 really dead after call insn. Generate call RTX without unspec operand.
15756 (sibcall_value_pop peepholes): Ditto.
15757 * config/i386/predicates.md (memory_nox32_operand): Remove predicate.
15759 2014-06-18 Terry Guo <terry.guo@arm.com>
15762 * config/arm/arm.c (thumb1_reorg): Move to next basic block if we
15765 2014-06-18 Olivier Hainque <hainque@adacore.com>
15767 * tree-core.h (tree_block): Add an "end_locus" field, allowing
15768 memorization of the end of block source location.
15769 * tree.h (BLOCK_SOURCE_END_LOCATION): New accessor.
15770 * gimplify.c (gimplify_bind_expr): Propagate the block start and
15771 end source location info we have on the block entry/exit code we
15774 2014-06-18 Richard Biener <rguenther@suse.de>
15776 * common.opt (fssa-phiopt): New option.
15777 * opts.c (default_options_table): Enable -fssa-phiopt with -O1+
15779 * tree-ssa-phiopt.c (pass_phiopt): Add gate method.
15780 * doc/invoke.texi (-fssa-phiopt): Document.
15782 2014-06-18 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
15784 * genattrtab.c (n_bypassed): New variable.
15785 (process_bypasses): Initialise n_bypassed.
15786 Count number of bypassed reservations.
15787 (make_automaton_attrs): Allocate space for bypassed reservations
15788 rather than number of bypasses.
15790 2014-06-18 Richard Biener <rguenther@suse.de>
15792 * tree-ssa-propagate.c (replace_phi_args_in): Return whether
15793 we propagated anything.
15794 (substitute_and_fold_dom_walker::before_dom_children): Something
15795 changed if we propagated into PHI arguments.
15796 * tree-ssa-pre.c (eliminate): Always schedule cfg-cleanup if
15799 2014-06-18 Evgeny Stupachenko <evstupac@gmail.com>
15801 * config/i386/i386.c (ix86_reassociation_width): Add alternative for
15803 * config/i386/i386.h (TARGET_VECTOR_PARALLEL_EXECUTION): New.
15804 * config/i386/x86-tune.def (X86_TUNE_VECTOR_PARALLEL_EXECUTION): New.
15805 * tree-vect-data-refs.c (vect_shift_permute_load_chain): New.
15806 Introduces alternative way of loads group permutaions.
15807 (vect_transform_grouped_load): Try alternative way of permutations.
15809 2014-06-18 Jakub Jelinek <jakub@redhat.com>
15811 * gimplify.c (omp_notice_variable): If n is non-NULL and no flags
15812 changed in ORT_TARGET region, don't jump to do_outer.
15813 (struct gimplify_adjust_omp_clauses_data): New type.
15814 (gimplify_adjust_omp_clauses_1): Adjust for data being
15815 a struct gimplify_adjust_omp_clauses_data pointer instead
15816 of tree *. Pass pre_p as a new argument to
15817 lang_hooks.decls.omp_finish_clause hook.
15818 (gimplify_adjust_omp_clauses): Add pre_p argument, adjust
15819 splay_tree_foreach to pass both list_p and pre_p.
15820 (gimplify_omp_parallel, gimplify_omp_task, gimplify_omp_for,
15821 gimplify_omp_workshare, gimplify_omp_target_update): Adjust
15822 gimplify_adjust_omp_clauses callers.
15823 * langhooks.c (lhd_omp_finish_clause): New function.
15824 * langhooks-def.h (lhd_omp_finish_clause): New prototype.
15825 (LANG_HOOKS_OMP_FINISH_CLAUSE): Define to lhd_omp_finish_clause.
15826 * langhooks.h (struct lang_hooks_for_decls): Add a new
15827 gimple_seq * argument to omp_finish_clause hook.
15828 * omp-low.c (scan_sharing_clauses): Call scan_omp_op on
15829 non-DECL_P OMP_CLAUSE_DECL if ctx->outer.
15830 (scan_omp_parallel, lower_omp_for): When adding
15831 _LOOPTEMP_ clause var, add it to outer ctx's decl_map as identity.
15832 * tree-core.h (OMP_CLAUSE_MAP_TO_PSET): New map kind.
15833 * tree-nested.c (convert_nonlocal_omp_clauses,
15834 convert_local_omp_clauses): Handle various OpenMP 4.0 clauses.
15835 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE_MAP_TO_PSET.
15837 2014-06-17 Andrew MacLeod <amacleod@redhat.com>
15839 * tree-dfa.h (get_addr_base_and_unit_offset_1): Move from here.
15840 * tree-dfa.c (get_addr_base_and_unit_offset_1): To here.
15842 2014-06-17 Xinliang David Li <davidxl@google.com>
15844 * tree-pretty-print.c (dump_function_header): Print cgraph uid.
15845 * passes.c (pass_init_dump_file): Do not set initialize
15846 flag to false unconditionally.
15848 2014-06-17 Richard Biener <rguenther@suse.de>
15850 * genopinit.c (main): Use vec<>::qsort method.
15851 * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
15853 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Likewise.
15855 2014-06-17 Matthew Fortune <matthew.fortune@imgtec.com>
15857 * config/mips/mips-protos.h (mips_expand_fcc_reload): Remove.
15858 * config/mips/mips.c (mips_expand_fcc_reload): Remove.
15859 (mips_move_to_gpr_cost): Remove ST_REGS case.
15860 (mips_move_from_gpr_cost): Likewise.
15861 (mips_register_move_cost): Likewise.
15862 (mips_secondary_reload_class): Likewise.
15864 2014-06-17 Richard Biener <rguenther@suse.de>
15866 * passes.def (pass_all_early_optimizations): Remove copy-prop pass.
15867 (pass_all_optimizations): Move 3rd copy-prop pass from after
15868 fre to before ifcombine/phiopt.
15870 2014-06-17 Richard Biener <rguenther@suse.de>
15872 * tree-switch-conversion.c (collect_switch_conv_info): Simplify
15873 and allow all blocks to be forwarders.
15875 2014-06-17 Yufeng Zhang <yufeng.zhang@arm.com>
15878 * config/aarch64/aarch64.c (aarch64_layout_arg): Add new local
15879 variable 'size'; calculate 'size' right in the front; use
15880 'size' to compute 'nregs' (when 'allocate_ncrn != 0') and
15881 pcum->aapcs_stack_words.
15883 2014-06-17 Nick Clifton <nickc@redhat.com>
15885 * config/msp430/msp430.md (mulhisi3): Add a NOP after the DINT.
15886 (umulhi3, mulsidi3, umulsidi3): Likewise.
15888 2014-06-17 Thomas Schwinge <thomas@codesourcery.com>
15890 PR middle-end/61508
15891 * fold-const.c (fold_checksum_tree) <TS_DECL_WITH_VIS>: Remove
15892 check for section name.
15894 2014-06-17 Richard Biener <rguenther@suse.de>
15896 * tree-ssa-propagate.c: Include domwalk.h.
15897 (substitute_and_fold): Outline main worker into a domwalker ...
15898 (substitute_and_fold_dom_walker::before_dom_children): ... here.
15899 Schedule stmts we can fully propagate for removal. Remove
15901 (substitute_and_fold): Apply a dominator walk to perform
15902 substitution. Process stmts scheduled for removal here.
15904 2014-06-17 Richard Biener <rguenther@suse.de>
15906 * tree-ssa-loop-im.c (determine_max_movement): Adjust cost
15907 of PHI node moving.
15909 2014-06-17 Kugan Vivekanandarajah <kuganv@linaro.org>
15911 * config/arm/arm.c (arm_atomic_assign_expand_fenv): call
15912 default_atomic_assign_expand_fenv for !TARGET_HARD_FLOAT.
15913 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
15914 __builtins_arm_get_fpscr only when TARGET_HARD_FLOAT.
15915 * config/arm/vfp.md (set_fpscr): Make pattern conditional on
15917 (get_fpscr) : Likewise.
15919 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15921 PR rtl-optimization/61325
15922 * lra-constraints.c (valid_address_p): Add forward declaration.
15923 (simplify_operand_subreg): Check address validity before and after
15924 alter_reg of memory subreg.
15926 2014-06-16 Uros Bizjak <ubizjak@gmail.com>
15928 * config/i386/i386.c (decide_alg): Correctly handle
15929 maximum size of stringop algorithm.
15931 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15933 * asan.c (build_check_stmt): Fix maybe-uninitialized warning.
15935 2014-06-16 Vladimir Makarov <vmakarov@redhat.com>
15937 PR rtl-optimization/61522
15938 * lra-assigns.c (assign_by_spills): Check null targetm.spill_class.
15940 2014-06-16 Jan Hubicka <hubicka@ucw.cz>
15943 * symtab.c (symtab_node::reset_section): New method.
15944 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
15946 * cgraph.h (reset_section): Declare.
15947 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
15948 do not consider comdat locals.
15949 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
15951 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
15952 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
15953 reset sections of symbols dragged out of the comdats.
15954 (function_and_variable_visibility): Reset sections of
15957 2014-06-16 Richard Biener <rguenther@suse.de>
15959 PR tree-optimization/61482
15960 * tree-vrp.c (adjust_range_with_scev): Avoid setting of
15961 [-INF(OVF), +INF(OVF)] range.
15963 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com>
15965 * config/i386/i386.c (ix86_expand_sse2_mulvxdi3): Issue
15966 instructions "vpmuludq" and "vpaddq" instead of "vpmacsdql" for
15967 handling 32-bit multiplication.
15969 2014-06-16 Chung-Lin Tang <cltang@codesourcery.com>
15971 PR middle-end/61430
15972 * lra-lives.c (process_bb_lives): Skip creating copy during
15973 insn scan when src/dest has constrained to same regno.
15975 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
15977 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Check again
15978 DECL_IN_CONSTANT_POOL and TREE_ASM_WRITTEN.
15980 2014-06-16 Yury Gribov <y.gribov@samsung.com>
15982 * asan.c (check_func): New function.
15983 (maybe_create_ssa_name): Likewise.
15984 (build_check_stmt_with_calls): Likewise.
15985 (use_calls_p): Likewise.
15986 (report_error_func): Change interface.
15987 (build_check_stmt): Allow non-integer lengths; add support
15989 (asan_instrument): Likewise.
15990 (instrument_mem_region_access): Moved code to build_check_stmt.
15991 (instrument_derefs): Likewise.
15992 (instrument_strlen_call): Likewise.
15993 * cfgcleanup.c (old_insns_match_p): Add support for new functions.
15994 * doc/invoke.texi: Describe new parameter.
15995 * params.def: Define new parameter.
15996 * params.h: Likewise.
15997 * sanitizer.def: Describe new builtins.
15999 2014-06-16 Richard Biener <rguenther@suse.de>
16001 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16002 Make all defs available at the end.
16003 (eliminate): If we remove a PHI node schedule cfg-cleanup.
16005 2014-06-18 Jakub Jelinek <jakub@redhat.com>
16008 * config.gcc (arm*-*-linux-*): Include vxworks-dummy.h in tm_file.
16010 2014-06-16 Richard Sandiford <rdsandiford@googlemail.com>
16013 * auto-inc-dec.c (merge_in_block): Fix location of insn_info
16014 initialization. Replace remaining use of uid.
16016 2014-06-15 Jan Hubicka <hubicka@ucw.cz>
16018 * c-family/c-common.c (handle_tls_model_attribute): Use
16019 set_decl_tls_model.
16020 * c-family/c-common.c (handle_tls_model_attribute): Use
16021 set_decl_tls_model.
16022 * cgraph.h (struct varpool_node): Add tls_model.
16023 * tree.c (decl_tls_model, set_decl_tls_model): New functions.
16024 * tree.h (DECL_TLS_MODEL): Update.
16025 (DECL_THREAD_LOCAL_P): Check that variable is static.
16026 (decl_tls_model): Declare.
16027 (set_decl_tls_model): Declare.
16028 * tree-emutls.c (get_emutls_init_templ_addr): First build decl and then
16029 set symbol prorperties.
16030 (get_emutls_init_templ_addr): Cleanup.
16031 (new_emutls_decl): Update.
16032 * lto-cgraph.c (lto_output_varpool_node): Stream TLS model
16033 (lto_input_varpool_node): Likewise.
16034 * lto-streamer-out.c (hash_tree): Likewise.
16035 * tree-streamer-in.c (unpack_ts_decl_with_vis_value_fields): Do
16036 not stream DECL_TLS_MODEL.
16037 * tree-profile.c (init_ic_make_global_vars): Use set_decl_tls_model.
16038 * tree-core.h (tree_decl_with_vis): Remove tls_model; update comments.
16040 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16042 * df.h (DF_REF_REG_USE_P, DF_MWS_REG_USE_P): Remove null checks.
16044 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16046 * df.h (df_mw_hardreg, df_base_ref): Add a link pointer.
16047 (df_insn_info): Turn defs, uses, eq_uses and mw_hardregs into linked
16049 (df_scan_bb_info): Likewise artificial_defs and artificial_uses.
16050 (DF_REF_NEXT_LOC, DF_MWS_NEXT): New macros.
16051 (FOR_EACH_INSN_INFO_DEF, FOR_EACH_INSN_INFO_USE)
16052 (FOR_EACH_INSN_INFO_EQ_USE, FOR_EACH_INSN_INFO_MW)
16053 (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF)
16054 (df_get_artificial_defs, df_get_artificial_uses)
16055 (df_single_def, df_single_use): Update accordingly.
16056 (df_refs_chain_dump): Take the first element in a linked list as
16057 parameter, rather than a pointer to an array of pointers.
16058 * df-core.c (df_refs_chain_dump, df_mws_dump): Likewise.
16059 * df-problems.c (df_rd_bb_local_compute_process_def): Likewise.
16060 (df_chain_create_bb_process_use): Likewise.
16061 (df_md_bb_local_compute_process_def): Likewise.
16062 * fwprop.c (process_defs, process_uses): Likewise.
16063 (register_active_defs, update_uses): Likewise.
16064 (forward_propagate_asm): Update for new df_ref linking.
16065 * df-scan.c (df_scan_free_ref_vec, df_scan_free_mws_vec): Delete.
16066 (df_null_ref_rec, df_null_mw_rec): Likewise.
16067 (df_scan_free_internal): Don't free df_ref and df_mw_hardreg lists
16069 (df_scan_free_bb_info): Remove check for null artificial_defs.
16070 (df_install_ref_incremental): Adjust for new df_ref linking.
16071 Use a single-element insertion rather than a full sort.
16072 (df_ref_chain_delete_du_chain): Take the first element
16073 in a linked list as parameter, rather than a pointer to an array of
16075 (df_ref_chain_delete, df_mw_hardreg_chain_delete): Likewise.
16076 (df_add_refs_to_table, df_refs_verify, df_mws_verify): Likewise.
16077 (df_insn_info_delete): Remove check for null defs and call to
16078 df_scan_free_mws_vec.
16079 (df_insn_rescan): Initialize df_ref and df_mw_hardreg lists to
16080 null rather than df_null_*_rec.
16081 (df_insn_rescan_debug_internal): Likewise, and update null
16082 checks in the same way. Remove check for null defs.
16083 (df_ref_change_reg_with_loc_1): Fix choice of list for defs.
16084 Move a single element rather doing a full sort.
16085 (df_mw_hardreg_chain_delete_eq_uses): Adjust for new df_mw_hardreg
16087 (df_notes_rescan): Likewise. Use a merge rather than a full sort.
16088 Initialize df_ref and df_mw_hardreg lists to null rather than
16090 (df_ref_compare): Take df_refs as parameter, transferring the
16091 old interface to...
16092 (df_ref_ptr_compare): ...this new function.
16093 (df_sort_and_compress_refs): Update accordingly.
16094 (df_mw_compare): Take df_mw_hardregs as parameter, transferring the
16095 old interface to...
16096 (df_mw_ptr_compare): ...this new function.
16097 (df_sort_and_compress_mws): Update accordingly.
16098 (df_install_refs, df_install_mws): Return a linked list rather than
16099 an array of pointers.
16100 (df_refs_add_to_chains): Assert that old lists are empty rather
16102 (df_insn_refs_verify): Don't handle null defs speciailly.
16103 * web.c (union_match_dups): Update for new df_ref linking.
16105 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16107 * df.h (df_ref_create, df_ref_remove): Delete.
16108 * df-scan.c (df_ref_create, df_ref_compress_rec): Likewise.
16109 (df_ref_remove): Likewise.
16111 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16113 * df.h (df_single_def, df_single_use): New functions.
16114 * ira.c (find_moveable_pseudos): Use them.
16116 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16118 * df.h (FOR_EACH_INSN_INFO_MW): New macro.
16119 * df-problems.c (df_note_bb_compute): Use it.
16120 * regstat.c (regstat_bb_compute_ri): Likewise.
16122 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16124 * df.h (FOR_EACH_ARTIFICIAL_USE, FOR_EACH_ARTIFICIAL_DEF): New macros.
16125 * cse.c (cse_extended_basic_block): Use them.
16126 * dce.c (mark_artificial_use): Likewise.
16127 * df-problems.c (df_rd_simulate_artificial_defs_at_top): Likewise.
16128 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16129 (df_chain_remove_problem, df_chain_bb_dump): Likewise.
16130 (df_word_lr_bb_local_compute, df_note_bb_compute): Likewise.
16131 (df_simulate_initialize_backwards): Likewise.
16132 (df_simulate_finalize_backwards): Likewise.
16133 (df_simulate_initialize_forwards): Likewise.
16134 (df_md_simulate_artificial_defs_at_top): Likewise.
16135 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16136 * regrename.c (init_rename_info): Likewise.
16137 * regstat.c (regstat_bb_compute_ri): Likewise.
16138 (regstat_bb_compute_calls_crossed): Likewise.
16140 2014-06-15 Richard Sandiford <rdsandiford@googlemail.com>
16142 * df.h (DF_INSN_INFO_MWS, FOR_EACH_INSN_INFO_DEF): New macros.
16143 (FOR_EACH_INSN_INFO_USE, FOR_EACH_INSN_INFO_EQ_USE): Likewise.
16144 (FOR_EACH_INSN_DEF, FOR_EACH_INSN_USE, FOR_EACH_INSN_EQ_USE): Likewise.
16145 * auto-inc-dec.c (find_inc, merge_in_block): Use them.
16146 * combine.c (create_log_links): Likewise.
16147 * compare-elim.c (find_flags_uses_in_insn): Likewise.
16148 (try_eliminate_compare): Likewise.
16149 * cprop.c (make_set_regs_unavailable, mark_oprs_set): Likewise.
16150 * dce.c (deletable_insn_p, find_call_stack_args): Likewise.
16151 (remove_reg_equal_equiv_notes_for_defs): Likewise.
16152 (reset_unmarked_insns_debug_uses, mark_reg_dependencies): Likewise.
16153 (word_dce_process_block, dce_process_block): Likewise.
16154 * ddg.c (def_has_ccmode_p): Likewise.
16155 * df-core.c (df_bb_regno_first_def_find): Likewise.
16156 (df_bb_regno_last_def_find, df_find_def, df_find_use): Likewise.
16157 * df-problems.c (df_rd_simulate_one_insn): Likewise.
16158 (df_lr_bb_local_compute, df_live_bb_local_compute): Likewise.
16159 (df_chain_remove_problem, df_chain_insn_top_dump): Likewise.
16160 (df_chain_insn_bottom_dump, df_word_lr_bb_local_compute): Likewise.
16161 (df_word_lr_simulate_defs, df_word_lr_simulate_uses): Likewise.
16162 (df_remove_dead_eq_notes, df_note_bb_compute): Likewise.
16163 (df_simulate_find_defs, df_simulate_find_uses): Likewise.
16164 (df_simulate_find_noclobber_defs, df_simulate_defs): Likewise.
16165 (df_simulate_uses, df_md_simulate_one_insn): Likewise.
16166 * df-scan.c (df_reorganize_refs_by_reg_by_insn): Likewise.
16167 * fwprop.c (local_ref_killed_between_p): Likewise.
16168 (all_uses_available_at, free_load_extend): Likewise.
16169 * gcse.c (update_bb_reg_pressure, calculate_bb_reg_pressure): Likewise.
16170 * hw-doloop.c (scan_loop): Likewise.
16171 * ifcvt.c (dead_or_predicable): Likewise.
16172 * init-regs.c (initialize_uninitialized_regs): Likewise.
16173 * ira-lives.c (mark_hard_reg_early_clobbers): Likewise.
16174 (process_bb_node_lives): Likewise.
16175 * ira.c (compute_regs_asm_clobbered, build_insn_chain): Likewise.
16176 (find_moveable_pseudos): Likewise.
16177 * loop-invariant.c (check_dependencies, record_uses): Likewise.
16178 * recog.c (peep2_find_free_register): Likewise.
16179 * ree.c (get_defs): Likewise.
16180 * regstat.c (regstat_bb_compute_ri): Likewise.
16181 (regstat_bb_compute_calls_crossed): Likewise.
16182 * sched-deps.c (find_inc, find_mem): Likewise.
16183 * sel-sched-ir.c (maybe_downgrade_id_to_use): Likewise.
16184 (maybe_downgrade_id_to_use, setup_id_reg_sets): Likewise.
16185 * shrink-wrap.c (requires_stack_frame_p): Likewise.
16186 (prepare_shrink_wrap): Likewise.
16187 * store-motion.c (compute_store_table, build_store_vectors): Likewise.
16188 * web.c (union_defs, pass_web::execute): Likewise.
16189 * config/i386/i386.c (increase_distance, insn_defines_reg): Likewise.
16190 (insn_uses_reg_mem, ix86_ok_to_clobber_flags): Likewise.
16192 2014-06-13 Vladimir Makarov <vmakarov@redhat.com>
16194 * lra-assign.c (assign_by_spills): Add code to assign vector regs
16195 to inheritance pseudos.
16196 * config/i386/i386.c (ix86_spill_class): Add check on NO_REGS.
16198 2014-06-13 Peter Bergner <bergner@vnet.ibm.com>
16201 * config/rs6000/rs6000-builtin.def (BU_MISC_1): Delete.
16202 (BU_MISC_2): Rename to ...
16203 (BU_LDBL128_2): ... this.
16204 * config/rs6000/rs6000.h (RS6000_BTM_LDBL128): New define.
16205 (RS6000_BTM_COMMON): Add RS6000_BTM_LDBL128.
16206 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
16207 RS6000_BTM_LDBL128.
16208 (rs6000_invalid_builtin): Add long double 128-bit builtin support.
16209 (rs6000_builtin_mask_names): Add RS6000_BTM_LDBL128.
16210 * config/rs6000/rs6000.md (unpacktf_0): Remove define)expand.
16211 (unpacktf_1): Likewise.
16212 * doc/extend.texi (__builtin_longdouble_dw0): Remove documentation.
16213 (__builtin_longdouble_dw1): Likewise.
16214 * doc/sourcebuild.texi (longdouble128): Document.
16216 2014-06-13 Jeff Law <law@redhat.com>
16218 PR rtl-optimization/61094
16219 PR rtl-optimization/61446
16220 * ree.c (combine_reaching_defs): Get the mode for the copy from
16221 the extension insn rather than the defining insn.
16223 2014-06-13 Dehao Chen <dehao@google.com>
16225 * dwarf2out.c (add_linkage_name): Emit more linkage name.
16227 2014-06-13 Thomas Schwinge <thomas@codesourcery.com>
16229 * doc/install.texi (--enable-linker-plugin-configure-flags)
16230 (--enable-linker-plugin-flags): Document new flags.
16232 2014-06-13 Martin Jambor <mjambor@suse.cz>
16235 * ipa-devirt.c (possible_polymorphic_call_targets): Store NULL to
16236 cache_token if returning early.
16238 2014-06-13 Nick Clifton <nickc@redhat.com>
16240 * config/rx/rx.h (JUMP_ALIGN): Return the log value if user
16241 requested alignment is active.
16242 (LABEL_ALIGN): Likewise.
16243 (LOOP_ALIGN): Likewise.
16245 2014-06-13 Richard Biener <rguenther@suse.de>
16247 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
16248 Rewrite to propagate the VN result into all uses where
16249 possible and to remove stmts becoming dead because of that.
16250 (eliminate): Generalize stmt removal handling, remove in
16251 reverse dominator order to support proper debug stmt
16252 generation. Update stmts before removing stmts.
16253 * tree-ssa-propagate.c (propagate_tree_value): Remove bogus assert.
16255 2014-06-13 Thomas Preud'homme <thomas.preudhomme@arm.com>
16257 PR tree-optimization/61375
16258 * tree-ssa-math-opts.c (init_symbolic_number): Cancel optimization if
16259 symbolic number cannot be represented in an uint64_t.
16260 (find_bswap_or_nop_1): Likewise.
16262 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16264 * symtab.c (symtab_node::reset_section): New method.
16265 * cgraph.c (cgraph_node_cannot_be_local_p_1): Accept non-local
16267 * cgraph.h (reset_section): Declare.
16268 * ipa-inline-analysis.c (do_estimate_growth): Check for comdat groups;
16269 do not consider comdat locals.
16270 * cgraphclones.c (set_new_clone_decl_and_node_flags): Get section
16272 * ipa-visiblity.c (cgraph_externally_visible_p): Cleanup.
16273 (update_visibility_by_resolution_info): Consider UNDEF; fix checking;
16274 reset sections of symbols dragged out of the comdats.
16275 (function_and_variable_visibility): Reset sections of
16278 2014-06-12 Jan Hubicka <hubicka@ucw.cz>
16280 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Reorg
16281 to use symtab and decl_binds_to_current_def_p
16282 * tree-vectorizer.c (increase_alignment): Increase alignment
16283 of alias target, too.
16285 2014-06-12 Jakub Jelinek <jakub@redhat.com>
16287 PR middle-end/61486
16288 * gimplify.c (struct gimplify_omp_ctx): Add distribute field.
16289 (gimplify_adjust_omp_clauses): Don't or in GOVD_LASTPRIVATE
16290 if outer combined construct is distribute.
16291 (gimplify_omp_for): For OMP_DISTRIBUTE set
16292 gimplify_omp_ctxp->distribute.
16293 * omp-low.c (scan_sharing_clauses) <case OMP_CLAUSE_SHARED>: For
16294 GIMPLE_OMP_TEAMS, if decl isn't global in outer context, record
16295 mapping into decl map.
16297 2014-06-12 Jason Merrill <jason@redhat.com>
16299 * common.opt (fabi-version): Change default to 0.
16301 2014-06-12 Jason Merrill <jason@redhat.com>
16303 * toplev.c (process_options): Reject -fabi-version=1.
16305 2014-06-12 Jeff Law <law@redhat.com>
16307 PR tree-optimization/61009
16308 * tree-ssa-threadedge.c (thread_through_normal_block): Correct return
16309 value when we stop processing a block due to problematic PHIs.
16311 2014-06-12 Alan Lawrence <alan.lawrence@arm.com>
16313 * config/aarch64/arm_neon.h (vmlaq_n_f64, vmlsq_n_f64, vrsrtsq_f64,
16314 vcge_p8, vcgeq_p8, vcgez_p8, vcgez_u8, vcgez_u16, vcgez_u32, vcgez_u64,
16315 vcgezq_p8, vcgezq_u8, vcgezq_u16, vcgezq_u32, vcgezq_u64, vcgezd_u64,
16316 vcgt_p8, vcgtq_p8, vcgtz_p8, vcgtz_u8, vcgtz_u16, vcgtz_u32, vcgtz_u64,
16317 vcgtzq_p8, vcgtzq_u8, vcgtzq_u16, vcgtzq_u32, vcgtzq_u64, vcgtzd_u64,
16318 vcle_p8, vcleq_p8, vclez_p8, vclez_u64, vclezq_p8, vclezd_u64, vclt_p8,
16319 vcltq_p8, vcltz_p8, vcltzq_p8, vcltzd_u64): Remove functions as they
16320 are not in the spec.
16322 2014-06-10 Alan Lawrence <alan.lawrence@arm.com>
16325 * config/aarch64/aarch64-modes.def: Add V1DFmode.
16326 * config/aarch64/aarch64.c (aarch64_vector_mode_supported_p):
16329 2014-06-12 Eric Botcazou <ebotcazou@adacore.com>
16331 * tree-core.h (DECL_NONALIASED): Use proper spelling in comment.
16333 2014-06-12 Georg-Johann Lay <avr@gjlay.de>
16336 * config/avr/avr.md (push<mode>1): Avoid (subreg(mem)) when
16337 loading from address spaces.
16339 2014-06-12 Martin Liska <mliska@suse.cz>
16342 * ipa-prop.c (ipa_make_edge_direct_to_target): Check that gimple call
16343 statement is reachable.
16345 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16347 * symtab.c (section_hash): New hash.
16348 (symtab_unregister_node): Clear section before freeing.
16349 (hash_section_hash_entry): New haser.
16350 (eq_sections): New function.
16351 (symtab_node::set_section_for_node): New method.
16352 (set_section_1): Update.
16353 (symtab_node::set_section): Take string instead of tree as parameter.
16354 (symtab_resolve_alias): Update.
16355 * cgraph.h (section_hash_entry_d): New structure.
16356 (section_hash_entry): New typedef.
16357 (cgraph_node): Change comdat_group_ to x_comdat_group,
16358 change section_ to x_section and turn into section_hash_entry;
16359 update accestors; put set_section_for_node offline.
16360 * tree.c (decl_section_name): Turn into string.
16361 (set_decl_section_name): Change parameter to be string.
16362 * tree.h (decl_section_name, set_decl_section_name): Update prototypes.
16363 * sdbout.c (sdbout_one_type): Update.
16364 * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Update.
16365 * varasm.c (IN_NAMED_SECTION, get_named_section,
16366 resolve_unique_section, hot_function_section, get_named_text_section,
16367 USE_SELECT_SECTION_FOR_FUNCTIONS, default_function_rodata_section,
16368 make_decl_rtl, default_unique_section): Update.
16369 * config/c6x/c6x.c (c6x_in_small_data_p): Update.
16370 (c6x_elf_unique_section): Update.
16371 * config/nios2/nios2.c (nios2_in_small_data_p): Update.
16372 * config/pa/pa.c (pa_function_section): Update.
16373 * config/pa/pa.h (IN_NAMED_SECTION_P): Update.
16374 * config/ia64/ia64.c (ia64_in_small_data_p): Update.
16375 * config/arc/arc.c (arc_in_small_data_p): Update.
16376 * config/arm/unknown-elf.h (IN_NAMED_SECTION_P): Update.
16377 * config/mcore/mcore.c (mcore_unique_section): Update.
16378 * config/mips/mips.c (mips16_build_function_stub): Update.
16379 (mips16_build_call_stub): Update.
16380 (mips_function_rodata_section): Update.
16381 (mips_in_small_data_p): Update.
16382 * config/score/score.c (score_in_small_data_p): Update.
16383 * config/rx/rx.c (rx_in_small_data): Update.
16384 * config/rs6000/rs6000.c (rs6000_elf_in_small_data_p): Update.
16385 (rs6000_xcoff_asm_named_section): Update.
16386 (rs6000_xcoff_unique_section): Update.
16387 * config/frv/frv.c (frv_string_begins_with): Update.
16388 (frv_in_small_data_p): Update.
16389 * config/v850/v850.c (v850_encode_data_area): Update.
16390 * config/bfin/bfin.c (DECL_SECTION_NAME): Update.
16391 (bfin_handle_l1_data_attribute): Update.
16392 (bfin_handle_l2_attribute): Update.
16393 * config/mep/mep.c (mep_unique_section): Update.
16394 * config/microblaze/microblaze.c (microblaze_elf_in_small_data_p):
16396 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute): Update.
16397 (h8300_handle_tiny_data_attribute): Update.
16398 * config/m32r/m32r.c (m32r_in_small_data_p): Update.
16399 (m32r_in_small_data_p): Update.
16400 * config/alpha/alpha.c (alpha_in_small_data_p): Update.
16401 * config/i386/i386.c (ix86_in_large_data_p): Update.
16402 * config/i386/winnt.c (i386_pe_unique_section): Update.
16403 * config/darwin.c (darwin_function_section): Update.
16404 * config/lm32/lm32.c (lm32_in_small_data_p): Update.
16405 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16406 (new_emutls_decl): Update.
16407 * lto-cgraph.c (lto_output_node, input_node, input_varpool_node,
16408 input_varpool_node): Update.
16409 (ead_string_cst): Turn to ...
16410 (read_string): ... this one.
16411 * dwarf2out.c (secname_for_decl): Update.
16412 * asan.c (asan_protect_global): Update.
16414 2014-06-11 DJ Delorie <dj@redhat.com>
16416 * config/rx/rx.h (FUNCTION_BOUNDARY): Adjust for RX100/200 4-byte
16418 * config/rx/rx.c (rx_option_override): Likewise.
16419 (rx_align_for_label): Likewise.
16421 * config/rx/rx.c (rx_max_skip_for_label): Don't skip anything if -Os.
16423 2014-06-11 Maciej W. Rozycki <macro@codesourcery.com>
16425 * config/mmix/mmix-protos.h (mmix_asm_output_source_line): Remove
16428 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16430 * common.md: New file.
16431 * doc/md.texi: Update description of generic, machine-independent
16433 * config/s390/constraints.md (e): Delete.
16434 * Makefile.in (md_file): Include common.md.
16435 * config/m32c/t-m32c (md_file): Likewise.
16436 * genpreds.c (general_mem): New array.
16437 (generic_constraint_letters): Remove constraints now defined by
16439 (add_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16440 Allow the first character to be '<' or '>' as well.
16441 * genoutput.c (general_mem): New array.
16442 (indep_constraints): Remove constraints now defined by common.md.
16443 (note_constraint): Map TARGET_MEM_CONSTRAINT to general_mem.
16444 Remove special handling of 'm'.
16445 * ira-costs.c (record_reg_classes): Remove special handling of
16446 constraints now defined by common.md.
16447 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16448 * ira-lives.c (single_reg_class): Likewise.
16449 (ira_implicitly_set_insn_hard_regs): Likewise.
16450 * lra-constraints.c (reg_class_from_constraints): Likewise.
16451 (process_alt_operands, process_address, curr_insn_transform): Likewise.
16452 * postreload.c (reload_cse_simplify_operands): Likewise.
16453 * reload.c (push_secondary_reload, scratch_reload_class)
16454 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16455 * reload1.c (maybe_fix_stack_asms): Likewise.
16456 * targhooks.c (default_secondary_reload): Likewise.
16457 * stmt.c (parse_output_constraint): Likewise.
16458 * recog.c (preprocess_constraints): Likewise.
16459 (constrain_operands, peep2_find_free_register): Likewise.
16460 (asm_operand_ok): Likewise, but add a comment saying why 'o'
16461 must be handled specially.
16463 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16465 * system.h (CONST_DOUBLE_OK_FOR_CONSTRAINT_P): Poison.
16466 * genpreds.c (have_const_dbl_constraints): Delete.
16467 (add_constraint): Don't set it.
16468 (write_tm_preds_h): Don't call CONST_DOUBLE_OK_FOR_CONSTRAINT_P.
16469 * ira-costs.c (record_reg_classes): Handle CONST_INT and CONST_DOUBLE
16470 constraints using the lookup_constraint logic.
16471 * ira-lives.c (single_reg_class): Likewise.
16472 * ira.c (ira_setup_alts): Likewise.
16473 * lra-constraints.c (process_alt_operands): Likewise.
16474 * recog.c (asm_operand_ok, constrain_operands): Likewise.
16475 * reload.c (find_reloads): Likewise.
16477 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16479 * genpreds.c (const_int_start, const_int_end): New variables.
16480 (choose_enum_order): Output CONST_INT constraints before memory
16482 (write_tm_preds_h): Always define insn_const_int_ok_for_constraint.
16484 * ira-costs.c (record_reg_classes): Handle CT_CONST_INT.
16485 * ira.c (ira_setup_alts): Likewise.
16486 * lra-constraints.c (process_alt_operands): Likewise.
16487 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16488 * reload.c (find_reloads): Likewise.
16490 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16492 * recog.h (operand_alternative): Remove offmem_ok, nonffmem_ok,
16493 decmem_ok and incmem_ok. Reformat other bitfields for consistency.
16494 * recog.c (preprocess_constraints): Update accordingly.
16496 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16498 * system.h (REG_CLASS_FROM_CONSTRAINT): Poison.
16499 (REG_CLASS_FOR_CONSTRAINT, EXTRA_CONSTRAINT_STR): Likewise.
16500 (EXTRA_MEMORY_CONSTRAINT, EXTRA_ADDRESS_CONSTRAINT): Likewise.
16501 * genpreds.c (print_type_tree): New function.
16502 (write_tm_preds_h): Remove REG_CLASS_FROM_CONSTRAINT,
16503 REG_CLASS_FOR_CONSTRAINT, EXTRA_MEMORY_CONSTRAINT,
16504 EXTRA_ADDRESS_CONSTRAINT and EXTRA_CONSTRAINT_STR.
16505 Write out enum constraint_type and get_constraint_type.
16506 * lra-constraints.c (satisfies_memory_constraint_p): Take a
16507 constraint_num rather than a constraint string.
16508 (satisfies_address_constraint_p): Likewise.
16509 (reg_class_from_constraints): Avoid old constraint macros.
16510 (process_alt_operands, process_address_1): Likewise.
16511 (curr_insn_transform): Likewise.
16512 * ira-costs.c (record_reg_classes): Likewise.
16513 (record_operand_costs): Likewise.
16514 * ira-lives.c (single_reg_class): Likewise.
16515 (ira_implicitly_set_insn_hard_regs): Likewise.
16516 * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
16517 * postreload.c (reload_cse_simplify_operands): Likewise.
16518 * recog.c (asm_operand_ok, preprocess_constraints): Likewise.
16519 (constrain_operands, peep2_find_free_register): Likewise.
16520 * reload.c (push_secondary_reload, scratch_reload_class): Likewise.
16521 (find_reloads, alternative_allows_const_pool_ref): Likewise.
16522 * reload1.c (maybe_fix_stack_asms): Likewise.
16523 * stmt.c (parse_output_constraint, parse_input_constraint): Likewise.
16524 * targhooks.c (default_secondary_reload): Likewise.
16525 * config/m32c/m32c.c (m32c_matches_constraint_p): Avoid reference
16526 to EXTRA_CONSTRAINT_STR.
16527 * config/sparc/constraints.md (U): Likewise REG_CLASS_FROM_CONSTRAINT.
16529 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16531 * genpreds.c (write_constraint_satisfied_p_1): Replace with...
16532 (write_constraint_satisfied_p_array): ...this new function.
16533 (write_tm_preds_h): Replace write_constraint_satisfied_p_1 with
16535 (write_insn_preds_c): Update accordingly.
16537 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16539 * genpreds.c (write_lookup_constraint): Rename to...
16540 (write_lookup_constraint_1): ...this.
16541 (write_lookup_constraint_array): New function.
16542 (write_tm_preds_h): Define lookup_constraint as an inline function
16543 that uses write_lookup_constraint_array where possible.
16544 (write_insn_preds_c): Update for the changes above.
16546 2014-06-11 Richard Sandiford <rdsandiford@googlemail.com>
16548 * doc/md.texi (regclass_for_constraint): Rename to...
16549 (reg_class_for_constraint): ...this.
16550 * genpreds.c (num_constraints, enum_order, register_start)
16551 (register_end, satisfied_start, memory_start, memory_end)
16552 (address_start, address_end): New variables.
16553 (add_constraint): Count the number of constraints.
16554 (choose_enum_order): New function.
16555 (write_enum_constraint_num): Iterate over enum_order.
16556 (write_regclass_for_constraint): Rename to...
16557 (write_reg_class_for_constraint_1): ...this and update output
16559 (write_constraint_satisfied_p): Rename to...
16560 (write_constraint_satisfied_p_1): ...this and update output
16561 accordingly. Do nothing if all extra constraints are register
16563 (write_insn_extra_memory_constraint): Delete.
16564 (write_insn_extra_address_constraint): Delete.
16565 (write_range_function): New function.
16566 (write_tm_preds_h): Define constraint_satisfied_p and
16567 reg_class_for_constraint as inline functions that do a range check
16568 before calling the out-of-line function. Use write_range_function
16569 to implement insn_extra_{register,memory,address}_constraint,
16570 the first of which is new.
16571 (write_insn_preds_c): Update after above changes to write_* functions.
16572 (main): Call choose_enum_order.
16574 2014-06-11 Thomas Preud'homme <thomas.preudhomme@arm.com>
16576 PR tree-optimization/61306
16577 * tree-ssa-math-opts.c (struct symbolic_number): Store type of
16578 expression instead of its size.
16579 (do_shift_rotate): Adapt to change in struct symbolic_number. Return
16580 false to prevent optimization when the result is unpredictable due to
16581 arithmetic right shift of signed type with highest byte is set.
16582 (verify_symbolic_number_p): Adapt to change in struct symbolic_number.
16583 (init_symbolic_number): Likewise.
16584 (find_bswap_or_nop_1): Likewise. Return NULL to prevent optimization
16585 when the result is unpredictable due to sign extension.
16587 2014-06-11 Terry Guo <terry.guo@arm.com>
16589 * config/arm/arm.md (*thumb1_adddi3): Move into new file thumb1.md.
16590 (*thumb1_addsi3): Ditto.
16591 (*thumb_subdi3): Ditto.
16592 (thumb1_subsi3_insn): Ditto.
16593 (*thumb_mulsi3): Ditto.
16594 (*thumb_mulsi3_v6): Ditto.
16595 (*thumb1_andsi3_insn): Ditto.
16596 (thumb1_bicsi3): Ditto.
16597 (*thumb1_iorsi3_insn): Ditto.
16598 (*thumb1_xorsi3_insn): Ditto.
16599 (*thumb1_ashlsi3): Ditto.
16600 (*thumb1_ashrsi3): Ditto.
16601 (*thumb1_lshrsi3): Ditto.
16602 (*thumb1_rotrsi3): Ditto.
16603 (*thumb1_negdi2): Ditto.
16604 (*thumb1_negsi2): Ditto.
16605 (*thumb1_abssi2): Ditto.
16606 (*thumb1_neg_abssi2): Ditto.
16607 (*thumb1_one_cmplsi2): Ditto.
16608 (*thumb1_zero_extendhisi2): Ditto.
16609 (*thumb1_zero_extendqisi2): Ditto.
16610 (*thumb1_zero_extendqisi2_v6): Ditto.
16611 (thumb1_extendhisi2): Ditto.
16612 (thumb1_extendqisi2): Ditto.
16613 (*thumb1_movdi_insn): Ditto.
16614 (*thumb1_movsi_insn): Ditto.
16615 (*thumb1_movhi_insn): Ditto.
16616 (thumb_movhi_clobber): Ditto.
16617 (*thumb1_movqi_insn): Ditto.
16618 (*thumb1_movhf): Ditto.
16619 (*thumb1_movsf_insn): Ditto.
16620 (*thumb_movdf_insn): Ditto.
16621 (movmem12b): Ditto.
16623 (cbranchqi4): Ditto.
16624 (cbranchsi4_insn): Ditto.
16625 (cbranchsi4_scratch): Ditto.
16626 (*negated_cbranchsi4): Ditto.
16627 (*tbit_cbranch): Ditto.
16628 (*tlobits_cbranch): Ditto.
16629 (*tstsi3_cbranch): Ditto.
16630 (*cbranchne_decr1): Ditto.
16631 (*addsi3_cbranch): Ditto.
16632 (*addsi3_cbranch_scratch): Ditto.
16633 (*thumb_cmpdi_zero): Ditto.
16634 (cstoresi_eq0_thumb1): Ditto.
16635 (cstoresi_ne0_thumb1): Ditto.
16636 (*cstoresi_eq0_thumb1_insn): Ditto.
16637 (*cstoresi_ne0_thumb1_insn): Ditto.
16638 (cstoresi_nltu_thumb1): Ditto.
16639 (cstoresi_ltu_thumb1): Ditto.
16640 (thumb1_addsi3_addgeu): Ditto.
16641 (*thumb_jump): Ditto.
16642 (*call_reg_thumb1_v5): Ditto.
16643 (*call_reg_thumb1): Ditto.
16644 (*call_value_reg_thumb1_v5): Ditto.
16645 (*call_value_reg_thumb1): Ditto.
16646 (*call_insn): Ditto.
16647 (*call_value_insn): Ditto.
16648 (thumb1_casesi_internal_pic): Ditto.
16649 (thumb1_casesi_dispatch): Ditto.
16650 (*thumb1_indirect_jump): Ditto.
16651 (prologue_thumb1_interwork): Ditto.
16652 (*epilogue_insns): Ditto.
16653 (consttable_1): Ditto.
16654 (consttable_2): Ditto.
16655 (tablejump): Ditto.
16656 (*thumb1_tablejump): Ditto.
16657 (thumb_eh_return): Ditto.
16658 (define_peephole2): Two of them are thumb1 only and got moved into
16659 new file thumb1.md.
16660 (define_split): Six of them are thumb1 only and got moved into new
16662 * config/arm/thumb1.md: New file comprised of above thumb1 only
16665 2014-06-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16667 * config.gcc (aarch64*-*-*): Add arm_acle.h to extra headers.
16668 * Makefile.in (TEXI_GCC_FILES): Add aarch64-acle-intrinsics.texi to
16670 * config/aarch64/aarch64-builtins.c (AARCH64_CRC32_BUILTINS): Define.
16671 (aarch64_crc_builtin_datum): New struct.
16672 (aarch64_crc_builtin_data): New.
16673 (aarch64_init_crc32_builtins): New function.
16674 (aarch64_init_builtins): Initialise CRC32 builtins when appropriate.
16675 (aarch64_crc32_expand_builtin): New.
16676 (aarch64_expand_builtin): Add CRC32 builtin expansion case.
16677 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Define
16678 __ARM_FEATURE_CRC32 when appropriate.
16679 (TARGET_CRC32): Define.
16680 * config/aarch64/aarch64.md (UNSPEC_CRC32B, UNSPEC_CRC32H,
16681 UNSPEC_CRC32W, UNSPEC_CRC32X, UNSPEC_CRC32CB, UNSPEC_CRC32CH,
16682 UNSPEC_CRC32CW, UNSPEC_CRC32CX): New unspec values.
16683 (aarch64_<crc_variant>): New pattern.
16684 * config/aarch64/arm_acle.h: New file.
16685 * config/aarch64/iterators.md (CRC): New int iterator.
16686 (crc_variant, crc_mode): New int attributes.
16687 * doc/aarch64-acle-intrinsics.texi: New file.
16688 * doc/extend.texi (aarch64): Document aarch64 ACLE intrinsics.
16689 Include aarch64-acle-intrinsics.texi.
16691 2014-06-11 Evgeny Stupachenko <evstupac@gmail.com>
16693 * tree-vect-data-refs.c (vect_grouped_store_supported): New
16694 check for stores group of length 3.
16695 (vect_permute_store_chain): New permutations for stores group of
16697 * tree-vect-stmts.c (vect_model_store_cost): Change cost
16698 of vec_perm_shuffle for the new permutations.
16700 2014-06-11 Jan Hubicka <hubicka@ucw.cz>
16702 * ipa-visibility.c (function_and_variable_visibility): Disable virtual
16703 table rewriting temporarily on targets not supporting ONE_ONLY.
16705 2014-06-11 Richard Biener <rguenther@suse.de>
16707 PR middle-end/61437
16709 2014-06-04 Richard Biener <rguenther@suse.de>
16711 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
16712 TREE_PUBLIC and DECL_EXTERNAL decls.
16714 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16716 * varasm.c (set_implicit_section): New function.
16717 (resolve_unique_section): Use it to set implicit section
16719 (get_named_text_section): Use symtab_get_node (decl)->implicit_section
16720 (default_function_section): Likewise.
16721 (decl_binds_to_current_def_p): Constify argument.
16722 * varasm.h (decl_binds_to_current_def_p): Update prototype.
16723 * asan.c (asan_protect_global): Use
16724 symtab_get_node (decl)->implicit_section.
16725 * symtab.c (dump_symtab_base): Dump implicit sections.
16726 (verify_symtab_base): Verify sanity of sectoins and comdats.
16727 (symtab_resolve_alias): Alias share the section of its target.
16728 (set_section_1): New function.
16729 (symtab_node::set_section): Move here, recurse to aliases.
16730 (verify_symtab): Check for duplicated symtab lists.
16731 * tree-core.h (implicit_section_name_p): Remove.
16732 * tree-vect-data-refs.c: Include varasm.h.
16733 (vect_can_force_dr_alignment_p): Fix conditional on when
16734 decl bints to current definition; use
16735 symtab_get_node (decl)->implicit_section.
16736 * cgraph.c (cgraph_make_node_local_1): Fix section set.
16737 * cgraph.h (struct symtab_node): Add implicit_section.
16738 (set_section): Rename to ...
16739 (set_section_for_node): ... this one.
16740 (set_section): Declare.
16741 * tree.h (DECL_HAS_IMPLICIT_SECTION_NAME_P): Remove.
16742 * lto-cgraph.c (lto_output_node, lto_output_varpool_node,
16743 input_overwrite_node, input_varpool_node): Stream implicit_section.
16744 * ipa.c (symtab_remove_unreachable_nodes): Do not check symtab before
16745 removal; it will fail in LTO.
16747 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16749 * config/aarch64/aarch64-simd.md (move_lo_quad_<mode>):
16750 Change second alternative type to f_mcr.
16751 * config/aarch64/aarch64.md (*movsi_aarch64): Change 11th
16752 and 12th alternatives' types to f_mcr and f_mrc.
16753 (*movdi_aarch64): Same for 12th and 13th alternatives.
16754 (*movsf_aarch64): Change 9th alternatives' type to mov_reg.
16755 (aarch64_movtilow_tilow): Change type to fmov.
16757 2014-06-10 Jiong Wang <jiong.wang@arm.com>
16759 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs)
16760 (aarch64_save_or_restore_callee_save_registers): Fix layout.
16762 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16764 * config/aarch64/aarch64-simd.md (aarch64_sqdmulh_lane<mode>):
16766 (aarch64_sqrdmulh_lane<mode>): Likewise.
16767 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16768 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16769 (aarch64_sqdmulh_laneq<mode>): New expander.
16770 (aarch64_sqrdmulh_laneq<mode>): Likewise.
16771 (aarch64_sq<r>dmulh_laneq<mode>): Rename to...
16772 (aarch64_sq<r>dmulh_laneq<mode>_internal): ...this.
16773 (aarch64_sqdmulh_lane<mode>): New expander.
16774 (aarch64_sqrdmulh_lane<mode>): Likewise.
16775 (aarch64_sq<r>dmulh_lane<mode>): Rename to...
16776 (aarch64_sq<r>dmulh_lane<mode>_internal): ...this.
16777 (aarch64_sqdmlal_lane<mode>): Add lane flip for big-endian.
16778 (aarch64_sqdmlal_laneq<mode>): Likewise.
16779 (aarch64_sqdmlsl_lane<mode>): Likewise.
16780 (aarch64_sqdmlsl_laneq<mode>): Likewise.
16781 (aarch64_sqdmlal2_lane<mode>): Likewise.
16782 (aarch64_sqdmlal2_laneq<mode>): Likewise.
16783 (aarch64_sqdmlsl2_lane<mode>): Likewise.
16784 (aarch64_sqdmlsl2_laneq<mode>): Likewise.
16785 (aarch64_sqdmull_lane<mode>): Likewise.
16786 (aarch64_sqdmull_laneq<mode>): Likewise.
16787 (aarch64_sqdmull2_lane<mode>): Likewise.
16788 (aarch64_sqdmull2_laneq<mode>): Likewise.
16790 2014-06-10 Richard Biener <rguenther@suse.de>
16792 PR tree-optimization/61438
16793 * tree-ssa-pre.c (eliminate_dom_walker): Add do_pre member.
16794 (eliminate_dom_walker::before_dom_children): Only try to inhibit
16795 insertion of IVs if running PRE.
16796 (eliminate): Adjust.
16797 (pass_pre::execute): Likewise.
16798 (pass_fre::execute): Likewise.
16800 2014-06-10 Richard Biener <rguenther@suse.de>
16802 PR middle-end/61456
16803 * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16804 Do not use the main variant for the type comparison.
16805 (ncr_compar): Likewise.
16806 (nonoverlapping_component_refs_p): Likewise.
16808 2014-06-10 Marcus Shawcroft <marcus.shawcroft@arm.com>
16810 * config/aarch64/aarch64.c (aarch64_save_or_restore_fprs): Fix
16811 REG_CFA_RESTORE mode.
16813 2014-06-10 Evgeny Stupachenko <evstupac@gmail.com>
16815 * config/i386/i386.c (expand_vec_perm_pblendv): New.
16816 * config/i386/i386.c (ix86_expand_vec_perm_const_1): Use
16817 expand_vec_perm_pblendv.
16819 2014-06-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
16821 * doc/arm-acle-intrinsics.texi: Specify when CRC32 intrinsics are
16823 Simplify description of __crc32d and __crc32cd intrinsics.
16824 * doc/extend.texi (ARM ACLE Intrinsics): Remove comment about CRC32
16827 2014-06-10 Thomas Schwinge <thomas@codesourcery.com>
16830 * configure.ac: Use gcc_AC_CHECK_DECLS to check for strnlen prototype.
16831 * config.in: Regenerate.
16832 * configure: Likewise.
16834 2014-06-10 Jan Hubicka <hubicka@ucw.cz>
16836 * ipa-reference.c (is_proper_for_analysis): Exclude addressable
16838 (intersect_static_var_sets): Remove.
16839 (propagate): Do not prune local statics.
16841 2014-06-10 Jakub Jelinek <jakub@redhat.com>
16844 * omp-low.c (lower_rec_input_clauses) <case OMP_CLAUSE_LASTPRIVATE>:
16845 Set lastprivate_firstprivate even if omp_private_outer_ref
16846 langhook returns true.
16847 <case OMP_CLAUSE_REDUCTION>: When calling omp_clause_default_ctor
16848 langhook, call unshare_expr on new_var and call
16849 build_outer_var_ref to get the last argument.
16851 2014-06-10 Marek Polacek <polacek@redhat.com>
16854 * doc/extend.texi: Add cindex for transparent_union.
16856 2014-06-09 Thomas Preud'homme <thomas.preudhomme@arm.com>
16858 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Check return value of
16859 init_symbolic_number ().
16861 2014-05-18 John David Anglin <danglin@gcc.gnu.org>
16863 PR middle-end/61141
16864 * emit-rtl.c (reset_all_used_flags): In a sequence, check that
16865 XVECEXP (pat, 0, i) is an INSN before calling reset_insn_used_flags.
16866 (verify_rtl_sharing): Likewise.
16868 2014-06-09 Marc Glisse <marc.glisse@inria.fr>
16871 * tree.c (build_qualified_type): Use a canonical type for
16874 2014-06-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
16876 * config/arm/arm-modes.def: Remove XFmode.
16878 2014-06-09 Alan Lawrence <alan.lawrence@arm.com>
16881 * config/arm/arm_neon.h (vtrn_s8, vtrn_s16, vtrn_u8, vtrn_u16, vtrn_p8,
16882 vtrn_p16, vtrn_s32, vtrn_f32, vtrn_u32, vtrnq_s8, vtrnq_s16, vtrnq_s32,
16883 vtrnq_f32, vtrnq_u8, vtrnq_u16, vtrnq_u32, vtrnq_p8, vtrnq_p16,
16884 vzip_s8, vzip_s16, vzip_u8, vzip_u16, vzip_p8, vzip_p16, vzip_s32,
16885 vzip_f32, vzip_u32, vzipq_s8, vzipq_s16, vzipq_s32, vzipq_f32,
16886 vzipq_u8, vzipq_u16, vzipq_u32, vzipq_p8, vzipq_p16, vuzp_s8, vuzp_s16,
16887 vuzp_s32, vuzp_f32, vuzp_u8, vuzp_u16, vuzp_u32, vuzp_p8, vuzp_p16,
16888 vuzpq_s8, vuzpq_s16, vuzpq_s32, vuzpq_f32, vuzpq_u8, vuzpq_u16,
16889 vuzpq_u32, vuzpq_p8, vuzpq_p16): Correct mask for bigendian.
16891 2014-06-09 Jan Hubicka <hubicka@ucw.cz>
16893 * tree-core.h (tree_decl_with_vis): Remove section_name.
16895 2014-06-09 Kito Cheng <kito@0xlab.org>
16897 * ira.c (ira): Don't call init_caller_save if LRA enabled
16898 since LRA use its own infrastructure to handle that.
16900 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16902 * symtab.c (dump_symtab_base): Update dumping.
16903 (symtab_make_decl_local): Clear only DECL_COMDAT.
16904 * tree-vect-data-refs.c (Check that variable is static before
16905 tampering with sections.
16906 * cgraphclones.c (duplicate_thunk_for_node): Do not clear section name.
16907 (cgraph_create_virtual_clone): Likewise.
16908 * tree.c (decl_comdat_group, decl_comdat_group_id): Constify argument.
16909 (decl_section_name, set_decl_section_name): New accessors.
16910 (find_decls_types_r): Do not walk section name
16911 * tree.h (DECL_SECTION_NAME): Implement using decl_section_name.
16912 (decl_comdat_group, decl_comdat_group_id): Constify.
16913 (decl_section_name, set_decl_section_name): Update.
16914 * varpool.c (varpool_finalize_named_section_flags): Use get_section.
16915 * cgraph.c (cgraph_add_thunk): Reset node instead of rebuilding.
16916 (cgraph_make_node_local_1): Clear section and comdat group.
16917 * cgraph.h (set_comdat_group): Sanity check.
16918 (get_section, set_section): New.
16919 * ipa-comdats.c (ipa_comdats): Use get_section.
16920 * ipa.c (ipa_discover_readonly_nonaddressable_var): Likewise.
16921 * lto-streamer-out.c: Do not follow section names.
16922 * c-family/c-common.c (handle_section_attribute): Update.
16923 * lto-cgraph.c (lto_output_node): Output section.
16924 (lto_output_varpool_node): Likewise.
16925 (read_comdat_group): Rename to ...
16926 (read_identifier): ... this one.
16927 (read_string_cst): New function.
16928 (input_node, input_varpool_node): Input section names.
16929 * tree-emutls.c (get_emutls_init_templ_addr): Update.
16930 (new_emutls_decl): Update.
16931 (secname_for_decl): Check section names only of static vars.
16932 * config/mep/mep.c (mep_unique_section): Use set_decl_section_name.
16933 * config/i386/winnt.c (i386_pe_unique_section): Likewise.
16934 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
16935 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
16936 * config/rs6000/rs6000.c (rs6000_xcoff_unique_section): Likewise.
16937 * config/mcore/mcore.c (mcore_unique_section): Likewise.
16938 * config/mips/mips.c (mips16_build_function_stub): Likewise.
16939 * config/v850/v850.c (v850_insert_attributes): Likewise.
16940 * config/h8300/h8300.c (h8300_handle_eightbit_data_attribute):
16942 (h8300_handle_tiny_data_attribute): Likewise.
16943 * config/bfin/bfin.c (bfin_handle_l1_text_attribute): Likewise.
16944 (bfin_handle_l2_attribute): Likewise.
16946 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16948 * symtab.c (symtab_nonoverwritable_alias): Copy VIRTUAL flag;
16949 remove static initializer.
16951 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16953 * varasm.c (use_blocks_for_decl_p): Check symbol table
16954 instead of alias attribute.
16955 (place_block_symbol): Recurse on aliases.
16957 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16959 * ipa-visibility.c: Include varasm.h
16960 (can_replace_by_local_alias): Ceck decl_binds_to_current_def_p.
16962 2014-06-07 Jan Hubicka <hubicka@ucw.cz>
16964 * cgraphunit.c (assemble_thunks_and_aliases): Expand thunks before
16965 outputting aliases.
16967 2014-06-07 Steven Bosscher <steven@gcc.gnu.org>
16969 * gcse.c (can_assign_to_reg_without_clobbers_p): Do not let pointers
16970 from test_insn into GGC space escape via SET_SRC.
16972 2014-06-07 Eric Botcazou <ebotcazou@adacore.com>
16974 * tree-ssa-tail-merge.c (same_succ_hash): Hash the static chain of a
16975 call statement, if any.
16976 (gimple_equal_p) <GIMPLE_CALL>: Compare the static chain of the call
16977 statements, if any. Tidy up.
16979 2014-06-06 Michael Meissner <meissner@linux.vnet.ibm.com>
16982 * config/rs6000/vsx.md (VSX_LE): Split VSX_D into 2 separate
16983 iterators, VSX_D that handles 64-bit types, and VSX_LE that
16984 handles swapping the two 64-bit double words on little endian
16985 systems. Include V1TImode and optionally TImode in VSX_LE so that
16986 these types are properly swapped. Change all of the insns and
16987 splits that do the 64-bit swaps to use VSX_LE.
16988 (vsx_le_perm_load_<mode>): Likewise.
16989 (vsx_le_perm_store_<mode>): Likewise.
16990 (splitters for little endian memory operations): Likewise.
16991 (vsx_xxpermdi2_le_<mode>): Likewise.
16992 (vsx_lxvd2x2_le_<mode>): Likewise.
16993 (vsx_stxvd2x2_le_<mode>): Likewise.
16995 2014-06-06 Uros Bizjak <ubizjak@gmail.com>
16998 * config/i386/i386.md (*floatunssi<mode>2_i387_with_xmm): New
16999 define_insn_and_split pattern, merged from *floatunssi<mode>2_1
17000 and corresponding splitters. Zero extend general register
17001 or memory input operand to XMM temporary. Enable for
17002 TARGET_SSE2 and TARGET_INTER_UNIT_MOVES_TO_VEC only.
17003 (floatunssi<mode>2): Update expander predicate.
17005 2014-06-06 Vladimir Makarov <vmakarov@redhat.com>
17007 PR rtl-optimization/61325
17008 * lra-constraints.c (process_address_1): Check scale equal to one
17009 to prevent transformation: base + scale * index => base + new_reg.
17011 2014-06-06 Richard Biener <rguenther@suse.de>
17013 PR tree-optimization/59299
17014 * tree-ssa-sink.c (all_immediate_uses_same_place): Work on
17016 (nearest_common_dominator_of_uses): Likewise.
17017 (statement_sink_location): Adjust. Support sinking loads.
17019 2014-06-06 Martin Jambor <mjambor@suse.cz>
17021 * ipa-prop.c (get_place_in_agg_contents_list): New function.
17022 (build_agg_jump_func_from_list): Likewise.
17023 (determine_known_aggregate_parts): Renamed to
17024 determine_locally_known_aggregate_parts. Moved some functionality
17025 to the two functions above, removed bound checks.
17027 2014-06-06 James Greenhalgh <james.greenhalgh@arm.com>
17029 * config/aarch64/aarch64-protos.h (aarch64_expand_movmem): New.
17030 * config/aarch64/aarch64.c (aarch64_move_pointer): New.
17031 (aarch64_progress_pointer): Likewise.
17032 (aarch64_copy_one_part_and_move_pointers): Likewise.
17033 (aarch64_expand_movmen): Likewise.
17034 * config/aarch64/aarch64.h (MOVE_RATIO): Set low.
17035 * config/aarch64/aarch64.md (movmem<mode>): New.
17037 2014-06-06 Bingfeng Mei <bmei@broadcom.com>
17039 * targhooks.c (default_add_stmt_cost): Call target specific
17040 hook instead of default one.
17042 2014-06-06 Thomas Preud'homme <thomas.preudhomme@arm.com>
17044 * ChangeLog (2014-05-23): Fix ChangeLog entry to refer to target
17045 endianness instead of host endianness.
17046 * tree-ssa-math-opts.c (find_bswap_or_nop_1): Likewise in dumps and
17049 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17052 * function.c (instantiate_decls): Process the saved static chain.
17053 (expand_function_start): If not optimizing, save the static chain
17055 * tree-nested.c (convert_all_function_calls): Always create the static
17056 chain for nested functions if not optimizing.
17058 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17060 * tree-cfg.c (make_edges) <GIMPLE_RETURN>: Put a location on the edge.
17062 2014-06-06 Richard Biener <rguenther@suse.de>
17064 * cfgexpand.c (expand_gimple_cond): Remove check for current_loops.
17065 (construct_init_block): Likewise.
17066 (construct_exit_block): Likewise.
17067 (pass_expand::execute): Likewise.
17068 * graphite.c (graphite_transforms): Replace check for current_loops
17069 with a check for > 1 loops.
17070 (pass_graphite_transforms::execute): Adjust.
17071 * ipa-split.c (split_function): Remove check for current_loops.
17072 * omp-low.c (expand_parallel_call): Likewise.
17073 (expand_omp_for_init_counts): Likewise.
17074 (extract_omp_for_update_vars): Likewise.
17075 (expand_omp_for_generic): Likewise.
17076 (expand_omp_sections): Likewise.
17077 (expand_omp_target): Likewise.
17078 * tracer.c (tail_duplicate): Likewise.
17079 (pass_tracer::execute): Likewise.
17080 * trans-mem.c (expand_transaction): Likewise.
17081 * tree-complex.c (expand_complex_div_wide): Likewise.
17082 * tree-eh.c (lower_resx): Likewise.
17083 (cleanup_empty_eh_merge_phis): Likewise.
17084 * tree-predcom.c (run_tree_predictive_commoning): Replace check for
17085 current_loops with a check for > 1 loops.
17086 (pass_predcom::execute): Adjust.
17087 * tree-scalar-evolution.c (scev_reset): Remove check for current_loops.
17088 * tree-ssa-copy.c (copy_prop_visit_phi_node): Likewise.
17089 * tree-ssa-dom.c (pass_phi_only_cprop::execute): Likewise.
17090 * tree-ssa-tail-merge.c (tail_merge_optimize): Likewise.
17091 * tree-ssa-threadupdate.c (thread_through_all_blocks): Likewise.
17092 * tree-switch-conversion.c (process_switch): Likewise.
17093 * tree-tailcall.c (tree_optimize_tail_calls_1): Likewise.
17094 * tree-vrp.c (vrp_visit_phi_node): Likewise.
17095 (execute_vrp): Likewise.
17096 * ubsan.c (ubsan_expand_null_ifn): Likewise.
17098 2014-06-06 Eric Botcazou <ebotcazou@adacore.com>
17100 * rtl.h (insn_location): Declare.
17101 * cfgcleanup.c (try_forward_edges): Compare the locus of locations
17102 with UNKNOWN_LOCATION.
17103 * emit-rtl.c (insn_location): New function.
17104 * final.c (notice_source_line): Check that the instruction has a
17105 location before retrieving it and use insn_location.
17106 * modulo-sched.c (loop_single_full_bb_p): Likewise.
17107 * print-rtl.c (print_rtx): Likewise.
17109 2014-06-06 Richard Biener <rguenther@suse.de>
17111 * passes.def: Move 2nd VRP pass before phi-only-cprop.
17113 2014-06-06 Christian Bruel <christian.bruel@st.com>
17115 PR tree-optimization/43934
17116 * tree-ssa-loop-im.c (determine_max_movement): Add PHI def constant
17119 2014-06-06 Richard Sandiford <rdsandiford@googlemail.com>
17121 * ira-lives.c (single_reg_class): Add missing break. Explicitly
17122 return NO_REGS for extra address and memory constraints. Handle
17123 operands that match (or are equivalent to something that matches)
17124 extra constant constraints. Ignore other non-register operands.
17126 2014-06-06 Alan Modra <amodra@gmail.com>
17129 * doc/tm.texi.in (INCOMING_REG_PARM_STACK_SPACE): Document.
17130 * doc/tm.texi: Regenerate.
17131 * function.c (INCOMING_REG_PARM_STACK_SPACE): Provide default.
17132 Use throughout in place of REG_PARM_STACK_SPACE.
17133 * config/rs6000/rs6000.c (rs6000_reg_parm_stack_space): Add
17134 "incoming" param. Pass to rs6000_function_parms_need_stack.
17135 (rs6000_function_parms_need_stack): Add "incoming" param, ignore
17136 prototype_p when incoming. Use function decl when incoming
17137 to handle K&R style functions.
17138 * config/rs6000/rs6000.h (REG_PARM_STACK_SPACE): Adjust.
17139 (INCOMING_REG_PARM_STACK_SPACE): Define.
17141 2014-06-05 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
17144 * cfgexpand.c (expand_debug_expr): Use address space of nested
17145 TREE_TYPE for ADDR_EXPR and MEM_REF.
17147 2014-06-05 Jeff Law <law@redhat.com>
17149 PR tree-optimization/61289
17150 * tree-ssa-threadedge.c (invalidate_equivalences): Remove SRC_MAP and
17151 DST_MAP parameters. Invalidate by walking all the SSA_NAME_VALUES
17152 looking for those which match LHS. All callers changed.
17153 (record_temporary_equivalences_from_phis): Remove SRC_MAP and DST_MAP
17154 parameters and code which manipulated them. All callers changed.
17155 (record_temporary_equivalences_from_stmts_at_dest): Remove SRC_MAP
17156 and DST_MAP parameters. Simplify invalidation code by just calling
17157 invalidate_equivalences. All callers changed.
17158 (thread_across_edge): Simplify now that we don't need to maintain
17159 the map of equivalences to invalidate.
17161 2014-06-05 Kai Tietz <ktietz@redhat.com>
17162 Richard Henderson <rth@redhat.com>
17165 * config/i386/predicates.md (memory_nox32_operand): Add memory_operand
17166 checking for !TARGET_X32.
17167 * config/i386/i386.md (UNSPEC_PEEPSIB): New unspec constant.
17168 (sibcall_intern): New define_insn, plus required peepholes.
17169 (sibcall_pop_intern): Likewise.
17170 (sibcall_value_intern): Likewise.
17171 (sibcall_value_pop_intern): Likewise.
17173 2014-06-05 Ilya Enkovich <ilya.enkovich@intel.com>
17175 * tree-inline.c (tree_function_versioning): Check DF info existence
17176 before accessing it.
17178 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17180 * config/aarch64/aarch64.h (aarch64_frame): Add hard_fp_offset and
17182 * config/aarch64/aarch64.c (aarch64_layout_frame): Initialize
17183 aarch64_frame hard_fp_offset and frame_size.
17184 (aarch64_expand_prologue): Use aarch64_frame hard_fp_offset and
17185 frame_size; remove original_frame_size.
17186 (aarch64_expand_epilogue, aarch64_final_eh_return_addr): Likewise.
17187 (aarch64_initial_elimination_offset): Remove frame_size and
17188 offset. Use aarch64_frame frame_size.
17190 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17191 Jiong Wang <jiong.wang@arm.com>
17192 Renlin <renlin.li@arm.com>
17194 * config/aarch64/aarch64.c (aarch64_layout_frame): Correct
17195 initialization of R30 offset. Update offset. Iterate core
17196 regisers upto X30. Remove X29, X30 specific code.
17198 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17199 Jiong Wang <jiong.wang@arm.com>
17201 * config/aarch64/aarch64.c (SLOT_NOT_REQUIRED, SLOT_REQUIRED): Define.
17202 (aarch64_layout_frame): Use SLOT_NOT_REQUIRED and SLOT_REQUIRED.
17203 (aarch64_register_saved_on_entry): Adjust test.
17205 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17207 * config/aarch64/aarch64.h (machine_function): Move
17208 saved_varargs_size from here...
17209 (aarch64_frame): ... to here.
17211 * config/aarch64/aarch64.c (aarch64_expand_prologue)
17212 (aarch64_expand_epilogue, aarch64_final_eh_return_addr)
17213 (aarch64_initial_elimination_offset)
17214 (aarch64_setup_incoming_varargs): Adjust location of
17215 saved_varargs_size.
17217 2014-06-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
17219 * config/aarch64/aarch64.c (aarch64_expand_prologue): Update stack
17222 2014-06-05 Jaydeep Patil <Jaydeep.Patil@imgtec.com>
17223 Prachi Godbole <Prachi.Godbole@imgtec.com>
17225 * config/mips/mips-cpus.def: Add definition for p5600. Updated
17226 mips32r5 entry to use PROCESSOR_P5600.
17227 * config/mips/mips-tables.opt: Regenerate.
17228 * config/mips/mips-protos.h (mips_fmadd_bypass): Add prototype.
17229 * config/mips/mips.c (mips_fmadd_bypass): New function.
17230 (mips_rtx_cost_data): Add costs for p5600.
17231 (mips_issue_rate): Add support for p5600.
17232 (mips_multipass_dfa_lookahead): Likewise.
17233 * config/mips/mips.h (TUNE_P5600): New define.
17234 (TUNE_MACC_CHAINS): Add TUNE_P5600.
17235 (MIPS_ISA_LEVEL_SPEC): Map -march=p5600 to -mips32r5.
17236 * config/mips/mips.md: Include p5600.md.
17237 (processor): Add p5600.
17238 * config/mips/p5600.md: New file.
17240 2014-06-05 Evgeny Stupachenko <evstupac@gmail.com>
17242 * config/i386/sse.md (*ssse3_palignr<mode>_perm): New.
17243 * config/i386/predicates.md (palignr_operand): New.
17244 Indicates if permutation is suitable for palignr instruction.
17246 2014-06-05 Yuri Rumyantsev <ysrumyan@gmail.com>
17248 PR tree-optimization/61319
17249 * tree-if-conv.c (is_cond_scalar_reduction): Add missed check that
17250 stmt belongs to loop.
17252 2014-06-05 Richard Biener <rguenther@suse.de>
17254 * gimplify.c (create_tmp_from_val): Remove is_formal parameter
17255 and set DECL_GIMPLE_REG_P unconditionally if appropriate.
17256 (lookup_tmp_var): Adjust.
17257 (prepare_gimple_addressable): Unset DECL_GIMPLE_REG_P here.
17259 2014-06-05 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17261 * config/arm/arm.md (enabled): Disable opt_enabled attribute.
17263 2014-06-05 Marek Polacek <polacek@redhat.com>
17266 * doc/invoke.texi: Document -Wlogical-not-parentheses.
17268 2014-06-04 Tom de Vries <tom@codesourcery.com>
17270 * config/s390/s390.md ("addptrdi3", "addptrsi3"): Use INTVAL only on
17273 2014-06-04 Marc Glisse <marc.glisse@inria.fr>
17275 PR tree-optimization/61385
17276 * tree-ssa-phiopt.c (value_replacement): Punt if there are PHI nodes.
17278 2014-06-04 Bernd Schmidt <bernds@codesourcery.com>
17280 * lto-wrapper.c (fatal, fatal_perror): Remove functions. All callers
17281 changed to use fatal_error.
17282 (main): Ensure lto_wrapper_cleanup is run atexit.
17284 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17286 * lra-constraints.c (valid_address_p): Move earlier in file.
17287 (address_eliminator): New structure.
17288 (satisfies_memory_constraint_p): New function.
17289 (satisfies_address_constraint_p): Likewise.
17290 (process_alt_operands, process_address, curr_insn_transform): Use them.
17292 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17294 * lra-int.h (lra_static_insn_data): Make operand_alternative a
17296 (target_lra_int, default_target_lra_int, this_target_lra_int)
17297 (op_alt_data): Delete.
17298 * lra.h (lra_init): Delete.
17299 * lra.c (default_target_lra_int, this_target_lra_int): Delete.
17300 (init_insn_code_data_once): Remove op_alt_data handling.
17301 (finish_insn_code_data_once): Likewise.
17302 (init_op_alt_data): Delete.
17303 (get_static_insn_data): Initialize operand_alternative to null.
17304 (free_insn_recog_data): Cast operand_alternative before freeing it.
17305 (setup_operand_alternative): Take the operand_alternative as
17306 parameter and assume it isn't already cached in the static
17308 (lra_set_insn_recog_data): Update accordingly.
17309 (lra_init): Delete.
17310 * ira.c (ira_init): Don't call lra_init.
17311 * target-globals.h (this_target_lra_int): Declare.
17312 (target_globals): Remove lra_int.
17313 (restore_target_globals): Update accordingly.
17314 * target-globals.c: Don't include lra-int.h.
17315 (default_target_globals, save_target_globals): Remove lra_int.
17317 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17319 * recog.h (operand_alternative): Convert reg_class, reject,
17320 matched and matches into bitfields.
17321 (preprocess_constraints): New overload.
17322 (preprocess_insn_constraints): New function.
17323 (preprocess_constraints): Take the insn as parameter.
17324 (recog_op_alt): Change into a pointer.
17325 (target_recog): Add x_op_alt.
17326 * recog.c (asm_op_alt): New variable.
17327 (recog_op_alt): Change into a pointer.
17328 (preprocess_constraints): New overload, replacing the old function
17329 definition with one that doesn't use global state.
17330 (preprocess_insn_constraints): New function.
17331 (preprocess_constraints): Use them. Take the insn as parameter.
17332 Use asm_op_alt for asms.
17333 (recog_init): Free existing x_op_alt entries.
17334 * ira-lives.c (check_and_make_def_conflict): Make operand_alternative
17336 (make_early_clobber_and_input_conflicts): Likewise.
17337 (process_bb_node_lives): Pass the insn to process_constraints.
17338 * reg-stack.c (check_asm_stack_operands): Likewise.
17339 (subst_asm_stack_regs): Likewise.
17340 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17341 * regrename.c (build_def_use): Likewise.
17342 * sched-deps.c (sched_analyze_insn): Likewise.
17343 * sel-sched.c (get_reg_class, implicit_clobber_conflict_p): Likewise.
17344 * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
17345 (note_invalid_constants): Likewise.
17346 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17347 (ix86_legitimate_combined_insn): Make operand_alternative pointer
17350 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17352 * recog.c (preprocess_constraints): Don't skip disabled alternatives.
17353 * ira-lives.c (check_and_make_def_conflict): Check for disabled
17355 (make_early_clobber_and_input_conflicts): Likewise.
17356 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17358 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17360 * recog.h (alternative_class): New function.
17361 (which_op_alt): Return a const recog_op_alt.
17362 * reg-stack.c (check_asm_stack_operands): Update type accordingly.
17363 (subst_asm_stack_regs): Likewise.
17364 * config/arm/arm.c (note_invalid_constants): Likewise.
17365 * regcprop.c (copyprop_hardreg_forward_1): Likewise. Don't modify
17366 the operand_alternative; use alternative class instead.
17367 * sel-sched.c (get_reg_class): Likewise.
17368 * regrename.c (build_def_use): Likewise.
17369 (hide_operands, restore_operands, record_out_operands): Update type
17372 2014-06-04 Richard Sandiford <rdsandiford@googlemail.com>
17374 * recog.h (recog_op_alt): Convert to a flat array.
17375 (which_op_alt): New function.
17376 * recog.c (recog_op_alt): Convert to a flat array.
17377 (preprocess_constraints): Update accordingly, grouping all
17378 operands of the same alternative together, rather than the
17380 * ira-lives.c (check_and_make_def_conflict): Likewise.
17381 (make_early_clobber_and_input_conflicts): Likewise.
17382 * config/i386/i386.c (ix86_legitimate_combined_insn): Likewise.
17383 * reg-stack.c (check_asm_stack_operands): Use which_op_alt.
17384 (subst_asm_stack_regs): Likewise.
17385 * regcprop.c (copyprop_hardreg_forward_1): Likewise.
17386 * regrename.c (hide_operands, record_out_operands): Likewise.
17387 (build_def_use): Likewise.
17388 * sel-sched.c (get_reg_class): Likewise.
17389 * config/arm/arm.c (note_invalid_constants): Likewise.
17391 2014-06-04 Jason Merrill <jason@redhat.com>
17395 * gimplify.c (gimplify_arg): Non-static.
17396 * gimplify.h: Declare it.
17398 2014-06-04 Richard Biener <rguenther@suse.de>
17400 * tree.h (may_be_aliased): Trust TREE_ADDRESSABLE from
17401 TREE_PUBLIC and DECL_EXTERNAL decls.
17403 2014-06-04 Matthew Fortune <matthew.fortune@imgtec.com>
17405 * regcprop.c (copyprop_hardreg_forward_1): Account for
17406 HARD_REGNO_CALL_PART_CLOBBERED.
17408 2014-06-04 Richard Biener <rguenther@suse.de>
17410 * configure.ac: Check whether the underlying type of int64_t
17411 is long or long long.
17412 * configure: Regenerate.
17413 * config.in: Likewise.
17414 * hwint.h (HOST_WIDE_INT): Match the underlying type of int64_t.
17415 (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
17417 2014-06-04 Richard Biener <rguenther@suse.de>
17419 PR tree-optimization/60098
17420 * tree-ssa-dse.c (dse_possible_dead_store_p): Walk until
17422 (dse_optimize_stmt): Simplify, now that we found a kill
17425 2014-06-04 Richard Biener <rguenther@suse.de>
17427 * tree-ssa-alias.c (stmt_may_clobber_ref_p): Improve handling
17428 of accesses with non-invariant address.
17430 2014-06-04 Martin Liska <mliska@suse.cz>
17432 * cgraph.h (cgraph_make_wrapper): New function introduced.
17433 * cgraphunit.c (cgraph_make_wrapper): The function implementation.
17434 * ipa-inline.h (inline_analyze_function): The function is global.
17435 * ipa-inline-analysis.c (inline_analyze_function): Likewise.
17437 2014-06-04 Martin Liska <mliska@suse.cz>
17439 * tree.h (private_lookup_attribute_starting): New function.
17440 (lookup_attribute_starting): Likewise.
17441 * tree.c (private_lookup_attribute_starting): Likewise.
17443 2014-06-04 Martin Liska <mliska@suse.cz>
17445 * cgraph.h (expand_thunk): New argument added.
17446 (address_taken_from_non_vtable_p): New global function.
17447 * ipa-visibility.c (address_taken_from_non_vtable_p): Likewise.
17448 * cgraphclones.c (duplicate_thunk_for_node): Argument added to call.
17449 * cgraphunit.c (analyze_function): Likewise.
17450 (assemble_thunks_and_aliases): Argument added to call.
17451 (expand_thunk): New argument forces to produce GIMPLE thunk.
17453 2014-06-04 Martin Liska <mliska@suse.cz>
17455 * coverage.h (coverage_compute_cfg_checksum): Argument added.
17456 * coverage.c (coverage_compute_cfg_checksum): Likewise.
17457 * profile.c (branch_prob): Likewise.
17459 2014-06-04 Martin Jambor <mjambor@suse.cz>
17462 * ipa-pure-const.c (propagate_pure_const): Add unreachable default
17463 handler for switch on an ipa_ref_use enum.
17464 * ipa-reference.c (analyze_function): Likewise.
17466 2014-06-04 Kai Tietz <ktietz@redhat.com>
17468 * recog.c (peep2_attempt): Copy SIBLING_CALL_P flag
17469 from old call-instruction.
17471 2014-06-04 Bin Cheng <bin.cheng@arm.com>
17473 * config/aarch64/aarch64.c (aarch64_classify_address)
17474 (aarch64_legitimize_reload_address): Support full addressing modes
17476 * config/aarch64/aarch64.md (mov<mode>, movmisalign<mode>)
17477 (*aarch64_simd_mov<mode>, *aarch64_simd_mov<mode>): Relax predicates.
17479 2014-06-03 Andrew Pinski <apinski@cavium.com>
17481 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Allow non comparisons
17484 2014-06-03 Andrew Pinski <apinski@cavium.com>
17486 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): New function.
17487 (aarch64_rtx_costs): Use aarch64_if_then_else_costs.
17489 2014-06-03 Kai Tietz <ktietz@redhat.com>
17491 * config/i386/i386.c (ix86_function_value_regno_p): Disallow DX_REG
17494 2014-06-03 Dehao Chen <dehao@google.com>
17496 * tree-cfg.c (gimple_merge_blocks): Only reset count when BBs are in
17499 2014-06-03 Marek Polacek <polacek@redhat.com>
17502 * doc/invoke.texi: Document -Wswitch-bool.
17503 * function.c (stack_protect_epilogue): Cast controlling expression of
17505 * gengtype.c (walk_type): Generate switch expression with its
17506 controlling expression cast to int.
17508 2014-06-03 Vishnu K S <Vishnu.k_s@atmel.com>
17510 * config/avr/avr-mcus.def: Add new avr25 devices attiny441, attiny828
17512 * config/avr/avr-tables.opt: Regenerate.
17513 * config/avr/t-multilib: Regenerate.
17514 * doc/avr-mmcu.texi: Regenerate.
17516 2014-06-03 Vishnu K S <vishnu.k_s@atmel.com>
17517 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17519 * config/avr/avr-mcus.def (ata6616c): Add new avr25 device.
17520 (ata6617c, ata664251): Add new avr35 devices.
17521 (ata6612c): Add new avr4 device.
17522 (ata6613c, ata6614q): Add new avr5 devices.
17523 * config/avr/avr-tables.opt: Regenerate.
17524 * config/avr/t-multilib: Regenerate.
17525 * doc/avr-mmcu.texi: Regenerate.
17527 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17529 * gcc/config/aarch64/aarch64-builtins.c
17530 (aarch64_types_binop_ssu_qualifiers): New static data.
17531 (TYPES_BINOP_SSU): Define.
17532 * gcc/config/aarch64/aarch64-simd-builtins.def (suqadd, ushl, urshl,
17533 urshr_n, ushll_n): Use appropriate unsigned qualifiers.
17534 * gcc/config/aarch64/arm_neon.h (vrshl_u8, vrshl_u16, vrshl_u32,
17535 vrshl_u64, vrshlq_u8, vrshlq_u16, vrshlq_u32, vrshlq_u64, vrshld_u64,
17536 vrshr_n_u8, vrshr_n_u16, vrshr_n_u32, vrshr_n_u64, vrshrq_n_u8,
17537 vrshrq_n_u16, vrshrq_n_u32, vrshrq_n_u64, vrshrd_n_u64, vshll_n_u8,
17538 vshll_n_u16, vshll_n_u32, vuqadd_s8, vuqadd_s16, vuqadd_s32,
17539 vuqadd_s64, vuqaddq_s8, vuqaddq_s16, vuqaddq_s32, vuqaddq_s64,
17540 vuqaddb_s8, vuqaddh_s16, vuqadds_s32, vuqaddd_s64): Add signedness
17541 suffix to builtin function name, remove cast.
17542 (vshl_s8, vshl_s16, vshl_s32, vshl_s64, vshl_u8, vshl_u16, vshl_u32,
17543 vshl_u64, vshlq_s8, vshlq_s16, vshlq_s32, vshlq_s64, vshlq_u8,
17544 vshlq_u16, vshlq_u32, vshlq_u64, vshld_s64, vshld_u64): Remove cast.
17546 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17548 * gcc/config/aarch64/aarch64-builtins.c
17549 (aarch64_types_binop_uus_qualifiers,
17550 aarch64_types_shift_to_unsigned_qualifiers,
17551 aarch64_types_unsigned_shiftacc_qualifiers): Define.
17552 * gcc/config/aarch64/aarch64-simd-builtins.def (uqshl, uqrshl, uqadd,
17553 uqsub, usqadd, usra_n, ursra_n, uqshrn_n, uqrshrn_n, usri_n, usli_n,
17554 sqshlu_n, uqshl_n): Update qualifiers.
17555 * gcc/config/aarch64/arm_neon.h (vqadd_u8, vqadd_u16, vqadd_u32,
17556 vqadd_u64, vqaddq_u8, vqaddq_u16, vqaddq_u32, vqaddq_u64, vqsub_u8,
17557 vqsub_u16, vqsub_u32, vqsub_u64, vqsubq_u8, vqsubq_u16, vqsubq_u32,
17558 vqsubq_u64, vqaddb_u8, vqaddh_u16, vqadds_u32, vqaddd_u64, vqrshl_u8,
17559 vqrshl_u16, vqrshl_u32, vqrshl_u64, vqrshlq_u8, vqrshlq_u16,
17560 vqrshlq_u32, vqrshlq_u64, vqrshlb_u8, vqrshlh_u16, vqrshls_u32,
17561 vqrshld_u64, vqrshrn_n_u16, vqrshrn_n_u32, vqrshrn_n_u64,
17562 vqrshrnh_n_u16, vqrshrns_n_u32, vqrshrnd_n_u64, vqshl_u8, vqshl_u16,
17563 vqshl_u32, vqshl_u64, vqshlq_u8, vqshlq_u16, vqshlq_u32, vqshlq_u64,
17564 vqshlb_u8, vqshlh_u16, vqshls_u32, vqshld_u64, vqshl_n_u8, vqshl_n_u16,
17565 vqshl_n_u32, vqshl_n_u64, vqshlq_n_u8, vqshlq_n_u16, vqshlq_n_u32,
17566 vqshlq_n_u64, vqshlb_n_u8, vqshlh_n_u16, vqshls_n_u32, vqshld_n_u64,
17567 vqshlu_n_s8, vqshlu_n_s16, vqshlu_n_s32, vqshlu_n_s64, vqshluq_n_s8,
17568 vqshluq_n_s16, vqshluq_n_s32, vqshluq_n_s64, vqshlub_n_s8,
17569 vqshluh_n_s16, vqshlus_n_s32, vqshlud_n_s64, vqshrn_n_u16,
17570 vqshrn_n_u32, vqshrn_n_u64, vqshrnh_n_u16, vqshrns_n_u32,
17571 vqshrnd_n_u64, vqsubb_u8, vqsubh_u16, vqsubs_u32, vqsubd_u64,
17572 vrsra_n_u8, vrsra_n_u16, vrsra_n_u32, vrsra_n_u64, vrsraq_n_u8,
17573 vrsraq_n_u16, vrsraq_n_u32, vrsraq_n_u64, vrsrad_n_u64, vsli_n_u8,
17574 vsli_n_u16, vsli_n_u32,vsli_n_u64, vsliq_n_u8, vsliq_n_u16,
17575 vsliq_n_u32, vsliq_n_u64, vslid_n_u64, vsqadd_u8, vsqadd_u16,
17576 vsqadd_u32, vsqadd_u64, vsqaddq_u8, vsqaddq_u16, vsqaddq_u32,
17577 vsqaddq_u64, vsqaddb_u8, vsqaddh_u16, vsqadds_u32, vsqaddd_u64,
17578 vsra_n_u8, vsra_n_u16, vsra_n_u32, vsra_n_u64, vsraq_n_u8,
17579 vsraq_n_u16, vsraq_n_u32, vsraq_n_u64, vsrad_n_u64, vsri_n_u8,
17580 vsri_n_u16, vsri_n_u32, vsri_n_u64, vsriq_n_u8, vsriq_n_u16,
17581 vsriq_n_u32, vsriq_n_u64, vsrid_n_u64): Remove casts.
17583 2014-06-03 Teresa Johnson <tejohnson@google.com>
17585 * tree-sra.c (modify_function): Record caller nodes after rebuild.
17587 2014-06-02 Jason Merrill <jason@redhat.com>
17590 * varpool.c (ctor_for_folding): Handle uninitialized vtables.
17592 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17594 * config/aarch64/aarch64.c (aarch64_evpc_ext): allow and handle
17597 2014-06-03 Alan Lawrence <alan.lawrence@arm.com>
17599 * config/aarch64/aarch64-simd.md (aarch64_rev<REVERSE:rev-op><mode>):
17601 * config/aarch64/aarch64.c (aarch64_evpc_rev): New function.
17602 (aarch64_expand_vec_perm_const_1): Add call to aarch64_evpc_rev.
17603 * config/aarch64/iterators.md (REVERSE): New iterator.
17604 (UNSPEC_REV64, UNSPEC_REV32, UNSPEC_REV16): New enum elements.
17605 (rev_op): New int_attribute.
17606 * config/aarch64/arm_neon.h (vrev16_p8, vrev16_s8, vrev16_u8,
17607 vrev16q_p8, vrev16q_s8, vrev16q_u8, vrev32_p8, vrev32_p16, vrev32_s8,
17608 vrev32_s16, vrev32_u8, vrev32_u16, vrev32q_p8, vrev32q_p16, vrev32q_s8,
17609 vrev32q_s16, vrev32q_u8, vrev32q_u16, vrev64_f32, vrev64_p8,
17610 vrev64_p16, vrev64_s8, vrev64_s16, vrev64_s32, vrev64_u8, vrev64_u16,
17611 vrev64_u32, vrev64q_f32, vrev64q_p8, vrev64q_p16, vrev64q_s8,
17612 vrev64q_s16, vrev64q_s32, vrev64q_u8, vrev64q_u16, vrev64q_u32):
17613 Replace temporary __asm__ with __builtin_shuffle.
17615 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17617 * config/mips/mips-cpus.def: Add mips32r3, mips32r5, mips64r3 and
17619 * config/mips/mips-tables.opt: Regenerate.
17620 * config/mips/mips.c (mips_compute_frame_info): Changed if statement
17621 to use mips_isa_rev rather than ISA_MIPS32R2.
17622 * config/mips/mips.h (ISA_MIPS32R3): New define.
17623 (ISA_MIPS32R5): New define.
17624 (ISA_MIPS64R3): New define.
17625 (ISA_MIPS64R5): New define.
17626 (TARGET_CPU_CPP_BUILTINS): Added support for ISA_MIPS32R3,
17627 ISA_MIPS32R5, ISA_MIPS64R3 and ISA_MIPS64R5.
17628 (MIPS_ISA_LEVEL_SPEC): Added support for mips32r3, mips32r5, mips64r3
17630 (MIPS_ISA_SYNCI_SPEC): Likewise.
17631 (ISA_HAS_64BIT_REGS): Added ISA_MIPS64R3 and ISA_MIPS64R5.
17632 (LINK_SPEC): Added mips32r3 and mips32r5.
17633 * config/mips/t-isa3264 (MULTILIB_MATCHES): Map mips32r3 and mips32r5
17634 to mips32r2; and mips64r3 and mips64r5 to mips64r2.
17635 * config/mips/t-mti-elf (MULTILIB_MATCHES): Likewise.
17636 * config/mips/t-mti-linux (MULTILIB_MATCHES): Likewise.
17637 * config/mips/t-sde (MULTILIB_MATCHES): Likewise.
17638 * config/mips/t-sdemtk (MULTILIB_MATCHES): New define.
17639 * doc/invoke.texi: Document mips32r3, mips32r5, mips64r3 and mips64r5.
17641 2014-06-03 Andrew Bennett <andrew.bennett@imgtec.com>
17643 * doc/invoke.texi: Document -mxpa and -mno-xpa MIPS command line
17645 * config/mips/mips.opt (mxpa): New option.
17646 * config/mips/mips.h (ASM_SPEC): Pass mxpa and mno-xpa to the
17649 2014-06-03 Martin Jambor <mjambor@suse.cz>
17652 * ipa-cp.c (cgraph_edge_brings_value_p): Handle edges leading to
17655 2014-06-03 Thomas Preud'homme <thomas.preudhomme@arm.com>
17657 PR tree-optimization/61328
17658 * tree-ssa-math-opts.c (init_symbolic_number): Extract symbolic number
17659 initialization from find_bswap_or_nop_1.
17660 (find_bswap_or_nop_1): Test return value of find_bswap_or_nop_1 stored
17661 in source_expr2 before using the size value the function sets. Also
17662 make use of init_symbolic_number () in both the old place and
17663 find_bswap_or_nop_load () to avoid reading uninitialized memory when
17664 doing recursion in the GIMPLE_BINARY_RHS case.
17666 2014-06-03 Richard Biener <rguenther@suse.de>
17668 PR tree-optimization/61383
17669 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Make sure
17672 2014-06-03 Richard Sandiford <rdsandiford@googlemail.com>
17674 * defaults.h (USE_MD_CONSTRAINTS, EXTRA_MEMORY_CONSTRAINT)
17675 (EXTRA_ADDRESS_CONSTRAINT, DEFAULT_CONSTRAINT_LEN, CONSTRAINT_LEN)
17676 (CONST_OK_FOR_CONSTRAINT_P, CONST_DOUBLE_OK_FOR_LETTER_P)
17677 (REG_CLASS_FROM_CONSTRAINT, EXTRA_CONSTRAINT_STR): Delete definitions
17679 (REG_CLASS_FROM_LETTER, CONST_OK_FOR_LETTER_P)
17680 (CONST_DOUBLE_OK_FOR_LETTER_P, EXTRA_CONSTRAINT): Move poising to...
17681 * system.h: ...here and make it unconditional.
17682 * target.def (conditional_register_usage): Mention
17683 define_register_constraint instead of old-style constraint macros.
17684 * doc/tm.texi.in: Remove documentation for old-style constraint macros.
17685 * doc/tm.texi: Regenerate.
17686 * genoutput.c: Remove USE_MD_CONSTRAINTS conditions and all code
17687 protected by !USE_MD_CONSTRAINTS.
17688 * config/frv/frv.md: Remove quote from old version of documentation.
17689 * config/frv/frv.c (frv_conditional_register_usage): Likewise.
17690 * config/m32r/m32r.c (easy_di_const, easy_df_const): Avoid mentioning
17691 CONST_DOUBLE_OK_FOR_LETTER.
17692 * config/sh/constraints.md: Likewise EXTRA_CONSTRAINT.
17694 2014-06-02 Andrew Pinski <apinski@cavium.com>
17696 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER):
17697 /lib/ld-linux32-aarch64.so.1 is used for ILP32.
17698 (LINUX_TARGET_LINK_SPEC): Update linker script for ILP32.
17699 file whose name depends on -mabi= and -mbig-endian.
17700 * config/aarch64/t-aarch64-linux (MULTILIB_OSDIRNAMES):
17701 Handle LP64 better and handle ilp32 too.
17702 (MULTILIB_OPTIONS): Delete.
17703 (MULTILIB_DIRNAMES): Delete.
17705 2014-06-02 Andrew MacLeod <amacleod@redhat.com>
17707 * expr.h: Remove prototypes of functions defined in builtins.c.
17708 * tree.h: (build_call_expr_*, build_string_literal): Add prototypes.
17709 Remove prototypes of functions defined in builtins.c.
17710 * builtins.h: Update prototype list to include all exported functions.
17711 * builtins.c: (default_libc_has_function, gnu_libc_has_function,
17712 no_c99_libc_has_function): Move to targhooks.c
17713 (build_string_literal, build_call_expr_loc_array,
17714 build_call_expr_loc_vec, build_call_expr_loc, build_call_expr): Move
17716 (expand_builtin_object_size, fold_builtin_object_size): Make static.
17717 * targhooks.c (default_libc_has_function, gnu_libc_has_function,
17718 no_c99_libc_has_function): Relocate from builtins.c.
17719 * tree.c: Include builtins.h.
17720 (build_call_expr_loc_array, build_call_expr_loc_vec,
17721 build_call_expr_loc, build_call_expr, build_string_literal): Relocate
17723 * fold-const.h (fold_fma): Move prototype to builtins.h.
17724 * realmpfr.h (do_mpc_arg2): Move prototype to builtins.h.
17725 * asan.c: Include builtins.h.
17726 * cfgexpand.c: Likewise.
17727 * convert.c: Likewise.
17728 * emit-rtl.c: Likewise.
17729 * except.c: Likewise.
17730 * expr.c: Likewise.
17731 * fold-const.c: Likewise.
17732 * gimple-fold.c: Likewise.
17733 * gimple-ssa-strength-reduction.c: Likewise.
17734 * gimplify.c: Likewise.
17735 * ipa-inline.c: Likewise.
17736 * ipa-prop.c: Likewise.
17737 * lto-streamer-out.c: Likewise.
17738 * stmt.c: Likewise.
17739 * tree-inline.c: Likewise.
17740 * tree-object-size.c: Likewise.
17741 * tree-sra.c: Likewise.
17742 * tree-ssa-ccp.c: Likewise.
17743 * tree-ssa-forwprop.c: Likewise.
17744 * tree-ssa-loop-ivcanon.c: Likewise.
17745 * tree-ssa-loop-ivopts.c: Likewise.
17746 * tree-ssa-math-opts.c: Likewise.
17747 * tree-ssa-reassoc.c: Likewise.
17748 * tree-ssa-threadedge.c: Likewise.
17749 * tree-streamer-in.c: Likewise.
17750 * tree-vect-data-refs.c: Likewise.
17751 * tree-vect-patterns.c: Likewise.
17752 * tree-vect-stmts.c: Likewise.
17753 * config/aarch64/aarch64.c: Likewise.
17754 * config/alpha/alpha.c: Likewise.
17755 * config/arc/arc.c: Likewise.
17756 * config/arm/arm.c: Likewise.
17757 * config/avr/avr.c: Likewise.
17758 * config/bfin/bfin.c: Likewise.
17759 * config/c6x/c6x.c: Likewise.
17760 * config/cr16/cr16.c: Likewise.
17761 * config/cris/cris.c: Likewise.
17762 * config/epiphany/epiphany.c: Likewise.
17763 * config/fr30/fr30.c: Likewise.
17764 * config/frv/frv.c: Likewise.
17765 * config/h8300/h8300.c: Likewise.
17766 * config/i386/i386.c: Likewise.
17767 * config/i386/winnt.c: Likewise.
17768 * config/ia64/ia64.c: Likewise.
17769 * config/iq2000/iq2000.c: Likewise.
17770 * config/lm32/lm32.c: Likewise.
17771 * config/m32c/m32c.c: Likewise.
17772 * config/m32r/m32r.c: Likewise.
17773 * config/m68k/m68k.c: Likewise.
17774 * config/mcore/mcore.c: Likewise.
17775 * config/mep/mep.c: Likewise.
17776 * config/microblaze/microblaze.c: Likewise.
17777 * config/mips/mips.c: Likewise.
17778 * config/mmix/mmix.c: Likewise.
17779 * config/mn10300/mn10300.c: Likewise.
17780 * config/moxie/moxie.c: Likewise.
17781 * config/msp430/msp430.c: Likewise.
17782 * config/nds32/nds32.c: Likewise.
17783 * config/pa/pa.c: Likewise.
17784 * config/pdp11/pdp11.c: Likewise.
17785 * config/picochip/picochip.c: Likewise.
17786 * config/rl78/rl78.c: Likewise.
17787 * config/rs6000/rs6000.c: Likewise.
17788 * config/rx/rx.c: Likewise.
17789 * config/s390/s390.c: Likewise.
17790 * config/score/score.c: Likewise.
17791 * config/sh/sh.c: Likewise.
17792 * config/sparc/sparc.c: Likewise.
17793 * config/spu/spu.c: Likewise.
17794 * config/stormy16/stormy16.c: Likewise.
17795 * config/tilegx/tilegx.c: Likewise.
17796 * config/tilepro/tilepro.c: Likewise.
17797 * config/v850/v850.c: Likewise.
17798 * config/vax/vax.c: Likewise.
17799 * config/xtensa/xtensa.c: Likewise.
17801 2014-06-02 Jeff Law <law@redhat.com>
17803 PR rtl-optimization/61094
17804 * ree.c (combine_reaching_defs): Do not reextend an insn if it
17805 was marked as do_no_reextend. If a copy is needed to eliminate
17806 an extension, then mark it as do_not_reextend.
17808 2014-06-02 Marcus Shawcroft <marcus.shawcroft@arm.com>
17810 * config/aarch64/aarch64.md (set_fpcr): Drop ISB after FPCR write.
17812 2014-06-02 Richard Henderson <rth@redhat.com>
17815 * config/alpha/alpha.c (print_operand_address): Allow symbolic
17816 addresses inside asms. Use output_operand_lossage instead of
17819 2014-06-02 Uros Bizjak <ubizjak@gmail.com>
17822 * config/i386/i386.c (ix86_expand_vec_perm) [case V32QImode]: Use
17823 GEN_INT (-128) instead of GEN_INT (128) to set MSB of QImode constant.
17825 2014-06-02 Tom de Vries <tom@codesourcery.com>
17827 * config/aarch64/aarch64.c (aarch64_float_const_representable_p): Handle
17828 case that x has VOIDmode.
17830 2014-06-02 Bernd Schmidt <bernds@codesourcery.com>
17832 * varasm.c (copy_constant): Delete function.
17833 (build_constant_desc): Don't call it.
17835 2014-06-02 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
17838 * config/arm/arm.h (TARGET_SUPPORTS_WIDE_INT): Define.
17839 * config/arm/arm.md (mov64 splitter): Replace const_double_operand
17840 with immediate_operand.
17842 2014-06-02 Andreas Schwab <schwab@suse.de>
17844 * config/ia64/ia64.c
17845 (ia64_first_cycle_multipass_dfa_lookahead_guard): Check
17846 pending_data_specs first.
17848 2014-06-02 Richard Biener <rguenther@suse.de>
17850 PR tree-optimization/61378
17851 * tree-ssa-sccvn.c (vn_reference_lookup_3): Initialize
17852 valueized_anything.
17854 2014-06-01 Uros Bizjak <ubizjak@gmail.com>
17856 * config/i386/constraints.md (Bw): Rename from 'w'.
17857 (Bz): Rename from 'z'.
17858 * config/i386/i386.md: Change 'w' to 'Bw' and 'z' to 'Bz' globally.
17860 2014-06-01 Kai Tietz <ktietz@redhat.com>
17863 * config/i386/constrains.md (define_constrain): New 'Bs' constraint.
17864 * config/i386/i386.md (sibcall_insn_operand): Use Bs
17865 instead of m constraint.
17867 2014-05-31 Andreas Schwab <schwab@linux-m68k.org>
17869 * config/m68k/m68k.md (beq0_di, bne0_di): Make the "o" constraint
17870 a separate alternative where the scratch operand 2 is marked as
17873 2014-05-31 Kugan Vivekanandarajah <kuganv@linaro.org>
17875 * config/arm/arm.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New define.
17876 (arm_builtins) : Add ARM_BUILTIN_GET_FPSCR and ARM_BUILTIN_SET_FPSCR.
17877 (bdesc_2arg) : Add description for builtins __builtins_arm_set_fpscr
17878 and __builtins_arm_get_fpscr.
17879 (arm_init_builtins) : Initialize builtins __builtins_arm_set_fpscr and
17880 __builtins_arm_get_fpscr.
17881 (arm_expand_builtin) : Expand builtins __builtins_arm_set_fpscr and
17882 __builtins_arm_ldfpscr.
17883 (arm_atomic_assign_expand_fenv): New function.
17884 * config/arm/vfp.md (set_fpscr): New pattern.
17885 (get_fpscr) : Likewise.
17886 * config/arm/unspecs.md (unspecv): Add VUNSPEC_GET_FPSCR and
17888 * doc/extend.texi (AARCH64 Built-in Functions) : Document
17889 __builtins_arm_set_fpscr, __builtins_arm_get_fpscr.
17891 2014-05-30 Jakub Jelinek <jakub@redhat.com>
17893 * asan.c (report_error_func): Add SLOW_P argument, use
17894 BUILT_IN_ASAN_*_N if set.
17895 (build_check_stmt): Likewise.
17896 (instrument_derefs): If T has insufficient alignment,
17897 force same handling as for odd sizes.
17899 * sanitizer.def (BUILT_IN_ASAN_REPORT_LOAD_N,
17900 BUILT_IN_ASAN_REPORT_STORE_N): New.
17901 * asan.c (struct asan_mem_ref): Change access_size type to
17903 (asan_mem_ref_init, asan_mem_ref_new, get_mem_refs_of_builtin_call,
17904 update_mem_ref_hash_table): Likewise.
17905 (asan_mem_ref_hasher::hash): Hash in a HWI.
17906 (report_error_func): Change size_in_bytes argument to HWI.
17907 Use *_N builtins if size_in_bytes is larger than 16 or not power of
17909 (build_shadow_mem_access): New function.
17910 (build_check_stmt): Use it. Change size_in_bytes argument to HWI.
17911 Handle size_in_bytes not power of two or larger than 16.
17912 (instrument_derefs): Don't give up if size_in_bytes is not
17913 power of two or is larger than 16.
17915 2014-05-30 Kai Tietz <ktietz@redhat.com>
17918 * config/i386/i386.c (x86_output_mi_thunk): Add memory case
17919 for sibling-tail-calls.
17920 * config/i386/i386.md (sibcall_insn_operand): Add memory-constrain
17922 * config/i386/predicates.md (sibcall_memory_operand): New predicate.
17923 (sibcall_insn_operand): Add check for sibcall_memory_operand.
17925 2014-05-30 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
17927 * config/avr/avr-mcus.def: Change ATA6289 ISA to AVR4
17928 * config/avr/avr-tables.opt: Regenerate.
17929 * config/avr/t-multilib: Regenerate.
17930 * doc/avr-mmcu.texi: Regenerate.
17932 2014-05-30 Ian Lance Taylor <iant@google.com>
17934 * config/i386/xmmintrin.h (_mm_pause): Move out of scope of pragma
17937 2014-05-30 Tom de Vries <tom@codesourcery.com>
17939 * config/i386/i386.c (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS):
17942 2014-05-30 Tom de Vries <tom@codesourcery.com>
17944 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
17945 * lra.c (initialize_lra_reg_info_element): Add init of
17946 actual_call_used_reg_set field.
17947 (lra): Call lra_create_live_ranges before lra_inheritance for
17949 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
17951 * lra-constraints.c (need_for_call_save_p): Use actual_call_used_reg_set
17952 instead of call_used_reg_set for -fuse-caller-save.
17953 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
17955 2014-05-30 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
17957 * config/arm/thumb2.md (*thumb2_movhi_insn): Set type of movw
17959 * config/arm/vfp.md (*thumb2_movsi_vfp): Likewise.
17961 2014-05-30 Richard Sandiford <rdsandiford@googlemail.com>
17963 * ira.c (ira_get_dup_out_num): Check for output operands at
17964 the start of the loop. Handle cases where an included alternative
17965 follows an excluded one.
17967 2014-05-29 Mike Stump <mikestump@comcast.net>
17970 * collect2.c (maybe_run_lto_and_relink): Be sure to always run
17971 post ld passes when lto is used.
17973 2014-05-29 Vladimir Makarov <vmakarov@redhat.com>
17975 PR rtl-optimization/61325
17976 * lra-constraints.c (process_address): Rename to process_address_1.
17977 (process_address): New function.
17979 2014-05-29 Alan Lawrence <alan.lawrence@arm.com>
17981 * config/aarch64/aarch64-builtins.c (aarch64_types_binopv_qualifiers,
17982 TYPES_BINOPV): New static data.
17983 * config/aarch64/aarch64-simd-builtins.def (im_lane_bound):
17985 * config/aarch64/aarch64-simd.md (aarch64_ext,
17986 aarch64_im_lane_boundsi): New patterns.
17987 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_const_1): Match
17989 (aarch64_evpc_ext): New function.
17991 * config/aarch64/iterators.md (UNSPEC_EXT): New enum element.
17993 * config/aarch64/arm_neon.h (vext_f32, vext_f64, vext_p8, vext_p16,
17994 vext_s8, vext_s16, vext_s32, vext_s64, vext_u8, vext_u16, vext_u32,
17995 vext_u64, vextq_f32, vextq_f64, vextq_p8, vextq_p16, vextq_s8,
17996 vextq_s16, vextq_s32, vextq_s64, vextq_u8, vextq_u16, vextq_u32,
17997 vextq_u64): Replace __asm with __builtin_shuffle and im_lane_boundsi.
17999 2014-05-29 Tom de Vries <tom@codesourcery.com>
18001 * rtl.h (BLOCK_SYMBOL_CHECK): Use SYMBOL_REF_FLAGS.
18003 2014-05-29 Richard Earnshaw <rearnsha@arm.com>
18004 Richard Sandiford <rdsandiford@googlemail.com>
18006 * arm/iterators.md (shiftable_ops): New code iterator.
18007 (t2_binop0, arith_shift_insn): New code attributes.
18008 * arm/predicates.md (shift_nomul_operator): New predicate.
18009 * arm/arm.md (insn_enabled): Delete.
18010 (enabled): Remove insn_enabled test.
18011 (*arith_shiftsi): Delete. Replace with ...
18012 (*<arith_shift_insn>_multsi): ... new pattern.
18013 (*<arith_shift_insn>_shiftsi): ... new pattern.
18014 * config/arm/arm.c (arm_print_operand): Handle operand format 'b'.
18016 2014-05-29 Radovan Obradovic <robradovic@mips.com>
18017 Tom de Vries <tom@codesourcery.com>
18019 * config/mips/mips.h (POST_CALL_TMP_REG): Define.
18020 * config/mips/mips.c (mips_emit_call_insn): Add POST_CALL_TMP_REG
18022 (mips_split_call): Use POST_CALL_TMP_REG.
18023 (TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): Redefine to true.
18025 2014-05-29 Tom de Vries <tom@codesourcery.com>
18027 * final.c (collect_fn_hard_reg_usage): Guard variable declaration
18028 with #ifdef STACK_REGS.
18030 2014-05-28 Jan Hubicka <hubicka@ucw.cz>
18032 * varasm.c (get_variable_section): Walk aliases.
18033 (place_block_symbol): Walk aliases.
18035 2014-05-28 Tom de Vries <tom@codesourcery.com>
18038 2014-05-28 Tom de Vries <tom@codesourcery.com>
18040 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18041 * lra.c (initialize_lra_reg_info_element): Add init of
18042 actual_call_used_reg_set field.
18043 (lra): Call lra_create_live_ranges before lra_inheritance for
18045 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18047 * lra-constraints.c (need_for_call_save_p): Use
18048 actual_call_used_reg_set instead of call_used_reg_set for
18050 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18052 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18054 * doc/md.texi: Document that the % constraint character must
18055 be at the beginning of the string.
18056 * genoutput.c (validate_insn_alternatives): Check that '=',
18057 '+' and '%' only appear at the beginning of a constraint.
18058 * ira.c (commutative_constraint_p): Delete.
18059 (ira_get_dup_out_num): Expect the '%' commutativity marker to be
18060 at the start of the string.
18061 * config/alpha/alpha.md (*movmemdi_1, *clrmemdi_1): Remove
18063 * config/arm/neon.md (bicdi3_neon): Likewise.
18064 * config/iq2000/iq2000.md (addsi3_internal, subsi3_internal, sgt_si)
18065 (slt_si, sltu_si): Likewise.
18066 * config/vax/vax.md (sbcdi3): Likewise.
18067 * config/h8300/h8300.md (*cmpstz): Remove duplicate '+'.
18068 * config/arc/arc.md (mulsi_600, mulsidi_600, umulsidi_600)
18069 (mul64): Move '%' to beginning of constraint.
18070 * config/arm/arm.md (*xordi3_insn): Likewise.
18071 * config/nds32/nds32.md (add<mode>3, mulsi3, andsi3, iorsi3)
18072 (xorsi3): Likewise.
18074 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18076 * doc/md.texi: Document the restrictions on the "enabled" attribute.
18078 2014-05-28 Jason Merrill <jason@redhat.com>
18081 * cgraph.h (symtab_node::get_comdat_group_id): New.
18082 * cgraphunit.c (analyze_functions): Call it.
18083 * symtab.c (dump_symtab_node): Likewise.
18084 * tree.c (decl_comdat_group_id): New.
18085 * tree.h: Declare it.
18086 * lto-streamer-out.c (write_symbol): Use it.
18087 * trans-mem.c (ipa_tm_create_version_alias): Likewise.
18089 2014-05-28 Francois-Xavier Coudert <fxcoudert@gcc.gnu.org>
18091 PR bootstrap/PR61146
18092 * wide-int.cc: Do not include longlong.h when compiling with clang.
18094 2014-05-28 Richard Biener <rguenther@suse.de>
18096 * tree-ssa-propagate.c (add_control_edge): Print less vertical space.
18097 * tree-vrp.c (extract_range_from_ssa_name): Also copy VR_UNDEFINED.
18098 (vrp_visit_assignment_or_call): Print less vertical space.
18099 (vrp_visit_stmt): Likewise.
18100 (vrp_visit_phi_node): Likewise. For a PHI argument with
18101 VR_VARYING range consider recording it as copy.
18103 2014-05-28 Richard Biener <rguenther@suse.de>
18106 2014-05-28 Richard Biener <rguenther@suse.de>
18108 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18110 2014-05-28 Bernd Edlinger <bernd.edlinger@hotmail.de>
18112 * expr.c (expand_assignment): Fold the bitpos in the to_rtx if
18113 sufficiently aligned and an offset is used at the same time.
18114 (expand_expr_real_1): Likewise.
18116 2014-05-28 Richard Biener <rguenther@suse.de>
18118 PR middle-end/61045
18119 * fold-const.c (fold_comparison): When folding
18120 X +- C1 CMP Y +- C2 to X CMP Y +- C2 +- C1 also ensure
18121 the sign of the remaining constant operand stays the same.
18123 2014-05-28 Kaushik Phatak <kaushik.phatak@kpit.com>
18125 * config/rl78/rl78.h (TARGET_CPU_CPP_BUILTINS): Define
18126 __RL78_64BIT_DOUBLES__ or __RL78_32BIT_DOUBLES__.
18127 (ASM_SPEC): Pass -m64bit-doubles or -m32bit-doubles on
18129 (DOUBLE_TYPE_SIZE): Use 64 bit if TARGET_64BIT_DOUBLES is true.
18130 * gcc/config/rl78/rl78.opt (m64bit-doubles): New option.
18131 (m32bit-doubles) Likewise.
18132 * gcc/config/rl78/t-rl78: Add 64-bit-double multilib.
18133 * doc/invoke.texi: Document -m32bit-doubles and -m64bit-doubles
18136 2014-05-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
18138 * configure.ac ($gcc_cv_ld_clearcap): New test.
18139 * configure: Regenerate.
18140 * config.in: Regenerate.
18141 * config/sol2.opt (mclear-hwcap): New option.
18142 * config/sol2.h (LINK_CLEARCAP_SPEC): Define.
18143 * config/sol2-clearcap.map: Moved here from
18144 testsuite/gcc.target/i386/clearcap.map.
18145 * config/sol2-clearcapv2.map: Move here from
18146 gcc.target/i386/clearcapv2.map.
18147 * config/t-sol2 (install): Depend on install-clearcap-map.
18148 (install-clearcap-map): New target.
18149 * doc/invoke.texi (Option Summary, Solaris 2 Options): Document
18152 2014-05-28 Richard Biener <rguenther@suse.de>
18154 * hwint.h (*_HALF_WIDE_INT*): Move to ...
18155 * wide-int.cc (HOST_BITS_PER_HALF_WIDE_INT, HOST_HALF_WIDE_INT):
18156 ... here and remove the rest.
18157 * hwint.h (HOST_WIDE_INT_PRINT_*): Define in terms of PRI*64.
18159 2014-05-28 Richard Biener <rguenther@suse.de>
18161 PR tree-optimization/61335
18162 * tree-vrp.c (vrp_visit_phi_node): If the compare of old and
18163 new range fails, drop to varying.
18165 2014-05-28 Olivier Hainque <hainque@adacore.com>
18167 * config/rs6000/vxworks.h (VXCPU_FOR_8548): New. Default to PPC85XX.
18168 (CPP_SPEC): Add entry for -mcpu=8548.
18169 * config/rs6000/vxworksae.h: Reinstate. Override VXCPU_FOR_8548.
18170 * config.gcc (powerpc-wrs-vxworksae, tm_file): Add back vxworksae.h.
18172 2014-05-28 Tom de Vries <tom@codesourcery.com>
18174 * lra-int.h (struct lra_reg): Add field actual_call_used_reg_set.
18175 * lra.c (initialize_lra_reg_info_element): Add init of
18176 actual_call_used_reg_set field.
18177 (lra): Call lra_create_live_ranges before lra_inheritance for
18179 * lra-assigns.c (lra_assign): Allow call_used_regs to cross calls for
18181 * lra-constraints.c (need_for_call_save_p): Use
18182 actual_call_used_reg_set instead of call_used_reg_set for
18184 * lra-lives.c (process_bb_lives): Calculate actual_call_used_reg_set.
18186 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18187 Tom de Vries <tom@codesourcery.com>
18189 * doc/invoke.texi (@item Optimization Options): Add -fuse-caller-save
18191 (@item -fuse-caller-save): New item.
18193 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18194 Tom de Vries <tom@codesourcery.com>
18196 * opts.c (default_options_table): Add OPT_LEVELS_2_PLUS entry with
18197 OPT_fuse_caller_save.
18199 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18200 Tom de Vries <tom@codesourcery.com>
18202 * df-scan.c (df_get_call_refs): Use get_call_reg_set_usage.
18203 * caller-save.c (setup_save_areas, save_call_clobbered_regs): Use
18204 get_call_reg_set_usage.
18205 * resource.c (mark_set_resources, mark_target_live_regs): Use
18206 get_call_reg_set_usage.
18207 * ira-int.h (struct ira_allocno): Add crossed_calls_clobbered_regs
18209 (ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS): Define.
18210 * ira-lives.c (process_bb_node_lives): Use get_call_reg_set_usage.
18211 Calculate ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18212 * ira-build.c (ira_create_allocno): Init
18213 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18214 (create_cap_allocno, propagate_allocno_info)
18215 (propagate_some_info_from_allocno)
18216 (copy_info_to_removed_store_destinations): Handle
18217 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
18218 * ira-costs.c (ira_tune_allocno_costs): Use
18219 ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS to adjust costs.
18221 2014-05-28 Radovan Obradovic <robradovic@mips.com>
18222 Tom de Vries <tom@codesourcery.com>
18224 * cgraph.h (struct cgraph_rtl_info): Add function_used_regs
18225 and function_used_regs_valid fields.
18226 * final.c: Move include of hard-reg-set.h to before rtl.h to declare
18227 find_all_hard_reg_sets.
18228 (collect_fn_hard_reg_usage, get_call_fndecl, get_call_cgraph_rtl_info)
18229 (get_call_reg_set_usage): New function.
18230 (rest_of_handle_final): Use collect_fn_hard_reg_usage.
18231 * regs.h (get_call_reg_set_usage): Declare.
18233 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18236 * config/dbx.h (License): Add Runtime Library Exception.
18237 * config/newlib-stdint.h (License): Same.
18238 * config/rtems.h (License): Same
18239 * config/initfini-array.h (License): Same
18240 * config/v850/v850.h (License): Same.
18241 * config/v850/v850-opts.h (License): Same
18242 * config/v850/rtems.h (License): Same.
18244 2014-05-28 Georg-Johann Lay <avr@gjlay.de>
18247 * doc/extend.texi (Local Labels): Note that label differences are
18248 not supported for AVR.
18250 2014-05-28 Richard Sandiford <rdsandiford@googlemail.com>
18251 Olivier Hainque <hainque@adacore.com>
18253 * rtl.h (set_for_reg_notes): Declare.
18254 * emit-rtl.c (set_for_reg_notes): New function.
18255 (set_unique_reg_note): Use it.
18256 * optabs.c (add_equal_note): Likewise
18258 2014-05-27 Andrew Pinski <apinski@cavium.com>
18260 * config/aarch64/aarch64.md (stack_protect_set_<mode>):
18261 Use <w> for the register in assembly template.
18262 (stack_protect_test): Use the mode of operands[0] for the result.
18263 (stack_protect_test_<mode>): Use <w> for the register
18264 in assembly template.
18266 2014-05-27 DJ Delorie <dj@redhat.com>
18268 * config/rx/rx.c (add_vector_labels): New.
18269 (rx_output_function_prologue): Call it.
18270 (rx_handle_func_attribute): Don't require empty arguments.
18271 (rx_handle_vector_attribute): New.
18272 (rx_attribute_table): Add "vector" attribute.
18273 * doc/extend.texi (interrupt, vector): Document new/changed
18274 RX-specific attributes.
18276 * config/rx/rx.c (rx_adjust_insn_length): Skip for non-insns.
18278 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18280 * double-int.c (div_and_round_double) <ROUND_DIV_EXPR>: Use the proper
18281 predicate to detect a negative quotient.
18283 2014-05-27 Eric Botcazou <ebotcazou@adacore.com>
18285 * fold-const.c (fold_comparison): Clean up and extend X +- C1 CMP C2
18286 to X CMP C2 -+ C1 transformation to EQ_EXPR/NE_EXPR.
18287 Add X - Y CMP 0 to X CMP Y transformation.
18288 (fold_binary_loc) <EQ_EXPR/NE_EXPR>: Remove same transformations.
18290 2014-05-27 Segher Boessenkool <segher@kernel.crashing.org>
18292 * stmt.c (dump_case_nodes): Don't convert values to HOST_WIDE_INT
18295 2014-05-27 Steve Ellcey <sellcey@mips.com>
18297 * config/mips/mips.c: Add include of cgraph.h.
18299 2014-05-27 Richard Biener <rguenther@suse.de>
18301 * system.h (__STDC_FORMAT_MACROS): Define as very first thing.
18303 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18306 * config/arm/arm.h (License): Add note to COPYING.RUNTIME.
18307 * config/arm/arm-cores.def (License): Same.
18308 * config/arm/arm-opts.h (License): Same.
18309 * config/arm/aout.h (License): Same.
18310 * config/arm/bpabi.h (License): Same.
18311 * config/arm/elf.h (License): Same.
18312 * config/arm/linux-elf.h (License): Same.
18313 * config/arm/linux-gas.h (License): Same.
18314 * config/arm/netbsd-elf.h (License): Same.
18315 * config/arm/uclinux-eabi.h (License): Same.
18316 * config/arm/uclinux-elf.h (License): Same.
18317 * config/arm/vxworks.h (License): Same.
18319 2014-05-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
18321 * config/arm/neon.md (neon_bswap<mode>): New pattern.
18322 * config/arm/arm.c (neon_itype): Add NEON_BSWAP.
18323 (arm_init_neon_builtins): Handle NEON_BSWAP.
18324 Define required type nodes.
18325 (arm_expand_neon_builtin): Handle NEON_BSWAP.
18326 (arm_builtin_vectorized_function): Handle BUILTIN_BSWAP builtins.
18327 * config/arm/arm_neon_builtins.def (bswap): Define builtins.
18328 * config/arm/iterators.md (VDQHSD): New mode iterator.
18330 2014-05-27 Richard Biener <rguenther@suse.de>
18332 * tree-vrp.c (vrp_evaluate_conditional_warnv_with_ops_using_ranges):
18333 Try using literal operands when comparing value-ranges failed.
18335 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18337 * ira.c (commutative_operand): Adjust for change to recog_data.
18338 [Missing from previous commit.]
18340 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18342 * system.h (TEST_BIT): New macro.
18343 * recog.h (alternative_mask): New type.
18344 (ALL_ALTERNATIVES, ALTERNATIVE_BIT): New macros.
18345 (recog_data_d): Replace alternative_enabled_p array with
18346 enabled_alternatives.
18347 (target_recog): New structure.
18348 (default_target_recog, this_target_recog): Declare.
18349 (get_enabled_alternatives, recog_init): Likewise.
18350 * recog.c (default_target_recog, this_target_recog): New variables.
18351 (get_enabled_alternatives): New function.
18352 (extract_insn): Use it.
18353 (recog_init): New function.
18354 (preprocess_constraints, constrain_operands): Adjust for change to
18356 * postreload.c (reload_cse_simplify_operands): Likewise.
18357 * reload.c (find_reloads): Likewise.
18358 * ira-costs.c (record_reg_classes): Likewise.
18359 * ira-lives.c (single_reg_class): Likewise. Fix bug in which
18360 all alternatives after a disabled one would be skipped.
18361 (ira_implicitly_set_insn_hard_regs): Likewise.
18362 * ira.c (ira_setup_alts): Adjust for change to recog_data.
18363 * lra-int.h (lra_insn_recog_data): Replace alternative_enabled_p
18364 with enabled_alternatives.
18365 * lra.c (free_insn_recog_data): Update accordingly.
18366 (lra_update_insn_recog_data): Likewise.
18367 (lra_set_insn_recog_data): Likewise. Use get_enabled_alternatives.
18368 * lra-constraints.c (process_alt_operands): Likewise. Handle
18369 only_alternative as part of the enabled mask.
18370 * target-globals.h (this_target_recog): Declare.
18371 (target_globals): Add a recog field.
18372 (restore_target_globals): Restore this_target_recog.
18373 * target-globals.c: Include recog.h.
18374 (default_target_globals): Initialize recog field.
18375 (save_target_globals): Likewise.
18376 * reginfo.c (reinit_regs): Call recog_init.
18377 * toplev.c (backend_init_target): Likewise.
18379 2014-05-27 Richard Sandiford <rdsandiford@googlemail.com>
18381 * gencodes.c (main): Make LAST_INSN_CODE higher than any insn code,
18382 rather than any named insn's code.
18384 2014-05-27 Georg-Johann Lay <avr@gjlay.de>
18387 * config/arm/arm-opts.h (License): Add GCC Runtime Library Exception.
18388 * config/arm/arm-cores.def (License): Same.
18390 2014-05-26 Jan Hubicka <hubicka@ucw.cz>
18392 * tree.h (decl_comdat_group): Declare.
18393 * cgraph.h (symtab_in_same_comdat_p): Move offline to ...
18394 * tree.c (decl_comdat_group): Here.
18396 2014-05-26 Richard Sandiford <r.sandiford@uk.ibm.com>
18398 PR rtl-optimization/61222
18399 * combine.c (simplify_shift_const_1): When moving a PLUS outside
18400 the shift, truncate the PLUS operand to the result mode.
18402 2014-05-26 Uros Bizjak <ubizjak@gmail.com>
18405 * config/i386/i386.c (ix86_rtx_costs)
18406 <case CONST_INT, case CONST, case LABEL_REF, case SYMBOL_REF>:
18409 2014-05-26 Martin Jambor <mjambor@suse.cz>
18411 * ira.c (split_live_ranges_for_shrink_wrap): Remove bailout on
18414 2014-05-26 Richard Biener <rguenther@suse.de>
18416 * wide-int.h (wi::int_traits <long>, wi::int_traits <unsigned long>,
18417 wi::int_traits <long long>, wi::int_traits <unsigned long long>):
18418 Provide specializations.
18419 (wi::int_traits <HOST_WIDE_INT>,
18420 wi::int_traits <unsigned HOST_WIDE_INT>): Remove specializations.
18422 2014-05-26 Alan Modra <amodra@gmail.com>
18425 * config/rs6000/rs6000.c (rs6000_emit_set_const): Remove unneeded
18426 params and return a bool. Remove dead code. Update comment.
18427 Assert we have a const_int source. Remove bogus code from
18428 32-bit HWI days. Move !TARGET_POWERPC64 handling, and correct
18429 handling of constants > 2G and reg_equal note, from..
18430 (rs6000_emit_set_long_const): ..here. Remove unneeded param and
18431 return value. Update comment. If we can, use a new pseudo
18432 for intermediate calculations.
18433 * config/rs6000/rs6000-protos.h (rs6000_emit_set_const): Update
18435 * config/rs6000/rs6000.md (movsi_internal1_single+1): Update
18436 call to rs6000_emit_set_const in splitter.
18437 (movdi_internal64+2, +3): Likewise.
18439 2014-05-26 Richard Biener <rguenther@suse.de>
18441 * system.h: Define __STDC_FORMAT_MACROS before
18442 including inttypes.h.
18443 * hwint.h (HOST_WIDEST_INT, HOST_BITS_PER_WIDEST_INT,
18444 HOST_WIDEST_INT_PRINT, HOST_WIDEST_INT_PRINT_DEC,
18445 HOST_WIDEST_INT_PRINT_DEC_C, HOST_WIDEST_INT_PRINT_UNSIGNED,
18446 HOST_WIDEST_INT_PRINT_HEX, HOST_WIDEST_INT_PRINT_DOUBLE_HEX,
18447 HOST_WIDEST_INT_C): Remove.
18448 (PRId64, PRIi64, PRIo64, PRIu64, PRIx64, PRIX64): Define
18449 if C99 inttypes.h is not available.
18450 * coretypes.h (gcov_type, gcov_type_unsigned): Use [u]int64_t.
18451 * gcov-io.h (gcov_type, gcov_type_unsigned): Likewise.
18452 * gcov-io.c (gcov_histo_index): Drop non-64bit hwi case.
18453 * cfgloop.h (struct niter_desc): Use uint64_t for niter field.
18454 * bitmap.c (struct bitmap_descriptor_d): Use uint64_t for counters.
18455 (struct output_info): Likewise.
18456 (print_statistics): Adjust.
18457 (dump_bitmap_statistics): Likewise.
18458 * bt-load.c (migrate_btr_defs): Print with PRId64.
18459 * cfg.c (dump_edge_info, dump_bb_info): Likewise.
18460 (MAX_SAFE_MULTIPLIER): Adjust.
18461 * cfghooks.c (dump_bb_for_graph): Print with PRId64.
18462 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee,
18463 dump_cgraph_node): Likewise.
18464 * final.c (dump_basic_block_info): Likewise.
18465 * gcov-dump.c (tag_counters, tag_summary, dump_working_sets): Likewise.
18466 * gcov.c (format_gcov): Likewise.
18467 * ipa-cp.c (good_cloning_opportunity_p): Likewise. Use int64_t
18469 (get_clone_agg_value): Use HOST_WIDE_INT for offset.
18470 * ipa-inline.c (compute_max_insns): Use int64_t for calcuation.
18471 (inline_small_functions, dump_overall_stats, dump_inline_stats):
18472 Use PRId64 for dumping.
18473 * ipa-profile.c (dump_histogram, ipa_profile): Likewise.
18474 * ira-color.c (struct allocno_hard_regs): Use int64_t for cost.
18475 (add_allocno_hard_regs): Adjust.
18476 * loop-doloop.c (doloop_modify): Print using PRId64.
18477 * loop-iv.c (inverse): Compute in uint64_t.
18478 (determine_max_iter, iv_number_of_iterations): Likewise.
18479 * loop-unroll.c (decide_peel_completely, decide_peel_simple):
18480 Print using PRId64.
18481 * lto-streamer-out.c (write_symbol): Use uint64_t.
18482 * mcf.c (CAP_INFINITY): Use int64_t maximum.
18483 (dump_fixup_edge, create_fixup_graph, cancel_negative_cycle,
18484 find_max_flow, adjust_cfg_counts): Use int64_t and dump with PRId64.
18485 * modulo-sched.c (const_iteration_count): Use int64_t.
18486 (sms_schedule): Dump using PRId64.
18487 * predict.c (dump_prediction): Likewise.
18488 * pretty-print.h (pp_widest_integer): Remove.
18489 * profile.c (get_working_sets, is_edge_inconsistent,
18490 is_inconsistent, read_profile_edge_counts): Dump using PRId64.
18491 * tree-pretty-print.c (pp_double_int): Remove case handling
18492 HOST_BITS_PER_DOUBLE_INT == HOST_BITS_PER_WIDEST_INT.
18493 * tree-ssa-math-opts.c (struct symbolic_number): Use uint64_t
18495 (pass_optimize_bswap::execute): Remove restriction on hosts.
18496 * tree-streamer-in.c (streamer_alloc_tree): Use HOST_WIDE_INT.
18497 * tree-streamer-out.c (streamer_write_tree_header): Likewise.
18498 * tree.c (widest_int_cst_value): Remove.
18499 * tree.h (widest_int_cst_value): Likewise.
18500 * value-prof.c (dump_histogram_value): Print using PRId64.
18501 * gengtype.c (main): Also inject int64_t.
18502 * ggc-page.c (struct max_alignment): Use int64_t.
18503 * alloc-pool.c (struct allocation_object_def): Likewise.
18504 * ira-conflicts.c (build_conflict_bit_table): Use uint64_t
18506 * doc/tm.texi.in: Remove reference to HOST_WIDEST_INT.
18507 * doc/tm.texi: Regenerated.
18508 * gengtype-lex.l (IWORD): Handle [u]int64_t.
18509 * config/sh/sh.c (expand_cbranchdi4): Use gcov_type.
18510 * config/mmix/mmix-protos.h (mmix_intval, mmix_shiftable_wyde_value,
18511 mmix_output_register_setting): Use [u]int64_t in prototypes.
18512 * config/mmix/mmix.c (mmix_print_operand, mmix_output_register_setting,
18513 mmix_shiftable_wyde_value, mmix_output_shiftvalue_op_from_str,
18514 mmix_output_octa, mmix_output_shifted_value): Adjust.
18515 (mmix_intval): Adjust. Remove unreachable case.
18516 * config/mmix/mmix.md (*nonlocal_goto_receiver_expanded): Use int64_t.
18518 2014-05-26 Richard Biener <rguenther@suse.de>
18520 * configure.ac: Drop __int64 type check. Insist that we
18521 found uint64_t and int64_t.
18522 * hwint.h (HOST_BITS_PER___INT64): Remove.
18523 (HOST_BITS_PER_WIDE_INT): Define to 64 and remove __int64 case.
18524 (HOST_WIDE_INT_PRINT_*): Remove 32bit case.
18525 (HOST_WIDEST_INT*): Define to HOST_WIDE_INT*.
18526 (HOST_WIDEST_FAST_INT): Remove __int64 case.
18527 * vmsdbg.h (struct _DST_SRC_COMMAND): Use int64_t
18528 for dst_q_src_df_rms_cdt.
18529 * configure: Regenerate.
18530 * config.in: Likewise.
18532 2014-05-26 Michael Tautschnig <mt@debian.org>
18535 * doc/extend.texi (X86 Built-in Functions): Fix parameter lists of
18536 __builtin_ia32_vfrczs[sd] and __builtin_ia32_mpsadbw256.
18538 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18540 PR rtl-optimization/61278
18541 * shrink-wrap.c (move_insn_for_shrink_wrap): Check df_live.
18543 2014-05-26 Zhenqiang Chen <zhenqiang.chen@linaro.org>
18545 PR rtl-optimization/61220
18546 Part of PR rtl-optimization/61225
18547 * shrink-wrap.c (move_insn_for_shrink_wrap): Skip SP and FP adjustment
18548 insn; skip split_edge for a block with only one successor.
18550 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18552 * symtab.c (symtab_nonoverwritable_alias): Copy READONLY flag
18555 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18557 * ipa-visibility.c (can_replace_by_local_alias_in_vtable): New function.
18558 (update_vtable_references): New function.
18559 (function_and_variable_visibility): Rewrite also vtable initializers.
18560 * varpool.c (cgraph_variable_initializer_availability): Remove assert.
18562 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18564 * ggc.h (ggc_grow): New function.
18565 * ggc-none.c (ggc_grow): New function.
18566 * ggc-page.c (ggc_grow): Likewise.
18568 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18570 * ipa.c (cgraph_non_local_node_p_1, cgraph_local_node_p,
18571 address_taken_from_non_vtable_p, comdat_can_be_unshared_p_1,
18572 comdat_can_be_unshared_p, cgraph_externally_visible_p,
18573 varpool_externally_visible_p, can_replace_by_local_alias,
18574 update_visibility_by_resolution_info, function_and_variable_visibility,
18575 pass_data_ipa_function_and_variable_visibility,
18576 make_pass_ipa_function_and_variable_visibility,
18577 whole_program_function_and_variable_visibility,
18578 pass_data_ipa_whole_program_visibility,
18579 make_pass_ipa_whole_program_visibility): Move to ipa-visibility.c
18580 * cgraph.h (cgraph_local_node_p): Declare.
18581 * ipa-visibility.c: New file.
18582 * Makefile.in (OBJS): Add ipa-visiblity.o
18584 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18586 * gimple-fold.c (can_refer_decl_in_current_unit_p): Be sure
18587 that var decl is available.
18589 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18591 * tree-core.h (tree_decl_with_vis): Replace comdat_group by
18592 symtab_node pointer.
18593 * tree.c (copy_node_stat): Be sure to not copy symtab_node pointer.
18594 (find_decls_types_r): Do not walk COMDAT_GROUP.
18595 * tree.h (DECL_COMDAT_GROUP): Revamp to use decl_comdat_group.
18596 * varasm.c (make_decl_one_only): Use set_comdat_group;
18597 create node if needed.
18598 * ipa-inline-transform.c (save_inline_function_body): Update
18599 way we decl->symtab mapping.
18600 * symtab.c (symtab_hash, hash_node, eq_node
18601 symtab_insert_node_to_hashtable): Remove.
18602 (symtab_register_node): Update.
18603 (symtab_unregister_node): Update.
18604 (symtab_get_node): Reimplement as inline function.
18605 (symtab_add_to_same_comdat_group): Update.
18606 (symtab_dissolve_same_comdat_group_list): Update.
18607 (dump_symtab_base): Update.
18608 (verify_symtab_base): Update.
18609 (symtab_make_decl_local): Update.
18610 (fixup_same_cpp_alias_visibility): Update.
18611 (symtab_nonoverwritable_alias): Update.
18612 * cgraphclones.c (set_new_clone_decl_and_node_flags): Update.
18613 * ipa.c (update_visibility_by_resolution_info): UPdate.
18614 * bb-reorder.c: Include cgraph.h
18615 * lto-streamer-out.c (DFS_write_tree_body, hash_tree): Do not deal
18616 with comdat groups.
18617 * ipa-comdats.c (set_comdat_group, ipa_comdats): Update.
18618 * cgraph.c (cgraph_get_create_node): Update.
18619 * cgraph.h (struct symtab_node): Add get_comdat_group, set_comdat_group
18621 (symtab_get_node): Make inline.
18622 (symtab_insert_node_to_hashtable): Remove.
18623 (symtab_can_be_discarded): Update.
18624 (decl_comdat_group): New function.
18625 * tree-streamer-in.c (lto_input_ts_decl_with_vis_tree_pointers):
18627 * lto-cgraph.c (lto_output_node, lto_output_varpool_node): Stream out
18629 (read_comdat_group): New function.
18630 (input_node, input_varpool_node): Use it.
18631 * trans-mem.c (ipa_tm_create_version_alias): Update code creating
18633 * mips.c (mips_start_unique_function): Likewise.
18634 (ix86_code_end): Likewise.
18635 (rs6000_code_end): Likweise.
18636 * tree-streamer-out.c (DECL_COMDAT_GROUP): Do not stream comdat group.
18638 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18640 * gengtype-state.c (fatal_reading_state): Bring offline.
18641 * optabs.c (widening_optab_handler): Bring offline.
18642 * optabs.h (widening_optab_handler): Likewise.
18643 * final.c (get_attr_length_1): Likewise.
18645 2014-05-23 Jan Hubicka <hubicka@ucw.cz>
18647 * sched-int.h (sd_iterator_cond): Manually tail recurse.
18649 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18651 * config/rs6000/440.md (ppc440-integer): Include shift without dot.
18652 (ppc440-compare): Include shift with dot.
18653 * config/rs6000/e300c2c3.md (ppce300c3_iu): Include shift without dot.
18654 * config/rs6000/e5500.md (e5500_sfx2): Include constant shift
18656 * config/rs6000/e6500.md (e6500_sfx): Exclude constant shift
18658 (e6500_sfx2): Include it.
18659 * config/rs6000/rs6000.md ( *zero_extend<mode>di2_internal1,
18660 *zero_extend<mode>di2_internal2, *zero_extend<mode>di2_internal3,
18661 *zero_extendsidi2_lfiwzx, andsi3_mc, andsi3_nomc,
18662 andsi3_internal0_nomc, extzvsi_internal, extzvdi_internal,
18663 *extzvdi_internal1, *extzvdi_internal2, rotlsi3, *rotlsi3_64,
18664 *rotlsi3_internal4, *rotlsi3_internal7le, *rotlsi3_internal7be,
18665 *rotlsi3_internal10le, *rotlsi3_internal10be, rlwinm,
18666 *lshiftrt_internal1le, *lshiftrt_internal1be,
18667 *lshiftrt_internal4le, *lshiftrt_internal4be, rotldi3,
18668 *rotldi3_internal4, *rotldi3_internal7le, *rotldi3_internal7be,
18669 *rotldi3_internal10le, *rotldi3_internal10be,
18670 *rotldi3_internal13le, *rotldi3_internal13be, *ashldi3_internal4,
18671 ashldi3_internal5, *ashldi3_internal6, *ashldi3_internal7,
18672 ashldi3_internal8, *ashldi3_internal9, anddi3_mc, anddi3_nomc,
18673 *anddi3_internal2_mc, *anddi3_internal3_mc, and 4 anonymous
18674 define_insns): Use type "shift" in the appropriate alternatives.
18676 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18678 * config/rs6000/rs6000.md (type): Add "logical". Delete
18680 (dot): Adjust comment.
18681 (andsi3_mc, *andsi3_internal2_mc, *andsi3_internal3_mc,
18682 *andsi3_internal4, *andsi3_internal5_mc, *boolsi3_internal2,
18683 *boolsi3_internal3, *boolccsi3_internal2, *boolccsi3_internal3,
18684 anddi3_mc, *anddi3_internal2_mc, *anddi3_internal3_mc,
18685 *booldi3_internal2, *booldi3_internal3, *boolcdi3_internal2,
18686 *boolcdi3_internal3, *boolccdi3_internal2, *boolccdi3_internal3,
18687 *mov<mode>_internal2, and 10 anonymous define_insns): Use "logical".
18688 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18690 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18691 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18692 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18693 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18694 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18695 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18696 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18697 * config/rs6000/8540.md (ppc8540_su): Adjust.
18698 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18699 cell-cmp-microcoded): Adjust.
18700 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18701 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18702 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18703 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18704 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18705 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18706 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18707 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18708 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18710 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18711 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare):
18712 Adjust. Adjust comment.
18713 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18714 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18716 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18718 * config/rs6000/rs6000.md (type): Add "add".
18719 (*add<mode>3_internal1, addsi3_high, *add<mode>3_internal2,
18720 *add<mode>3_internal3, *neg<mode>2_internal, and 5 anonymous
18721 define_insns): Use it.
18722 * config/rs6000/rs6000.c (rs6000_adjust_cost): Adjust.
18724 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18725 * config/rs6000/440.md (ppc440-integer, ppc440-compare): Adjust.
18726 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18727 * config/rs6000/601.md (ppc601-integer): Adjust.
18728 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18729 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18730 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18731 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18732 * config/rs6000/8540.md (ppc8540_su): Adjust.
18733 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18734 cell-cmp-microcoded): Adjust.
18735 * config/rs6000/e300c2c3.md (ppce300c3_cmp, ppce300c3_iu): Adjust.
18736 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18737 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2): Adjust.
18738 * config/rs6000/e5500.md (e5500_sfx, e5500_sfx2): Adjust.
18739 * config/rs6000/e6500.md (e6500_sfx, e6500_sfx2): Adjust.
18740 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18741 * config/rs6000/power4.md (power4-integer, power4-cmp): Adjust.
18742 * config/rs6000/power5.md (power5-integer, power5-cmp): Adjust.
18743 * config/rs6000/power6.md (power6-integer, power6-fast-compare):
18745 * config/rs6000/power7.md (power7-integer, power7-cmp): Adjust.
18746 * config/rs6000/power8.md (power8-1cyc, power8-fast-compare): Adjust.
18747 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18748 * config/rs6000/titan.md (titan_fxu_adder, titan_fxu_alu): Adjust.
18750 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18752 * config/rs6000/rs6000.md (type): Delete "var_shift_rotate",
18753 "delayed_compare", "var_delayed_compare".
18754 (var_shift): New attribute.
18755 (cell_micro): Adjust.
18756 (*andsi3_internal2_mc, *andsi3_internal3_mc, *andsi3_internal4,
18757 *andsi3_internal5_mc, *extzvsi_internal1, *extzvsi_internal2,
18758 rotlsi3, *rotlsi3_64, *rotlsi3_internal2, *rotlsi3_internal3,
18759 *rotlsi3_internal4, *rotlsi3_internal5, *rotlsi3_internal6,
18760 *rotlsi3_internal8le, *rotlsi3_internal8be, *rotlsi3_internal9le,
18761 *rotlsi3_internal9be, *rotlsi3_internal10le, *rotlsi3_internal10be,
18762 *rotlsi3_internal11le, *rotlsi3_internal11be, *rotlsi3_internal12le,
18763 *rotlsi3_internal12be, ashlsi3, *ashlsi3_64, lshrsi3, *lshrsi3_64,
18764 *lshiftrt_internal2le, *lshiftrt_internal2be, *lshiftrt_internal3le,
18765 *lshiftrt_internal3be, *lshiftrt_internal5le, *lshiftrt_internal5be,
18766 *lshiftrt_internal5le, *lshiftrt_internal5be, ashrsi3, *ashrsi3_64,
18767 rotldi3, *rotldi3_internal2, *rotldi3_internal3, *rotldi3_internal4,
18768 *rotldi3_internal5, *rotldi3_internal6, *rotldi3_internal7le,
18769 *rotldi3_internal7be, *rotldi3_internal8le, *rotldi3_internal8be,
18770 *rotldi3_internal9le, *rotldi3_internal9be, *rotldi3_internal10le,
18771 *rotldi3_internal10be, *rotldi3_internal11le, *rotldi3_internal11be,
18772 *rotldi3_internal12le, *rotldi3_internal12be, *rotldi3_internal13le,
18773 *rotldi3_internal13be, *rotldi3_internal14le, *rotldi3_internal14be,
18774 *rotldi3_internal15le, *rotldi3_internal15be, *ashldi3_internal1,
18775 *ashldi3_internal2, *ashldi3_internal3, *lshrdi3_internal1,
18776 *lshrdi3_internal2, *lshrdi3_internal3, *ashrdi3_internal1,
18777 *ashrdi3_internal2, *ashrdi3_internal3, *anddi3_internal2_mc,
18778 *anddi3_internal3_mc, as well as 11 anonymous define_insns): Adjust.
18779 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18780 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18782 * config/rs6000/40x.md (ppc403-integer, ppc403-compare): Adjust.
18783 * config/rs6000/440.md (ppc440-integer): Adjust.
18784 * config/rs6000/476.md (ppc476-simple-integer, ppc476-compare): Adjust.
18785 * config/rs6000/601.md (ppc601-integer, ppc601-compare): Adjust.
18786 * config/rs6000/603.md (ppc603-integer, ppc603-compare): Adjust.
18787 * config/rs6000/6xx.md (ppc604-integer, ppc604-compare): Adjust.
18788 * config/rs6000/7450.md (ppc7450-integer, ppc7450-compare): Adjust.
18789 * config/rs6000/7xx.md (ppc750-integer, ppc750-compare): Adjust.
18790 * config/rs6000/8540.md (ppc8540_su): Adjust.
18791 * config/rs6000/cell.md (cell-integer, cell-fast-cmp,
18792 cell-cmp-microcoded): Adjust.
18793 * config/rs6000/e300c2c3.md (ppce300c3_cmp): Adjust.
18794 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18795 * config/rs6000/e500mc64.md (e500mc64_su, e500mc64_su2,
18796 e500mc64_delayed): Adjust.
18797 * config/rs6000/e5500.md (e5500_sfx, e5500_delayed): Adjust.
18798 * config/rs6000/e6500.md (e6500_sfx, e6500_delayed): Adjust.
18799 * config/rs6000/mpc.md (mpccore-integer, mpccore-compare): Adjust.
18800 * config/rs6000/power4.md (power4-integer, power4-compare): Adjust.
18801 * config/rs6000/power5.md (power5-integer, power5-compare): Adjust.
18802 * config/rs6000/power6.md (power6-shift, power6-var-rotate,
18803 power6-delayed-compare, power6-var-delayed-compare): Adjust.
18804 * config/rs6000/power7.md (power7-integer, power7-compare): Adjust.
18805 * config/rs6000/power8.md (power8-1cyc, power8-compare): Adjust.
18807 * config/rs6000/rs64.md (rs64a-integer, rs64a-compare): Adjust.
18808 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18810 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18812 * config/rs6000/rs6000.md (type): Delete "idiv", "ldiv". Add "div".
18813 (bits): New mode_attr.
18814 (idiv_ldiv): Delete mode_attr.
18815 (udiv<mode>3, *div<mode>3, div<div_extend>_<mode>): Adjust.
18816 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18817 rs6000_adjust_priority, is_nonpipeline_insn,
18818 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18820 * config/rs6000/40x.md (ppc403-idiv): Adjust.
18821 * config/rs6000/440.md (ppc440-idiv): Adjust.
18822 * config/rs6000/476.md (ppc476-idiv): Adjust.
18823 * config/rs6000/601.md (ppc601-idiv): Adjust.
18824 * config/rs6000/603.md (ppc603-idiv): Adjust.
18825 * config/rs6000/6xx.md (ppc604-idiv, ppc620-idiv, ppc630-idiv,
18826 ppc620-ldiv): Adjust.
18827 * config/rs6000/7450.md (ppc7450-idiv): Adjust.
18828 * config/rs6000/7xx.md (ppc750-idiv): Adjust.
18829 * config/rs6000/8540.md (ppc8540_divide): Adjust.
18830 * config/rs6000/a2.md (ppca2-idiv, ppca2-ldiv): Adjust.
18831 * config/rs6000/cell.md (cell-idiv, cell-ldiv): Adjust.
18832 * config/rs6000/e300c2c3.md (ppce300c3_divide): Adjust.
18833 * config/rs6000/e500mc.md (e500mc_divide): Adjust.
18834 * config/rs6000/e500mc64.md (e500mc64_divide): Adjust.
18835 * config/rs6000/e5500.md (e5500_divide, e5500_divide_d): Adjust.
18836 * config/rs6000/e6500.md (e6500_divide, e6500_divide_d): Adjust.
18837 * config/rs6000/mpc.md (mpccore-idiv): Adjust.
18838 * config/rs6000/power4.md (power4-idiv, power4-ldiv): Adjust.
18839 * config/rs6000/power5.md (power5-idiv, power5-ldiv): Adjust.
18840 * config/rs6000/power6.md (power6-idiv, power6-ldiv): Adjust.
18841 * config/rs6000/power7.md (power7-idiv, power7-ldiv): Adjust.
18842 * config/rs6000/power8.md (power8-idiv, power8-ldiv): Adjust.
18843 * config/rs6000/rs64.md (rs64a-idiv, rs64a-ldiv): Adjust.
18844 * config/rs6000/titan.md (titan_fxu_div): Adjust.
18846 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18848 * config/rs6000/rs6000.md (type): Delete "insert_word",
18849 "insert_dword". Add "insert".
18850 (size): Update comment.
18851 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18852 insn_must_be_first_in_group): Adjust.
18853 (insvsi_internal, *insvsi_internal1, *insvsi_internal2,
18854 *insvsi_internal3, *insvsi_internal4, *insvsi_internal5,
18855 *insvsi_internal6, insvdi_internal): Adjust.
18857 * config/rs6000/40x.md (ppc403-integer): Adjust.
18858 * config/rs6000/440.md (ppc440-integer): Adjust.
18859 * config/rs6000/476.md (ppc476-simple-integer): Adjust.
18860 * config/rs6000/601.md (ppc601-integer): Adjust.
18861 * config/rs6000/603.md (ppc603-integer): Adjust.
18862 * config/rs6000/6xx.md (ppc604-integer): Adjust.
18863 * config/rs6000/7450.md (ppc7450-integer): Adjust.
18864 * config/rs6000/7xx.md (ppc750-integer): Adjust.
18865 * config/rs6000/8540.md (ppc8540_su): Adjust.
18866 * config/rs6000/cell.md (cell-integer, cell-insert): Adjust.
18867 * config/rs6000/e300c2c3.md (ppce300c3_iu): Adjust.
18868 * config/rs6000/e500mc.md (e500mc_su): Adjust.
18869 * config/rs6000/e500mc64.md (e500mc64_su): Adjust.
18870 * config/rs6000/e5500.md (e5500_sfx): Adjust.
18871 * config/rs6000/e6500.md (e6500_sfx): Adjust.
18872 * config/rs6000/mpc.md (mpccore-integer): Adjust.
18873 * config/rs6000/power4.md (power4-integer, power4-insert): Adjust.
18874 * config/rs6000/power5.md (power5-integer, power5-insert): Adjust.
18875 * config/rs6000/power6.md (power6-insert, power6-insert-dword): Adjust.
18876 * config/rs6000/power7.md (power7-integer): Adjust.
18877 * config/rs6000/power8.md (power8-1cyc): Adjust.
18878 * config/rs6000/rs64.md (rs64a-integer): Adjust.
18879 * config/rs6000/titan.md (titan_fxu_shift_and_rotate): Adjust.
18881 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18883 * config/rs6000/rs6000.md (type): Add "mul". Delete "imul",
18884 "imul2", "imul3", "lmul", "imul_compare", "lmul_compare".
18885 (size): New attribute.
18886 (dot): New attribute.
18887 (cell_micro): Adjust.
18888 (mulsi3, *mulsi3_internal1, *mulsi3_internal2, mulsidi3,
18889 umulsidi3, smulsi3_highpart, umulsi3_highpart, muldi3,
18890 *muldi3_internal1, *muldi3_internal2, smuldi3_highpart,
18891 umuldi3_highpart): Adjust.
18892 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_cracked_insn,
18893 rs6000_adjust_priority, is_nonpipeline_insn,
18894 insn_must_be_first_in_group, insn_must_be_last_in_group): Adjust.
18896 * config/rs6000/40x.md (ppc403-imul, ppc405-imul, ppc405-imul2,
18897 ppc405-imul3): Adjust.
18898 * config/rs6000/440.md (ppc440-imul, ppc440-imul2): Adjust.
18899 * config/rs6000/476.md (ppc476-imul): Adjust.
18900 * config/rs6000/601.md (ppc601-imul): Adjust.
18901 * config/rs6000/603.md (ppc603-imul, ppc603-imul2): Adjust.
18902 * config/rs6000/6xx.md (ppc604-imul, ppc604e-imul, ppc620-imul,
18903 ppc620-imul2, ppc620-imul3, ppc620-lmul): Adjust.
18904 * config/rs6000/7450.md (ppc7450-imul, ppc7450-imul2): Adjust.
18905 * config/rs6000/7xx.md (ppc750-imul, ppc750-imul2, ppc750-imul3):
18907 * config/rs6000/8540.md (ppc8540_multiply): Adjust.
18908 * config/rs6000/a2.md (ppca2-imul, ppca2-lmul): Adjust.
18909 * config/rs6000/cell.md (cell-lmul, cell-lmul-cmp, cell-imul23,
18910 cell-imul): Adjust.
18911 * config/rs6000/e300c2c3.md (ppce300c3_multiply): Adjust.
18912 * config/rs6000/e500mc.md (e500mc_multiply): Adjust.
18913 * config/rs6000/e500mc64.md (e500mc64_multiply): Adjust.
18914 * config/rs6000/e5500.md (e5500_multiply, e5500_multiply_i): Adjust.
18915 * config/rs6000/e6500.md (e6500_multiply, e6500_multiply_i): Adjust.
18916 * config/rs6000/mpc.md (mpccore-imul): Adjust.
18917 * config/rs6000/power4.md (power4-lmul-cmp, power4-imul-cmp,
18918 power4-lmul, power4-imul, power4-imul3): Adjust.
18919 * config/rs6000/power5.md (power5-lmul-cmp, power5-imul-cmp,
18920 power5-lmul, power5-imul, power5-imul3): Adjust.
18921 * config/rs6000/power6.md (power6-lmul-cmp, power6-imul-cmp,
18922 power6-lmul, power6-imul, power6-imul3): Adjust.
18923 * config/rs6000/power7.md (power7-mul, power7-mul-compare): Adjust.
18924 * config/rs6000/power8.md (power8-mul, power8-mul-compare): Adjust.
18926 * config/rs6000/rs64.md (rs64a-imul, rs64a-imul2, rs64a-imul3,
18927 rs64a-lmul): Adjust.
18928 * config/rs6000/titan.md (titan_imul): Adjust.
18930 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18932 * config/rs6000/rs6000.md (type): Add new value "halfmul".
18933 (*macchwc, *macchw, *macchwuc, *macchwu, *machhwc, *machhw,
18934 *machhwuc, *machhwu, *maclhwc, *maclhw, *maclhwuc, *maclhwu,
18935 *nmacchwc, *nmacchw, *nmachhwc, *nmachhw, *nmaclhwc, *nmaclhw,
18936 *mulchwc, *mulchw, *mulchwuc, *mulchwu, *mulhhwc, *mulhhw,
18937 *mulhhwuc, *mulhhwu, *mullhwc, *mullhw, *mullhwuc, *mullhwu): Use it.
18938 * config/rs6000/40x.md (ppc405-imul3): Add type halfmul.
18939 * config/rs6000/440.md (ppc440-imul2): Add type halfmul.
18940 * config/rs6000/476.md (ppc476-imul): Add type halfmul.
18941 * config/rs6000/titan.md: Delete nonsensical comment.
18942 (titan_imul): Add type imul3.
18943 (titan_mulhw): Remove type imul3; add type halfmul.
18945 2014-05-23 Segher Boessenkool <segher@kernel.crashing.org>
18947 * config/rs6000/rs6000.md (type): Reorder, reformat.
18949 2014-05-23 Martin Jambor <mjambor@suse.cz>
18951 PR tree-optimization/53787
18952 * params.def (PARAM_IPA_MAX_AA_STEPS): New param.
18953 * ipa-prop.h (ipa_node_params): Rename uses_analysis_done to
18954 analysis_done, update all uses.
18955 * ipa-prop.c: Include domwalk.h
18956 (param_analysis_info): Removed.
18957 (param_aa_status): New type.
18958 (ipa_bb_info): Likewise.
18959 (func_body_info): Likewise.
18960 (ipa_get_bb_info): New function.
18961 (aa_overwalked): Likewise.
18962 (find_dominating_aa_status): Likewise.
18963 (parm_bb_aa_status_for_bb): Likewise.
18964 (parm_preserved_before_stmt_p): Changed to use new param AA info.
18965 (load_from_unmodified_param): Accept func_body_info as a parameter
18966 instead of parms_ainfo.
18967 (parm_ref_data_preserved_p): Changed to use new param AA info.
18968 (parm_ref_data_pass_through_p): Likewise.
18969 (ipa_load_from_parm_agg_1): Likewise. Update callers.
18970 (compute_complex_assign_jump_func): Changed to use new param AA info.
18971 (compute_complex_ancestor_jump_func): Likewise.
18972 (ipa_compute_jump_functions_for_edge): Likewise.
18973 (ipa_compute_jump_functions): Removed.
18974 (ipa_compute_jump_functions_for_bb): New function.
18975 (ipa_analyze_indirect_call_uses): Likewise, moved variable
18977 (ipa_analyze_virtual_call_uses): Accept func_body_info instead of node
18978 and info, moved variable declarations down.
18979 (ipa_analyze_call_uses): Accept and pass on func_body_info instead of
18981 (ipa_analyze_stmt_uses): Likewise.
18982 (ipa_analyze_params_uses): Removed.
18983 (ipa_analyze_params_uses_in_bb): New function.
18984 (ipa_analyze_controlled_uses): Likewise.
18985 (free_ipa_bb_info): Likewise.
18986 (analysis_dom_walker): New class.
18987 (ipa_analyze_node): Handle node-specific forbidden analysis,
18988 initialize and free func_body_info, use dominator walker.
18989 (ipcp_modif_dom_walker): New class.
18990 (ipcp_transform_function): Create and free func_body_info, use
18991 ipcp_modif_dom_walker, moved a lot of functionality there.
18993 2014-05-23 Marek Polacek <polacek@redhat.com>
18994 Jakub Jelinek <jakub@redhat.com>
18996 * builtins.def: Change SANITIZE_FLOAT_DIVIDE to SANITIZE_NONDEFAULT.
18997 * gcc.c (sanitize_spec_function): Likewise.
18998 * convert.c (convert_to_integer): Include "ubsan.h". Add
18999 floating-point to integer instrumentation.
19000 * doc/invoke.texi: Document -fsanitize=float-cast-overflow.
19001 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_CAST and
19002 SANITIZE_NONDEFAULT.
19003 * opts.c (common_handle_option): Handle -fsanitize=float-cast-overflow.
19004 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW,
19005 BUILT_IN_UBSAN_HANDLE_FLOAT_CAST_OVERFLOW_ABORT): Add.
19006 * ubsan.c: Include "realmpfr.h" and "dfp.h".
19007 (get_ubsan_type_info_for_type): Handle REAL_TYPEs.
19008 (ubsan_type_descriptor): Set tkind to 0xffff for types other than
19009 float/double/long double.
19010 (ubsan_instrument_float_cast): New function.
19011 * ubsan.h (ubsan_instrument_float_cast): Declare.
19013 2014-05-23 Jiong Wang <jiong.wang@arm.com>
19015 * config/aarch64/predicates.md (aarch64_call_insn_operand): New
19017 * config/aarch64/constraints.md ("Ucs", "Usf"): New constraints.
19018 * config/aarch64/aarch64.md (*sibcall_insn, *sibcall_value_insn):
19019 Adjust for tailcalling through registers.
19020 * config/aarch64/aarch64.h (enum reg_class): New caller save
19022 (REG_CLASS_NAMES): Likewise.
19023 (REG_CLASS_CONTENTS): Likewise.
19024 * config/aarch64/aarch64.c (aarch64_function_ok_for_sibcall):
19025 Allow tailcalling without decls.
19027 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19029 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19030 Rewrite check for ORT_PARALLEL and ORT_COMBINED_PARALLEL.
19032 * omp-low.c (expand_omp_for_static_chunk): Rename variable si to
19033 gsi, and variables v_* to v*.
19035 2014-05-23 Eric Botcazou <ebotcazou@adacore.com>
19037 * varasm.c (output_constructor_bitfield): Fix thinkos in latest change.
19039 2014-05-23 Thomas Schwinge <thomas@codesourcery.com>
19041 * gimple.h (enum gf_mask): Add and use GF_OMP_FOR_SIMD.
19042 * omp-low.c: Update accordingly.
19044 * gimple.h (enum gf_mask): Rewrite "<< 0" shift expressions used
19045 for GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_KIND_FOR,
19046 GF_OMP_FOR_KIND_DISTRIBUTE, GF_OMP_FOR_KIND_SIMD,
19047 GF_OMP_FOR_KIND_CILKSIMD, GF_OMP_TARGET_KIND_MASK,
19048 GF_OMP_TARGET_KIND_REGION, GF_OMP_TARGET_KIND_DATA,
19049 GF_OMP_TARGET_KIND_UPDATE.
19051 * gimplify.c (omp_notice_variable) <case OMP_CLAUSE_DEFAULT_NONE>:
19052 Explicitly enumerate the expected region types.
19054 2014-05-23 Paul Eggert <eggert@cs.ucla.edu>
19057 * doc/extend.texi (Function Attributes): Fix __attribute__ ((malloc))
19058 documentation; the old documentation didn't clearly state the
19059 constraints on the contents of the pointed-to storage.
19061 2014-05-23 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19063 Fix bootstrap error on ia64
19064 * config/ia64/ia64.c (ia64_first_cycle_multipass_dfa_lookahead_guard):
19065 Return default value.
19067 2014-05-23 Thomas Preud'homme <thomas.preudhomme@arm.com>
19069 PR tree-optimization/54733
19070 * tree-ssa-math-opts.c (nop_stats): New "bswap_stats" structure.
19072 (find_bswap_or_nop_load): New.
19073 (find_bswap_1): Renamed to ...
19074 (find_bswap_or_nop_1): This. Also add support for memory source.
19075 (find_bswap): Renamed to ...
19076 (find_bswap_or_nop): This. Also add support for memory source and
19077 detection of bitwise operations equivalent to load in target
19079 (execute_optimize_bswap): Likewise. Also move its leading comment back
19080 in place and split statement transformation into ...
19081 (bswap_replace): This.
19083 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19085 PR rtl-optimization/61215
19086 * lra-elelimination.c (lra_eliminate_regs_1): Don't use
19087 simplify_gen_subreg until final substitution.
19089 2014-05-23 Alan Modra <amodra@gmail.com>
19092 * config/rs6000/rs6000.c (mem_operand_gpr): Handle SImode.
19093 * config/rs6000/rs6000.md (extendsidi2_lfiwax, extendsidi2_nocell):
19094 Use "Y" constraint rather than "m".
19096 2014-05-23 Kugan Vivekanandarajah <kuganv@linaro.org>
19098 * config/aarch64/aarch64.c (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): New
19100 * config/aarch64/aarch64-protos.h (aarch64_atomic_assign_expand_fenv):
19101 New function declaration.
19102 * config/aarch64/aarch64-builtins.c (aarch64_builtins) : Add
19103 AARCH64_BUILTIN_GET_FPCR, AARCH64_BUILTIN_SET_FPCR.
19104 AARCH64_BUILTIN_GET_FPSR and AARCH64_BUILTIN_SET_FPSR.
19105 (aarch64_init_builtins) : Initialize builtins
19106 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19107 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19108 (aarch64_expand_builtin) : Expand builtins __builtins_aarch64_set_fpcr
19109 __builtins_aarch64_get_fpcr, __builtins_aarch64_get_fpsr,
19110 and __builtins_aarch64_set_fpsr.
19111 (aarch64_atomic_assign_expand_fenv): New function.
19112 * config/aarch64/aarch64.md (set_fpcr): New pattern.
19113 (get_fpcr) : Likewise.
19114 (set_fpsr) : Likewise.
19115 (get_fpsr) : Likewise.
19116 (unspecv): Add UNSPECV_GET_FPCR and UNSPECV_SET_FPCR, UNSPECV_GET_FPSR
19117 and UNSPECV_SET_FPSR.
19118 * doc/extend.texi (AARCH64 Built-in Functions) : Document
19119 __builtins_aarch64_set_fpcr, __builtins_aarch64_get_fpcr.
19120 __builtins_aarch64_set_fpsr and __builtins_aarch64_get_fpsr.
19122 2014-05-22 Vladimir Makarov <vmakarov@redhat.com>
19124 PR rtl-optimization/60969
19125 * ira-costs.c (record_reg_classes): Process NO_REGS for matching
19126 constraints. Set up mem cost for NO_REGS case.
19128 2014-05-22 Thomas Schwinge <thomas@codesourcery.com>
19130 * builtin-types.def: Simplify examples for DEF_FUNCTION_TYPE_*.
19132 2012-05-22 Bernd Schmidt <bernds@codesourcery.com>
19134 * config/darwin.c: Include "lto-section-names.h".
19135 (LTO_SEGMENT_NAME): Don't define.
19136 * config/i386/winnt.c: Include "lto-section-names.h".
19137 * lto-streamer.c: Include "lto-section-names.h".
19138 * lto-streamer.h (LTO_SECTION_NAME_PREFIX): Don't define.
19139 * lto-wrapper.c: Include "lto-section-names.h".
19140 (LTO_SECTION_NAME_PREFIX): Don't define.
19141 * lto-section-names.h: New file.
19142 * cgraphunit.c: Include "lto-section-names.h".
19144 2014-05-22 Peter Bergner <bergner@vnet.ibm.com>
19146 * config/rs6000/htm.md (ttest): Use correct shift value to get CR0.
19148 2014-05-22 Richard Earnshaw <rearnsha@arm.com>
19151 * arm.md (arm_cmpdi_unsigned): Fix length calculation for Thumb2.
19153 2014-05-22 Nick Clifton <nickc@redhat.com>
19155 * config/msp430/msp430.h (ASM_SPEC): Add spaces after inserted options.
19157 2014-05-22 Eric Botcazou <ebotcazou@adacore.com>
19159 * tree-ssa-forwprop.c (associate_plusminus): Extend (T)(P + A) - (T)P
19160 -> (T)A transformation to integer types.
19162 2014-05-22 Teresa Johnson <tejohnson@google.com>
19164 * gcov-io.c (gcov_position): Use gcov_nonruntime_assert.
19165 (gcov_is_error): Remove gcc_assert from IN_LIBGCOV code.
19166 (gcov_rewrite): Use gcov_nonruntime_assert.
19167 (gcov_open): Ditto.
19168 (gcov_write_words): Ditto.
19169 (gcov_write_length): Ditto.
19170 (gcov_read_words): Use gcov_nonruntime_assert, and remove
19171 gcc_assert from IN_LIBGCOV code.
19172 (gcov_read_summary): Use gcov_error to flag profile corruption.
19173 (gcov_sync): Use gcov_nonruntime_assert.
19174 (gcov_seek): Remove gcc_assert from IN_LIBGCOV code.
19175 (gcov_histo_index): Use gcov_nonruntime_assert.
19176 (static void gcov_histogram_merge): Ditto.
19177 (compute_working_sets): Ditto.
19178 * gcov-io.h (gcov_nonruntime_assert): Define.
19179 (gcov_error): Define for !IN_LIBGCOV
19181 2014-05-22 Richard Biener <rguenther@suse.de>
19183 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
19184 BUILT_IN_REALLOC like BUILT_IN_STRDUP.
19185 (call_may_clobber_ref_p_1): Handle BUILT_IN_REALLOC as allocation
19186 and deallocation site.
19187 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
19188 Handle BUILT_IN_REALLOC similar to BUILT_IN_STRDUP with also
19189 passing through the incoming points-to set.
19190 (handle_lhs_call): Use flags argument instead of recomputing it.
19191 (find_func_aliases_for_call): Call handle_lhs_call with proper
19194 2014-05-22 Jakub Jelinek <jakub@redhat.com>
19196 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Make sure
19197 all padding bits in REAL_VALUE_TYPE are cleared.
19199 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19201 Cleanup and improve multipass_dfa_lookahead_guard
19202 * config/i386/i386.c (core2i7_first_cycle_multipass_filter_ready_try,)
19203 (core2i7_first_cycle_multipass_begin,)
19204 (core2i7_first_cycle_multipass_issue,)
19205 (core2i7_first_cycle_multipass_backtrack): Update signature.
19206 * config/ia64/ia64.c
19207 (ia64_first_cycle_multipass_dfa_lookahead_guard_spec): Remove.
19208 (ia64_first_cycle_multipass_dfa_lookahead_guard): Update signature.
19209 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove
19211 (ia64_first_cycle_multipass_dfa_lookahead_guard): Merge logic from
19212 ia64_first_cycle_multipass_dfa_lookahead_guard_spec. Update return
19214 * config/rs6000/rs6000.c (rs6000_use_sched_lookahead_guard): Update
19216 * doc/tm.texi: Regenerate.
19218 (TARGET_SCHED_FIRST_CYCLE_MULTIPASS_DFA_LOOKAHEAD_GUARD_SPEC): Remove.
19219 * haifa-sched.c (ready_try): Make signed to allow negative values.
19220 (rebug_ready_list_1): Update.
19221 (choose_ready): Simplify.
19222 (sched_extend_ready_list): Update.
19224 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19226 Remove IA64 speculation tweaking flags
19227 * config/ia64/ia64.c (ia64_set_sched_flags): Delete handling of
19228 speculation tuning flags.
19229 (msched-prefer-non-data-spec-insns,)
19230 (msched-prefer-non-control-spec-insns): Obsolete options.
19231 * haifa-sched.c (choose_ready): Remove handling of
19232 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19233 * sched-int.h (enum SPEC_SCHED_FLAGS): Remove PREFER_NON_CONTROL_SPEC
19234 and PREFER_NON_DATA_SPEC.
19235 * sel-sched.c (process_spec_exprs): Remove handling of
19236 PREFER_NON_CONTROL_SPEC and PREFER_NON_DATA_SPEC.
19238 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19240 Improve scheduling debug output
19241 * haifa-sched.c (debug_ready_list): Remove unnecessary prototype.
19242 (advance_one_cycle): Update.
19243 (schedule_insn, queue_to_ready): Add debug printouts.
19244 (debug_ready_list_1): New static function.
19245 (debug_ready_list): Update.
19246 (max_issue): Add debug printouts.
19247 (dump_insn_stream): New static function.
19248 (schedule_block): Use it. Also better indent printouts.
19250 2014-05-22 Maxim Kuvyrkov <maxim.kuvyrkov@linaro.org>
19252 Fix sched_insn debug counter
19253 * haifa-sched.c (schedule_insn): Update.
19254 (struct haifa_saved_data): Add nonscheduled_insns_begin.
19255 (save_backtrack_point, restore_backtrack_point): Update.
19256 (first_nonscheduled_insn): New static function.
19257 (queue_to_ready, choose_ready): Use it.
19258 (schedule_block): Init nonscheduled_insns_begin.
19259 (sched_emit_insn): Update.
19262 2014-05-22 Kugan Vivekanandarajah <kuganv@linaro.org>
19264 * config/aarch64/aarch64.c (aarch64_regno_regclass) : Change CORE_REGS
19266 (aarch64_secondary_reload) : LikeWise.
19267 (aarch64_class_max_nregs) : Remove CORE_REGS.
19268 * config/aarch64/aarch64.h (enum reg_class) : Remove CORE_REGS.
19269 (REG_CLASS_NAMES) : Likewise.
19270 (REG_CLASS_CONTENTS) : LikeWise.
19271 (INDEX_REG_CLASS) : Change CORE_REGS to GENERAL_REGS.
19273 2014-05-21 Guozhi Wei <carrot@google.com>
19276 * config/aarch64/arm_neon.h (vqdmulh_n_s16): Change the last operand's
19278 (vqdmulhq_n_s16): Likewise.
19280 2014-05-21 Segher Boessenkool <segher@kernel.crashing.org>
19282 * config/rs6000/predicates.md (update_indexed_address_mem): Delete.
19284 2014-05-21 Marek Polacek <polacek@redhat.com>
19287 * ubsan.c (is_ubsan_builtin_p): Turn assert into a condition.
19289 2014-05-21 Martin Jambor <mjambor@suse.cz>
19291 * doc/invoke.texi (Optimize Options): Document parameters
19292 ipa-cp-eval-threshold, ipa-max-agg-items, ipa-cp-loop-hint-bonus and
19293 ipa-cp-array-index-hint-bonus.
19295 2014-05-21 Mark Wielaard <mjw@redhat.com>
19298 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_type if DWARF
19299 version >= 3 or not strict DWARF.
19300 * langhooks.h (struct lang_hooks_for_types): Add
19301 enum_underlying_base_type.
19302 * langhooks.c (lhd_enum_underlying_base_type): New function.
19303 * gcc/langhooks.h (struct lang_hooks_for_types): Add
19304 enum_underlying_base_type.
19305 * langhooks-def.h (lhd_enum_underlying_base_type): New declaration.
19306 (LANG_HOOKS_ENUM_UNDERLYING_BASE_TYPE): New define.
19307 (LANG_HOOKS_FOR_TYPES_INITIALIZER): Add new lang hook.
19309 2014-05-21 Richard Biener <rguenther@suse.de>
19311 * doc/invoke.texi (-flto-partition=): Document one and none algorithms.
19313 2014-05-21 John Marino <gnugcc@marino.st>
19315 * config.gcc (*-*-dragonfly*): New target.
19316 * configure.ac: Detect dl_iterate_phdr (*freebsd*, *dragonfly*).
19317 * configure: Regenerate.
19318 * config/dragonfly-stdint.h: New.
19319 * config/dragonfly.h: New.
19320 * config/dragonfly.opt: New.
19321 * config/i386/dragonfly.h: New.
19322 * ginclude/stddef.h: Detect _PTRDIFF_T_DECLARED for DragonFly.
19324 2014-05-21 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
19326 * tree.def (VOID_CST): New.
19327 * tree-core.h (TI_VOID): New.
19328 * tree.h (void_node): New.
19329 * tree.c (tree_node_structure_for_code, tree_code_size)
19330 (iterative_hash_expr): Handle VOID_CST.
19331 (build_common_tree_nodes): Initialize void_node.
19333 2014-05-21 Bernd Schmidt <bernds@codesourcery.com>
19335 * reload1.c (remove_init_insns, will_delete_init_insn_p): New static
19337 (reload, calculate_needs_all_insns, reload_as_needed): Use them.
19339 * config/bfin/bfin.c (split_load_immediate): Use gen_int_mode in a few
19342 * cfgrtl.c (cfg_layout_initialize): Weaken assert to only trigger if
19343 flag_reorder_blocks_and_partition.
19344 * hw-doloop.c (reorg_loops): Avoid reordering if that flag is set.
19346 2014-05-21 Oleg Endo <olegendo@gcc.gnu.org>
19349 * config/sh/sh.md (*addc_r_1): Rename to addc_t_r. Remove empty
19351 (*addc_r_t): Add new insn_and_split.
19353 2014-05-21 Jakub Jelinek <jakub@redhat.com>
19355 PR middle-end/61252
19356 * omp-low.c (handle_simd_reference): New function.
19357 (lower_rec_input_clauses): Use it. Defer adding reference
19358 initialization even for reduction without placeholder if in simd,
19359 handle it properly later on.
19361 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19363 PR tree-optimization/60899
19364 * gimple-fold.c (can_refer_decl_in_current_unit_p): Cleanup;
19365 assume all static symbols will have definition wile parsing and
19366 check the do have definition later in compilation; check that
19367 variable referring symbol will be output before concluding that
19368 reference is safe; be conservative for referring local statics;
19369 be more precise about when comdat is output in other partition.
19371 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19374 * ipa-inline-transform.c (inline_call): Use add CALLEE_REMOVED
19376 * ipa-inline.c (inline_to_all_callers): If callee was removed; return.
19377 (ipa_inline): Loop inline_to_all_callers until no more aliases
19380 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19382 * ipa.c (ipa_discover_readonly_nonaddressable_var): Fix dumping;
19383 set writeonly flag only for vars actually written to.
19385 2014-05-20 Dehao Chen <dehao@google.com>
19387 * ipa-inline-transform.c (clone_inlined_nodes): Use min of edge count
19388 and callee count to get clone count.
19389 * tree-inline.c (expand_call_inline): Use callee count instead of bb
19390 count in copy_body.
19392 2014-05-20 Richard Sandiford <rdsandiford@googlemail.com>
19394 PR rtl-optimization/61243
19395 * emit-rtl.c (emit_copy_of_insn_after): Copy CROSSING_JUMP_P.
19397 2014-05-20 Xinliang David Li <davidxl@google.com>
19399 * cgraphunit.c (walk_polymorphic_call_targets): Add
19400 dbgcnt and fopt-info support.
19401 * ipa-prop.c (ipa_make_edge_direct_to_target): Ditto.
19402 * ipa-devirt.c (ipa_devirt): Ditto.
19403 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): Ditto.
19404 * ipa.c (walk_polymorphic_call_targets): Ditto.
19405 * gimple-fold.c (fold_gimple_assign): Ditto.
19406 (gimple_fold_call): Ditto.
19407 * dbgcnt.def: New counter.
19409 2014-05-20 DJ Delorie <dj@redhat.com>
19411 * config/msp430/msp430.md (split): Don't allow subregs when
19412 splitting SImode adds.
19413 (andneghi): Fix subtraction logic.
19414 * config/msp430/predicates.md (msp430_nonsubreg_or_imm_operand): New.
19416 2014-05-20 Jan Hubicka <hubicka@ucw.cz>
19418 * tree.h (DECL_ONE_ONLY): Return true only for externally visible
19420 * except.c (switch_to_exception_section, resolve_unique_section,
19421 get_named_text_section, default_function_rodata_section,
19422 align_variable, get_block_for_decl, default_section_type_flags):
19423 Use DECL_COMDAT_GROUP instead of DECL_ONE_ONLY.
19424 * symtab.c (symtab_add_to_same_comdat_group,
19425 symtab_make_decl_local, fixup_same_cpp_alias_visibility,
19426 symtab_nonoverwritable_alias, symtab_get_symbol_partitioning_class):
19428 * cgraphclones.c (cgraph_create_virtual_clone): Likewise.
19429 * bb-reorder.c (pass_partition_blocks::gate): Likewise.
19430 * config/c6x/c6x.c (c6x_elf_unique_section): Likewise.
19431 (c6x_function_in_section_p): Likewise.
19432 * config/darwin.c (machopic_select_section): Likewise.
19433 * config/arm/arm.c (arm_function_in_section_p): Likewise.
19434 * config/mips/mips.c (mips_function_rodata_section): Likewise.
19435 * config/mep/mep.c (mep_select_section): LIkewise.
19436 * config/i386/i386.c (x86_64_elf_unique_section): Likewise.
19438 2014-05-20 Eric Botcazou <ebotcazou@adacore.com>
19440 * tree-ssa-dom.c (hashable_expr_equal_p) <EXPR_CALL>: Also compare the
19441 EH region of calls to pure functions that can throw an exception.
19442 * tree-ssa-sccvn.c (vn_reference_eq): Remove duplicated test.
19443 (copy_reference_ops_from_call): Also copy the EH region of the call if
19444 it can throw an exception.
19446 2014-05-20 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
19448 * simplify-rtx.c (simplify_binary_operation_1): Optimize case of
19449 nested VEC_SELECTs that are inverses of each other.
19451 2014-05-20 Richard Biener <rguenther@suse.de>
19453 * tree-ssa-sccvn.c (process_scc): Dump SCC here, when iterating,
19454 (extract_and_process_scc_for_name): not here.
19455 (cond_dom_walker::before_dom_children): Only process
19456 stmts that end the BB in interesting ways.
19457 (run_scc_vn): Mark param uses as visited.
19459 2014-05-20 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
19461 * config/arm/arm.md (arith_shiftsi): Do not predicate for
19464 2014-05-20 Nick Clifton <nickc@redhat.com>
19466 * config/msp430/msp430.c (TARGET_GIMPLIFY_VA_ARG_EXPR): Define.
19467 (msp430_gimplify_va_arg_expr): New function.
19468 (msp430_print_operand): Handle (CONST (ZERO_EXTRACT)).
19470 * config/msp430/msp430.md (zero_extendpsisi2): Use + constraint on
19471 operand 0 in order to prevent confusion about the number of
19472 registers involved.
19474 2014-05-20 Richard Biener <rguenther@suse.de>
19476 PR tree-optimization/61221
19477 * tree-ssa-pre.c (el_to_update): Remove.
19478 (eliminate_dom_walker::before_dom_children): Handle released
19479 VDEFs by value-numbering them to the associated VUSE. Update
19480 stmt immediately for substituted call address.
19481 (eliminate): Remove delayed stmt updating code.
19482 * tree-ssa-sccvn.c (vuse_ssa_val): New function valueizing
19483 possibly late re-numbered vuses.
19484 (vn_reference_lookup_2): Adjust.
19485 (vn_reference_lookup_pieces): Likewise.
19486 (vn_reference_lookup): Likewise.
19488 2014-05-20 Richard Biener <rguenther@suse.de>
19490 * config.gcc: Remove need_64bit_hwint.
19491 * configure.ac: Do not define NEED_64BIT_HOST_WIDE_INT.
19492 * hwint.h: Do not check NEED_64BIT_HOST_WIDE_INT but assume
19494 * config.in: Regenerate.
19495 * configure: Likewise.
19497 2014-05-19 David Wohlferd <dw@LimeGreenSocks.com>
19499 * doc/extend.texi: Create Label Attributes section,
19500 move all label attributes into it and reference it.
19502 2014-05-19 Richard Earnshaw <rearnsha@arm.com>
19504 * arm.c (thumb1_reorg): When scanning backwards skip anything
19505 that's not a proper insn.
19507 2014-05-19 Richard Biener <rguenther@suse.de>
19509 PR tree-optimization/61221
19510 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
19511 Do nothing for unreachable blocks.
19512 * tree-ssa-sccvn.c (cond_dom_walker::before_dom_children):
19513 Improve unreachability detection.
19515 2014-05-19 Richard Biener <rguenther@suse.de>
19517 PR tree-optimization/61209
19518 * tree-ssa-sccvn.c (visit_phi): Avoid setting expr to VN_TOP.
19520 2014-05-19 Nick Clifton <nickc@redhat.com>
19522 * except.c (init_eh): Fix computation of builtin setjmp buffer
19523 size to allow for targets where POINTER_SIZE > BITS_PER_WORD.
19525 2014-05-19 Richard Biener <rguenther@suse.de>
19527 PR tree-optimization/61184
19528 * tree-vrp.c (is_negative_overflow_infinity): Use
19529 TREE_OVERFLOW_P and do that check first.
19530 (is_positive_overflow_infinity): Likewise.
19531 (is_overflow_infinity): Likewise.
19532 (vrp_operand_equal_p): Properly treat operands with
19533 differing overflow as not equal.
19535 2014-05-19 Bernd Schmidt <bernds@codesourcery.com>
19537 * simplify-rtx.c (simplify_unary_operation_1): Use CONST_INT_P in
19538 shift simplification where it was intended.
19540 2014-05-19 Christian Bruel <christian.bruel@st.com>
19543 * config/sh/sh.md (movsf_ie): Unset fp_mode for fmov.
19545 2014-05-19 Richard Sandiford <r.sandiford@uk.ibm.com>
19548 * config/sparc/sparc.c (sparc_fold_builtin): Use widest_int rather
19551 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19553 * reg-notes.def (CROSSING_JUMP): Likewise.
19554 * rtl.h (rtx_def): Update comment for jump flag.
19555 (CROSSING_JUMP_P): Define.
19556 * cfgcleanup.c (try_forward_edges, try_optimize_cfg): Use it instead
19557 of a REG_CROSSING_JUMP note.
19558 * cfghooks.c (tidy_fallthru_edges): Likewise.
19559 * cfgrtl.c (fixup_partition_crossing, rtl_verify_edges): Likewise.
19560 * emit-rtl.c (try_split): Likewise.
19561 * haifa-sched.c (sched_create_recovery_edges): Likewise.
19562 * ifcvt.c (find_if_case_1, find_if_case_2): Likewise.
19563 * jump.c (redirect_jump_2): Likewise.
19564 * reorg.c (follow_jumps, fill_slots_from_thread): Likewise.
19565 (relax_delay_slots): Likewise.
19566 * config/arc/arc.md (jump_i, cbranchsi4_scratch, *bbit): Likewise.
19567 (bbit_di): Likewise.
19568 * config/arc/arc.c (arc_reorg, arc_can_follow_jump): Likewise.
19569 * config/sh/sh.md (jump_compact): Likewise.
19570 * bb-reorder.c (rotate_loop): Likewise.
19571 (pass_duplicate_computed_gotos::execute): Likewise.
19572 (add_reg_crossing_jump_notes): Rename to...
19573 (update_crossing_jump_flags): ...this.
19574 (pass_partition_blocks::execute): Update accordingly.
19576 2014-05-19 Richard Sandiford <rdsandiford@googlemail.com>
19578 * tree.h: Remove extraneous template <>.
19580 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19582 * ipa.c (symtab_remove_unreachable_nodes): Remove
19583 symbol from comdat group if its body was eliminated.
19584 (comdat_can_be_unshared_p_1): Static symbols can always be privatized.
19585 * symtab.c (symtab_remove_from_same_comdat_group): Break out from ...
19586 (symtab_unregister_node): ... this one.
19587 (verify_symtab_base): More strict checking of comdats.
19588 * cgraph.h (symtab_remove_from_same_comdat_group): Declare.
19590 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19592 * tree-pass.h (make_pass_ipa_comdats): New pass.
19593 * timevar.def (TV_IPA_COMDATS): New timevar.
19594 * passes.def (pass_ipa_comdats): Add.
19595 * Makefile.in (OBJS): Add ipa-comdats.o
19596 * ipa-comdats.c: New file.
19598 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19600 * ipa.c (update_visibility_by_resolution_info): New function.
19601 (function_and_variable_visibility): Use it.
19603 2014-05-17 Jan Hubicka <hubicka@ucw.cz>
19605 * cgraph.h (symtab_first_defined_symbol, symtab_next_defined_symbol):
19607 (FOR_EACH_DEFINED_SYMBOL): New macro.
19608 (varpool_first_static_initializer, varpool_next_static_initializer,
19609 varpool_first_defined_variable, varpool_next_defined_variable):
19611 (symtab_in_same_comdat_p): Correctly deal with inline functions.
19613 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19615 * ggc-page.c (ggc_handle_finalizers): Add comment.
19617 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19619 * ggc-common.c (ggc_internal_cleared_alloc): Adjust.
19620 * ggc-none.c (ggc_internal_alloc): Assert if a finalizer is passed.
19621 (ggc_internal_cleared_alloc): Likewise.
19622 * ggc-page.c (finalizer): New class.
19623 (vec_finalizer): Likewise.
19624 (globals::finalizers): New member.
19625 (globals::vec_finalizers): Likewise.
19626 (ggc_internal_alloc): Record the finalizer if any for the block being
19628 (ggc_handle_finalizers): New function.
19629 (ggc_collect): Call ggc_handle_finalizers.
19630 * ggc.h (ggc_internal_alloc): Add arguments to allow installing a
19632 (ggc_internal_cleared_alloc): Likewise.
19633 (finalize): New function.
19634 (need_finalization_p): Likewise.
19635 (ggc_alloc): Install the type's destructor as the finalizer if it
19636 might do something.
19637 (ggc_cleared_alloc): Likewise.
19638 (ggc_vec_alloc): Likewise.
19639 (ggc_cleared_vec_alloc): Likewise.
19641 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19643 * ggc.h (ggc_alloc_cleared_simd_clone_stat): Remove function.
19645 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19647 * alias.c (record_alias_subset): Adjust.
19648 * bitmap.c (bitmap_element_allocate): Likewise.
19649 (bitmap_gc_alloc_stat): Likewise.
19650 * cfg.c (init_flow): Likewise.
19651 (alloc_block): Likewise.
19652 (unchecked_make_edge): Likewise.
19653 * cfgloop.c (alloc_loop): Likewise.
19654 (flow_loops_find): Likewise.
19655 (rescan_loop_exit): Likewise.
19656 * cfgrtl.c (init_rtl_bb_info): Likewise.
19657 * cgraph.c (insert_new_cgraph_node_version): Likewise.
19658 (cgraph_allocate_node): Likewise.
19659 (cgraph_create_edge_1): Likewise.
19660 (cgraph_allocate_init_indirect_info): Likewise.
19661 * cgraphclones.c (cgraph_clone_edge): Likewise.
19662 * cgraphunit.c (add_asm_node): Likewise.
19663 (init_lowered_empty_function): Likewise.
19664 * config/aarch64/aarch64.c (aarch64_init_machine_status): Likewise.
19665 * config/alpha/alpha.c (alpha_init_machine_status): Likewise.
19666 (alpha_use_linkage): Likewise.
19667 * config/arc/arc.c (arc_init_machine_status): Likewise.
19668 * config/arm/arm.c (arm_init_machine_status): Likewise.
19669 * config/avr/avr.c (avr_init_machine_status): Likewise.
19670 * config/bfin/bfin.c (bfin_init_machine_status): Likewise.
19671 * config/c6x/c6x.c (c6x_init_machine_status): Likewise.
19672 * config/cris/cris.c (cris_init_machine_status): Likewise.
19673 * config/darwin.c (machopic_indirection_name): Likewise.
19674 (darwin_build_constant_cfstring): Likewise.
19675 (darwin_enter_string_into_cfstring_table): Likewise.
19676 * config/epiphany/epiphany.c (epiphany_init_machine_status): Likewise.
19677 * config/frv/frv.c (frv_init_machine_status): Likewise.
19678 * config/i386/i386.c (get_dllimport_decl): Likewise.
19679 (ix86_init_machine_status): Likewise.
19680 (assign_386_stack_local): Likewise.
19681 * config/i386/winnt.c (i386_pe_record_external_function): Likewise.
19682 (i386_pe_maybe_record_exported_symbol): Likewise.
19683 (i386_pe_record_stub): Likewise.
19684 * config/ia64/ia64.c (ia64_init_machine_status): Likewise.
19685 * config/iq2000/iq2000.c (iq2000_init_machine_status): Likewise.
19686 * config/m32c/m32c.c (m32c_init_machine_status): Likewise.
19687 (m32c_note_pragma_address): Likewise.
19688 * config/mep/mep.c (mep_init_machine_status): Likewise.
19689 (mep_note_pragma_flag): Likewise.
19690 * config/mips/mips.c (mflip_mips16_use_mips16_p): Likewise.
19691 (mips16_local_alias): Likewise.
19692 (mips_init_machine_status): Likewise.
19693 * config/mmix/mmix.c (mmix_init_machine_status): Likewise.
19694 * config/moxie/moxie.c (moxie_init_machine_status): Likewise.
19695 * config/msp430/msp430.c (msp430_init_machine_status): Likewise.
19696 * config/nds32/nds32.c (nds32_init_machine_status): Likewise.
19697 * config/nios2/nios2.c (nios2_init_machine_status): Likewise.
19698 * config/pa/pa.c (pa_init_machine_status): Likewise.
19699 (pa_get_deferred_plabel): Likewise.
19700 * config/rl78/rl78.c (rl78_init_machine_status): Likewise.
19701 * config/rs6000/rs6000.c (builtin_function_type): Likewise.
19702 (rs6000_init_machine_status): Likewise.
19703 (output_toc): Likewise.
19704 * config/s390/s390.c (s390_init_machine_status): Likewise.
19705 * config/score/score.c (score_output_external): Likewise.
19706 * config/sparc/sparc.c (sparc_init_machine_status): Likewise.
19707 * config/spu/spu.c (spu_init_machine_status): Likewise.
19708 * config/tilegx/tilegx.c (tilegx_init_machine_status): Likewise.
19709 * config/tilepro/tilepro.c (tilepro_init_machine_status): Likewise.
19710 * config/xtensa/xtensa.c (xtensa_init_machine_status): Likewise.
19711 * coverage.c (coverage_end_function): Likewise.
19712 * dbxout.c (dbxout_init): Likewise.
19713 * doc/gty.texi: Don't mention variable_size attribute.
19714 * dwarf2cfi.c (new_cfi): Adjust.
19715 (new_cfi_row): Likewise.
19716 (copy_cfi_row): Likewise.
19717 (create_cie_data): Likewise.
19718 * dwarf2out.c (dwarf2out_alloc_current_fde): Likewise.
19719 (new_loc_descr): Likewise.
19720 (find_AT_string_in_table): Likewise.
19721 (add_addr_table_entry): Likewise.
19722 (new_die): Likewise.
19723 (add_var_loc_to_decl): Likewise.
19724 (clone_die): Likewise.
19725 (clone_as_declaration): Likewise.
19726 (break_out_comdat_types): Likewise.
19727 (new_loc_list): Likewise.
19728 (add_loc_descr_to_each): Likewise.
19729 (add_location_or_const_value_attribute): Likewise.
19730 (add_linkage_name): Likewise.
19731 (lookup_filename): Likewise.
19732 (dwarf2out_var_location): Likewise.
19733 (new_line_info_table): Likewise.
19734 (dwarf2out_init): Likewise.
19735 (mem_loc_descriptor): Likewise.
19736 (loc_descriptor): Likewise.
19737 (add_const_value_attribute): Likewise.
19738 (tree_add_const_value_attribute): Likewise.
19739 (comp_dir_string): Likewise.
19740 (dwarf2out_vms_debug_main_pointer): Likewise.
19741 (string_cst_pool_decl): Likewise.
19742 * emit-rtl.c (set_mem_attrs): Likewise.
19743 (get_reg_attrs): Likewise.
19744 (start_sequence): Likewise.
19745 (init_emit): Likewise.
19746 (init_emit_regs): Likewise.
19747 * except.c (init_eh_for_function): Likewise.
19748 (gen_eh_region): Likewise.
19749 (gen_eh_region_catch): Likewise.
19750 (gen_eh_landing_pad): Likewise.
19751 (add_call_site): Likewise.
19752 * function.c (add_frame_space): Likewise.
19753 (insert_temp_slot_address): Likewise.
19754 (assign_stack_temp_for_type): Likewise.
19755 (get_hard_reg_initial_val): Likewise.
19756 (allocate_struct_function): Likewise.
19757 (prepare_function_start): Likewise.
19758 (types_used_by_var_decl_insert): Likewise.
19759 * gengtype.c (variable_size_p): Remove function.
19760 (enum alloc_quantity): Remove enum.
19761 (write_typed_alloc_def): Remove function.
19762 (write_typed_struct_alloc_def): Likewise.
19763 (write_typed_typedef_alloc_def): Likewise.
19764 (write_typed_alloc_defns): Likewise.
19766 * ggc-common.c (ggc_cleared_alloc_htab_ignore_args): Adjust.
19767 (ggc_cleared_alloc_ptr_array_two_args): Likewise.
19768 * ggc.h (ggc_alloc): new function.
19769 (ggc_cleared_alloc): Likewise.
19770 (ggc_vec_alloc): Template on type of vector element, and remove
19771 element size argument.
19772 (ggc_cleared_vec_alloc): Likewise.
19773 * gimple.c (gimple_build_omp_for): Adjust.
19774 (gimple_copy): Likewise.
19775 * ipa-cp.c (get_replacement_map): Likewise.
19776 (find_aggregate_values_for_callers_subset): Likewise.
19777 (known_aggs_to_agg_replacement_list): Likewise.
19778 * ipa-devirt.c (get_odr_type): Likewise.
19779 * ipa-prop.c (ipa_node_duplication_hook): Likewise.
19780 (read_agg_replacement_chain): Likewise.
19781 * loop-iv.c (get_simple_loop_desc): Likewise.
19782 * lto-cgraph.c (input_node_opt_summary): Likewise.
19783 * lto-section-in.c (lto_new_in_decl_state): Likewise.
19784 * lto-streamer-in.c (lto_input_eh_catch_list): Likewise.
19785 (input_eh_region): Likewise.
19786 (input_eh_lp): Likewise.
19787 (input_cfg): Likewise.
19788 * optabs.c (set_optab_libfunc): Likewise.
19789 (init_tree_optimization_optabs): Likewise.
19790 (set_conv_libfunc): Likewise.
19791 * passes.c (do_per_function_toporder): Likewise.
19792 * rtl.h: Don't use variable_size gty attribute.
19793 * sese.c (if_region_set_false_region): Adjust.
19794 * stringpool.c (gt_pch_save_stringpool): Likewise.
19795 * target-globals.c (save_target_globals): Likewise.
19796 * toplev.c (general_init): Likewise.
19797 * trans-mem.c (record_tm_replacement): Likewise.
19798 (split_bb_make_tm_edge): Likewise.
19799 * tree-cfg.c (move_sese_region_to_fn): Likewise.
19800 * tree-data-ref.h (lambda_vector_new): Likewise.
19801 * tree-eh.c (add_stmt_to_eh_lp_fn): Likewise.
19802 * tree-iterator.c (tsi_link_before): Likewise.
19803 (tsi_link_after): Likewise.
19804 * tree-scalar-evolution.c (new_scev_info_str): Likewise.
19805 * tree-ssa-loop-niter.c (record_estimate): Likewise.
19806 * tree-ssa-operands.c (ssa_operand_alloc): Likewise.
19807 * tree-ssa-operands.h: Don't use variable_size gty attribute.
19808 * tree-ssa.c (init_tree_ssa): Adjust.
19809 * tree-ssanames.c (set_range_info): Likewise.
19810 (get_ptr_info): Likewise.
19811 (duplicate_ssa_name_ptr_info): Likewise.
19812 (duplicate_ssa_name_range_info): Likewise.
19813 * tree-streamer-in.c (unpack_ts_real_cst_value_fields): Likewise.
19814 (unpack_ts_fixed_cst_value_fields): Likewise.
19815 * tree.c (build_fixed): Likewise.
19816 (build_real): Likewise.
19817 (build_string): Likewise.
19818 (decl_priority_info): Likewise.
19819 (decl_debug_expr_insert): Likewise.
19820 (decl_value_expr_insert): Likewise.
19821 (decl_debug_args_insert): Likewise.
19822 (type_hash_add): Likewise.
19823 (build_omp_clause): Likewise.
19824 * ubsan.c (decl_for_type_insert): Likewise.
19825 * varasm.c (get_unnamed_section): Likewise.
19826 (get_noswitch_section): Likewise.
19827 (get_section): Likewise.
19828 (get_block_for_section): Likewise.
19829 (create_block_symbol): Likewise.
19830 (build_constant_desc): Likewise.
19831 (create_constant_pool): Likewise.
19832 (force_const_mem): Likewise.
19833 (record_tm_clone_pair): Likewise.
19834 * varpool.c (varpool_create_empty_node): Likewise.
19836 2014-05-17 Trevor Saunders <tsaunders@mozilla.com>
19838 * dwarf2out.c (tree_add_const_value_attribute): Call
19839 ggc_internal_cleared_alloc instead of ggc_alloc_cleared_atomic.
19840 * gengtype.c (write_typed_alloc_def): Call ggc_internal_<x>alloc
19841 instead of ggc_internal_<x>alloc_stat.
19842 * ggc-common.c (ggc_internal_cleared_alloc): Drop _stat suffix.
19843 (ggc_realloc): Likewise.
19844 * ggc-none.c (ggc_internal_alloc): Likewise.
19845 (ggc_internal_cleared_alloc): Likewise.
19846 * ggc-page.c: Likewise.
19847 * ggc.h (ggc_internal_alloc_stat): Likewise.
19848 (ggc_internal_alloc): Remove macro.
19849 (ggc_internal_cleared_alloc_stat): Drop _stat suffix.
19850 (ggc_internal_cleared_alloc): Remove macro.
19851 (GGC_RESIZEVEC): Adjust.
19852 (ggc_resizevar): Remove macro.
19853 (ggc_internal_vec_alloc_stat): Drop _stat suffix.
19854 (ggc_internal_cleared_vec_alloc_stat): Likewise.
19855 (ggc_internal_vec_cleared_alloc): Remove macro.
19856 (ggc_alloc_atomic_stat): Drop _stat suffix.
19857 (ggc_alloc_atomic): Remove macro.
19858 (ggc_alloc_cleared_atomic): Remove macro.
19859 (ggc_alloc_string_stat): Drop _stat suffix.
19860 (ggc_alloc_string): Remove macro.
19861 (ggc_alloc_rtx_def_stat): Adjust.
19862 (ggc_alloc_tree_node_stat): Likewise.
19863 (ggc_alloc_cleared_tree_node_stat): Likewise.
19864 (ggc_alloc_cleared_gimple_statement_stat): Likewise.
19865 (ggc_alloc_cleared_simd_clone_stat): Likewise.
19866 * gimple.c (gimple_build_omp_for): Likewise.
19867 (gimple_copy): Likewise.
19868 * stringpool.c (ggc_alloc_string_stat): Drop _stat suffix.
19869 * toplev.c (realloc_for_line_map): Adjust.
19870 * tree-data-ref.h (lambda_vector_new): Likewise.
19871 * tree-phinodes.c (allocate_phi_node): Likewise.
19872 * tree.c (grow_tree_vec_stat): Likewise.
19873 * vec.h (va_gc::reserve): Adjust.
19875 2014-05-17 Ajit Agarwal <ajitkum@xilinx.com>
19877 * config/microblaze/microblaze.c (break_handler): New Declaration.
19878 (microblaze_break_function_p,microblaze_is_break_handler): New.
19879 (compute_frame_size): Use microblaze_break_function_p.
19880 Add the test of break_handler.
19881 (microblaze_function_prologue) : Add the test of variable
19882 break_handler. Check the fnname by BREAK_HANDLER_NAME.
19883 (microblaze_function_epilogue) : Add the test of break_handler.
19884 (microblaze_globalize_label) : Add the test of break_handler.
19885 Check the name by BREAK_HANDLER_NAME.
19887 * config/microblaze/microblaze.h (BREAK_HANDLER_NAME): New macro
19889 * config/microblaze/microblaze.md (*<optab>,<optab>_internal): Add
19890 microblaze_is_break_handler test.
19891 (call_internal1,call_value_intern): Use microblaze_break_function_p.
19892 Use SYMBOL_REF_DECL.
19894 * config/microblaze/microblaze-protos.h
19895 (microblaze_break_function_p,microblaze_is_break_handler):
19898 * doc/extend.texi (MicroBlaze break_handler Functions): Document
19899 new MicroBlaze break_handler functions.
19901 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19903 * doc/extend.texi (Size of an asm): Move node text according
19904 to its @menu entry position.
19906 2014-05-17 Marc Glisse <marc.glisse@inria.fr>
19908 PR tree-optimization/61140
19909 PR tree-optimization/61150
19910 PR tree-optimization/61197
19911 * tree-ssa-phiopt.c (value_replacement): Punt on multiple phis.
19913 2014-05-17 Uros Bizjak <ubizjak@gmail.com>
19915 * doc/invoke.texi (free): Mention Alpha. Also enabled at -Os.
19917 2014-05-17 Richard Sandiford <r.sandiford@uk.ibm.com>
19919 * wide-int.cc: Only include longlong.h if W_TYPE_SIZE==32 or
19920 __SIZEOF_INT128__ is defined.
19922 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19924 * config/rs6000/rs6000.c (rs6000_real_tls_symbol_ref_p): New function.
19925 (rs6000_delegitimize_address): Use it.
19927 2014-05-17 Richard Sandiford <rdsandiford@googlemail.com>
19929 * emit-rtl.h (replace_equiv_address, replace_equiv_address_nv): Add an
19930 inplace argument. Store the new address in the original MEM when true.
19931 * emit-rtl.c (change_address_1): Likewise.
19932 (adjust_address_1, adjust_automodify_address_1, offset_address):
19933 Update accordingly.
19934 * rtl.h (plus_constant): Add an inplace argument.
19935 * explow.c (plus_constant): Likewise. Try to reuse the original PLUS
19936 when true. Avoid generating (plus X (const_int 0)).
19937 * function.c (instantiate_virtual_regs_in_rtx): Adjust the PLUS
19938 in-place. Pass true to plus_constant.
19939 (instantiate_virtual_regs_in_insn): Pass true to replace_equiv_address.
19941 2014-05-16 Dehao Chen <dehao@google.com>
19943 * tree-cfg.c (gimple_merge_blocks): Updates bb count with max count.
19945 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19948 * config/sh/predicates.md (negt_reg_shl31_operand): Match additional
19950 * config/sh/sh.md (*negt_msb): Merge SH2A and non-SH2A variants.
19952 2014-05-16 Dehao Chen <dehao@google.com>
19954 * ira-int.h (REG_FREQ_FROM_EDGE_FREQ): Use
19955 optimize_function_for_size_p.
19956 * regs.h (REG_FREQ_FROM_BB): Likewise.
19958 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19961 * config/sh/sh.c (sh_eval_treg_value): Handle t_reg_operand and
19962 negt_reg_operand cases.
19963 * config/sh/sh.md (*cset_zero): Likewise by using cbranch_treg_value
19965 * config/sh/predicates.md (cbranch_treg_value): Simplify.
19967 2014-05-16 Oleg Endo <olegendo@gcc.gnu.org>
19969 * config/sh/sh.c (sh_option_override): Set branch cost to 2 for all
19972 2014-05-16 David Malcolm <dmalcolm@redhat.com>
19975 2014-04-29 David Malcolm <dmalcolm@redhat.com>
19977 * tree-cfg.c (dump_function_to_file): Dump the return type of
19978 functions, in a line to itself before the function body, mimicking
19979 the layout of a C function.
19981 2014-05-16 Dehao Chen <dehao@google.com>
19983 * cfghooks.c (make_forwarder_block): Use direct computation to
19984 get fall-through edge's count and frequency.
19986 2014-05-16 Benno Schulenberg <bensberg@justemail.net>
19988 * config/arc/arc.c (arc_init): Fix typo in error message.
19989 * config/i386/i386.c (ix86_expand_builtin): Likewise.
19990 (split_stack_prologue_scratch_regno): Likewise.
19991 * fortran/check.c (gfc_check_fn_rc2008): Remove duplicate
19992 word from error message.
19994 2014-05-16 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
19996 * ira-costs.c: Fix typo in comment.
19998 2014-05-16 David Wohlferd <dw@LimeGreenSocks.com>
20000 * doc/extend.texi: (Visibility Pragmas) Fix misplaced @xref
20002 2014-05-16 Jan Hubicka <hubicka@ucw.cz>
20004 * varpool.c (dump_varpool_node): Dump write-only flag.
20005 * lto-cgraph.c (lto_output_varpool_node, input_varpool_node): Stream
20007 * tree-cfg.c (execute_fixup_cfg): Remove statements setting
20008 write-only variables.
20009 * ipa.c (process_references): New function.
20010 (set_readonly_bit): New function.
20011 (set_writeonly_bit): New function.
20012 (clear_addressable_bit): New function.
20013 (ipa_discover_readonly_nonaddressable_var): Mark write only variables;
20014 fix handling of aliases.
20015 * cgraph.h (struct varpool_node): Add writeonly flag.
20017 2014-05-16 Vladimir Makarov <vmakarov@redhat.com>
20019 PR rtl-optimization/60969
20020 * ira-costs.c (record_reg_classes): Allow only memory for pseudo.
20021 Calculate costs for this case.
20023 2014-05-16 Eric Botcazou <ebotcazou@adacore.com>
20025 * fold-const (fold_unary_loc) <NON_LVALUE_EXPR>: New case.
20026 <CASE_CONVERT>: Pass arg0 instead of op0 to fold_convert_const.
20028 2014-05-16 Richard Biener <rguenther@suse.de>
20030 PR tree-optimization/61194
20031 * tree-vect-patterns.c (adjust_bool_pattern): Also handle
20032 bool patterns ending in a COND_EXPR.
20034 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20036 * config/aarch64/aarch64.c (aarch64_rtx_mult_cost): Fix FNMUL case.
20038 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20040 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle the case
20041 where we were unable to cost an RTX.
20043 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20045 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost SYMBOL_REF,
20048 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20049 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20051 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost TRUNCATE.
20053 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20054 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20056 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost FMA,
20057 FLOAT_EXTEND, FLOAT_TRUNCATE, ABS, SMAX, and SMIN.
20059 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20060 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20062 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost comparison
20065 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20066 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20068 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20071 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20072 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20074 * config/aarch64/aarch64.c (aarch64_rtx_arith_op_extract_p): New.
20075 (aarch64_rtx_costs): Improve costs for SIGN/ZERO_EXTRACT.
20077 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20078 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20080 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costs for
20081 rotates and shifts.
20083 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20084 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20086 * config/aarch64/aarch64.c (aarch64_rtx_costs): Cost
20087 ZERO_EXTEND and SIGN_EXTEND better.
20089 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20090 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20092 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve cost for
20093 logical operations.
20095 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20096 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20098 * config/aarch64/aarch64.c (aarch64_rtx_costs): Use address
20099 costs when costing loads and stores to memory.
20101 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20102 Philip Tomsich <philipp.tomsich@theobroma-systems.com>
20104 * config/aarch64/aarch64.c (aarch64_rtx_costs): Improve costing
20107 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20109 * config/aarch64/aarch64.c (aarch64_rtx_costs): Set default costs.
20111 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20112 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20114 * config/aarch64/aarch64.c (aarch64_strip_shift_or_extend): Rename
20116 (aarch64_strip_extend): ...this, don't strip shifts, check RTX is
20118 (aarch64_rtx_mult_cost): New.
20119 (aarch64_rtx_costs): Use it, refactor as appropriate.
20121 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20122 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
20124 * config/aarch64/aarch64.c (aarch64_build_constant): Conditionally
20125 emit instructions, return number of instructions which would
20127 (aarch64_add_constant): Update call to aarch64_build_constant.
20128 (aarch64_output_mi_thunk): Likewise.
20129 (aarch64_rtx_costs): Estimate cost of a CONST_INT, cost of
20132 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20134 * config/aarch64/aarch64.c (aarch64_rtx_costs_wrapper): New.
20135 (TARGET_RTX_COSTS): Call it.
20137 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20139 * config/aarch64/aarch64.c (cortexa57_addrcost_table): New.
20140 (cortexa57_vector_cost): Likewise.
20141 (cortexa57_tunings): Use them.
20143 2014-05-16 James Greenhalgh <james.greenhalgh@arm.com>
20145 * config/aarch64/aarch64-protos.h (scale_addr_mode_cost): New.
20146 (cpu_addrcost_table): Use it.
20147 * config/aarch64/aarch64.c (generic_addrcost_table): Initialize it.
20148 (aarch64_address_cost): Rewrite using aarch64_classify_address,
20151 2014-05-16 Richard Biener <rguenther@suse.de>
20153 * tree-ssa-sccvn.c: Include tree-cfg.h and domwalk.h.
20154 (set_ssa_val_to): Handle unexpected sets to VN_TOP.
20155 (visit_phi): Ignore edges marked as not executable.
20156 (class cond_dom_walker): New.
20157 (cond_dom_walker::before_dom_children): Value-number
20158 control statements and mark successor edges as not
20159 executable if possible.
20160 (run_scc_vn): First walk all control statements in
20161 dominator order, marking edges as not executable.
20162 * tree-inline.c (copy_edges_for_bb): Be not confused
20163 about random edge flags.
20165 2014-05-16 Richard Biener <rguenther@suse.de>
20167 * tree-ssa-sccvn.c (visit_use): Also constant-fold calls.
20169 2014-05-15 Peter Bergner <bergner@vnet.ibm.com>
20172 * config/rs6000/htmxlintrin.h (_HTM_TBEGIN_STARTED): New define.
20173 (__TM_simple_begin): Use it.
20174 (__TM_begin): Likewise.
20176 2014-05-15 Martin Jambor <mjambor@suse.cz>
20179 * ipa-prop.c (update_indirect_edges_after_inlining): Check
20180 type_preserved flag when the indirect edge is polymorphic.
20182 2014-05-15 Martin Jambor <mjambor@suse.cz>
20184 PR tree-optimization/61090
20185 * tree-sra.c (sra_modify_expr): Pass the current gsi to
20186 build_ref_for_model.
20188 2014-05-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20190 * config/arm/arm.c (arm_option_override): Use the SCHED_PRESSURE_MODEL
20191 enum name for PARAM_SCHED_PRESSURE_ALGORITHM.
20193 2014-05-15 Jakub Jelinek <jakub@redhat.com>
20195 PR tree-optimization/61158
20196 * fold-const.c (fold_binary_loc): If X is zero-extended and
20197 shiftc >= prec, make sure zerobits is all ones instead of
20198 invoking undefined behavior.
20200 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20202 * regcprop.h: New file.
20203 * regcprop.c (skip_debug_insn_p): New decl.
20204 (replace_oldest_value_reg): Check skip_debug_insn_p.
20205 (copyprop_hardreg_forward_bb_without_debug_insn): New function.
20206 * shrink-wrap.c: Include regcprop.h.
20207 (prepare_shrink_wrap): Call
20208 copyprop_hardreg_forward_bb_without_debug_insn.
20210 2014-05-15 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20212 * shrink-wrap.h: Update comment.
20213 * shrink-wrap.c: Update comment.
20214 (next_block_for_reg): Rename to live_edge_for_reg.
20215 (live_edge_for_reg): Allow live_edge->dest has two predecessors.
20216 (move_insn_for_shrink_wrap): Split live_edge.
20217 (prepre_shrink_wrap): One more parameter for move_insn_for_shrink_wrap.
20219 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20221 * config/sparc/sparc-protos.h (sparc_absnegfloat_split_legitimate):
20223 * config/sparc/sparc.c (sparc_absnegfloat_split_legitimate): Likewise.
20224 * config/sparc/sparc.md (fptype_ut699): New attribute.
20225 (in_branch_delay): Return false if -mfix-ut699 is specified and
20226 fptype_ut699 is set to single.
20227 (truncdfsf2): Add fptype_ut699 attribute.
20228 (fix_truncdfsi2): Likewise.
20229 (floatsisf2): Change fptype attribute.
20230 (fix_truncsfsi2): Likewise.
20231 (negtf2_notv9): Delete.
20232 (negtf2_v9): Likewise.
20233 (negtf2_hq): New instruction.
20234 (negtf2): New instruction and splitter.
20235 (negdf2_notv9): Rewrite.
20236 (abstf2_notv9): Delete.
20237 (abstf2_hq_v9): Likewise.
20238 (abstf2_v9): Likewise.
20239 (abstf2_hq): New instruction.
20240 (abstf2): New instruction and splitter.
20241 (absdf2_notv9): Rewrite.
20243 2014-05-14 Cary Coutant <ccoutant@google.com>
20246 * opts.c (common_handle_option): Don't special-case "-g".
20247 (set_debug_level): Default to at least level 2 with "-g".
20249 2014-05-14 DJ Delorie <dj@redhat.com>
20251 * config/msp430/msp430.c (msp430_builtin): Add
20252 MSP430_BUILTIN_DELAY_CYCLES.
20253 (msp430_init_builtins): Register void __delay_cycles(long long).
20254 (msp430_builtin_decl): Add it.
20255 (cg_magic_constant): New.
20256 (msp430_expand_delay_cycles): New.
20257 (msp430_expand_builtin): Call it.
20258 (msp430_print_operand_raw): Change integer printing from "int" to
20260 * config/msp430/msp430.md (define_constants): Add delay_cycles tags.
20261 (delay_cycles_start): New.
20262 (delay_cycles_end): New.
20263 (delay_cycles_32): New.
20264 (delay_cycles_32x): New.
20265 (delay_cycles_16): New.
20266 (delay_cycles_16x): New.
20267 (delay_cycles_2): New.
20268 (delay_cycles_1): New.
20269 * doc/extend.texi: Document __delay_cycles().
20271 2014-05-14 Sandra Loosemore <sandra@codesourcery.com>
20273 * config/nios2/nios2.md (nios2_cbranch): Fix paste-o in
20274 length attribute computation.
20276 2014-05-14 Richard Sandiford <rdsandiford@googlemail.com>
20279 * print-rtl.c (print_rtx): Suppress uids if flag_dump_unnumbered.
20281 2014-05-14 Richard Sandiford <r.sandiford@uk.ibm.com>
20284 * config/sparc/sparc.md: Fix types of low and high in DI constant
20285 splitter. Use gen_int_mode in some other splitters.
20287 2014-05-14 Martin Jambor <mjambor@suse.cz>
20290 * ipa-prop.c (ipa_modify_formal_parameters): Reset DECL_LANG_SPECIFIC.
20292 2014-05-14 James Norris <jnorris@codesourcery.com>
20294 * omp-low.c (expand_parallel_call): Remove shadow variable.
20295 (expand_omp_taskreg): Likewise.
20297 2014-05-14 Ilya Tocar <ilya.tocar@intel.com>
20299 * common/config/i386/i386-common.c
20300 (OPTION_MASK_ISA_CLFLUSHOPT_SET): Define.
20301 (OPTION_MASK_ISA_XSAVES_SET): Ditto.
20302 (OPTION_MASK_ISA_XSAVEC_SET): Ditto.
20303 (OPTION_MASK_ISA_CLFLUSHOPT_UNSET): Ditto.
20304 (OPTION_MASK_ISA_XSAVES_UNSET): Ditto.
20305 (OPTION_MASK_ISA_XSAVEC_UNSET): Ditto.
20306 (ix86_handle_option): Handle OPT_mxsavec, OPT_mxsaves, OPT_mclflushopt.
20307 * config.gcc (i[34567]86-*-*): Add clflushoptintrin.h,
20308 xsavecintrin.h, xsavesintrin.h.
20309 (x86_64-*-*): Ditto.
20310 * config/i386/clflushoptintrin.h: New.
20311 * config/i386/xsavecintrin.h: Ditto.
20312 * config/i386/xsavesintrin.h: Ditto.
20313 * config/i386/cpuid.h (bit_CLFLUSHOPT): Define.
20314 (bit_XSAVES): Ditto.
20315 (bit_XSAVES): Ditto.
20316 * config/i386/driver-i386.c (host_detect_local_cpu): Handle
20317 -mclflushopt, -mxsavec, -mxsaves, -mno-xsaves, -mno-xsavec,
20319 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
20320 OPTION_MASK_ISA_CLFLUSHOPT, OPTION_MASK_ISA_XSAVEC,
20321 OPTION_MASK_ISA_XSAVES.
20322 * config/i386/i386.c (ix86_target_string): Handle -mclflushopt,
20323 -mxsavec, -mxsaves.
20324 (PTA_CLFLUSHOPT) Define.
20325 (PTA_XSAVEC): Ditto.
20326 (PTA_XSAVES): Ditto.
20327 (ix86_option_override_internal): Handle new options.
20328 (ix86_valid_target_attribute_inner_p): Ditto.
20329 (ix86_builtins): Add IX86_BUILTIN_XSAVEC, IX86_BUILTIN_XSAVEC64,
20330 IX86_BUILTIN_XSAVES, IX86_BUILTIN_XRSTORS, IX86_BUILTIN_XSAVES64,
20331 IX86_BUILTIN_XRSTORS64, IX86_BUILTIN_CLFLUSHOPT.
20332 (bdesc_special_args): Add __builtin_ia32_xsaves,
20333 __builtin_ia32_xrstors, __builtin_ia32_xsavec, __builtin_ia32_xsaves64,
20334 __builtin_ia32_xrstors64, __builtin_ia32_xsavec64.
20335 (ix86_init_mmx_sse_builtins): Add __builtin_ia32_clflushopt.
20336 (ix86_expand_builtin): Handle new builtins.
20337 * config/i386/i386.h (TARGET_CLFLUSHOPT) Define.
20338 (TARGET_CLFLUSHOPT_P): Ditto.
20339 (TARGET_XSAVEC): Ditto.
20340 (TARGET_XSAVEC_P): Ditto.
20341 (TARGET_XSAVES): Ditto.
20342 (TARGET_XSAVES_P): Ditto.
20343 * config/i386/i386.md (ANY_XSAVE): Add UNSPECV_XSAVEC, UNSPECV_XSAVES.
20344 (ANY_XSAVE64)" Add UNSPECV_XSAVEC64, UNSPECV_XSAVES64.
20345 (attr xsave): Add xsavec, xsavec64, xsaves, xsaves64.
20347 (ANY_XRSTOR64): Ditto.
20349 (xrstor): Change into <xrstor>.
20350 (xrstor_rex64): Change into <xrstor>_rex64.
20351 (xrstor64): Change into <xrstor>64
20353 * config/i386/i386.opt (mclflushopt): New.
20356 * config/i386/x86intrin.h: Add clflushoptintrin.h, xsavesintrin.h,
20358 * doc/invoke.texi: Document new options.
20360 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20362 PR rtl-optimization/60866
20363 * sel-sched-ir (sel_init_new_insn): New parameter old_seqno.
20364 Default it to -1. Pass it down to init_simplejump_data.
20365 (init_simplejump_data): New parameter old_seqno. Pass it down
20366 to get_seqno_for_a_jump.
20367 (get_seqno_for_a_jump): New parameter old_seqno. Use it for
20368 initializing new jump seqno as a last resort. Add comment.
20369 (sel_redirect_edge_and_branch): Save old seqno of the conditional
20370 jump and pass it down to sel_init_new_insn.
20371 (sel_redirect_edge_and_branch_force): Likewise.
20373 2014-05-14 Georg-Johann Lay <avr@gjlay.de>
20375 * config/avr/avr.h (REG_CLASS_CONTENTS): Use unsigned suffix for
20376 shifted values to avoid build warning.
20378 2014-05-14 Eric Botcazou <ebotcazou@adacore.com>
20380 * cfgcleanup.c (try_forward_edges): Use location_t for locations.
20381 * cfgrtl.c (rtl_merge_blocks): Fix comment.
20382 (cfg_layout_merge_blocks): Likewise.
20383 * except.c (emit_to_new_bb_before): Remove prev_bb local variable.
20385 2014-05-14 Andrey Belevantsev <abel@ispras.ru>
20387 PR rtl-optimization/60901
20388 * config/i386/i386.c (ix86_dependencies_evaluation_hook): Check that
20389 bb predecessor belongs to the same scheduling region. Adjust comment.
20391 2014-05-13 Peter Bergner <bergner@vnet.ibm.com>
20393 * doc/sourcebuild.texi: (dfp_hw): Document.
20394 (p8vector_hw): Likewise.
20395 (powerpc_eabi_ok): Likewise.
20396 (powerpc_elfv2): Likewise.
20397 (powerpc_htm_ok): Likewise.
20398 (ppc_recip_hw): Likewise.
20399 (vsx_hw): Likewise.
20401 2014-05-13 Cary Coutant <ccoutant@google.com>
20403 * opts.c (finish_options): Use -ggnu-pubnames with -gsplit-dwarf.
20405 2014-05-13 David Malcolm <dmalcolm@redhat.com>
20407 * gengtype-parse.c (require3): Eliminate in favor of...
20409 (require_template_declaration): Update to support optional single *
20412 * gengtype.c (get_ultimate_base_class): Add a non-const overload.
20413 (create_user_defined_type): Handle a single level of explicit
20414 pointerness within template arguments.
20415 (struct write_types_data): Add field "kind".
20416 (filter_type_name): Handle "*" character.
20417 (write_user_func_for_structure_ptr): Require a write_types_data
20418 rather than just a prefix string, so that we can look up the kind
20419 of the wtd and use it as an index into wrote_user_func_for_ptr,
20420 ensuring that such functions are written at most once. Support
20421 subclasses by invoking the marking function of the ultimate base class.
20422 (write_user_func_for_structure_body): Require a write_types_data
20423 rather than just a prefix string, so that we can pass this to
20424 write_user_func_for_structure_ptr.
20425 (write_func_for_structure): Likewise.
20426 (ggc_wtd): Add initializer of new "kind" field.
20427 (pch_wtd): Likewise.
20429 * gengtype.h (enum write_types_kinds): New.
20430 (struct type): Add field wrote_user_func_for_ptr to the "s"
20433 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20435 * fold-const.c (optimize_bit_field_compare): Use wi:: operations
20436 instead of const_binop.
20437 (fold_binary_loc): Likewise.
20439 2014-05-13 Richard Sandiford <r.sandiford@uk.ibm.com>
20441 * tree-dfa.h (get_addr_base_and_unit_offset_1): Update array index
20442 calculation to match get_ref_base_and_extent.
20444 2014-05-13 Catherine Moore <clm@codesourcery.com>
20445 Sandra Loosemore <sandra@codesourcery.com>
20447 * configure.ac: Fix assembly for explicit JALR relocation check.
20448 * configure: Regenerate.
20450 2014-05-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
20452 * config/arm/arm.c (neon_itype): Remove NEON_RESULTPAIR.
20453 (arm_init_neon_builtins): Remove handling of NEON_RESULTPAIR.
20454 Remove associated type declarations and initialisations.
20455 (arm_expand_neon_builtin): Likewise.
20456 (neon_emit_pair_result_insn): Delete.
20457 * config/arm/arm_neon_builtins (vtrn, vzip, vuzp): Delete.
20458 * config/arm/neon.md (neon_vtrn<mode>): Delete.
20459 (neon_vzip<mode>): Likewise.
20460 (neon_vuzp<mode>): Likewise.
20462 2014-05-13 Richard Biener <rguenther@suse.de>
20465 * tree-inline.c (remap_gimple_stmt): Clear tail call flag,
20466 it needs revisiting whether the call still may be tail-called.
20468 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20470 * rtl.def (SYMBOL_REF): Remove middle "0" field.
20471 * rtl.h (block_symbol): Reduce number of fields to 2.
20472 (rtx_def): Add u2.symbol_ref_flags.
20473 (SYMBOL_REF_FLAGS): Use it.
20474 (SYMBOL_REF_DATA, SET_SYMBOL_REF_DECL, SYMBOL_REF_DECL)
20475 (SET_SYMBOL_REF_CONSTANT, SYMBOL_REF_CONSTANT): Lower index.
20476 * gengtype.c (adjust_field_rtx_def): Remove SYMBOL_REF_FLAGS handling.
20477 Lower index of SYMBOL_REF_DATA.
20478 * print-rtl.c (print_rtx): Lower index for SYMBOL_REF_DATA.
20479 Print SYMBOL_REF_FLAGS at the same time.
20480 * genattrtab.c (attr_rtx_1): Only initialize 1 "0" SYMBOL_REF field.
20482 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20484 * rtl.def (VAR_LOCATION): Remove "i" field.
20485 * rtl.h (rtx_def): Add u2.var_location_status.
20486 (PAT_VAR_LOCATION_STATUS): Use it.
20487 (gen_rtx_VAR_LOCATION): Declare.
20488 * gengenrtl.c (excluded_rtx): Add VAR_LOCATION.
20489 * emit-rtl.c (gen_rtx_VAR_LOCATION): New function.
20490 * var-tracking.c (emit_note_insn_var_location): Remove casts.
20492 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20494 * rtl.def (scratch): Fix outdated comment and remove "0" field.
20495 * gengtype.c (adjust_field_rtx_def): Update accordingly.
20497 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20499 * rtl.def (DEBUG_INSN, INSN, JUMP_INSN, CALL_INSN, JUMP_TABLE_DATA)
20500 (BARRIER, CODE_LABEL, NOTE): Remove first "i" field.
20501 * rtl.h (rtx_def): Add insn_uid to u2 field.
20502 (RTX_FLAG_CHECK8): Delete in favor of...
20503 (RTL_INSN_CHAIN_FLAG_CHECK): ...this new macro.
20504 (INSN_DELETED_P): Update accordingly.
20505 (INSN_UID): Use u2.insn_uid.
20506 (INSN_CHAIN_CODE_P): Define.
20507 (PREV_INSN, NEXT_INSN, BLOCK_FOR_INSN, PATTERN, INSN_LOCATION)
20508 (INSN_CODE, REG_NOTES, CALL_INSN_FUNCTION_USAGE, CODE_LABEL_NUMBER)
20509 (NOTE_DATA, NOTE_DELETED_LABEL_NAME, NOTE_BLOCK, NOTE_EH_HANDLER)
20510 (NOTE_BASIC_BLOCK, NOTE_VAR_LOCATION, NOTE_CFI, NOTE_LABEL_NUMBER)
20511 (NOTE_KIND, LABEL_NAME, LABEL_NUSES, JUMP_LABEL, LABEL_REFS): Lower
20512 indices accordingly.
20513 * print-rtl.c (print_rtx): Print INSN_UIDs before the main loop.
20514 Update indices for insn-chain rtxes.
20515 * gengtype.c (gen_rtx_next): Adjust test for insn-chain rtxes.
20516 (adjust_field_rtx_def): Lower '0' indices for all insn-chain rtxes.
20517 * emit-rtl.c (gen_label_rtx): Update gen_rtx_LABEL call.
20518 * caller-save.c (init_caller_save): Update gen_rtx_INSN calls.
20519 * combine.c (try_combine): Likewise.
20520 * ira.c (setup_prohibited_mode_move_regs): Likewise.
20522 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20524 * rtl.def (REG): Remove middle field.
20525 * rtl.h (rtx_def): Add orignal_regno to u2.
20526 (ORIGINAL_REGNO): Use it instead of field 1.
20527 (REG_ATTRS): Lower field index accordingly.
20528 * gengtype.c (adjust_field_rtx_def): Remove handling of
20529 ORIGINAL_REGNO. Move REG_ATTRS index down.
20530 * print-rtl.c (print_rtx): Move ORIGINAL_REGNO handling to the
20531 code that prints the REGNO.
20533 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20535 * print-rtl.c (print_rtx): Guard whole '0' block with ifndef
20538 2014-05-13 Richard Sandiford <rdsandiford@googlemail.com>
20540 * rtl.h (rtx_def): Mark u2 as GTY ((skip)).
20542 2014-05-13 Bin Cheng <bin.cheng@arm.com>
20544 * tree-ssa-loop-ivopts.c (contain_complex_addr_expr): New.
20545 (alloc_iv): Lower base expressions containing ADDR_EXPR.
20547 2014-05-13 Ian Bolton <ian.bolton@arm.com>
20549 * config/aarch64/aarch64-protos.h
20550 (aarch64_hard_regno_caller_save_mode): New prototype.
20551 * config/aarch64/aarch64.c (aarch64_hard_regno_caller_save_mode):
20553 * config/aarch64/aarch64.h (HARD_REGNO_CALLER_SAVE_MODE): New macro.
20555 2014-05-13 Christian Bruel <christian.bruel@st.com>
20557 * target.def (mode_switching): New hook vector.
20558 (mode_emit, mode_needed, mode_after, mode_entry): New hooks.
20559 (mode_exit, modepriority_to_mode): Likewise.
20560 * mode-switching.c (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Hookify.
20561 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20562 * target.h: Include tm.h and hard-reg-set.h.
20563 * doc/tm.texi.in (EMIT_MODE_SET, MODE_NEEDED, MODE_AFTER, MODE_ENTRY)
20564 (MODE_EXIT, MODE_PRIORITY_TO_MODE): Delete and hookify.
20565 * doc/tm.texi Regenerate.
20566 * config/sh/sh.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20567 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20568 * config/sh/sh.c (sh_emit_mode_set, sh_mode_priority): Hookify.
20569 (sh_mode_needed, sh_mode_after, sh_mode_entry, sh_mode_exit): Likewise.
20570 * config/i386/i386.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY): Delete
20571 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20572 * config/i386/i386-protos.h (ix86_mode_needed, ix86_mode_after)
20573 (ix86_mode_entrym, ix86_emit_mode_set): Remove external declaration.
20574 * config/i386/i386.c (ix86_mode_needed, ix86_mode_after,
20575 (ix86_mode_exit, ix86_mode_entry, ix86_mode_priority)
20576 (ix86_emit_mode_set): Hookify.
20577 * config/epiphany/epiphany.h (MODE_NEEDED, MODE_AFTER, MODE_ENTRY):
20579 (MODE_EXIT, MODE_PRIORITY_TO_MODE, EMIT_MODE_SET): Likewise.
20580 * config/epiphany/epiphany-protos.h (epiphany_mode_needed)
20581 (emit_set_fp_mode, epiphany_mode_entry_exit, epiphany_mode_after)
20582 (epiphany_mode_priority_to_mode): Remove declaration.
20583 * config/epiphany/epiphany.c (emit_set_fp_mode): Hookify.
20584 (epiphany_mode_needed, epiphany_mode_priority_to_mode): Likewise.
20585 (epiphany_mode_entry, epiphany_mode_exit, epiphany_mode_after):
20587 (epiphany_mode_priority_to_mode): Change priority type. Hookify.
20588 (epiphany_mode_needed, epiphany_mode_entry_exit): Hookify.
20589 (epiphany_mode_after, epiphany_mode_entry, emit_set_fp_mode): Hookify.
20591 2014-05-13 Jakub Jelinek <jakub@redhat.com>
20594 * config/i386/i386.c (ix86_expand_set_or_movmem): If count_exp
20595 is const0_rtx, return immediately. Don't test count == 0 when
20598 2014-05-13 Zhenqiang Chen <zhenqiang.chen@linaro.org>
20600 * Makefile.in: add shrink-wrap.o.
20601 * config/i386/i386.c: include "shrink-wrap.h"
20602 * function.c: Likewise.
20603 (requires_stack_frame_p, next_block_for_reg,
20604 move_insn_for_shrink_wrap, prepare_shrink_wrap,
20605 dup_block_and_redirect): Move to shrink-wrap.c
20606 (thread_prologue_and_epilogue_insns): Extract three code segments
20607 as functions in shrink-wrap.c
20608 * function.h: Move #ifdef HAVE_simple_return ... #endif block to
20610 * shrink-wrap.c: New file.
20611 * shrink-wrap.h: New file.
20613 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20615 * doc/extend.texi: Reflect current numbers of pragmas. Remove
20616 reference to Solaris.
20618 2014-05-12 Mike Stump <mikestump@comcast.net>
20621 * genattrtab.c (filename): Add.
20622 (convert_set_attr_alternative): Improve error message.
20623 (check_defs): Restore read_md_filename for error messages.
20624 (gen_insn): Save filename.
20626 2014-05-12 Dimitris Papavasiliou <dpapavas@gmail.com>
20628 * doc/invoke.texi: Document new switches -Wno-shadow-ivar,
20629 -fno-local-ivars and -fivar-visibility.
20630 * c-family/c.opt: Make -Wshadow also implicitly enable
20633 2014-05-12 David Wohlferd <dw@LimeGreenSocks.com>
20635 * doc/tm.texi: Remove reference to deleted macro.
20636 * doc/tm.texi.in: Likewise.
20638 2014-05-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
20641 * config/avr/avr.c (avr_out_store_psi): Use correct constant
20644 2014-05-12 Georg-Johann Lay <avr@gjlay.de>
20647 * config/arm/arm.h (License): Add GCC Runtime Library Exception.
20648 * config/arm/aout.h (License): Same.
20649 * config/arm/bpabi.h (License): Same.
20650 * config/arm/elf.h (License): Same.
20651 * config/arm/linux-elf.h (License): Same.
20652 * config/arm/linux-gas.h (License): Same.
20653 * config/arm/netbsd-elf.h (License): Same.
20654 * config/arm/uclinux-eabi.h (License): Same.
20655 * config/arm/uclinux-elf.h (License): Same.
20656 * config/arm/vxworks.h (License): Same.
20658 2014-05-11 Jakub Jelinek <jakub@redhat.com>
20660 * tree.h (OMP_CLAUSE_LINEAR_STMT): Define.
20661 * tree.c (omp_clause_num_ops): Increase OMP_CLAUSE_LINEAR
20662 number of operands to 3.
20663 (walk_tree_1): Walk all operands of OMP_CLAUSE_LINEAR.
20664 * tree-nested.c (convert_nonlocal_omp_clauses,
20665 convert_local_omp_clauses): Handle OMP_CLAUSE_DEPEND.
20666 * gimplify.c (gimplify_scan_omp_clauses): Handle
20667 OMP_CLAUSE_LINEAR_STMT.
20668 * omp-low.c (lower_rec_input_clauses): Fix typo.
20669 (maybe_add_implicit_barrier_cancel, lower_omp_1): Add
20670 cast between Fortran boolean_type_node and C _Bool if
20673 2014-05-11 Richard Sandiford <rdsandiford@googlemail.com>
20675 PR tree-optimization/61136
20676 * wide-int.h (multiple_of_p): Define a version that doesn't return
20678 * fold-const.c (extract_muldiv_1): Use wi::multiple_of_p instead of an
20679 integer_zerop/const_binop pair.
20680 (multiple_of_p): Likewise, converting both operands to widest_int
20683 2014-05-09 Teresa Johnson <tejohnson@google.com>
20685 * cgraphunit.c (analyze_functions): Use correct dump file.
20687 2014-05-09 Florian Weimer <fweimer@redhat.com>
20689 * cfgexpand.c (stack_protect_decl_p): New function, extracted from
20691 (stack_protect_return_slot_p): New function.
20692 (expand_used_vars): Call stack_protect_decl_p and
20693 stack_protect_return_slot_p for -fstack-protector-strong.
20695 2014-05-09 David Wohlferd <LimeGreenSocks@yahoo.com>
20696 Andrew Haley <aph@redhat.com>
20697 Richard Sandiford <rdsandiford@googlemail.com>
20699 * doc/extend.texi: Rewrite inline asm page / re-org asm-related
20702 2014-05-09 Kenneth Zadeck <zadeck@naturalbridge.com>
20704 PR middle-end/61111
20705 * fold-const.c (fold_binary_loc): Changed width of mask.
20707 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20709 * config/avr/avr-fixed.md (round<mode>3): Use -1U instead of -1 in
20710 unsigned int initializers for regno_in, regno_out.
20712 2014-05-09 Georg-Johann Lay <avr@gjlay.de>
20715 * config/avr/avr.md (cc): Add new attribute set_vzn.
20716 (addqi3, addqq3, adduqq3, subqi3, subqq3, subuqq3, negqi2) [cc]:
20717 Set cc insn attribute to set_vzn instead of set_zn for alternatives
20718 with INC, DEC or NEG.
20719 * config/avr/avr.c (avr_notice_update_cc): Handle SET_VZN.
20720 (avr_out_plus_1): ADIW sets cc0 to CC_SET_CZN.
20721 INC, DEC and ADD+ADC set cc0 to CC_CLOBBER.
20723 2014-05-09 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20726 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20728 * wide-int.cc (UTItype): Define.
20729 (UDWtype): Define for appropriate W_TYPE_SIZE.
20731 2014-05-09 Richard Biener <rguenther@suse.de>
20733 * Makefile.in (GTFILES): Remove tree-ssa-propagate.c.
20734 * tree-ssa-propagate.c: Do not include gt-tree-ssa-propagate.h.
20735 (interesting_ssa_edges, varying_ssa_edges): Move out of GC space.
20736 (add_ssa_edge, process_ssa_edge_worklist, ssa_prop_init,
20737 ssa_propagate): Adjust.
20739 2014-05-08 Jeff Law <law@redhat.com>
20741 PR tree-optimization/61009
20742 * tree-ssa-threadedge.c (thread_through_normal_block): Return a
20743 tri-state rather than a boolean. When a block is too big to
20744 thread through, inform caller via negative return value.
20745 (thread_across_edge): If a block was too big for normal threading,
20746 then it's too big for a joiner too, so remove temporary equivalences
20747 and return immediately.
20749 2014-05-08 Manuel López-Ibáñez <manu@gcc.gnu.org>
20750 Matthias Klose <doko@ubuntu.com>
20753 * optc-gen.awk: Fix option handling for -Wunused-parameter.
20755 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20758 * config/i386/i386.c (PTA_HASWELL): Remove PTA_RTM.
20760 2014-05-08 Uros Bizjak <ubizjak@gmail.com>
20763 * config/alpha/alpha.c: Include gimple-iterator.h.
20764 (alpha_gimple_fold_builtin): New function. Move
20765 ALPHA_BUILTIN_UMULH folding from ...
20766 (alpha_fold_builtin): ... here.
20767 (TARGET_GIMPLE_FOLD_BUILTIN): New define.
20769 2014-05-08 Wei Mi <wmi@google.com>
20772 * config/i386/i386.c (ix86_compute_frame_layout): Update
20773 preferred_stack_boundary for call, expanded from tls descriptor.
20774 * config/i386/i386.md (*tls_global_dynamic_32_gnu): Update RTX
20775 to depend on SP register.
20776 (*tls_local_dynamic_base_32_gnu): Ditto.
20777 (*tls_local_dynamic_32_once): Ditto.
20778 (tls_global_dynamic_64_<mode>): Set
20779 ix86_tls_descriptor_calls_expanded_in_cfun.
20780 (tls_local_dynamic_base_64_<mode>): Ditto.
20781 (tls_global_dynamic_32): Set
20782 ix86_tls_descriptor_calls_expanded_in_cfun. Update RTX
20783 to depend on SP register.
20784 (tls_local_dynamic_base_32): Ditto.
20786 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20788 * config/arm/arm_neon.h: Update comment.
20789 * config/arm/neon-docgen.ml: Delete.
20790 * config/arm/neon-gen.ml: Delete.
20791 * doc/arm-neon-intrinsics.texi: Update comment.
20793 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20795 * config/arm/arm_neon_builtins.def (vadd, vsub): Only define the v2sf
20797 (vand, vorr, veor, vorn, vbic): Remove.
20798 * config/arm/neon.md (neon_vadd, neon_vsub, neon_vadd_unspec): Adjust
20800 (neon_vsub_unspec): Likewise.
20801 (neon_vorr, neon_vand, neon_vbic, neon_veor, neon_vorn): Remove.
20803 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20805 * config/arm/arm_neon.h (vadd_s8): GNU C implementation
20806 (vadd_s16): Likewise.
20807 (vadd_s32): Likewise.
20808 (vadd_f32): Likewise.
20809 (vadd_u8): Likewise.
20810 (vadd_u16): Likewise.
20811 (vadd_u32): Likewise.
20812 (vadd_s64): Likewise.
20813 (vadd_u64): Likewise.
20814 (vaddq_s8): Likewise.
20815 (vaddq_s16): Likewise.
20816 (vaddq_s32): Likewise.
20817 (vaddq_s64): Likewise.
20818 (vaddq_f32): Likewise.
20819 (vaddq_u8): Likewise.
20820 (vaddq_u16): Likewise.
20821 (vaddq_u32): Likewise.
20822 (vaddq_u64): Likewise.
20823 (vmul_s8): Likewise.
20824 (vmul_s16): Likewise.
20825 (vmul_s32): Likewise.
20826 (vmul_f32): Likewise.
20827 (vmul_u8): Likewise.
20828 (vmul_u16): Likewise.
20829 (vmul_u32): Likewise.
20830 (vmul_p8): Likewise.
20831 (vmulq_s8): Likewise.
20832 (vmulq_s16): Likewise.
20833 (vmulq_s32): Likewise.
20834 (vmulq_f32): Likewise.
20835 (vmulq_u8): Likewise.
20836 (vmulq_u16): Likewise.
20837 (vmulq_u32): Likewise.
20838 (vsub_s8): Likewise.
20839 (vsub_s16): Likewise.
20840 (vsub_s32): Likewise.
20841 (vsub_f32): Likewise.
20842 (vsub_u8): Likewise.
20843 (vsub_u16): Likewise.
20844 (vsub_u32): Likewise.
20845 (vsub_s64): Likewise.
20846 (vsub_u64): Likewise.
20847 (vsubq_s8): Likewise.
20848 (vsubq_s16): Likewise.
20849 (vsubq_s32): Likewise.
20850 (vsubq_s64): Likewise.
20851 (vsubq_f32): Likewise.
20852 (vsubq_u8): Likewise.
20853 (vsubq_u16): Likewise.
20854 (vsubq_u32): Likewise.
20855 (vsubq_u64): Likewise.
20856 (vand_s8): Likewise.
20857 (vand_s16): Likewise.
20858 (vand_s32): Likewise.
20859 (vand_u8): Likewise.
20860 (vand_u16): Likewise.
20861 (vand_u32): Likewise.
20862 (vand_s64): Likewise.
20863 (vand_u64): Likewise.
20864 (vandq_s8): Likewise.
20865 (vandq_s16): Likewise.
20866 (vandq_s32): Likewise.
20867 (vandq_s64): Likewise.
20868 (vandq_u8): Likewise.
20869 (vandq_u16): Likewise.
20870 (vandq_u32): Likewise.
20871 (vandq_u64): Likewise.
20872 (vorr_s8): Likewise.
20873 (vorr_s16): Likewise.
20874 (vorr_s32): Likewise.
20875 (vorr_u8): Likewise.
20876 (vorr_u16): Likewise.
20877 (vorr_u32): Likewise.
20878 (vorr_s64): Likewise.
20879 (vorr_u64): Likewise.
20880 (vorrq_s8): Likewise.
20881 (vorrq_s16): Likewise.
20882 (vorrq_s32): Likewise.
20883 (vorrq_s64): Likewise.
20884 (vorrq_u8): Likewise.
20885 (vorrq_u16): Likewise.
20886 (vorrq_u32): Likewise.
20887 (vorrq_u64): Likewise.
20888 (veor_s8): Likewise.
20889 (veor_s16): Likewise.
20890 (veor_s32): Likewise.
20891 (veor_u8): Likewise.
20892 (veor_u16): Likewise.
20893 (veor_u32): Likewise.
20894 (veor_s64): Likewise.
20895 (veor_u64): Likewise.
20896 (veorq_s8): Likewise.
20897 (veorq_s16): Likewise.
20898 (veorq_s32): Likewise.
20899 (veorq_s64): Likewise.
20900 (veorq_u8): Likewise.
20901 (veorq_u16): Likewise.
20902 (veorq_u32): Likewise.
20903 (veorq_u64): Likewise.
20904 (vbic_s8): Likewise.
20905 (vbic_s16): Likewise.
20906 (vbic_s32): Likewise.
20907 (vbic_u8): Likewise.
20908 (vbic_u16): Likewise.
20909 (vbic_u32): Likewise.
20910 (vbic_s64): Likewise.
20911 (vbic_u64): Likewise.
20912 (vbicq_s8): Likewise.
20913 (vbicq_s16): Likewise.
20914 (vbicq_s32): Likewise.
20915 (vbicq_s64): Likewise.
20916 (vbicq_u8): Likewise.
20917 (vbicq_u16): Likewise.
20918 (vbicq_u32): Likewise.
20919 (vbicq_u64): Likewise.
20920 (vorn_s8): Likewise.
20921 (vorn_s16): Likewise.
20922 (vorn_s32): Likewise.
20923 (vorn_u8): Likewise.
20924 (vorn_u16): Likewise.
20925 (vorn_u32): Likewise.
20926 (vorn_s64): Likewise.
20927 (vorn_u64): Likewise.
20928 (vornq_s8): Likewise.
20929 (vornq_s16): Likewise.
20930 (vornq_s32): Likewise.
20931 (vornq_s64): Likewise.
20932 (vornq_u8): Likewise.
20933 (vornq_u16): Likewise.
20934 (vornq_u32): Likewise.
20935 (vornq_u64): Likewise.
20937 2014-05-08 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
20939 * wide-int.cc (UTItype): Define.
20940 (UDWtype): Define for appropriate W_TYPE_SIZE.
20942 2014-05-08 Marc Glisse <marc.glisse@inria.fr>
20944 PR tree-optimization/59100
20945 * tree-ssa-phiopt.c: Include tree-inline.h.
20946 (neutral_element_p, absorbing_element_p): New functions.
20947 (value_replacement): Handle conditional binary operations with a
20948 neutral or absorbing element.
20950 2014-05-08 Richard Biener <rguenther@suse.de>
20952 * tree-ssa-sccvn.c (vn_get_expr_for): Valueize operands before
20953 folding the expression.
20954 (valueize_expr): Remove.
20955 (visit_reference_op_load): Do not valueize the result of
20957 (simplify_binary_expression): Likewise.
20958 (simplify_unary_expression): Likewise.
20960 2014-05-08 Richard Biener <rguenther@suse.de>
20962 * gimplify.c (gimplify_call_expr): Use saved fnptrtype for
20963 looking at TYPE_ARG_TYPES.
20965 2014-05-08 Richard Biener <rguenther@suse.de>
20967 * gimple-fold.c (gimple_fold_stmt_to_constant_1): Remove
20968 pointer propagation special-case.
20970 2014-05-08 Bin Cheng <bin.cheng@arm.com>
20972 * tree-affine.c (tree_to_aff_combination): Handle MEM_REF for
20973 core part of address expressions.
20975 2014-05-08 Alan Modra <amodra@gmail.com>
20978 * config/rs6000/rs6000.c (expand_block_move): Allow 64-bit
20979 loads and stores when -mno-strict-align at any alignment.
20980 (expand_block_clear): Similarly. Also correct calculation of
20983 2014-05-07 Thomas Preud'homme <thomas.preudhomme@arm.com>
20985 PR middle-end/39246
20986 * tree-complex.c (expand_complex_move): Keep line info when expanding
20988 * tree-ssa-uninit.c (warn_uninit): New argument. Ignore assignment
20989 of complex expression. Use new argument to display correct location
20990 for values coming from phi statement.
20991 (warn_uninitialized_vars): Adapt to new signature of warn_uninit.
20992 (warn_uninitialized_phi): Pass location of phi argument to
20994 * tree-ssa.c (ssa_undefined_value_p): For SSA_NAME initialized by a
20995 COMPLEX_EXPR, recurse on each part of the COMPLEX_EXPR.
20997 2014-05-07 Segher Boessenkool <segher@kernel.crashing.org>
20999 * config/rs6000/predicates.md (indexed_address_mem): New.
21000 * config/rs6000/rs6000.md (type): Remove load_ext, load_ext_u,
21001 load_ext_ux, load_ux, load_u, store_ux, store_u, fpload_ux, fpload_u,
21002 fpstore_ux, fpstore_u.
21003 (sign_extend, indexed, update): New.
21004 (cell_micro): Adjust.
21005 (*zero_extend<mode>di2_internal1, *zero_extendsidi2_lfiwzx,
21006 *extendsidi2_lfiwax, *extendsidi2_nocell, *extendsfdf2_fpr,
21007 *movsi_internal1, *movsi_internal1_single, *movhi_internal,
21008 *movqi_internal, *movcc_internal1, mov<mode>_hardfloat,
21009 *mov<mode>_softfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
21010 *mov<mode>_softfloat64, *movdi_internal32, *movdi_internal64,
21011 *mov<mode>_string, *ldmsi8, *ldmsi7, *ldmsi6, *ldmsi5, *ldmsi4,
21012 *ldmsi3, *stmsi8, *stmsi7, *stmsi6, *stmsi5, *stmsi4, *stmsi3,
21013 *movdi_update1, movdi_<mode>_update, movdi_<mode>_update_stack,
21014 *movsi_update1, *movsi_update2, movsi_update, movsi_update_stack,
21015 *movhi_update1, *movhi_update2, *movhi_update3, *movhi_update4,
21016 *movqi_update1, *movqi_update2, *movqi_update3, *movsf_update1,
21017 *movsf_update2, *movsf_update3, *movsf_update4, *movdf_update1,
21018 *movdf_update2, load_toc_aix_si, load_toc_aix_di, probe_stack_<mode>,
21019 *stmw, *lmw, as well as 10 anonymous patterns): Adjust.
21021 * config/rs6000/dfp.md (movsd_store, movsd_load): Adjust.
21022 * config/rs6000/vsx.md (*vsx_movti_32bit, *vsx_extract_<mode>_load,
21023 *vsx_extract_<mode>_store): Adjust.
21024 * config/rs6000/rs6000.c (rs6000_adjust_cost, is_microcoded_insn,
21025 is_cracked_insn, insn_must_be_first_in_group,
21026 insn_must_be_last_in_group): Adjust.
21028 * config/rs6000/40x.md (ppc403-load, ppc403-store, ppc405-float):
21030 * config/rs6000/440.md (ppc440-load, ppc440-store, ppc440-fpload,
21031 ppc440-fpstore): Adjust.
21032 * config/rs6000/476.md (ppc476-load, ppc476-store, ppc476-fpload,
21033 ppc476-fpstore): Adjust.
21034 * config/rs6000/601.md (ppc601-load, ppc601-store, ppc601-fpload,
21035 ppc601-fpstore): Adjust.
21036 * config/rs6000/603.md (ppc603-load, ppc603-store, ppc603-fpload):
21038 * config/rs6000/6xx.md (ppc604-load, ppc604-store, ppc604-fpload):
21040 * config/rs6000/7450.md (ppc7450-load, ppc7450-store, ppc7450-fpload,
21041 ppc7450-fpstore): Adjust.
21042 * config/rs6000/7xx.md (ppc750-load, ppc750-store): Adjust.
21043 * config/rs6000/8540.md (ppc8540_load, ppc8540_store): Adjust.
21044 * config/rs6000/a2.md (ppca2-load, ppca2-fp-load, ppca2-fp-store):
21046 * config/rs6000/cell.md (cell-load, cell-load-ux, cell-load-ext,
21047 cell-fpload, cell-fpload-update, cell-store, cell-store-update,
21048 cell-fpstore, cell-fpstore-update): Adjust.
21049 * config/rs6000/e300c2c3.md (ppce300c3_load, ppce300c3_fpload,
21050 ppce300c3_store, ppce300c3_fpstore): Adjust.
21051 * config/rs6000/e500mc.md (e500mc_load, e500mc_fpload, e500mc_store,
21052 e500mc_fpstore): Adjust.
21053 * config/rs6000/e500mc64.md (e500mc64_load, e500mc64_fpload,
21054 e500mc64_store, e500mc64_fpstore): Adjust.
21055 * config/rs6000/e5500.md (e5500_load, e5500_fpload, e5500_store,
21056 e5500_fpstore): Adjust.
21057 * config/rs6000/e6500.md (e6500_load, e6500_fpload, e6500_store,
21058 e6500_fpstore): Adjust.
21059 * config/rs6000/mpc.md (mpccore-load, mpccore-store, mpccore-fpload):
21061 * config/rs6000/power4.md (power4-load, power4-load-ext,
21062 power4-load-ext-update, power4-load-ext-update-indexed,
21063 power4-load-update-indexed, power4-load-update, power4-fpload,
21064 power4-fpload-update, power4-store, power4-store-update,
21065 power4-store-update-indexed, power4-fpstore, power4-fpstore-update):
21067 * config/rs6000/power5.md (power5-load, power5-load-ext,
21068 power5-load-ext-update, power5-load-ext-update-indexed,
21069 power5-load-update-indexed, power5-load-update, power5-fpload,
21070 power5-fpload-update, power5-store, power5-store-update,
21071 power5-store-update-indexed, power5-fpstore, power5-fpstore-update):
21073 * config/rs6000/power6.md (power6-load, power6-load-ext,
21074 power6-load-update, power6-load-update-indexed,
21075 power6-load-ext-update, power6-load-ext-update-indexed, power6-fpload,
21076 power6-fpload-update, power6-store, power6-store-update,
21077 power6-store-update-indexed, power6-fpstore, power6-fpstore-update):
21079 * config/rs6000/power7.md (power7-load, power7-load-ext,
21080 power7-load-update, power7-load-update-indexed,
21081 power7-load-ext-update, power7-load-ext-update-indexed, power7-fpload,
21082 power7-fpload-update, power7-store, power7-store-update,
21083 power7-store-update-indexed, power7-fpstore, power7-fpstore-update):
21085 * config/rs6000/power8.md (power8-load, power8-load-update,
21086 power8-load-ext, power8-load-ext-update, power8-fpload,
21087 power8-fpload-update, power8-store, power8-store-update-indexed,
21088 power8-fpstore, power8-fpstore-update): Adjust.
21089 * config/rs6000/rs64.md (rs64a-load, rs64a-store, rs64a-fpload):
21091 * config/rs6000/titan.md (titan_lsu_load, titan_lsu_fpload,
21092 titan_lsu_store, titan_lsu_fpstore): Adjust.
21093 * config/rs6000/xfpu.md (fp-load, fp-store): Adjust.
21095 2014-05-07 Oleg Endo <olegendo@gcc.gnu.org>
21098 * config/sh/sh-mem.cc (sh_expand_strlen): Use loop when emitting
21099 unrolled byte insns. Emit address increments after move insns.
21101 2014-05-07 David Malcolm <dmalcolm@redhat.com>
21103 * gimple.h (gimple_builtin_call_types_compatible_p): Accept a
21104 const_gimple, rather than a gimple.
21105 (gimple_call_builtin_p): Likewise, for the three variants.
21107 * gimple.c (gimple_builtin_call_types_compatible_p): Likewise.
21108 (gimple_call_builtin_p): Likewise, for the three variants.
21110 2014-05-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
21112 PR tree-optimization/61095
21113 * tree-ssanames.c (get_nonzero_bits): Fix type extension in wi::shwi.
21115 2014-05-07 Richard Biener <rguenther@suse.de>
21117 PR tree-optimization/61034
21118 * tree-ssa-alias.c (call_may_clobber_ref_p_1): Export.
21119 (maybe_skip_until): Use translate to take into account
21120 lattices when trying to do disambiguations.
21121 (get_continuation_for_phi_1): Likewise.
21122 (get_continuation_for_phi): Adjust for added translate arguments.
21123 (walk_non_aliased_vuses): Likewise.
21124 * tree-ssa-alias.h (get_continuation_for_phi): Adjust prototype.
21125 (walk_non_aliased_vuses): Likewise.
21126 (call_may_clobber_ref_p_1): Declare.
21127 * tree-ssa-sccvn.c (vn_reference_lookup_3): Also disambiguate against
21128 calls. Stop early if we are only supposed to disambiguate.
21129 * tree-ssa-pre.c (translate_vuse_through_block): Adjust.
21131 2014-05-07 Joern Rennecke <joern.rennecke@embecosm.com>
21133 * config/epiphany/epiphany.c (epiphany_handle_interrupt_attribute):
21134 Emit an error when the function has arguments.
21136 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21138 * cfgloop.h (unswitch_loops): Remove.
21139 * doc/passes.texi: Remove references to loop-unswitch.c
21140 * timevar.def (TV_LOOP_UNSWITCH): Remove.
21142 2014-05-07 Evgeny Stupachenko <evstupac@gmail.com>
21144 * tree-vect-data-refs.c (vect_grouped_load_supported): New
21145 check for loads group of length 3.
21146 (vect_permute_load_chain): New permutations for loads group of
21148 * tree-vect-stmts.c (vect_model_load_cost): Change cost
21149 of vec_perm_shuffle for the new permutations.
21151 2014-05-07 Alan Lawrence <alan.lawrence@arm.com>
21153 * config/aarch64/arm_neon.h (vtrn1_f32, vtrn1_p8, vtrn1_p16, vtrn1_s8,
21154 vtrn1_s16, vtrn1_s32, vtrn1_u8, vtrn1_u16, vtrn1_u32, vtrn1q_f32,
21155 vtrn1q_f64, vtrn1q_p8, vtrn1q_p16, vtrn1q_s8, vtrn1q_s16, vtrn1q_s32,
21156 vtrn1q_s64, vtrn1q_u8, vtrn1q_u16, vtrn1q_u32, vtrn1q_u64, vtrn2_f32,
21157 vtrn2_p8, vtrn2_p16, vtrn2_s8, vtrn2_s16, vtrn2_s32, vtrn2_u8,
21158 vtrn2_u16, vtrn2_u32, vtrn2q_f32, vtrn2q_f64, vtrn2q_p8, vtrn2q_p16,
21159 vtrn2q_s8, vtrn2q_s16, vtrn2q_s32, vtrn2q_s64, vtrn2q_u8, vtrn2q_u16,
21160 vtrn2q_u32, vtrn2q_u64): Replace temporary asm with __builtin_shuffle.
21162 2014-05-07 Thomas Schwinge <thomas@codesourcery.com>
21164 * loop-unswitch.c: Delete.
21166 2014-05-07 Richard Biener <rguenther@suse.de>
21168 * config.gcc: Always set need_64bit_hwint to yes.
21170 2014-05-07 Chung-Ju Wu <jasonwucj@gmail.com>
21172 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Have it in favor
21173 of using optimize_size.
21175 2014-05-06 Mike Stump <mikestump@comcast.net>
21177 * wide-int.h (wi::int_traits <HOST_WIDE_INT>): Always define.
21179 2014-05-06 Joseph Myers <joseph@codesourcery.com>
21181 * config/i386/sse.md (*mov<mode>_internal)
21182 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>)
21183 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>)
21184 (<sse>_andnot<mode>3, <code><mode>3, *andnot<mode>3)
21185 (*<code><mode>3, *andnot<mode>3<mask_name>)
21186 (<mask_codefor><code><mode>3<mask_name>): Only consider
21187 TARGET_SSE_PACKED_SINGLE_INSN_OPTIMAL for modes of size 16.
21189 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21192 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
21194 * lra-constraints.c (valid_address_p): Move earlier in file.
21195 Add a constraint argument to the address_info version.
21196 (satisfies_memory_constraint_p): New function.
21197 (satisfies_address_constraint_p): Likewise.
21198 (process_alt_operands, curr_insn_transform): Use them.
21199 (process_address): Pass the constraint to valid_address_p when
21200 checking address operands.
21202 2014-05-06 Richard Sandiford <r.sandiford@uk.ibm.com>
21204 * lto-cgraph.c (compute_ltrans_boundary): Make node variables local
21205 to their respective blocks. Fix inadvertent use of "node".
21207 2014-05-06 Richard Sandiford <rdsandiford@googlemail.com>
21209 * emit-rtl.c (init_derived_machine_modes): New functionm, split
21211 (init_emit_once): ...here.
21212 * rtl.h (init_derived_machine_modes): Declare.
21213 * toplev.c (do_compile): Call it even if no_backend.
21215 2014-05-06 Kenneth Zadeck <zadeck@naturalbridge.com>
21216 Mike Stump <mikestump@comcast.net>
21217 Richard Sandiford <rdsandiford@googlemail.com>
21218 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
21220 * alias.c (ao_ref_from_mem): Use wide-int interfaces.
21221 (rtx_equal_for_memref_p): Update comment.
21222 (adjust_offset_for_component_ref): Use wide-int interfaces.
21223 * builtins.c (get_object_alignment_2): Likewise.
21224 (c_readstr): Likewise.
21225 (target_char_cast): Add comment.
21226 (determine_block_size): Use wide-int interfaces.
21227 (expand_builtin_signbit): Likewise.
21228 (fold_builtin_int_roundingfn): Likewise.
21229 (fold_builtin_bitop): Likewise.
21230 (fold_builtin_bswap): Likewise.
21231 (fold_builtin_logarithm): Use signop.
21232 (fold_builtin_pow): Likewise.
21233 (fold_builtin_memory_op): Use wide-int interfaces.
21234 (fold_builtin_object_size): Likewise.
21235 * cfgloop.c (alloc_loop): Initialize nb_iterations_upper_bound and
21236 nb_iterations_estimate.
21237 (record_niter_bound): Use wide-int interfaces.
21238 (get_estimated_loop_iterations_int): Likewise.
21239 (get_estimated_loop_iterations): Likewise.
21240 (get_max_loop_iterations): Likewise.
21241 * cfgloop.h: Include wide-int.h.
21242 (struct nb_iter_bound): Change bound to widest_int.
21243 (struct loop): Change nb_iterations_upper_bound and
21244 nb_iterations_estimate to widest_int.
21245 (record_niter_bound): Switch to use widest_int.
21246 (get_estimated_loop_iterations): Likewise.
21247 (get_max_loop_iterations): Likewise.
21248 (gcov_type_to_double_int): Rename to gcov_type_to_wide_int and
21249 update for wide-int.
21250 * cgraph.c (cgraph_add_thunk): Use wide-int interfaces.
21251 * combine.c (try_combine): Likewise.
21252 (subst): Use CONST_SCALAR_INT_P rather than CONST_INT_P.
21253 * config/aarch64/aarch64.c (aapcs_vfp_sub_candidate): Use wide-int
21255 (aarch64_float_const_representable_p): Likewise.
21256 * config/arc/arc.c: Include wide-int.h.
21257 (arc_can_use_doloop_p): Use wide-int interfaces.
21258 * config/arm/arm.c (aapcs_vfp_sub_candidate): Likewise.
21259 (vfp3_const_double_index): Likewise.
21260 * config/avr/avr.c (avr_out_round): Likewise.
21261 (avr_fold_builtin): Likewise.
21262 * config/bfin/bfin.c (bfin_local_alignment): Likewise.
21263 (bfin_can_use_doloop_p): Likewise.
21264 * config/darwin.c (darwin_mergeable_constant_section): Likewise.
21265 (machopic_select_rtx_section): Update to handle CONST_WIDE_INT.
21266 * config/i386/i386.c: Include wide-int.h.
21267 (ix86_data_alignment): Use wide-int interfaces.
21268 (ix86_local_alignment): Likewise.
21269 (ix86_emit_swsqrtsf): Update real_from_integer.
21270 * config/msp430/msp430.c (msp430_attr): Use wide-int interfaces.
21271 * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21272 * config/rs6000/predicates.md (any_operand): Add const_wide_int.
21273 (zero_constant): Likewise.
21274 (input_operand): Likewise.
21275 (splat_input_operand): Likewise.
21276 (non_logical_cint_operand): Change const_double to const_wide_int.
21277 * config/rs6000/rs6000.c (num_insns_constant): Handle CONST_WIDE_INT.
21278 (easy_altivec_constant): Remove comment.
21279 (paired_expand_vector_init): Use CONSTANT_P.
21280 (rs6000_legitimize_address): Handle CONST_WIDE_INT.
21281 (rs6000_emit_move): Update checks.
21282 (rs6000_aggregate_candidate): Use wide-int interfaces.
21283 (rs6000_expand_ternop_builtin): Likewise.
21284 (rs6000_output_move_128bit): Handle CONST_WIDE_INT.
21285 (rs6000_assemble_integer): Likewise.
21286 (rs6000_hash_constant): Likewise.
21287 (output_toc): Likewise.
21288 (rs6000_rtx_costs): Likewise.
21289 (rs6000_emit_swrsqrt); Update call to real_from_integer.
21290 * config/rs6000/rs6000-c.c: Include wide-int.h.
21291 (altivec_resolve_overloaded_builtin): Use wide-int interfaces.
21292 * config/rs6000/rs6000.h (TARGET_SUPPORTS_WIDE_INT): New.
21293 * config/rs6000/rs6000.md: Use const_scalar_int_operand.
21294 Handle CONST_WIDE_INT.
21295 * config/sol2-c.c (solaris_pragma_align): Change low to unsigned HWI.
21296 Use tree_fits_uhwi_p.
21297 * config/sparc/sparc.c: Include wide-int.h.
21298 (sparc_fold_builtin): Use wide-int interfaces.
21299 * config/vax/vax.c: Include wide-int.h.
21300 (vax_float_literal): Use real_from_integer.
21301 * coretypes.h (struct hwivec_def): New.
21303 (const_hwivec): New.
21304 * cse.c (hash_rtx_cb): Handle CONST_WIDE_INT.
21305 (equiv_constant): Handle CONST_WIDE_INT.
21306 * cselib.c (rtx_equal_for_cselib_1): Use CASE_CONST_UNIQUE.
21307 (cselib_hash_rtx): Handle CONST_WIDE_INT.
21308 * dbxout.c (stabstr_U): Use wide-int interfaces.
21309 (dbxout_type): Update to use cst_fits_shwi_p.
21310 * defaults.h (LOG2_BITS_PER_UNIT): Define.
21311 (TARGET_SUPPORTS_WIDE_INT): Add default.
21312 * dfp.c: Include wide-int.h.
21313 (decimal_real_to_integer2): Use wide-int interfaces and rename to
21314 decimal_real_to_integer.
21315 * dfp.h (decimal_real_to_integer2): Return a wide_int and rename to
21316 decimal_real_to_integer.
21317 * doc/generic.texi (Constant expressions): Update for wide_int.
21318 * doc/rtl.texi (const_double): Likewise.
21319 (const_wide_int, CONST_WIDE_INT, CONST_WIDE_INT_VEC): New.
21320 (CONST_WIDE_INT_NUNITS, CONST_WIDE_INT_ELT): New.
21321 * doc/tm.texi.in (REAL_VALUE_TO_INT): Remove.
21322 (REAL_VALUE_FROM_INT): Remove.
21323 (TARGET_SUPPORTS_WIDE_INT): New.
21324 * doc/tm.texi: Regenerate.
21325 * dojump.c (prefer_and_bit_test): Use wide-int interfaces.
21326 * double-int.h: Include wide-int.h.
21327 (struct wi::int_traits): New.
21328 * dwarf2out.c (get_full_len): New.
21329 (dw_val_equal_p): Add case dw_val_class_wide_int.
21330 (size_of_loc_descr): Likewise.
21331 (output_loc_operands): Likewise.
21332 (insert_double): Remove.
21333 (insert_wide_int): New.
21334 (add_AT_wide): New.
21335 (print_die): Add case dw_val_class_wide_int.
21336 (attr_checksum): Likewise.
21337 (attr_checksum_ordered): Likewise.
21338 (same_dw_val_p): Likewise.
21339 (size_of_die): Likewise.
21340 (value_format): Likewise.
21341 (output_die): Likewise.
21342 (double_int_type_size_in_bits): Rename to offset_int_type_size_in_bits.
21344 (clz_loc_descriptor): Use wide-int interfaces.
21345 (mem_loc_descriptor): Likewise. Handle CONST_WIDE_INT.
21346 (loc_descriptor): Use wide-int interfaces. Handle CONST_WIDE_INT.
21347 (round_up_to_align): Use wide-int interfaces.
21348 (field_byte_offset): Likewise.
21349 (insert_double): Rename to insert_wide_int. Use wide-int interfaces.
21350 (add_const_value_attribute): Handle CONST_WIDE_INT. Update
21351 CONST_DOUBLE handling. Use wide-int interfaces.
21352 (add_bound_info): Use tree_fits_uhwi_p. Use wide-int interfaces.
21353 (gen_enumeration_type_die): Use add_AT_wide.
21354 (hash_loc_operands): Add case dw_val_class_wide_int.
21355 (compare_loc_operands): Likewise.
21356 * dwarf2out.h: Include wide-int.h.
21357 (wide_int_ptr): New.
21358 (enum dw_val_class): Add dw_val_class_wide_int.
21359 (struct dw_val_struct): Add val_wide.
21360 * emit-rtl.c (const_wide_int_htab): New.
21361 (const_wide_int_htab_hash): New.
21362 (const_wide_int_htab_eq): New.
21363 (lookup_const_wide_int): New.
21364 (const_double_htab_hash): Use wide-int interfaces.
21365 (const_double_htab_eq): Likewise.
21366 (rtx_to_double_int): Conditionally compile for wide-int.
21367 (immed_double_int_const): Rename to immed_wide_int_const and
21368 update for wide-int.
21369 (immed_double_const): Conditionally compile for wide-int.
21370 (init_emit_once): Use wide-int interfaces.
21371 * explow.c (plus_constant): Likewise.
21372 * expmed.c (mask_rtx): Move further up file. Use wide-int interfaces.
21373 (lshift_value): Use wide-int interfaces.
21374 (expand_mult): Likewise.
21375 (choose_multiplier): Likewise.
21376 (expand_smod_pow2): Likewise.
21377 (make_tree): Likewise.
21378 * expr.c (convert_modes): Consolidate handling of constants.
21379 Use wide-int interfaces.
21380 (emit_group_load_1): Add note.
21381 (store_expr): Update comment.
21382 (get_inner_reference): Use wide-int interfaces.
21383 (expand_constructor): Update comment.
21384 (expand_expr_real_2): Use wide-int interfaces.
21385 (expand_expr_real_1): Likewise.
21386 (reduce_to_bit_field_precision): Likewise.
21387 (const_vector_from_tree): Likewise.
21388 * final.c: Include wide-int-print.h.
21389 (output_addr_const): Handle CONST_WIDE_INT. Use CONST_DOUBLE_AS_INT_P.
21390 * fixed-value.c: Include wide-int.h.
21391 (fixed_from_string): Use wide-int interfaces.
21392 (fixed_to_decimal): Likewise.
21393 (fixed_convert_from_real): Likewise.
21394 (real_convert_from_fixed): Likewise.
21395 * fold-const.h (mem_ref_offset): Return an offset_int.
21396 (div_if_zero_remainder): Remove code parameter.
21397 * fold-const.c (div_if_zero_remainder): Remove code parameter.
21398 Use wide-int interfaces.
21399 (may_negate_without_overflow_p): Use wide-int interfaces.
21400 (negate_expr_p): Likewise.
21401 (fold_negate_expr): Likewise.
21402 (int_const_binop_1): Likewise.
21403 (const_binop): Likewise.
21404 (fold_convert_const_int_from_int): Likewise.
21405 (fold_convert_const_int_from_real): Likewise.
21406 (fold_convert_const_int_from_fixed): Likewise.
21407 (fold_convert_const_fixed_from_int): Likewise.
21408 (all_ones_mask_p): Take an unsigned size. Use wide-int interfaces.
21409 (sign_bit_p): Use wide-int interfaces.
21410 (make_range_step): Likewise.
21411 (build_range_check): Likewise. Pass an integer of the correct type
21412 instead of using integer_one_node.
21413 (range_predecessor): Pass an integer of the correct type instead
21414 of using integer_one_node.
21415 (range_successor): Likewise.
21416 (merge_ranges): Likewise.
21417 (unextend): Use wide-int interfaces.
21418 (extract_muldiv_1): Likewise.
21419 (fold_div_compare): Likewise.
21420 (fold_single_bit_test): Likewise.
21421 (fold_sign_changed_comparison): Likewise.
21422 (try_move_mult_to_index): Update calls to div_if_zero_remainder.
21423 (fold_plusminus_mult_expr): Use wide-int interfaces.
21424 (native_encode_int): Likewise.
21425 (native_interpret_int): Likewise.
21426 (fold_unary_loc): Likewise.
21427 (pointer_may_wrap_p): Likewise.
21428 (size_low_cst): Likewise.
21429 (mask_with_tz): Likewise.
21430 (fold_binary_loc): Likewise.
21431 (fold_ternary_loc): Likewise.
21432 (multiple_of_p): Likewise.
21433 (tree_call_nonnegative_warnv_p): Update calls to
21434 tree_int_cst_min_precision and real_from_integer.
21435 (fold_negate_const): Use wide-int interfaces.
21436 (fold_abs_const): Likewise.
21437 (fold_relational_const): Use tree_int_cst_lt.
21438 (round_up_loc): Use wide-int interfaces.
21439 * genemit.c (gen_exp): Add CONST_WIDE_INT case.
21440 * gengenrtl.c (excluded_rtx): Add CONST_WIDE_INT case.
21441 * gengtype.c: Remove include of double-int.h.
21442 (do_typedef): Use wide-int interfaces.
21443 (open_base_files): Add wide-int.h.
21444 (main): Add offset_int and widest_int typedefs.
21445 * gengtype-lex.l: Handle "^".
21446 (CXX_KEYWORD): Add "static".
21447 * gengtype-parse.c (require3): New.
21448 (require_template_declaration): Handle constant template arguments
21449 and nested templates.
21450 * gengtype-state.c: Don't include "double-int.h".
21451 * genpreds.c (write_one_predicate_function): Update comment.
21452 (write_tm_constrs_h): Add check for hval and lval use in
21454 * genrecog.c (validate_pattern): Add CONST_WIDE_INT case.
21455 (add_to_sequence): Likewise.
21456 * gensupport.c (struct std_pred_table): Add const_scalar_int_operand
21457 and const_double_operand.
21458 * gimple.c (preprocess_case_label_vec_for_gimple): Use wide-int
21460 * gimple-fold.c (get_base_constructor): Likewise.
21461 (fold_array_ctor_reference): Likewise.
21462 (fold_nonarray_ctor_reference): Likewise.
21463 (fold_const_aggregate_ref_1): Likewise.
21464 (gimple_val_nonnegative_real_p): Likewise.
21465 (gimple_fold_indirect_ref): Likewise.
21466 * gimple-pretty-print.c (dump_ssaname_info): Likewise.
21467 * gimple-ssa-strength-reduction.c: Include wide-int-print.h.
21468 (struct slsr_cand_d): Change index to be widest_int.
21469 (struct incr_info_d): Change incr to be widest_int.
21470 (alloc_cand_and_find_basis): Use wide-int interfaces.
21471 (slsr_process_phi): Likewise.
21472 (backtrace_base_for_ref): Likewise. Return a widest_int.
21473 (restructure_reference): Take a widest_int instead of a double_int.
21474 (slsr_process_ref): Use wide-int interfaces.
21475 (create_mul_ssa_cand): Likewise.
21476 (create_mul_imm_cand): Likewise.
21477 (create_add_ssa_cand): Likewise.
21478 (create_add_imm_cand): Take a widest_int instead of a double_int.
21479 (slsr_process_add): Use wide-int interfaces.
21480 (slsr_process_cast): Likewise.
21481 (slsr_process_copy): Likewise.
21482 (dump_candidate): Likewise.
21483 (dump_incr_vec): Likewise.
21484 (replace_ref): Likewise.
21485 (cand_increment): Likewise. Return a widest_int.
21486 (cand_abs_increment): Likewise.
21487 (replace_mult_candidate): Take a widest_int instead of a double_int.
21488 (replace_unconditional_candidate): Use wide-int interfaces.
21489 (incr_vec_index): Take a widest_int instead of a double_int.
21490 (create_add_on_incoming_edge): Likewise.
21491 (create_phi_basis): Use wide-int interfaces.
21492 (replace_conditional_candidate): Likewise.
21493 (record_increment): Take a widest_int instead of a double_int.
21494 (record_phi_increments): Use wide-int interfaces.
21495 (phi_incr_cost): Take a widest_int instead of a double_int.
21496 (lowest_cost_path): Likewise.
21497 (total_savings): Likewise.
21498 (analyze_increments): Use wide-int interfaces.
21499 (ncd_with_phi): Take a widest_int instead of a double_int.
21500 (ncd_of_cand_and_phis): Likewise.
21501 (nearest_common_dominator_for_cands): Likewise.
21502 (insert_initializers): Use wide-int interfaces.
21503 (all_phi_incrs_profitable): Likewise.
21504 (replace_one_candidate): Likewise.
21505 (replace_profitable_candidates): Likewise.
21506 * godump.c: Include wide-int-print.h.
21507 (go_output_typedef): Use wide-int interfaces.
21508 * graphite-clast-to-gimple.c (gmp_cst_to_tree): Likewise.
21509 * graphite-sese-to-poly.c (tree_int_to_gmp): Likewise.
21510 (build_loop_iteration_domains): Likewise.
21511 * hooks.h: Include wide-int.h rather than double-int.h.
21512 (hook_bool_dint_dint_uint_bool_true): Delete.
21513 (hook_bool_wint_wint_uint_bool_true): Declare.
21514 * hooks.c (hook_bool_dint_dint_uint_bool_true): Removed.
21515 (hook_bool_wint_wint_uint_bool_true): New.
21516 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): Use wide-int
21518 (ubsan_expand_si_overflow_mul_check): Likewise.
21519 * ipa-devirt.c (get_polymorphic_call_info): Likewise.
21520 * ipa-prop.c (compute_complex_assign_jump_func): Likewise.
21521 (get_ancestor_addr_info): Likewise.
21522 (ipa_modify_call_arguments): Likewise.
21523 * loop-doloop.c (doloop_modify): Likewise.
21524 (doloop_optimize): Likewise.
21525 * loop-iv.c (iv_number_of_iterations): Likewise.
21526 * loop-unroll.c (decide_unroll_constant_iterations): Likewise.
21527 (unroll_loop_constant_iterations): Likewise.
21528 (decide_unroll_runtime_iterations): Likewise.
21529 (unroll_loop_runtime_iterations): Likewise.
21530 (decide_peel_simple): Likewise.
21531 (decide_unroll_stupid): Likewise.
21532 * lto-streamer-in.c (streamer_read_wi): Add.
21533 (input_cfg): Use wide-int interfaces.
21534 (lto_input_tree_1): Likewise.
21535 * lto-streamer-out.c (streamer_write_wi): Add.
21536 (hash_tree): Use wide-int interfaces.
21537 (output_cfg): Likewise.
21538 * Makefile.in (OBJS): Add wide-int.o and wide-int-print.o.
21539 (GTFILES): Add wide-int.h and signop.h.
21540 (TAGS): Look for .cc files too.
21541 * omp-low.c (scan_omp_1_op): Use wide-int interfaces.
21542 * optabs.c (expand_subword_shift): Likewise.
21543 (expand_doubleword_shift): Likewise.
21544 (expand_absneg_bit): Likewise.
21545 (expand_copysign_absneg): Likewise.
21546 (expand_copysign_bit): Likewise.
21547 * postreload.c (reload_cse_simplify_set): Likewise.
21548 * predict.c (predict_iv_comparison): Likewise.
21549 * pretty-print.h: Include wide-int-print.h.
21551 * print-rtl.c (print_rtx): Add CONST_WIDE_INT case.
21552 * print-tree.c: Include wide-int-print.h.
21553 (print_node_brief): Use wide-int interfaces.
21554 (print_node): Likewise.
21555 * read-rtl.c (validate_const_wide_int): New.
21556 (read_rtx_code): Add CONST_WIDE_INT case.
21557 * real.c: Include wide-int.h.
21558 (real_to_integer2): Delete.
21559 (real_to_integer): New function, returning a wide_int.
21560 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21561 (ten_to_ptwo): Update call to real_from_integer.
21562 (real_digit): Likewise.
21563 * real.h: Include signop.h, wide-int.h and insn-modes.h.
21564 (real_to_integer2, REAL_VALUE_FROM_INT, REAL_VALUE_FROM_UNSIGNED_INT)
21565 (REAL_VALUE_TO_INT): Delete.
21566 (real_to_integer): Declare a wide-int form.
21567 (real_from_integer): Take a wide_int rather than two HOST_WIDE_INTs.
21568 * recog.c (const_int_operand): Improve comment.
21569 (const_scalar_int_operand): New.
21570 (const_double_operand): Add a separate definition for CONST_WIDE_INT.
21571 * rtlanal.c (commutative_operand_precedence): Handle CONST_WIDE_INT.
21572 (split_double): Likewise.
21573 * rtl.c (DEF_RTL_EXPR): Handle CONST_WIDE_INT.
21574 (rtx_size): Likewise.
21575 (rtx_alloc_stat_v): New.
21576 (rtx_alloc_stat): Now calls rtx_alloc_stat_v.
21577 (cwi_output_hex): New.
21578 (iterative_hash_rtx): Handle CONST_WIDE_INT.
21579 (cwi_check_failed_bounds): New.
21580 * rtl.def (CONST_WIDE_INT): New.
21581 * rtl.h: Include <utility> and wide-int.h.
21582 (struct hwivec_def): New.
21583 (CWI_GET_NUM_ELEM): New.
21584 (CWI_PUT_NUM_ELEM): New.
21585 (struct rtx_def): Add num_elem and hwiv.
21586 (CASE_CONST_SCALAR_INT): Modify for TARGET_SUPPORTS_WIDE_INT.
21587 (CASE_CONST_UNIQUE): Likewise.
21588 (CASE_CONST_ANY): Likewise.
21589 (CONST_SCALAR_INT_P): Likewise.
21590 (CONST_WIDE_INT_P): New.
21592 (HWIVEC_CHECK): New.
21593 (cwi_check_failed_bounds): New.
21595 (HWIVEC_CHECK): New.
21596 (CONST_WIDE_INT_VEC) New.
21597 (CONST_WIDE_INT_NUNITS) New.
21598 (CONST_WIDE_INT_ELT) New.
21599 (rtx_mode_t): New type.
21600 (wi::int_traits <rtx_mode_t>): New.
21602 (wi::min_value): New.
21603 (wi::max_value): New.
21605 (const_wide_int_alloc): New.
21606 (immed_wide_int_const): New.
21607 * sched-vis.c (print_value): Handle CONST_WIDE_INT.
21608 * sel-sched-ir.c (lhs_and_rhs_separable_p): Update comment.
21609 * signop.h: New file.
21610 * simplify-rtx.c (mode_signbit_p): Handle CONST_WIDE_INT.
21611 (simplify_const_unary_operation): Use wide-int interfaces.
21612 (simplify_binary_operation_1): Likewise.
21613 (simplify_const_binary_operation): Likewise.
21614 (simplify_const_relational_operation): Likewise.
21615 (simplify_immed_subreg): Likewise.
21616 * stmt.c (expand_case): Likewise.
21617 * stor-layout.h (set_min_and_max_values_for_integral_type): Take a
21618 signop rather than a bool.
21619 * stor-layout.c (layout_type): Use wide-int interfaces.
21620 (initialize_sizetypes): Update calls to
21621 set_min_and_max_values_for_integral_type.
21622 (set_min_and_max_values_for_integral_type): Take a signop rather
21623 than a bool. Use wide-int interfaces.
21624 (fixup_signed_type): Update accordingly. Remove
21625 HOST_BITS_PER_DOUBLE_INT limit.
21626 (fixup_unsigned_type): Likewise.
21627 * system.h (STATIC_CONSTANT_P): New.
21628 (STATIC_ASSERT): New.
21629 * target.def (can_use_doloop_p): Take widest_ints rather than
21631 * target.h: Include wide-int.h rather than double-int.h.
21632 * targhooks.h (can_use_doloop_if_innermost): Take widest_ints rather
21634 * targhooks.c (default_cxx_get_cookie_size): Use tree_int_cst_lt
21635 rather than INT_CST_LT_UNSIGNED.
21636 (can_use_doloop_if_innermost): Take widest_ints rather than
21638 * tree-affine.c: Include wide-int-print.h.
21639 (double_int_ext_for_comb): Delete.
21640 (wide_int_ext_for_comb): New.
21641 (aff_combination_zero): Use wide-int interfaces.
21642 (aff_combination_const): Take a widest_int instead of a double_int.
21643 (aff_combination_elt): Use wide-int interfaces.
21644 (aff_combination_scale): Take a widest_int instead of a double_int.
21645 (aff_combination_add_elt): Likewise.
21646 (aff_combination_add_cst): Likewise.
21647 (aff_combination_add): Use wide-int interfaces.
21648 (aff_combination_convert): Likewise.
21649 (tree_to_aff_combination): Likewise.
21650 (add_elt_to_tree): Take a widest_int instead of a double_int.
21651 (aff_combination_to_tree): Use wide-int interfaces.
21652 (aff_combination_remove_elt): Likewise.
21653 (aff_combination_add_product): Take a widest_int instead of
21655 (aff_combination_mult): Use wide-int interfaces.
21656 (aff_combination_expand): Likewise.
21657 (double_int_constant_multiple_p): Delete.
21658 (wide_int_constant_multiple_p): New.
21659 (aff_combination_constant_multiple_p): Take a widest_int pointer
21660 instead of a double_int pointer.
21661 (print_aff): Use wide-int interfaces.
21662 (get_inner_reference_aff): Take a widest_int pointer
21663 instead of a double_int pointer.
21664 (aff_comb_cannot_overlap_p): Take widest_ints instead of double_ints.
21665 * tree-affine.h: Include wide-int.h.
21666 (struct aff_comb_elt): Change type of coef to widest_int.
21667 (struct affine_tree_combination): Change type of offset to widest_int.
21668 (double_int_ext_for_comb): Delete.
21669 (wide_int_ext_for_comb): New.
21670 (aff_combination_const): Use widest_int instead of double_int.
21671 (aff_combination_scale): Likewise.
21672 (aff_combination_add_elt): Likewise.
21673 (aff_combination_constant_multiple_p): Likewise.
21674 (get_inner_reference_aff): Likewise.
21675 (aff_comb_cannot_overlap_p): Likewise.
21676 (aff_combination_zero_p): Use wide-int interfaces.
21677 * tree.c: Include tree.h.
21678 (init_ttree): Use make_int_cst.
21679 (tree_code_size): Removed code for INTEGER_CST case.
21680 (tree_size): Add INTEGER_CST case.
21681 (make_node_stat): Update comment.
21682 (get_int_cst_ext_nunits, build_new_int_cst, build_int_cstu): New.
21683 (build_int_cst_type): Use wide-int interfaces.
21684 (double_int_to_tree): Likewise.
21685 (double_int_fits_to_tree_p): Delete.
21686 (force_fit_type_double): Delete.
21687 (force_fit_type): New.
21688 (int_cst_hash_hash): Use wide-int interfaces.
21689 (int_cst_hash_eq): Likewise.
21690 (build_int_cst_wide): Delete.
21691 (wide_int_to_tree): New.
21692 (cache_integer_cst): Use wide-int interfaces.
21693 (build_low_bits_mask): Likewise.
21694 (cst_and_fits_in_hwi): Likewise.
21695 (real_value_from_int_cst): Likewise.
21696 (make_int_cst_stat): New.
21697 (integer_zerop): Use wide_int interfaces.
21698 (integer_onep): Likewise.
21699 (integer_all_onesp): Likewise.
21700 (integer_pow2p): Likewise.
21701 (integer_nonzerop): Likewise.
21702 (tree_log2): Likewise.
21703 (tree_floor_log2): Likewise.
21704 (tree_ctz): Likewise.
21705 (int_size_in_bytes): Likewise.
21706 (mem_ref_offset): Return an offset_int rather than a double_int.
21707 (build_type_attribute_qual_variant): Use wide_int interfaces.
21708 (type_hash_eq): Likewise
21709 (tree_int_cst_equal): Likewise.
21710 (tree_int_cst_lt): Delete.
21711 (tree_int_cst_compare): Likewise.
21712 (tree_fits_shwi_p): Use wide_int interfaces.
21713 (tree_fits_uhwi_p): Likewise.
21714 (tree_int_cst_sign_bit): Likewise.
21715 (tree_int_cst_sgn): Likewise.
21716 (tree_int_cst_min_precision): Take a signop rather than a bool.
21717 (simple_cst_equal): Use wide_int interfaces.
21718 (compare_tree_int): Likewise.
21719 (iterative_hash_expr): Likewise.
21720 (int_fits_type_p): Likewise. Use tree_int_cst_lt rather than
21722 (get_type_static_bounds): Use wide_int interfaces.
21723 (tree_int_cst_elt_check_failed): New.
21724 (build_common_tree_nodes): Reordered to set prec before filling in
21726 (int_cst_value): Check cst_and_fits_in_hwi.
21727 (widest_int_cst_value): Use wide_int interfaces.
21728 (upper_bound_in_type): Likewise.
21729 (lower_bound_in_type): Likewise.
21730 (num_ending_zeros): Likewise.
21731 (drop_tree_overflow): Likewise.
21732 * tree-call-cdce.c (check_pow): Update call to real_from_integer.
21733 (gen_conditions_for_pow_cst_base): Likewise.
21734 * tree-cfg.c: Include wide-int.h and wide-int-print.h.
21735 (group_case_labels_stmt): Use wide-int interfaces.
21736 (verify_gimple_assign_binary): Likewise.
21737 (print_loop): Likewise.
21738 * tree-chrec.c (tree_fold_binomial): Likewise.
21739 * tree-core.h (struct tree_base): Add int_length.
21740 (struct tree_int_cst): Change rep of value.
21741 * tree-data-ref.c (dr_analyze_innermost): Use wide-int interfaces.
21742 (dr_may_alias_p): Likewise.
21743 (max_stmt_executions_tree): Likewise.
21744 * tree.def (INTEGER_CST): Update comment.
21745 * tree-dfa.c (get_ref_base_and_extent): Use wide-int interfaces.
21746 * tree-dfa.h (get_addr_base_and_unit_offset_1): Likewise.
21747 * tree-dump.c: Include wide-int.h and wide-int-print.h.
21748 (dequeue_and_dump): Use wide-int interfaces.
21749 * tree.h: Include wide-int.h.
21750 (NULL_TREE): Moved to earlier loc in file.
21751 (TREE_INT_CST_ELT_CHECK): New.
21752 (tree_int_cst_elt_check_failed): New.
21754 (TREE_INT_CST): Delete.
21755 (TREE_INT_CST_LOW): Use wide-int interfaces.
21756 (TREE_INT_CST_HIGH): Delete.
21757 (TREE_INT_CST_NUNITS): New.
21758 (TREE_INT_CST_EXT_NUNITS): Likewise.
21759 (TREE_INT_CST_OFFSET_NUNITS): Likewise.
21760 (TREE_INT_CST_ELT): Likewise.
21761 (INT_CST_LT): Delete.
21762 (tree_int_cst_elt_check): New (two forms).
21763 (type_code_size): Update comment.
21764 (make_int_cst_stat, make_int_cst): New.
21765 (tree_to_double_int): Delete.
21766 (double_int_fits_to_tree_p): Delete.
21767 (force_fit_type_double): Delete.
21768 (build_int_cstu): Replace with out-of-line function.
21769 (build_int_cst_wide): Delete.
21770 (tree_int_cst_lt): Define inline.
21771 (tree_int_cst_le): New.
21772 (tree_int_cst_compare): Define inline.
21773 (tree_int_cst_min_precision): Take a signop rather than a bool.
21774 (wi::int_traits <const_tree>): New.
21775 (wi::int_traits <tree>): New.
21776 (wi::extended_tree): New.
21777 (wi::int_traits <wi::extended_tree>): New.
21778 (wi::to_widest): New.
21779 (wi::to_offset): New.
21780 (wi::fits_to_tree_p): New.
21781 (wi::min_value): New.
21782 (wi::max_value): New.
21783 * tree-inline.c (remap_gimple_op_r): Use wide-int interfaces.
21784 (copy_tree_body_r): Likewise.
21785 * tree-object-size.c (compute_object_offset): Likewise.
21786 (addr_object_size): Likewise.
21787 * tree-predcom.c: Include wide-int-print.h.
21788 (struct dref_d): Change type of offset to widest_int.
21789 (dump_dref): Call wide-int printer.
21790 (aff_combination_dr_offset): Use wide-int interfaces.
21791 (determine_offset): Take a widest_int pointer rather than a
21792 double_int pointer.
21793 (split_data_refs_to_components): Use wide-int interfaces.
21794 (suitable_component_p): Likewise.
21795 (order_drefs): Likewise.
21796 (add_ref_to_chain): Likewise.
21797 (valid_initializer_p): Likewise.
21798 (determine_roots_comp): Likewise.
21799 * tree-pretty-print.c: Include wide-int-print.h.
21800 (dump_generic_node): Use wide-int interfaces.
21801 * tree-sra.c (sra_ipa_modify_expr): Likewise.
21802 * tree-ssa-address.c (addr_for_mem_ref): Likewise.
21803 (move_fixed_address_to_symbol): Likewise.
21804 (move_hint_to_base): Likewise.
21805 (move_pointer_to_base): Likewise.
21806 (move_variant_to_index): Likewise.
21807 (most_expensive_mult_to_index): Likewise.
21808 (addr_to_parts): Likewise.
21809 (copy_ref_info): Likewise.
21810 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
21811 (indirect_refs_may_alias_p): Likewise.
21812 (stmt_kills_ref_p_1): Likewise.
21813 * tree-ssa.c (non_rewritable_mem_ref_base): Likewise.
21814 * tree-ssa-ccp.c: Update comment at top of file. Include
21816 (struct prop_value_d): Change type of mask to widest_int.
21817 (extend_mask): New function.
21818 (dump_lattice_value): Use wide-int interfaces.
21819 (get_default_value): Likewise.
21820 (set_constant_value): Likewise.
21821 (set_value_varying): Likewise.
21822 (valid_lattice_transition): Likewise.
21823 (set_lattice_value): Likewise.
21824 (value_to_double_int): Delete.
21825 (value_to_wide_int): New.
21826 (get_value_from_alignment): Use wide-int interfaces.
21827 (get_value_for_expr): Likewise.
21828 (do_dbg_cnt): Likewise.
21829 (ccp_finalize): Likewise.
21830 (ccp_lattice_meet): Likewise.
21831 (bit_value_unop_1): Use widest_ints rather than double_ints.
21832 (bit_value_binop_1): Likewise.
21833 (bit_value_unop): Use wide-int interfaces.
21834 (bit_value_binop): Likewise.
21835 (bit_value_assume_aligned): Likewise.
21836 (evaluate_stmt): Likewise.
21837 (ccp_fold_stmt): Likewise.
21838 (visit_cond_stmt): Likewise.
21839 (ccp_visit_stmt): Likewise.
21840 * tree-ssa-forwprop.c (forward_propagate_addr_expr_1): Likewise.
21841 (constant_pointer_difference): Likewise.
21842 (associate_pointerplus): Likewise.
21843 (combine_conversions): Likewise.
21844 * tree-ssa-loop.h: Include wide-int.h.
21845 (struct tree_niter_desc): Change type of max to widest_int.
21846 * tree-ssa-loop-im.c (mem_refs_may_alias_p): Use wide-int interfaces.
21847 * tree-ssa-loop-ivcanon.c (remove_exits_and_undefined_stmts): Likewise.
21848 (remove_redundant_iv_tests): Likewise.
21849 (canonicalize_loop_induction_variables): Likewise.
21850 * tree-ssa-loop-ivopts.c (alloc_iv): Likewise.
21851 (constant_multiple_of): Take a widest_int pointer instead of
21852 a double_int pointer.
21853 (get_computation_aff): Use wide-int interfaces.
21854 (ptr_difference_cost): Likewise.
21855 (difference_cost): Likewise.
21856 (get_loop_invariant_expr_id): Likewise.
21857 (get_computation_cost_at): Likewise.
21858 (iv_elimination_compare_lt): Likewise.
21859 (may_eliminate_iv): Likewise.
21860 * tree-ssa-loop-niter.h (estimated_loop_iterations): Use widest_int
21861 instead of double_int.
21862 (max_loop_iterations): Likewise.
21863 (max_stmt_executions): Likewise.
21864 (estimated_stmt_executions): Likewise.
21865 * tree-ssa-loop-niter.c: Include wide-int-print.h.
21866 (split_to_var_and_offset): Use wide-int interfaces.
21867 (determine_value_range): Likewise.
21868 (bound_difference_of_offsetted_base): Likewise.
21869 (bounds_add): Take a widest_int instead of a double_int.
21870 (number_of_iterations_ne_max): Use wide-int interfaces.
21871 (number_of_iterations_ne): Likewise.
21872 (number_of_iterations_lt_to_ne): Likewise.
21873 (assert_loop_rolls_lt): Likewise.
21874 (number_of_iterations_lt): Likewise.
21875 (number_of_iterations_le): Likewise.
21876 (number_of_iterations_cond): Likewise.
21877 (number_of_iterations_exit): Likewise.
21878 (finite_loop_p): Likewise.
21879 (derive_constant_upper_bound_assign): Likewise.
21880 (derive_constant_upper_bound): Return a widest_int.
21881 (derive_constant_upper_bound_ops): Likewise.
21882 (do_warn_aggressive_loop_optimizations): Use wide-int interfaces.
21883 (record_estimate): Take a widest_int rather than a double_int.
21884 (record_nonwrapping_iv): Use wide-int interfaces.
21885 (double_int_cmp): Delete.
21886 (wide_int_cmp): New.
21887 (bound_index): Take a widest_int rather than a double_int.
21888 (discover_iteration_bound_by_body_walk): Use wide-int interfaces.
21889 (maybe_lower_iteration_bound): Likewise.
21890 (estimate_numbers_of_iterations_loop): Likewise.
21891 (estimated_loop_iterations): Take a widest_int pointer than than
21892 a double_int pointer.
21893 (estimated_loop_iterations_int): Use wide-int interfaces.
21894 (max_loop_iterations): Take a widest_int pointer than than
21895 a double_int pointer.
21896 (max_loop_iterations_int): Use wide-int interfaces.
21897 (max_stmt_executions): Take a widest_int pointer than than
21898 a double_int pointer.
21899 (estimated_stmt_executions): Likewise.
21900 (n_of_executions_at_most): Use wide-int interfaces.
21901 (scev_probably_wraps_p): Likewise.
21902 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Update calls
21903 to real_to_integer.
21904 * tree-scalar-evolution.c (simplify_peeled_chrec): Use wide-int
21906 * tree-ssanames.c (set_range_info): Use wide_int_refs rather than
21907 double_ints. Adjust for trailing_wide_ints <3> representation.
21908 (set_nonzero_bits): Likewise.
21909 (get_range_info): Return wide_ints rather than double_ints.
21910 Adjust for trailing_wide_ints <3> representation.
21911 (get_nonzero_bits): Likewise.
21912 (duplicate_ssa_name_range_info): Adjust for trailing_wide_ints <3>
21914 * tree-ssanames.h (struct range_info_def): Replace min, max and
21915 nonzero_bits with a trailing_wide_ints <3>.
21916 (set_range_info): Use wide_int_refs rather than double_ints.
21917 (set_nonzero_bits): Likewise.
21918 (get_range_info): Return wide_ints rather than double_ints.
21919 (get_nonzero_bits): Likewise.
21920 * tree-ssa-phiopt.c (jump_function_from_stmt): Use wide-int interfaces.
21921 * tree-ssa-pre.c (phi_translate_1): Likewise.
21922 * tree-ssa-reassoc.c (decrement_power): Use calls to real_from_integer.
21923 (acceptable_pow_call): Likewise.
21924 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Use wide-int
21926 (vn_reference_fold_indirect): Likewise.
21927 (vn_reference_maybe_forwprop_address): Likewise.
21928 (valueize_refs_1): Likewise.
21929 * tree-ssa-structalias.c (get_constraint_for_ptr_offset): Likewise.
21930 * tree-ssa-uninit.c (is_value_included_in): Use wide-int interfaces,
21931 tree_int_cst_lt and tree_int_cst_le.
21932 * tree-streamer-in.c (unpack_ts_base_value_fields): Use wide-int
21934 (streamer_alloc_tree): Likewise.
21935 * tree-streamer-out.c (pack_ts_int_cst_value_fields): Likewise.
21936 (streamer_write_tree_header): Likewise.
21937 (streamer_write_integer_cst): Likewise.
21938 * tree-switch-conversion.c (emit_case_bit_tests): Likewise.
21939 (build_constructors): Likewise.
21940 (array_value_type): Likewise.
21941 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list): Likewise.
21942 (vect_check_gather): Likewise.
21943 * tree-vect-generic.c (build_replicated_const): Likewise.
21944 (expand_vector_divmod): Likewise.
21945 * tree-vect-loop.c (vect_transform_loop): Likewise.
21946 * tree-vect-loop-manip.c (vect_do_peeling_for_loop_bound): Likewise.
21947 (vect_do_peeling_for_alignment): Likewise.
21948 * tree-vect-patterns.c (vect_recog_divmod_pattern): Likewise.
21949 * tree-vrp.c: Include wide-int.h.
21950 (operand_less_p): Use wide-int interfaces and tree_int_cst_lt.
21951 (extract_range_from_assert): Use wide-int interfaces.
21952 (vrp_int_const_binop): Likewise.
21953 (zero_nonzero_bits_from_vr): Take wide_int pointers rather than
21954 double_int pointers.
21955 (ranges_from_anti_range): Use wide-int interfaces.
21956 (quad_int_cmp): Delete.
21957 (quad_int_pair_sort): Likewise.
21958 (extract_range_from_binary_expr_1): Use wide-int interfaces.
21959 (extract_range_from_unary_expr_1): Likewise.
21960 (adjust_range_with_scev): Likewise.
21961 (masked_increment): Take and return wide_ints rather than double_ints.
21962 (register_edge_assert_for_2): Use wide-int interfaces.
21963 (check_array_ref): Likewise.
21964 (search_for_addr_array): Likewise.
21965 (maybe_set_nonzero_bits): Likewise.
21966 (union_ranges): Pass an integer of the correct type instead of
21967 using integer_one_node.
21968 (intersect_ranges): Likewise.
21969 (simplify_truth_ops_using_ranges): Likewise.
21970 (simplify_bit_ops_using_ranges): Use wide-int interfaces.
21971 (range_fits_type_p): Likewise.
21972 (simplify_cond_using_ranges): Likewise. Take a signop rather than
21974 (simplify_conversion_using_ranges): Use wide-int interfaces.
21975 (simplify_float_conversion_using_ranges): Likewise.
21976 (vrp_finalize): Likewise.
21977 * value-prof.c (gimple_divmod_fixed_value_transform): Likewise.
21978 (gimple_stringops_transform): Likewise.
21979 * varasm.c (decode_addr_const): Likewise.
21980 (const_hash_1): Likewise.
21981 (const_rtx_hash_1): Likewise
21982 (output_constant): Likewise.
21983 (array_size_for_constructor): Likewise.
21984 (output_constructor_regular_field): Likewise.
21985 (output_constructor_bitfield): Likewise.
21986 * var-tracking.c (loc_cmp): Handle CONST_WIDE_INT.
21987 * mkconfig.sh: Include machmode.h to pick up BITS_PER_UNIT for
21989 * gencheck.c: Define BITS_PER_UNIT.
21990 * wide-int.cc: New.
21992 * wide-int-print.cc: New.
21993 * wide-int-print.h: New.
21995 2014-05-06 Jan-Benedict Glaw <jbglaw@lug-owl.de>
21997 * config/avr/avr.c (avr_can_eliminate): Mark unused argument.
21999 2014-05-06 Richard Biener <rguenther@suse.de>
22001 * tree-pass.h (TODO_verify_ssa, TODO_verify_flow,
22002 TODO_verify_stmts, TODO_verify_rtl_sharing): Remove.
22003 (TODO_verify_all): Adjust.
22004 * asan.c: Remove references to TODO_verify_ssa, TODO_verify_flow,
22005 TODO_verify_stmts and TODO_verify_rtl_sharing.
22006 * bb-reorder.c: Likewise.
22007 * cfgexpand.c: Likewise.
22008 * cprop.c: Likewise.
22010 * function.c: Likewise.
22011 * fwprop.c: Likewise.
22012 * gcse.c: Likewise.
22013 * gimple-ssa-isolate-paths.c: Likewise.
22014 * gimple-ssa-strength-reduction.c: Likewise.
22015 * ipa-split.c: Likewise.
22016 * loop-init.c: Likewise.
22017 * loop-unroll.c: Likewise.
22018 * lower-subreg.c: Likewise.
22019 * modulo-sched.c: Likewise.
22020 * postreload-gcse.c: Likewise.
22021 * predict.c: Likewise.
22022 * recog.c: Likewise.
22023 * sched-rgn.c: Likewise.
22024 * store-motion.c: Likewise.
22025 * tracer.c: Likewise.
22026 * trans-mem.c: Likewise.
22027 * tree-call-cdce.c: Likewise.
22028 * tree-cfg.c: Likewise.
22029 * tree-cfgcleanup.c: Likewise.
22030 * tree-complex.c: Likewise.
22031 * tree-eh.c: Likewise.
22032 * tree-emutls.c: Likewise.
22033 * tree-if-conv.c: Likewise.
22034 * tree-into-ssa.c: Likewise.
22035 * tree-loop-distribution.c: Likewise.
22036 * tree-object-size.c: Likewise.
22037 * tree-parloops.c: Likewise.
22038 * tree-pass.h: Likewise.
22039 * tree-sra.c: Likewise.
22040 * tree-ssa-ccp.c: Likewise.
22041 * tree-ssa-copy.c: Likewise.
22042 * tree-ssa-copyrename.c: Likewise.
22043 * tree-ssa-dce.c: Likewise.
22044 * tree-ssa-dom.c: Likewise.
22045 * tree-ssa-dse.c: Likewise.
22046 * tree-ssa-forwprop.c: Likewise.
22047 * tree-ssa-ifcombine.c: Likewise.
22048 * tree-ssa-loop-ch.c: Likewise.
22049 * tree-ssa-loop-ivcanon.c: Likewise.
22050 * tree-ssa-loop.c: Likewise.
22051 * tree-ssa-math-opts.c: Likewise.
22052 * tree-ssa-phiopt.c: Likewise.
22053 * tree-ssa-phiprop.c: Likewise.
22054 * tree-ssa-pre.c: Likewise.
22055 * tree-ssa-reassoc.c: Likewise.
22056 * tree-ssa-sink.c: Likewise.
22057 * tree-ssa-strlen.c: Likewise.
22058 * tree-ssa-tail-merge.c: Likewise.
22059 * tree-ssa-uncprop.c: Likewise.
22060 * tree-switch-conversion.c: Likewise.
22061 * tree-tailcall.c: Likewise.
22062 * tree-vect-generic.c: Likewise.
22063 * tree-vectorizer.c: Likewise.
22064 * tree-vrp.c: Likewise.
22065 * tsan.c: Likewise.
22066 * var-tracking.c: Likewise.
22067 * bt-load.c: Likewise.
22068 * cfgcleanup.c: Likewise.
22069 * combine-stack-adj.c: Likewise.
22070 * combine.c: Likewise.
22071 * compare-elim.c: Likewise.
22072 * config/epiphany/resolve-sw-modes.c: Likewise.
22073 * config/i386/i386.c: Likewise.
22074 * config/mips/mips.c: Likewise.
22075 * config/s390/s390.c: Likewise.
22076 * config/sh/sh_treg_combine.cc: Likewise.
22077 * config/sparc/sparc.c: Likewise.
22080 * final.c: Likewise.
22081 * ifcvt.c: Likewise.
22082 * mode-switching.c: Likewise.
22083 * passes.c: Likewise.
22084 * postreload.c: Likewise.
22086 * reg-stack.c: Likewise.
22087 * regcprop.c: Likewise.
22088 * regrename.c: Likewise.
22091 2014-05-06 Richard Biener <rguenther@suse.de>
22093 PR middle-end/61070
22094 * bitmap.c (debug_bitmap): Dump to stderr, not stdout.
22095 * tree-ssa-structalias.c (dump_solution_for_var): Likewise.
22097 2014-05-05 Jan Hubicka <hubicka@ucw.cz>
22100 * ipa-devirt.c (get_class_context): Allow POD to change to non-POD.
22102 2014-05-05 Radovan Obradovic <robradovic@mips.com>
22103 Tom de Vries <tom@codesourcery.com>
22105 * target.def (call_fusage_contains_non_callee_clobbers): New
22107 * doc/tm.texi.in (@node Stack and Calling): Add Miscellaneous Register
22109 (@node Miscellaneous Register Hooks): New node.
22110 (@hook TARGET_CALL_FUSAGE_CONTAINS_NON_CALLEE_CLOBBERS): New hook.
22111 * doc/tm.texi: Regenerate.
22113 2014-05-05 Marek Polacek <polacek@redhat.com>
22116 * opts.c (common_handle_option): Call error_at instead of warning_at.
22118 2014-05-05 Richard Biener <rguenther@suse.de>
22120 * passes.c (execute_function_todo): Don't reset TODO_verify_ssa
22121 from last_verified if update_ssa ran. Move TODO_verify_rtl_sharing
22122 under the TODO_verify_il umbrella.
22124 2014-05-05 Richard Biener <rguenther@suse.de>
22126 * passes.c (execute_function_todo): Move TODO_verify_flow under
22127 the TODO_verify_ul umbrella.
22129 2014-05-05 Richard Biener <rguenther@suse.de>
22131 PR middle-end/61010
22132 * fold-const.c (fold_binary_loc): Consistently avoid canonicalizing
22133 X & CST away from a CST that is the mask of a mode.
22135 2014-05-05 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22137 * config/picochip/picochip-protos.h (picochip_regno_nregs): Change
22138 int argument to enum machine_mode.
22139 (picochip_class_max_nregs): Ditto.
22140 * config/picochip/picochip.c (picochip_regno_nregs): Ditto.
22141 (picochip_class_max_nregs): Ditto.
22143 2014-05-05 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
22145 * target.def: Add new target hook.
22146 * doc/tm.texi: Regenerate.
22147 * targhooks.h (default_keep_leaf_when_profiled): Add prototype.
22148 * targhooks.c (default_keep_leaf_when_profiled): New function.
22150 * config/s390/s390.c (s390_keep_leaf_when_profiled): New function.
22151 (TARGET_KEEP_LEAF_WHEN_PROFILED): Define.
22153 2014-05-05 Bin Cheng <bin.cheng@arm.com>
22155 PR tree-optimization/60363
22156 * gcc/tree-ssa-threadupdate.c (get_value_locus_in_path): New.
22157 (copy_phi_args): New parameters. Call get_value_locus_in_path.
22158 (update_destination_phis): New parameter.
22159 (create_edge_and_update_destination_phis): Ditto.
22160 (ssa_fix_duplicate_block_edges): Pass new arguments.
22161 (thread_single_edge): Ditto.
22163 2014-05-04 Peter Bergner <bergner@vnet.ibm.com>
22165 * config/rs6000/rs6000.h (RS6000_BTM_HARD_FLOAT): New define.
22166 (RS6000_BTM_COMMON): Add RS6000_BTM_HARD_FLOAT.
22167 (TARGET_EXTRA_BUILTINS): Add TARGET_HARD_FLOAT.
22168 * config/rs6000/rs6000-builtin.def (BU_MISC_1):
22169 Use RS6000_BTM_HARD_FLOAT.
22170 (BU_MISC_2): Likewise.
22171 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Handle
22172 RS6000_BTM_HARD_FLOAT.
22173 (rs6000_option_override_internal): Enforce -mhard-float if -mhard-dfp
22174 is explicitly used.
22175 (rs6000_invalid_builtin): Add hard floating builtin support.
22176 (rs6000_expand_builtin): Relax the gcc_assert to allow the new
22177 hard float builtins.
22178 (rs6000_builtin_mask_names): Add RS6000_BTM_HARD_FLOAT.
22180 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22182 * config/sh/sh_optimize_sett_clrt.cc (sh_optimize_sett_clrt::execute):
22183 Add missing function* argument.
22185 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22187 * lra-constraints.c (valid_address_p): Move earlier in file.
22188 Add a constraint argument to the address_info version.
22189 (satisfies_memory_constraint_p): New function.
22190 (satisfies_address_constraint_p): Likewise.
22191 (process_alt_operands, curr_insn_transform): Use them.
22192 (process_address): Pass the constraint to valid_address_p when
22193 checking address operands.
22195 2014-05-03 Richard Sandiford <rdsandiford@googlemail.com>
22197 * config/mips/mips.c (mips_isa_rev): New variable.
22198 (mips_set_architecture): Set it.
22199 * config/mips/mips.h (TARGET_CPU_CPP_BUILTINS): Set __mips_isa_rev
22201 (ISA_HAS_MUL3, ISA_HAS_FP_CONDMOVE, ISA_HAS_8CC, ISA_HAS_FP4)
22202 (ISA_HAS_PAIRED_SINGLE, ISA_HAS_MADD_MSUB, ISA_HAS_FP_RECIP_RSQRT)
22203 (ISA_HAS_CLZ_CLO, ISA_HAS_ROR, ISA_HAS_WSBH, ISA_HAS_PREFETCH)
22204 (ISA_HAS_SEB_SEH, ISA_HAS_EXT_INS, ISA_HAS_MXHC1)
22205 (ISA_HAS_HILO_INTERLOCKS, ISA_HAS_SYNCI, MIN_FPRS_PER_FMT): Reexpress
22206 conditions in terms of mips_isa_rev.
22207 (mips_isa_rev): Declare.
22209 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22211 * config/sh/sh-mem.cc: Use tabs instead of spaces.
22212 (prob_unlikely, prob_likely): Make variables const.
22214 2014-05-03 Denis Chertykov <chertykov@gmail.com>
22216 * config/avr/avr.c (avr_adjust_insn_length): Handle JUMP_TABLE_DATA.
22218 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22220 * config/sh/sh.h (SH_ASM_SPEC): Handle m1, m2*, m3* and m4* cases.
22222 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22224 * config/sh/sh.h (ROUND_ADVANCE): Delete macro.
22225 (ROUND_REG, PASS_IN_REG_P): Move and rename macros to ...
22226 * config/sh/sh.c (sh_round_reg, sh_pass_in_reg_p): ... these new
22228 (sh_arg_partial_bytes, sh_function_arg, sh_function_arg_advance,
22229 sh_setup_incoming_varargs): Replace usage of PASS_IN_REG_P with
22231 Replace usage of ROUND_REG with sh_round_reg.
22232 Use CEIL instead of ROUND_ADVANCE.
22234 2014-05-03 Oleg Endo <olegendo@gcc.gnu.org>
22237 * config/sh/sh.c: Include stdlib headers before everything else.
22239 2014-05-02 Jakub Jelinek <jakub@redhat.com>
22241 * gimplify.c (gimplify_adjust_omp_clauses_1): Handle
22242 GOVD_FIRSTPRIVATE | GOVD_LASTPRIVATE.
22243 (gimplify_adjust_omp_clauses): Simd region is never
22244 directly nested in combined parallel. Instead, for linear
22245 with copyin/copyout, if in combined for simd loop, make decl
22246 firstprivate/lastprivate on OMP_FOR.
22247 * omp-low.c (expand_omp_for_generic, expand_omp_for_static_nochunk,
22248 expand_omp_for_static_chunk): When setting endvar, also set
22249 fd->loop.v to the same value.
22251 2014-05-02 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
22253 * hwint.h (zext_hwi): Fix signed overflow for prec == 63.
22255 2014-05-02 Alan Lawrence <alan.lawrence@arm.com>
22257 * config/aarch64/aarch64.c (aarch64_expand_vec_perm_1): Tidy bit-flip
22260 2014-05-02 Marek Polacek <polacek@redhat.com>
22262 * doc/invoke.texi: Describe -fsanitize=float-divide-by-zero.
22264 2014-05-02 Kito Cheng <kito@0xlab.org>
22266 * defaults.h (HONOR_REG_ALLOC_ORDER): Change HONOR_REG_ALLOC_ORDER
22267 to a C expression marco.
22268 * ira-color.c (HONOR_REG_ALLOC_ORDER) : Ditto.
22269 * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Ditto.
22270 * config/nds32/nds32.h (HONOR_REG_ALLOC_ORDER): Ditto.
22271 * doc/tm.texi (HONOR_REG_ALLOC_ORDER): Update document for
22272 HONOR_REG_ALLOC_ORDER.
22273 * doc/tm.texi.in (HONOR_REG_ALLOC_ORDER): Ditto.
22275 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22277 * config/arc/arc.c (TARGET_LRA_P): Undef before redefine.
22279 2014-05-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
22281 * config/arc/arc.c (arc_select_cc_mode): Fix typo.
22283 2014-05-01 Yuri Rumyantsev <ysrumyan@gmail.com>
22285 * tree-if-conv.c (is_cond_scalar_reduction): New function.
22286 (convert_scalar_cond_reduction): Likewise.
22287 (predicate_scalar_phi): Add recognition and transformation
22288 of simple conditioanl reduction to be vectorizable.
22290 2014-05-01 Marek Polacek <polacek@redhat.com>
22293 * doc/invoke.texi: Document -Wdiscarded-qualifiers.
22295 2014-04-30 Alan Lawrence <alan.lawrence@arm.com>
22297 * config/aarch64/arm_neon.h (vuzp1_f32, vuzp1_p8, vuzp1_p16, vuzp1_s8,
22298 vuzp1_s16, vuzp1_s32, vuzp1_u8, vuzp1_u16, vuzp1_u32, vuzp1q_f32,
22299 vuzp1q_f64, vuzp1q_p8, vuzp1q_p16, vuzp1q_s8, vuzp1q_s16, vuzp1q_s32,
22300 vuzp1q_s64, vuzp1q_u8, vuzp1q_u16, vuzp1q_u32, vuzp1q_u64, vuzp2_f32,
22301 vuzp2_p8, vuzp2_p16, vuzp2_s8, vuzp2_s16, vuzp2_s32, vuzp2_u8,
22302 vuzp2_u16, vuzp2_u32, vuzp2q_f32, vuzp2q_f64, vuzp2q_p8, vuzp2q_p16,
22303 vuzp2q_s8, vuzp2q_s16, vuzp2q_s32, vuzp2q_s64, vuzp2q_u8, vuzp2q_u16,
22304 vuzp2q_u32, vuzp2q_u64): Replace temporary asm with __builtin_shuffle.
22306 2014-04-30 Joern Rennecke <joern.rennecke@embecosm.com>
22308 * config/arc/arc.opt (mlra): Move comment above option name
22309 to avoid mis-parsing as language options.
22311 2014-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22313 * config/sol2-10.h (TARGET_LIBC_HAS_FUNCTION): Move ...
22314 * config/sol2.h: ... here.
22315 * config/sol2-10.h: Remove.
22317 * config/sol2-bi.h (WCHAR_TYPE, WCHAR_TYPE_SIZE, WINT_TYPE)
22318 (WINT_TYPE_SIZE, MULTILIB_DEFAULTS, DEF_ARCH32_SPEC)
22319 (DEF_ARCH64_SPEC, ASM_CPU_DEFAULT_SPEC, LINK_ARCH64_SPEC_BASE)
22320 (LINK_ARCH64_SPEC, ARCH_DEFAULT_EMULATION, TARGET_LD_EMULATION)
22321 (LINK_ARCH_SPEC, SUBTARGET_EXTRA_SPECS): Move ...
22322 * config/sol2.h: ... here.
22323 (SECTION_NAME_FORMAT): Don't redefine.
22324 (STARTFILE_ARCH32_SPEC): Rename to ...
22325 (STARTFILE_ARCH_SPEC): ... this.
22326 (ASM_OUTPUT_ALIGNED_COMMON): Move ...
22327 * config/sparc/sol2.h: ... here.
22328 (SECTION_NAME_FORMAT): Don't undef.
22329 * config/i386/sol2.h (ASM_CPU_DEFAULT_SPEC)
22330 (SUBTARGET_EXTRA_SPECS): Remove.
22331 * config/sparc/sol2.h (ASM_CPU_DEFAULT_SPEC): Remove.
22333 * config/i386/sol2-bi.h (TARGET_SUBTARGET_DEFAULT)
22334 (MD_STARTFILE_PREFIX): Remove.
22335 (SUBTARGET_OPTIMIZATION_OPTIONS, ASM_CPU32_DEFAULT_SPEC)
22336 (ASM_CPU64_DEFAULT_SPEC, ASM_CPU_SPEC, ASM_SPEC, DEFAULT_ARCH32_P)
22337 (ARCH64_SUBDIR, ARCH32_EMULATION, ARCH64_EMULATION)
22338 (ASM_COMMENT_START, JUMP_TABLES_IN_TEXT_SECTION)
22339 (ASM_OUTPUT_DWARF_PCREL, ASM_OUTPUT_ALIGNED_COMMON)
22340 (USE_IX86_FRAME_POINTER, USE_X86_64_FRAME_POINTER): Move ...
22341 * config/i386/sol2.h: ... here.
22342 (TARGET_SUBTARGET_DEFAULT, SIZE_TYPE, PTRDIFF_TYPE): Remove.
22343 * config/i386/sol2-bi.h: Remove.
22344 * config/sol2.h (MD_STARTFILE_PREFIX): Remove.
22345 (LINK_ARCH32_SPEC_BASE): Remove /usr/ccs/lib/libp, /usr/ccs/lib.
22347 * config/i386/t-sol2-64: Rename to ...
22348 * config/i386/t-sol2: ... this.
22349 * config/sparc/t-sol2-64: Rename to ...
22350 * config/sparc/t-sol2: ... this.
22352 * config.gcc (*-*-solaris2*): Split sol2_tm_file into
22353 sol2_tm_file_head, sol2_tm_file_tail.
22354 Include ${cpu_type}/sol2.h before sol2.h.
22356 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Include
22357 i386/x86-64.h between sol2_tm_file_head and sol2_tm_file_tail.
22358 Remove i386/sol2-bi.h, sol2-bi.h from tm_file.
22359 Reflect i386/t-sol2-64 renaming.
22360 (sparc*-*-solaris2*): Remove sol2-bi.h from tm_file.
22361 Reflect sparc/t-sol2-64 renaming.
22363 2014-04-30 Richard Biener <rguenther@suse.de>
22365 * passes.c (execute_function_todo): Move TODO_verify_stmts
22366 and TODO_verify_ssa under the TODO_verify_il umbrella.
22367 * tree-ssa.h (verify_ssa): Adjust prototype.
22368 * tree-ssa.c (verify_ssa): Add parameter to tell whether
22369 we should verify SSA operands.
22370 * tree-cfg.h (verify_gimple_in_cfg): Adjust prototype.
22371 * tree-cfg.c (verify_gimple_in_cfg): Add parameter to tell
22372 whether we should verify whether not throwing stmts have EH info.
22373 * graphite-scop-detection.c (create_sese_edges): Adjust.
22374 * tree-ssa-loop-manip.c (verify_loop_closed_ssa): Likewise.
22375 * tree-eh.c (lower_try_finally_switch): Do not add the
22376 default case label twice.
22378 2014-04-30 Marek Polacek <polacek@redhat.com>
22380 * gcc.c (sanitize_spec_function): Handle SANITIZE_FLOAT_DIVIDE.
22381 * builtins.def: Initialize builtins even for SANITIZE_FLOAT_DIVIDE.
22382 * flag-types.h (enum sanitize_code): Add SANITIZE_FLOAT_DIVIDE.
22383 * opts.c (common_handle_option): Add -fsanitize=float-divide-by-zero.
22385 2014-04-29 Alan Lawrence <alan.lawrence@arm.com>
22387 * config/aarch64/arm_neon.h (vzip1_f32, vzip1_p8, vzip1_p16, vzip1_s8,
22388 vzip1_s16, vzip1_s32, vzip1_u8, vzip1_u16, vzip1_u32, vzip1q_f32,
22389 vzip1q_f64, vzip1q_p8, vzip1q_p16, vzip1q_s8, vzip1q_s16, vzip1q_s32,
22390 vzip1q_s64, vzip1q_u8, vzip1q_u16, vzip1q_u32, vzip1q_u64, vzip2_f32,
22391 vzip2_p8, vzip2_p16, vzip2_s8, vzip2_s16, vzip2_s32, vzip2_u8,
22392 vzip2_u16, vzip2_u32, vzip2q_f32, vzip2q_f64, vzip2q_p8, vzip2q_p16,
22393 vzip2q_s8, vzip2q_s16, vzip2q_s32, vzip2q_s64, vzip2q_u8, vzip2q_u16,
22394 vzip2q_u32, vzip2q_u64): Replace inline __asm__ with __builtin_shuffle.
22396 2014-04-29 David Malcolm <dmalcolm@redhat.com>
22398 * tree-cfg.c (dump_function_to_file): Dump the return type of
22399 functions, in a line to itself before the function body, mimicking
22400 the layout of a C function.
22402 2014-04-29 Jakub Jelinek <jakub@redhat.com>
22404 PR tree-optimization/60971
22405 * tree-tailcall.c (process_assignment): Reject conversions which
22408 2014-04-29 James Greenhalgh <james.greenhalgh@arm.com>
22410 * calls.c (initialize_argument_information): Always treat
22411 PUSH_ARGS_REVERSED as 1, simplify code accordingly.
22412 (expand_call): Likewise.
22413 (emit_library_call_calue_1): Likewise.
22414 * expr.c (PUSH_ARGS_REVERSED): Do not define.
22415 (emit_push_insn): Always treat PUSH_ARGS_REVERSED as 1, simplify
22418 2014-04-29 Nick Clifton <nickc@redhat.com>
22420 * config/msp430/msp430.md (umulsidi): Fix typo.
22421 (mulhisi3): Enable even inside interrupt handlers.
22422 * config/msp430/msp430.c (msp430_print_operand): %O: Allow for the
22423 bigger return address pushed in large mode.
22425 2014-04-29 Nick Clifton <nickc@redhat.com>
22427 * config/arc/arc.c (arc_select_cc_mode): Fix parentheses.
22428 (arc_init_reg_tables): Use a machine_mode enum to iterate over
22430 * config/m32r/m32r.c (init_reg_tables): Likewise.
22431 * config/m32c/m32c.c (m32c_illegal_subreg_p): Use a machine_mode
22432 enum to hold the modes.
22434 2014-04-29 Richard Biener <rguenther@suse.de>
22436 * dominance.c (free_dominance_info): Add overload with
22437 function parameter.
22438 (dom_info_state): Likewise.
22439 (dom_info_available_p): Likewise.
22440 * basic-block.h (free_dominance_info, dom_info_state,
22441 dom_info_available_p): Declare overloads.
22442 * passes.c (execute_function_todo): Verify that verifiers
22443 don't change dominator info state. Drop dominator info
22444 for IPA pass invocations.
22445 * cgraph.c (release_function_body): Restore asserts that
22446 dominator information is released.
22448 2014-04-29 Patrick Palka <patrick@parcs.ath.cx>
22450 * doc/invoke.texi: Fix typo.
22451 * tree-vrp.c: Fix typos.
22452 * gimple.c (infer_nonnull_range): Reorder operands of an && condition.
22454 2014-04-29 Zhenqiang Chen <zhenqiang.chen@linaro.org>
22456 * config/aarch64/aarch64.md (mov<mode>cc): New for GPF.
22458 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22460 * config/aarch64/aarch64-builtins.c
22461 (aarch64_types_storestruct_lane_qualifiers): New.
22462 (TYPES_STORESTRUCT_LANE): Likewise.
22463 * config/aarch64/aarch64-simd-builtins.def (st2_lane): New.
22464 (st3_lane): Likewise.
22465 (st4_lane): Likewise.
22466 * config/aarch64/aarch64-simd.md (vec_store_lanesoi_lane<mode>): New.
22467 (vec_store_lanesci_lane<mode>): Likewise.
22468 (vec_store_lanesxi_lane<mode>): Likewise.
22469 (aarch64_st2_lane<VQ:mode>): Likewise.
22470 (aarch64_st3_lane<VQ:mode>): Likewise.
22471 (aarch64_st4_lane<VQ:mode>): Likewise.
22472 * config/aarch64/aarch64.md (unspec): Add UNSPEC_ST{2,3,4}_LANE.
22473 * config/aarch64/arm_neon.h
22474 (__ST2_LANE_FUNC): Rewrite using builtins, update use points to
22475 use new macro arguments.
22476 (__ST3_LANE_FUNC): Likewise.
22477 (__ST4_LANE_FUNC): Likewise.
22478 * config/aarch64/iterators.md (V_TWO_ELEM): New.
22479 (V_THREE_ELEM): Likewise.
22480 (V_FOUR_ELEM): Likewise.
22482 2014-04-28 David Malcolm <dmalcolm@redhat.com>
22484 * doc/gimple.texi: Replace the description of the now-defunct
22485 union gimple_statement_d with a diagram showing the
22486 gimple_statement_base class hierarchy and its relationships to
22487 the GSS_ and GIMPLE_ enums.
22489 2014-04-28 James Greenhalgh <james.greenhalgh@arm.com>
22491 * config/aarch64/aarch64-protos.h (aarch64_modes_tieable_p): New.
22492 * config/aarch64/aarch64.c
22493 (aarch64_cannot_change_mode_class): Weaken conditions.
22494 (aarch64_modes_tieable_p): New.
22495 * config/aarch64/aarch64.h (MODES_TIEABLE_P): Use it.
22497 2014-04-28 Pat Haugen <pthaugen@us.ibm.com>
22499 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
22500 (loadsync_<mode>): Change mode.
22501 (load_quadpti, store_quadpti): New.
22502 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
22503 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
22505 2014-04-28 Martin Jambor <mjambor@suse.cz>
22507 * tree-sra.c (sra_modify_expr): Generate new memory accesses with
22508 same alias type as the original statement.
22509 (subreplacement_assignment_data): New type.
22510 (handle_unscalarized_data_in_subtree): New type of parameter,
22511 generate new memory accesses with same alias type as the original
22513 (load_assign_lhs_subreplacements): Likewise.
22514 (sra_modify_constructor_assign): Generate new memory accesses with
22515 same alias type as the original statement.
22517 2014-04-28 Richard Biener <rguenther@suse.de>
22519 * tree-pass.h (TODO_verify_il): Define.
22520 (TODO_verify_all): Complete properly.
22521 * passes.c (execute_function_todo): Move existing loop-closed
22522 SSA verification under TODO_verify_il.
22523 (execute_one_pass): Trigger TODO_verify_il at todo-after time.
22524 * graphite-sese-to-poly.c (rewrite_cross_bb_scalar_deps):
22525 Fix tree sharing issue.
22527 2014-04-28 Richard Biener <rguenther@suse.de>
22529 PR middle-end/60092
22530 * builtins.def (DEF_C11_BUILTIN): Add.
22531 (BUILT_IN_ALIGNED_ALLOC): Likewise.
22532 * coretypes.h (enum function_class): Add function_c11_misc.
22533 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Handle
22534 BUILT_IN_ALIGNED_ALLOC like BUILT_IN_MALLOC.
22535 (call_may_clobber_ref_p_1): Likewise.
22536 * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Likewise.
22537 (mark_all_reaching_defs_necessary_1): Likewise.
22538 (propagate_necessity): Likewise.
22539 (eliminate_unnecessary_stmts): Likewise.
22540 * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_ALIGNED_ALLOC.
22542 2014-04-28 Richard Biener <rguenther@suse.de>
22544 * tree-vrp.c (vrp_var_may_overflow): Remove.
22545 (vrp_visit_phi_node): Rather than bumping to +-INF possibly
22546 with overflow immediately bump to one before that value and
22547 let iteration figure out overflow status.
22549 2014-04-28 Richard Biener <rguenther@suse.de>
22551 * configure.ac: Do valgrind header checks unconditionally.
22552 Add --enable-valgrind-annotations.
22553 * system.h: Guard valgrind header inclusion with
22554 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING.
22555 * alloc-pool.c (pool_alloc, pool_free): Use
22556 ENABLE_VALGRIND_ANNOTATIONS instead of ENABLE_VALGRIND_CHECKING
22557 to guard possibly dead code.
22558 * config.in: Regenerated.
22559 * configure: Likewise.
22561 2014-04-28 Jeff Law <law@redhat.com>
22563 PR tree-optimization/60902
22564 * tree-ssa-threadedge.c
22565 (record_temporary_equivalences_from_stmts_at_dest): Only iterate
22566 over real defs when invalidating outputs from statements that do not
22567 produce useful outputs for threading.
22569 2014-04-28 Richard Biener <rguenther@suse.de>
22571 PR tree-optimization/60979
22572 * graphite-scop-detection.c (scopdet_basic_block_info): Reject
22573 SCOPs that end in a block with a successor with abnormal
22576 2014-04-28 Richard Biener <rguenther@suse.de>
22578 * tree-pass.h (execute_pass_list): Adjust prototype.
22579 * passes.c (pass_manager::execute_early_local_passes): Adjust.
22580 (do_per_function): Change callback signature, push all actual
22581 work to the callbals.
22582 (do_per_function_toporder): Likewise.
22583 (execute_function_dump): Adjust.
22584 (execute_function_todo): Likewise.
22585 (clear_last_verified): Likewise.
22586 (verify_curr_properties): Likewise.
22587 (update_properties_after_pass): Likewise.
22588 (execute_pass_list_1): Split out from ...
22589 (execute_pass_list): ... here. Adjust.
22590 (execute_ipa_pass_list): Likewise.
22591 * cgraphunit.c (cgraph_add_new_function): Adjust.
22592 (analyze_function): Likewise.
22593 (expand_function): Likewise.
22594 * cgraph.c (release_function_body): Free dominance info
22595 here instead of asserting it was magically freed elsewhere.
22597 2014-04-28 Eric Botcazou <ebotcazou@adacore.com>
22599 * configure.ac: Tweak GAS check for LEON instructions on SPARC.
22600 * configure: Regenerate.
22601 * config/sparc/sparc.opt (muser-mode): New option.
22602 * config/sparc/sync.md (atomic_compare_and_swap<mode>_1): Do not enable
22604 (atomic_compare_and_swap_leon3_1): New instruction for LEON3.
22605 * doc/invoke.texi (SPARC options): Document -muser-mode.
22607 2014-04-27 Richard Sandiford <rdsandiford@googlemail.com>
22609 * cselib.c (find_slot_memmode): Delete.
22610 (cselib_hasher): Change compare_type to a struct.
22611 (cselib_hasher::equal): Update accordingly. Don't expect wrapped
22613 (preserve_constants_and_equivs): Adjust for new compare_type.
22614 (cselib_find_slot): Likewise. Take the mode of the rtx as argument.
22615 (wrap_constant): Delete.
22616 (cselib_lookup_mem, cselib_lookup_1): Update calls to cselib_find_slot.
22618 2014-04-26 Markus Trippelsdorf <markus@trippelsdorf.de>
22620 * doc/install.texi (Building with profile feedback): Remove
22623 2014-04-26 Tom de Vries <tom@codesourcery.com>
22625 * config/i386/i386.md (define_expand "ldexpxf3"): Fix out-of-bounds
22628 2014-04-25 Cary Coutant <ccoutant@google.com>
22631 * dwarf2out.c (should_move_die_to_comdat): A type definition
22632 can contain a subprogram definition, but don't move it to a
22634 (clone_as_declaration): Copy DW_AT_abstract_origin attribute.
22635 (generate_skeleton_bottom_up): Remove DW_AT_object_pointer attribute
22637 (clone_tree_hash): Rename to...
22638 (clone_tree_partial): ...this; change callers. Copy
22639 DW_TAG_subprogram DIEs as declarations.
22640 (copy_decls_walk): Don't copy children of a declaration into a
22643 2014-04-25 H.J. Lu <hongjiu.lu@intel.com>
22646 * config/i386/i386.md (*movsf_internal): Set MODE to SI for
22649 2014-04-25 Jiong Wang <jiong.wang@arm.com>
22651 * config/arm/predicates.md (call_insn_operand): Add long_call check.
22652 * config/arm/arm.md (sibcall, sibcall_value): Force the address to
22654 * config/arm/arm.c (arm_function_ok_for_sibcall): Remove long_call
22657 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22659 * config/arm/arm.c (arm_cortex_a8_tune): Initialise T16-related fields.
22661 2014-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
22663 PR tree-optimization/60930
22664 * gimple-ssa-strength-reduction.c (create_mul_imm_cand): Reject
22665 creating a multiply candidate by folding two constant
22666 multiplicands when the result overflows.
22668 2014-04-25 Jakub Jelinek <jakub@redhat.com>
22670 PR tree-optimization/60960
22671 * tree-vect-generic.c (expand_vector_operation): Only call
22672 expand_vector_divmod if type's mode satisfies VECTOR_MODE_P.
22674 2014-04-25 Tom de Vries <tom@codesourcery.com>
22676 * expr.c (clobber_reg_mode): New function.
22677 * expr.h (clobber_reg): New function.
22679 2014-04-25 Tom de Vries <tom@codesourcery.com>
22681 * rtlanal.c (find_all_hard_reg_sets): Note INSN_CALL_FUNCTION_USAGE
22684 2014-04-25 Radovan Obradovic <robradovic@mips.com>
22685 Tom de Vries <tom@codesourcery.com>
22687 * rtlanal.c (find_all_hard_reg_sets): Add bool implicit parameter and
22689 * rtl.h (find_all_hard_reg_sets): Add bool parameter.
22690 * haifa-sched.c (recompute_todo_spec, check_clobbered_conditions): Add
22691 new argument to find_all_hard_reg_sets call.
22693 2014-04-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22695 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p):
22696 Use HOST_WIDE_INT_C for mask literal.
22697 (aarch_rev16_shleft_mask_imm_p): Likewise.
22699 2014-04-25 Eric Botcazou <ebotcazou@adacore.com>
22702 * config/sparc/sparc.md (ashlsi3_extend): Delete.
22704 2014-04-25 Marc Glisse <marc.glisse@inria.fr>
22706 PR preprocessor/56540
22707 * config/i386/i386-c.c (ix86_target_macros): Define
22708 __SIZEOF_FLOAT80__ and __SIZEOF_FLOAT128__.
22710 2014-04-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22712 * configure.ac (tga_func): Remove.
22713 (LIB_TLS_SPEC): Remove.
22714 * configure: Regenerate.
22715 * config.in: Regenerate.
22716 * config/sol2.h (LIB_SPEC): Don't use LIB_TLS_SPEC.
22718 2014-04-25 Richard Biener <rguenther@suse.de>
22721 * tree-ssa-structalias.c (ipa_pta_execute): Compute direct
22722 call stmt use/clobber sets during stmt walk instead of
22723 walking the possibly incomplete set of caller edges.
22725 2014-04-25 Richard Biener <rguenther@suse.de>
22728 * passes.c (apply_ipa_transforms): Inline into only caller ...
22729 (execute_one_pass): ... here. Properly bring in function
22730 bodies for nodes we want to apply IPA transforms to.
22732 2014-04-24 Cong Hou <congh@google.com>
22734 PR tree-optimization/60896
22735 * tree-vect-patterns.c (vect_recog_dot_prod_pattern): Pick up
22736 all statements in PATTERN_DEF_SEQ in recognized widen-mult pattern.
22737 (vect_mark_pattern_stmts): Set the def type of all statements in
22738 PATTERN_DEF_SEQ as vect_internal_def.
22740 2014-04-24 Michael Meissner <meissner@linux.vnet.ibm.com>
22742 * doc/extend.texi (PowerPC Built-in Functions): Document new
22743 powerpc extended divide, bcd, pack/unpack 128-bit, builtin functions.
22744 (PowerPC AltiVec/VSX Built-in Functions): Likewise.
22746 * config/rs6000/predicates.md (const_0_to_3_operand): New
22747 predicate to match 0..3 integer constants.
22749 * config/rs6000/rs6000-builtin.def (BU_DFP_MISC_1): Add new macros
22750 to support adding miscellaneous builtin functions.
22751 (BU_DFP_MISC_2): Likewise.
22752 (BU_P7_MISC_1): Likewise.
22753 (BU_P7_MISC_2): Likewise.
22754 (BU_P8V_MISC_3): Likewise.
22755 (BU_MISC_1): Likewise.
22756 (BU_MISC_2): Likewise.
22757 (DIVWE): Add extended divide builtin functions.
22758 (DIVWEO): Likewise.
22759 (DIVWEU): Likewise.
22760 (DIVWEUO): Likewise.
22762 (DIVDEO): Likewise.
22763 (DIVDEU): Likewise.
22764 (DIVDEUO): Likewise.
22765 (DXEX): Add decimal floating-point builtin functions.
22767 (DDEDPD): Likewise.
22768 (DDEDPDQ): Likewise.
22769 (DENBCD): Likewise.
22770 (DENBCDQ): Likewise.
22774 (DSCLIQ): Likewise.
22776 (DSCRIQ): Likewise.
22777 (CDTBCD): Add new BCD builtin functions.
22778 (CBCDTD): Likewise.
22779 (ADDG6S): Likewise.
22780 (BCDADD): Likewise.
22781 (BCDADD_LT): Likewise.
22782 (BCDADD_EQ): Likewise.
22783 (BCDADD_GT): Likewise.
22784 (BCDADD_OV): Likewise.
22785 (BCDSUB): Likewise.
22786 (BCDSUB_LT): Likewise.
22787 (BCDSUB_EQ): Likewise.
22788 (BCDSUB_GT): Likewise.
22789 (BCDSUB_OV): Likewise.
22790 (PACK_TD): Add new pack/unpack 128-bit type builtin functions.
22791 (UNPACK_TD): Likewise.
22792 (PACK_TF): Likewise.
22793 (UNPACK_TF): Likewise.
22794 (UNPACK_TF_0): Likewise.
22795 (UNPACK_TF_1): Likewise.
22796 (PACK_V1TI): Likewise.
22797 (UNPACK_V1TI): Likewise.
22799 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
22800 support for decimal floating point builtin functions.
22801 (rs6000_expand_ternop_builtin): Add checks for the new builtin
22802 functions that take constant arguments.
22803 (rs6000_invalid_builtin): Add decimal floating point builtin support.
22804 (rs6000_init_builtins): Setup long double, _Decimal64, and
22805 _Decimal128 types for new builtin functions.
22806 (builtin_function_type): Set the unsigned flags appropriately for
22807 the new builtin functions.
22808 (rs6000_opt_masks): Add support for decimal floating point builtin
22811 * config/rs6000/rs6000.h (RS6000_BTM_DFP): Add support for decimal
22812 floating point builtin functions.
22813 (RS6000_BTM_COMMON): Likewise.
22814 (RS6000_BTI_long_double): Likewise.
22815 (RS6000_BTI_dfloat64): Likewise.
22816 (RS6000_BTI_dfloat128): Likewise.
22817 (long_double_type_internal_node): Likewise.
22818 (dfloat64_type_internal_node): Likewise.
22819 (dfloat128_type_internal_node): Likewise.
22821 * config/rs6000/altivec.h (UNSPEC_BCDADD): Add support for ISA
22822 2.07 bcd arithmetic instructions.
22823 (UNSPEC_BCDSUB): Likewise.
22824 (UNSPEC_BCD_OVERFLOW): Likewise.
22825 (UNSPEC_BCD_ADD_SUB): Likewise.
22826 (bcd_add_sub): Likewise.
22827 (BCD_TEST): Likewise.
22828 (bcd<bcd_add_sub>): Likewise.
22829 (bcd<bcd_add_sub>_test): Likewise.
22830 (bcd<bcd_add_sub>_test2): Likewise.
22831 (bcd<bcd_add_sub>_<code>): Likewise.
22832 (peephole2 for combined bcd ops): Likewise.
22834 * config/rs6000/dfp.md (UNSPEC_DDEDPD): Add support for new
22835 decimal floating point builtin functions.
22836 (UNSPEC_DENBCD): Likewise.
22837 (UNSPEC_DXEX): Likewise.
22838 (UNSPEC_DIEX): Likewise.
22839 (UNSPEC_DSCLI): Likewise.
22840 (UNSPEC_DSCRI): Likewise.
22841 (D64_D128): Likewise.
22842 (dfp_suffix): Likewise.
22843 (dfp_ddedpd_<mode>): Likewise.
22844 (dfp_denbcd_<mode>): Likewise.
22845 (dfp_dxex_<mode>): Likewise.
22846 (dfp_diex_<mode>): Likewise.
22847 (dfp_dscli_<mode>): Likewise.
22848 (dfp_dscri_<mode>): Likewise.
22850 * config/rs6000/rs6000.md (UNSPEC_ADDG6S): Add support for new BCD
22852 (UNSPEC_CDTBCD): Likewise.
22853 (UNSPEC_CBCDTD): Likewise.
22854 (UNSPEC_DIVE): Add support for new extended divide builtin functions.
22855 (UNSPEC_DIVEO): Likewise.
22856 (UNSPEC_DIVEU): Likewise.
22857 (UNSPEC_DIVEUO): Likewise.
22858 (UNSPEC_UNPACK_128BIT): Add support for new builtin functions to
22859 pack/unpack 128-bit types.
22860 (UNSPEC_PACK_128BIT): Likewise.
22861 (idiv_ldiv): New mode attribute to set the 32/64-bit divide type.
22862 (udiv<mode>3): Use idiv_ldiv mode attribute.
22863 (div<mode>3): Likewise.
22864 (addg6s): Add new BCD builtin functions.
22865 (cdtbcd): Likewise.
22866 (cbcdtd): Likewise.
22867 (UNSPEC_DIV_EXTEND): Add support for new extended divide instructions.
22868 (div_extend): Likewise.
22869 (div<div_extend>_<mode>"): Likewise.
22870 (FP128_64): Add support for new builtin functions to pack/unpack
22872 (unpack<mode>): Likewise.
22873 (unpacktf_0): Likewise.
22874 (unpacktf_1): Likewise.
22875 (unpack<mode>_dm): Likewise.
22876 (unpack<mode>_nodm): Likewise.
22877 (pack<mode>): Likewise.
22878 (unpackv1ti): Likewise.
22879 (packv1ti): Likewise.
22881 2014-04-24 Vishnu K S <Vishnu.k_s@atmel.com>
22883 * gcc/config/avr/avr.c: Add comment on why -fdelete-null-pointer-checks
22886 2014-04-24 Jakub Jelinek <jakub@redhat.com>
22888 * tree.h (OMP_CLAUSE_LINEAR_GIMPLE_SEQ): Define.
22889 * gimplify.c (omp_is_private): Change last argument's type to int.
22890 Only diagnose lastprivate if the simd argument is 1, only diagnose
22891 linear if the simd argument is 2.
22892 (gimplify_omp_for): Adjust omp_is_private callers. When adding
22893 lastprivate or private, add the clause to OMP_FOR_CLAUSES. Pass
22894 GOVD_EXPLICIT to omp_add_variable. For simd with collapse == 1
22895 create OMP_CLAUSE_LINEAR rather than OMP_CLAUSE_PRIVATE for var.
22896 If var != decl and decl is in OMP_CLAUSE_LINEAR, gimplify decl
22897 increment to OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22898 * omp-low.c (scan_sharing_clauses, lower_lastprivate_clauses): Handle
22899 OMP_CLAUSE_LINEAR_GIMPLE_SEQ.
22900 * tree-nested.c (convert_nonlocal_omp_clauses,
22901 convert_local_omp_clauses): Handle OMP_CLAUSE_LINEAR.
22903 2014-04-24 Segher Boessenkool <segher@kernel.crashing.org>
22906 * config/m68k/m68k.md (extendplussidi): Don't allow memory for
22909 2014-04-24 Dimitris Papavasiliou <dpapavas@gmail.com>
22911 * flag-types.h (enum ivar_visibility): Add.
22913 2014-04-24 Trevor Saunders <tsaunders@mozilla.com>
22915 * config/sh/sh_treg_combine.c (sh_treg_combine::execute): Take
22916 function * argument.
22918 2014-04-24 Alan Lawrence <alan.lawrence@arm.com>
22920 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Enable for bigendian.
22922 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22923 Tom de Vries <tom@codesourcery.com>
22925 * reg-notes.def (REG_NOTE (CALL_DECL)): New reg-note REG_CALL_DECL.
22926 * calls.c (expand_call, emit_library_call_value_1): Add REG_CALL_DECL
22928 * combine.c (distribute_notes): Handle REG_CALL_DECL reg-note.
22929 * emit-rtl.c (try_split): Same.
22931 2014-04-24 Radovan Obradovic <robradovic@mips.com>
22932 Tom de Vries <tom@codesourcery.com>
22934 * common.opt (fuse-caller-save): New option.
22936 2014-04-24 Tejas Belagod <tejas.belagod@arm.com>
22938 * config/aarch64/aarch64.c (aarch64_evpc_tbl): Reverse order of
22939 elements for big-endian.
22941 2014-04-24 Richard Biener <rguenther@suse.de>
22943 * expr.c (expand_expr_real_1): Avoid gimple_assign_rhs_to_tree
22944 during TER and instead use the sepops interface for expanding
22945 non-GIMPLE_SINGLE_RHS.
22947 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22949 * config/i386/sol2.h (ASM_PREFERRED_EH_DATA_FORMAT): Only redefine
22950 if not HAVE_AS_IX86_DIFF_SECT_DELTA.
22952 2014-04-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
22954 * configure.ac (gcc_cv_as_cfi_directive): Support Solaris/x86
22955 assembler 64-bit option.
22956 * configure: Regenerate.
22958 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22960 * config/aarch64/aarch64.h (TARGET_CPU_CPP_BUILTINS): Check
22961 TARGET_SIMD rather than TARGET_GENERAL_REGS_ONLY.
22962 (TARGET_SIMD): Take AARCH64_ISA_SIMD into account.
22963 (TARGET_FLOAT): Take AARCH64_ISA_FP into account.
22964 (TARGET_CRYPTO): Take TARGET_SIMD into account.
22966 2014-04-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
22968 * config/aarch64/aarch64-builtins.c
22969 (aarch64_builtin_vectorized_function): Handle BUILT_IN_BSWAP16,
22970 BUILT_IN_BSWAP32, BUILT_IN_BSWAP64.
22971 * config/aarch64/aarch64-simd.md (bswap<mode>): New pattern.
22972 * config/aarch64/aarch64-simd-builtins.def: Define vector bswap
22974 * config/aarch64/iterator.md (VDQHSD): New mode iterator.
22975 (Vrevsuff): New mode attribute.
22977 2014-04-24 Terry Guo <terry.guo@arm.com>
22979 * config/arm/arm.h (machine_function): Define variable
22980 after_arm_reorg here.
22981 * config/arm/arm.c (after_arm_reorg): Remove the definition.
22982 (arm_split_constant): Update the way to access variable
22984 (arm_reorg): Ditto.
22985 (arm_output_function_epilogue): Remove the reset of after_arm_reorg.
22987 2014-04-23 Tom de Vries <tom@codesourcery.com>
22989 * target-hooks-macros.h: Fix DEFHOOKPOD argument order in comment.
22991 2014-04-23 David Malcolm <dmalcolm@redhat.com>
22993 * is-a.h: Update comments to reflect the following changes to the
22994 "pointerness" of the API, making the template parameter match the
22995 return type, allowing use of is-a.h with typedefs of pointers.
22996 (is_a_helper::cast): Return a T rather then a pointer to a T, so
22997 that the return type matches the parameter to the is_a_helper.
22999 (dyn_cast): Likewise.
23001 * cgraph.c (cgraph_node_for_asm): Update for removal of implicit
23002 pointer from the is-a.h API.
23004 * cgraph.h (is_a_helper <cgraph_node>::test): Convert to...
23005 (is_a_helper <cgraph_node *>::test): ...this, matching change to
23007 (is_a_helper <varpool_node>::test): Likewise, convert to...
23008 (is_a_helper <varpool_node *>::test): ...this.
23010 (varpool_first_variable): Update for removal of implicit pointer
23011 from the is-a.h API.
23012 (varpool_next_variable): Likewise.
23013 (varpool_first_static_initializer): Likewise.
23014 (varpool_next_static_initializer): Likewise.
23015 (varpool_first_defined_variable): Likewise.
23016 (varpool_next_defined_variable): Likewise.
23017 (cgraph_first_defined_function): Likewise.
23018 (cgraph_next_defined_function): Likewise.
23019 (cgraph_first_function): Likewise.
23020 (cgraph_next_function): Likewise.
23021 (cgraph_first_function_with_gimple_body): Likewise.
23022 (cgraph_next_function_with_gimple_body): Likewise.
23023 (cgraph_alias_target): Likewise.
23024 (varpool_alias_target): Likewise.
23025 (cgraph_function_or_thunk_node): Likewise.
23026 (varpool_variable_node): Likewise.
23027 (symtab_real_symbol_p): Likewise.
23028 * cgraphunit.c (referred_to_p): Likewise.
23029 (analyze_functions): Likewise.
23030 (handle_alias_pairs): Likewise.
23031 * gimple-fold.c (can_refer_decl_in_current_unit_p): Likewise.
23032 * gimple-ssa.h (gimple_vuse_op): Likewise.
23033 (gimple_vdef_op): Likewise.
23034 * gimple-streamer-in.c (input_gimple_stmt): Likewise.
23035 * gimple.c (gimple_build_asm_1): Likewise.
23036 (gimple_build_try): Likewise.
23037 (gimple_build_resx): Likewise.
23038 (gimple_build_eh_dispatch): Likewise.
23039 (gimple_build_omp_for): Likewise.
23040 (gimple_omp_for_set_clauses): Likewise.
23042 * gimple.h (is_a_helper <gimple_statement_asm>::test): Convert to...
23043 (is_a_helper <gimple_statement_asm *>::test): ...this.
23044 (is_a_helper <gimple_statement_bind>::test): Convert to...
23045 (is_a_helper <gimple_statement_bind *>::test): ...this.
23046 (is_a_helper <gimple_statement_call>::test): Convert to...
23047 (is_a_helper <gimple_statement_call *>::test): ...this.
23048 (is_a_helper <gimple_statement_catch>::test): Convert to...
23049 (is_a_helper <gimple_statement_catch *>::test): ...this.
23050 (is_a_helper <gimple_statement_resx>::test): Convert to...
23051 (is_a_helper <gimple_statement_resx *>::test): ...this.
23052 (is_a_helper <gimple_statement_eh_dispatch>::test): Convert to...
23053 (is_a_helper <gimple_statement_eh_dispatch *>::test): ...this.
23054 (is_a_helper <gimple_statement_eh_else>::test): Convert to...
23055 (is_a_helper <gimple_statement_eh_else *>::test): ...this.
23056 (is_a_helper <gimple_statement_eh_filter>::test): Convert to...
23057 (is_a_helper <gimple_statement_eh_filter *>::test): ...this.
23058 (is_a_helper <gimple_statement_eh_mnt>::test): Convert to...
23059 (is_a_helper <gimple_statement_eh_mnt *>::test): ...this.
23060 (is_a_helper <gimple_statement_omp_atomic_load>::test): Convert to...
23061 (is_a_helper <gimple_statement_omp_atomic_load *>::test): ...this.
23062 (is_a_helper <gimple_statement_omp_atomic_store>::test): Convert to...
23063 (is_a_helper <gimple_statement_omp_atomic_store *>::test): ...this.
23064 (is_a_helper <gimple_statement_omp_return>::test): Convert to...
23065 (is_a_helper <gimple_statement_omp_return *>::test): ...this.
23066 (is_a_helper <gimple_statement_omp_continue>::test): Convert to...
23067 (is_a_helper <gimple_statement_omp_continue *>::test): ...this.
23068 (is_a_helper <gimple_statement_omp_critical>::test): Convert to...
23069 (is_a_helper <gimple_statement_omp_critical *>::test): ...this.
23070 (is_a_helper <gimple_statement_omp_for>::test): Convert to...
23071 (is_a_helper <gimple_statement_omp_for *>::test): ...this.
23072 (is_a_helper <gimple_statement_omp_taskreg>::test): Convert to...
23073 (is_a_helper <gimple_statement_omp_taskreg *>::test): ...this.
23074 (is_a_helper <gimple_statement_omp_parallel>::test): Convert to...
23075 (is_a_helper <gimple_statement_omp_parallel *>::test): ...this.
23076 (is_a_helper <gimple_statement_omp_target>::test): Convert to...
23077 (is_a_helper <gimple_statement_omp_target *>::test): ...this.
23078 (is_a_helper <gimple_statement_omp_sections>::test): Convert to...
23079 (is_a_helper <gimple_statement_omp_sections *>::test): ...this.
23080 (is_a_helper <gimple_statement_omp_single>::test): Convert to...
23081 (is_a_helper <gimple_statement_omp_single *>::test): ...this.
23082 (is_a_helper <gimple_statement_omp_teams>::test): Convert to...
23083 (is_a_helper <gimple_statement_omp_teams *>::test): ...this.
23084 (is_a_helper <gimple_statement_omp_task>::test): Convert to...
23085 (is_a_helper <gimple_statement_omp_task *>::test): ...this.
23086 (is_a_helper <gimple_statement_phi>::test): Convert to...
23087 (is_a_helper <gimple_statement_phi *>::test): ...this.
23088 (is_a_helper <gimple_statement_transaction>::test): Convert to...
23089 (is_a_helper <gimple_statement_transaction *>::test): ...this.
23090 (is_a_helper <gimple_statement_try>::test): Convert to...
23091 (is_a_helper <gimple_statement_try *>::test): ...this.
23092 (is_a_helper <gimple_statement_wce>::test): Convert to...
23093 (is_a_helper <gimple_statement_wce *>::test): ...this.
23094 (is_a_helper <const gimple_statement_asm>::test): Convert to...
23095 (is_a_helper <const gimple_statement_asm *>::test): ...this.
23096 (is_a_helper <const gimple_statement_bind>::test): Convert to...
23097 (is_a_helper <const gimple_statement_bind *>::test): ...this.
23098 (is_a_helper <const gimple_statement_call>::test): Convert to...
23099 (is_a_helper <const gimple_statement_call *>::test): ...this.
23100 (is_a_helper <const gimple_statement_catch>::test): Convert to...
23101 (is_a_helper <const gimple_statement_catch *>::test): ...this.
23102 (is_a_helper <const gimple_statement_resx>::test): Convert to...
23103 (is_a_helper <const gimple_statement_resx *>::test): ...this.
23104 (is_a_helper <const gimple_statement_eh_dispatch>::test): Convert to...
23105 (is_a_helper <const gimple_statement_eh_dispatch *>::test): ...this.
23106 (is_a_helper <const gimple_statement_eh_filter>::test): Convert to...
23107 (is_a_helper <const gimple_statement_eh_filter *>::test): ...this.
23108 (is_a_helper <const gimple_statement_omp_atomic_load>::test):
23110 (is_a_helper <const gimple_statement_omp_atomic_load *>::test):
23112 (is_a_helper <const gimple_statement_omp_atomic_store>::test):
23114 (is_a_helper <const gimple_statement_omp_atomic_store *>::test):
23116 (is_a_helper <const gimple_statement_omp_return>::test): Convert to...
23117 (is_a_helper <const gimple_statement_omp_return *>::test): ...this.
23118 (is_a_helper <const gimple_statement_omp_continue>::test): Convert
23120 (is_a_helper <const gimple_statement_omp_continue *>::test): ...this.
23121 (is_a_helper <const gimple_statement_omp_critical>::test): Convert
23123 (is_a_helper <const gimple_statement_omp_critical *>::test): ...this.
23124 (is_a_helper <const gimple_statement_omp_for>::test): Convert to...
23125 (is_a_helper <const gimple_statement_omp_for *>::test): ...this.
23126 (is_a_helper <const gimple_statement_omp_taskreg>::test): Convert to...
23127 (is_a_helper <const gimple_statement_omp_taskreg *>::test): ...this.
23128 (is_a_helper <const gimple_statement_omp_parallel>::test): Convert
23130 (is_a_helper <const gimple_statement_omp_parallel *>::test): ...this.
23131 (is_a_helper <const gimple_statement_omp_target>::test): Convert to...
23132 (is_a_helper <const gimple_statement_omp_target *>::test): ...this.
23133 (is_a_helper <const gimple_statement_omp_sections>::test): Convert
23135 (is_a_helper <const gimple_statement_omp_sections *>::test): ...this.
23136 (is_a_helper <const gimple_statement_omp_single>::test): Convert to...
23137 (is_a_helper <const gimple_statement_omp_single *>::test): ...this.
23138 (is_a_helper <const gimple_statement_omp_teams>::test): Convert to...
23139 (is_a_helper <const gimple_statement_omp_teams *>::test): ...this.
23140 (is_a_helper <const gimple_statement_omp_task>::test): Convert to...
23141 (is_a_helper <const gimple_statement_omp_task *>::test): ...this.
23142 (is_a_helper <const gimple_statement_phi>::test): Convert to...
23143 (is_a_helper <const gimple_statement_phi *>::test): ...this.
23144 (is_a_helper <const gimple_statement_transaction>::test): Convert to...
23145 (is_a_helper <const gimple_statement_transaction *>::test): ...this.
23146 (is_a_helper <const gimple_statement_with_ops>::test): Convert to...
23147 (is_a_helper <const gimple_statement_with_ops *>::test): ...this.
23148 (is_a_helper <gimple_statement_with_ops>::test): Convert to...
23149 (is_a_helper <gimple_statement_with_ops *>::test): ...this.
23150 (is_a_helper <const gimple_statement_with_memory_ops>::test): Convert
23152 (is_a_helper <const gimple_statement_with_memory_ops *>::test):
23154 (is_a_helper <gimple_statement_with_memory_ops>::test): Convert to...
23155 (is_a_helper <gimple_statement_with_memory_ops *>::test): ...this.
23157 (gimple_use_ops): Update for removal of implicit pointer from the
23159 (gimple_set_use_ops): Likewise.
23160 (gimple_vuse): Likewise.
23161 (gimple_vdef): Likewise.
23162 (gimple_vuse_ptr): Likewise.
23163 (gimple_vdef_ptr): Likewise.
23164 (gimple_set_vuse): Likewise.
23165 (gimple_set_vdef): Likewise.
23166 (gimple_omp_return_set_lhs): Likewise.
23167 (gimple_omp_return_lhs): Likewise.
23168 (gimple_omp_return_lhs_ptr): Likewise.
23169 (gimple_call_fntype): Likewise.
23170 (gimple_call_set_fntype): Likewise.
23171 (gimple_call_set_internal_fn): Likewise.
23172 (gimple_call_use_set): Likewise.
23173 (gimple_call_clobber_set): Likewise.
23174 (gimple_bind_vars): Likewise.
23175 (gimple_bind_set_vars): Likewise.
23176 (gimple_bind_body_ptr): Likewise.
23177 (gimple_bind_set_body): Likewise.
23178 (gimple_bind_add_stmt): Likewise.
23179 (gimple_bind_block): Likewise.
23180 (gimple_bind_set_block): Likewise.
23181 (gimple_asm_ninputs): Likewise.
23182 (gimple_asm_noutputs): Likewise.
23183 (gimple_asm_nclobbers): Likewise.
23184 (gimple_asm_nlabels): Likewise.
23185 (gimple_asm_input_op): Likewise.
23186 (gimple_asm_input_op_ptr): Likewise.
23187 (gimple_asm_output_op): Likewise.
23188 (gimple_asm_output_op_ptr): Likewise.
23189 (gimple_asm_set_output_op): Likewise.
23190 (gimple_asm_clobber_op): Likewise.
23191 (gimple_asm_set_clobber_op): Likewise.
23192 (gimple_asm_label_op): Likewise.
23193 (gimple_asm_set_label_op): Likewise.
23194 (gimple_asm_string): Likewise.
23195 (gimple_catch_types): Likewise.
23196 (gimple_catch_types_ptr): Likewise.
23197 (gimple_catch_handler_ptr): Likewise.
23198 (gimple_catch_set_types): Likewise.
23199 (gimple_catch_set_handler): Likewise.
23200 (gimple_eh_filter_types): Likewise.
23201 (gimple_eh_filter_types_ptr): Likewise.
23202 (gimple_eh_filter_failure_ptr): Likewise.
23203 (gimple_eh_filter_set_types): Likewise.
23204 (gimple_eh_filter_set_failure): Likewise.
23205 (gimple_eh_must_not_throw_fndecl): Likewise.
23206 (gimple_eh_must_not_throw_set_fndecl): Likewise.
23207 (gimple_eh_else_n_body_ptr): Likewise.
23208 (gimple_eh_else_e_body_ptr): Likewise.
23209 (gimple_eh_else_set_n_body): Likewise.
23210 (gimple_eh_else_set_e_body): Likewise.
23211 (gimple_try_eval_ptr): Likewise.
23212 (gimple_try_cleanup_ptr): Likewise.
23213 (gimple_try_set_eval): Likewise.
23214 (gimple_try_set_cleanup): Likewise.
23215 (gimple_wce_cleanup_ptr): Likewise.
23216 (gimple_wce_set_cleanup): Likewise.
23217 (gimple_phi_capacity): Likewise.
23218 (gimple_phi_num_args): Likewise.
23219 (gimple_phi_result): Likewise.
23220 (gimple_phi_result_ptr): Likewise.
23221 (gimple_phi_set_result): Likewise.
23222 (gimple_phi_arg): Likewise.
23223 (gimple_phi_set_arg): Likewise.
23224 (gimple_resx_region): Likewise.
23225 (gimple_resx_set_region): Likewise.
23226 (gimple_eh_dispatch_region): Likewise.
23227 (gimple_eh_dispatch_set_region): Likewise.
23228 (gimple_omp_critical_name): Likewise.
23229 (gimple_omp_critical_name_ptr): Likewise.
23230 (gimple_omp_critical_set_name): Likewise.
23231 (gimple_omp_for_clauses): Likewise.
23232 (gimple_omp_for_clauses_ptr): Likewise.
23233 (gimple_omp_for_set_clauses): Likewise.
23234 (gimple_omp_for_collapse): Likewise.
23235 (gimple_omp_for_index): Likewise.
23236 (gimple_omp_for_index_ptr): Likewise.
23237 (gimple_omp_for_set_index): Likewise.
23238 (gimple_omp_for_initial): Likewise.
23239 (gimple_omp_for_initial_ptr): Likewise.
23240 (gimple_omp_for_set_initial): Likewise.
23241 (gimple_omp_for_final): Likewise.
23242 (gimple_omp_for_final_ptr): Likewise.
23243 (gimple_omp_for_set_final): Likewise.
23244 (gimple_omp_for_incr): Likewise.
23245 (gimple_omp_for_incr_ptr): Likewise.
23246 (gimple_omp_for_set_incr): Likewise.
23247 (gimple_omp_for_pre_body_ptr): Likewise.
23248 (gimple_omp_for_set_pre_body): Likewise.
23249 (gimple_omp_parallel_clauses): Likewise.
23250 (gimple_omp_parallel_clauses_ptr): Likewise.
23251 (gimple_omp_parallel_set_clauses): Likewise.
23252 (gimple_omp_parallel_child_fn): Likewise.
23253 (gimple_omp_parallel_child_fn_ptr): Likewise.
23254 (gimple_omp_parallel_set_child_fn): Likewise.
23255 (gimple_omp_parallel_data_arg): Likewise.
23256 (gimple_omp_parallel_data_arg_ptr): Likewise.
23257 (gimple_omp_parallel_set_data_arg): Likewise.
23258 (gimple_omp_task_clauses): Likewise.
23259 (gimple_omp_task_clauses_ptr): Likewise.
23260 (gimple_omp_task_set_clauses): Likewise.
23261 (gimple_omp_task_child_fn): Likewise.
23262 (gimple_omp_task_child_fn_ptr): Likewise.
23263 (gimple_omp_task_set_child_fn): Likewise.
23264 (gimple_omp_task_data_arg): Likewise.
23265 (gimple_omp_task_data_arg_ptr): Likewise.
23266 (gimple_omp_task_set_data_arg): Likewise.
23267 (gimple_omp_taskreg_clauses): Likewise.
23268 (gimple_omp_taskreg_clauses_ptr): Likewise.
23269 (gimple_omp_taskreg_set_clauses): Likewise.
23270 (gimple_omp_taskreg_child_fn): Likewise.
23271 (gimple_omp_taskreg_child_fn_ptr): Likewise.
23272 (gimple_omp_taskreg_set_child_fn): Likewise.
23273 (gimple_omp_taskreg_data_arg): Likewise.
23274 (gimple_omp_taskreg_data_arg_ptr): Likewise.
23275 (gimple_omp_taskreg_set_data_arg): Likewise.
23276 (gimple_omp_task_copy_fn): Likewise.
23277 (gimple_omp_task_copy_fn_ptr): Likewise.
23278 (gimple_omp_task_set_copy_fn): Likewise.
23279 (gimple_omp_task_arg_size): Likewise.
23280 (gimple_omp_task_arg_size_ptr): Likewise.
23281 (gimple_omp_task_set_arg_size): Likewise.
23282 (gimple_omp_task_arg_align): Likewise.
23283 (gimple_omp_task_arg_align_ptr): Likewise.
23284 (gimple_omp_task_set_arg_align): Likewise.
23285 (gimple_omp_single_clauses): Likewise.
23286 (gimple_omp_single_clauses_ptr): Likewise.
23287 (gimple_omp_single_set_clauses): Likewise.
23288 (gimple_omp_target_clauses): Likewise.
23289 (gimple_omp_target_clauses_ptr): Likewise.
23290 (gimple_omp_target_set_clauses): Likewise.
23291 (gimple_omp_target_child_fn): Likewise.
23292 (gimple_omp_target_child_fn_ptr): Likewise.
23293 (gimple_omp_target_set_child_fn): Likewise.
23294 (gimple_omp_target_data_arg): Likewise.
23295 (gimple_omp_target_data_arg_ptr): Likewise.
23296 (gimple_omp_target_set_data_arg): Likewise.
23297 (gimple_omp_teams_clauses): Likewise.
23298 (gimple_omp_teams_clauses_ptr): Likewise.
23299 (gimple_omp_teams_set_clauses): Likewise.
23300 (gimple_omp_sections_clauses): Likewise.
23301 (gimple_omp_sections_clauses_ptr): Likewise.
23302 (gimple_omp_sections_set_clauses): Likewise.
23303 (gimple_omp_sections_control): Likewise.
23304 (gimple_omp_sections_control_ptr): Likewise.
23305 (gimple_omp_sections_set_control): Likewise.
23306 (gimple_omp_for_set_cond): Likewise.
23307 (gimple_omp_for_cond): Likewise.
23308 (gimple_omp_atomic_store_set_val): Likewise.
23309 (gimple_omp_atomic_store_val): Likewise.
23310 (gimple_omp_atomic_store_val_ptr): Likewise.
23311 (gimple_omp_atomic_load_set_lhs): Likewise.
23312 (gimple_omp_atomic_load_lhs): Likewise.
23313 (gimple_omp_atomic_load_lhs_ptr): Likewise.
23314 (gimple_omp_atomic_load_set_rhs): Likewise.
23315 (gimple_omp_atomic_load_rhs): Likewise.
23316 (gimple_omp_atomic_load_rhs_ptr): Likewise.
23317 (gimple_omp_continue_control_def): Likewise.
23318 (gimple_omp_continue_control_def_ptr): Likewise.
23319 (gimple_omp_continue_set_control_def): Likewise.
23320 (gimple_omp_continue_control_use): Likewise.
23321 (gimple_omp_continue_control_use_ptr): Likewise.
23322 (gimple_omp_continue_set_control_use): Likewise.
23323 (gimple_transaction_body_ptr): Likewise.
23324 (gimple_transaction_label): Likewise.
23325 (gimple_transaction_label_ptr): Likewise.
23326 (gimple_transaction_set_body): Likewise.
23327 (gimple_transaction_set_label): Likewise.
23329 * ipa-devirt.c (build_type_inheritance_graph): Likewise.
23330 * ipa-inline-analysis.c (inline_write_summary): Likewise.
23331 * ipa-ref.c (ipa_record_reference): Likewise.
23332 * ipa-reference.c (analyze_function): Likewise.
23333 (ipa_reference_write_optimization_summary): Likewise.
23334 * ipa.c (symtab_remove_unreachable_nodes): Likewise.
23335 (address_taken_from_non_vtable_p): Likewise.
23336 (comdat_can_be_unshared_p_1): Likewise.
23337 * lto-cgraph.c (lto_output_ref): Likewise.
23338 (add_references): Likewise.
23339 (compute_ltrans_boundary): Likewise.
23340 (output_symtab): Likewise.
23341 (input_ref): Likewise.
23342 (input_cgraph_1): Likewise.
23343 (output_cgraph_opt_summary): Likewise.
23344 * lto-streamer-out.c (lto_output): Likewise.
23345 (output_symbol_p): Likewise.
23346 * lto-streamer.h (lsei_next_function_in_partition): Likewise.
23347 (lsei_start_function_in_partition): Likewise.
23348 (lsei_next_variable_in_partition): Likewise.
23349 (lsei_start_variable_in_partition): Likewise.
23350 * symtab.c (insert_to_assembler_name_hash): Likewise.
23351 (unlink_from_assembler_name_hash): Likewise.
23352 (symtab_unregister_node): Likewise.
23353 (symtab_remove_node): Likewise.
23354 (dump_symtab_node): Likewise.
23355 (verify_symtab_base): Likewise.
23356 (verify_symtab_node): Likewise.
23357 (symtab_make_decl_local): Likewise.
23358 (symtab_alias_ultimate_target): Likewise.
23359 (symtab_resolve_alias): Likewise.
23360 (symtab_get_symbol_partitioning_class): Likewise.
23361 * tree-phinodes.c (allocate_phi_node): Likewise.
23362 (reserve_phi_args_for_new_edge): Likewise.
23363 (remove_phi_args): Likewise.
23364 * varpool.c (varpool_node_for_asm): Likewise.
23365 (varpool_remove_unreferenced_decls): Likewise.
23367 2014-04-23 Jeff Law <law@redhat.com>
23369 PR tree-optimization/60902
23370 * tree-ssa-threadedge.c
23371 (record_temporary_equivalences_from_stmts_at_dest): Make sure to
23372 invalidate outputs from statements that do not produce useful
23373 outputs for threading.
23375 2014-04-23 Venkataramanan Kumar <venkataramanan.kumar@linaro.org>
23377 * config/aarch64/aarch64.md (stack_protect_set, stack_protect_test)
23378 (stack_protect_set_<mode>, stack_protect_test_<mode>): Add
23379 machine descriptions for Stack Smashing Protector.
23381 2014-04-23 Richard Earnshaw <rearnsha@arm.com>
23383 * aarch64.md (<optab>_rol<mode>3): New pattern.
23384 (<optab>_rolsi3_uxtw): Likewise.
23385 * aarch64.c (aarch64_strip_shift): Handle ROTATE and ROTATERT.
23387 2014-04-23 James Greenhalgh <james.greenhalgh@arm.com>
23389 * config/arm/arm.c (arm_cortex_a57_tune): Initialize all fields.
23390 (arm_cortex_a12_tune): Likewise.
23392 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23394 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle BSWAP.
23396 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23398 * config/arm/arm.md (arm_rev16si2): New pattern.
23399 (arm_rev16si2_alt): Likewise.
23400 * config/arm/arm.c (arm_new_rtx_costs): Handle rev16 case.
23402 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23404 * config/aarch64/aarch64.md (rev16<mode>2): New pattern.
23405 (rev16<mode>2_alt): Likewise.
23406 * config/aarch64/aarch64.c (aarch64_rtx_costs): Handle rev16 case.
23407 * config/arm/aarch-common.c (aarch_rev16_shright_mask_imm_p): New.
23408 (aarch_rev16_shleft_mask_imm_p): Likewise.
23409 (aarch_rev16_p_1): Likewise.
23410 (aarch_rev16_p): Likewise.
23411 * config/arm/aarch-common-protos.h (aarch_rev16_p): Declare extern.
23412 (aarch_rev16_shright_mask_imm_p): Likewise.
23413 (aarch_rev16_shleft_mask_imm_p): Likewise.
23415 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23417 * config/arm/aarch-common-protos.h (alu_cost_table): Add rev field.
23418 * config/arm/aarch-cost-tables.h (generic_extra_costs): Specify
23420 (cortex_a53_extra_costs): Likewise.
23421 (cortex_a57_extra_costs): Likewise.
23422 * config/arm/arm.c (cortexa9_extra_costs): Likewise.
23423 (cortexa7_extra_costs): Likewise.
23424 (cortexa8_extra_costs): Likewise.
23425 (cortexa12_extra_costs): Likewise.
23426 (cortexa15_extra_costs): Likewise.
23427 (v7m_extra_costs): Likewise.
23428 (arm_new_rtx_costs): Handle BSWAP.
23430 2013-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23432 * config/arm/arm.c (cortexa8_extra_costs): New table.
23433 (arm_cortex_a8_tune): New tuning struct.
23434 * config/arm/arm-cores.def (cortex-a8): Use cortex_a8 tuning struct.
23436 2014-04-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
23438 * config/arm/arm.c (arm_new_rtx_costs): Handle FMA.
23440 2014-04-23 Richard Biener <rguenther@suse.de>
23442 * Makefile.in (OBJS): Remove loop-unswitch.o.
23443 * tree-pass.h (make_pass_rtl_unswitch): Remove.
23444 * passes.def (pass_rtl_unswitch): Likewise.
23445 * loop-init.c (gate_rtl_unswitch): Likewise.
23446 (rtl_unswitch): Likewise.
23447 (pass_data_rtl_unswitch): Likewise.
23448 (pass_rtl_unswitch): Likewise.
23449 (make_pass_rtl_unswitch): Likewise.
23450 * rtl.h (reversed_condition): Likewise.
23451 (compare_and_jump_seq): Likewise.
23452 * loop-iv.c (reversed_condition): Move here from loop-unswitch.c
23454 * loop-unroll.c (compare_and_jump_seq): Likewise.
23456 2014-04-23 Richard Biener <rguenther@suse.de>
23458 PR tree-optimization/60903
23459 * tree-ssa-loop-im.c (analyze_memory_references): Remove
23460 commented code block.
23461 (execute_sm_if_changed): Properly apply IRREDUCIBLE_LOOP
23462 loop flags to newly created BBs and edges.
23464 2014-04-23 Nick Clifton <nickc@redhat.com>
23466 * config/msp430/msp430.c (msp430_handle_option): Move function
23468 (msp430_option_override): Simplify mcu and mcpu option handling.
23469 (msp430_is_f5_mcu): Rename to msp430_use_f5_series_hwmult. Add
23470 support for -mhwmult command line option.
23471 (has_32bit_hwmult): Rename to use_32bit_hwmult. Add support for
23472 -mhwmult command line option.
23473 (msp430_hwmult_enabled): Delete.
23474 (msp43o_output_labelref): Add support for -mhwmult command line option.
23475 * config/msp430/msp430.md (mulhisi3, umulhisi3, mulsidi3)
23476 (umulsidi3): Likewise.
23477 * config/msp430/msp430.opt (mmcu): Add Report attribute.
23478 (mcpu, mlarge, msmall): Likewise.
23479 (mhwmult): New option.
23480 * config/msp430/msp430-protos.h (msp430_hwmult_enabled): Remove
23482 (msp430_is_f5_mcu): Remove prototype.
23483 (msp430_use_f5_series_hwmult): Add prototype.
23484 * config/msp430/msp430-opts.h: New file.
23485 * common/config/msp430: New directory.
23486 * common/config/msp430/msp430-common.c: New file.
23487 * config.gcc (msp430): Remove target_has_targetm_common.
23488 * doc/invoke.texi: Document -mhwmult command line option.
23490 2014-04-23 Nick Clifton <nickc@redhat.com>
23492 * config/i386/cygwin.h (ENDFILE_SPEC): Include
23493 default-manifest.o if it can be found in the search path.
23494 * config/i386/mingw32.h (ENDFILE_SPEC): Likewise.
23496 2014-04-23 Terry Guo <terry.guo@arm.com>
23498 * config/arm/arm.h (ASM_APP_OFF): Re-define it in a cleaner way.
23500 2014-04-23 Richard Biener <rguenther@suse.de>
23502 PR middle-end/60895
23503 * tree-inline.c (declare_return_variable): Use mark_addressable.
23505 2014-04-23 Richard Biener <rguenther@suse.de>
23507 PR middle-end/60891
23508 * loop-init.c (loop_optimizer_init): Make sure to apply
23509 LOOPS_MAY_HAVE_MULTIPLE_LATCHES before fixing up loops.
23511 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23514 * common.opt (fsanitize-recover, fsanitize-undefined-trap-on-error):
23516 * gcc.c (sanitize_spec_function): Don't return "" for "undefined"
23517 if flag_sanitize_undefined_trap_on_error.
23518 * sanitizer.def (BUILT_IN_UBSAN_HANDLE_DIVREM_OVERFLOW_ABORT,
23519 BUILT_IN_UBSAN_HANDLE_SHIFT_OUT_OF_BOUNDS_ABORT,
23520 BUILT_IN_UBSAN_HANDLE_VLA_BOUND_NOT_POSITIVE_ABORT,
23521 BUILT_IN_UBSAN_HANDLE_TYPE_MISMATCH_ABORT,
23522 BUILT_IN_UBSAN_HANDLE_ADD_OVERFLOW_ABORT,
23523 BUILT_IN_UBSAN_HANDLE_SUB_OVERFLOW_ABORT,
23524 BUILT_IN_UBSAN_HANDLE_MUL_OVERFLOW_ABORT,
23525 BUILT_IN_UBSAN_HANDLE_NEGATE_OVERFLOW_ABORT,
23526 BUILT_IN_UBSAN_HANDLE_LOAD_INVALID_VALUE_ABORT): New builtins.
23527 * ubsan.c (ubsan_instrument_unreachable): Return
23528 __builtin_trap () if flag_sanitize_undefined_trap_on_error.
23529 (ubsan_expand_null_ifn): Emit __builtin_trap ()
23530 if flag_sanitize_undefined_trap_on_error and
23531 __ubsan_handle_type_mismatch_abort if !flag_sanitize_recover.
23532 (ubsan_expand_null_ifn, ubsan_build_overflow_builtin,
23533 instrument_bool_enum_load): Emit __builtin_trap () if
23534 flag_sanitize_undefined_trap_on_error and
23535 __builtin_handle_*_abort () if !flag_sanitize_recover.
23536 * doc/invoke.texi (-fsanitize-recover,
23537 -fsanitize-undefined-trap-on-error): Document.
23539 2014-04-22 Christian Bruel <christian.bruel@st.com>
23541 * config/sh/sh.md (mov<mode>): Replace movQIHI.
23542 Force immediates to SImode.
23544 2014-04-22 Sandra Loosemore <sandra@codesourcery.com>
23546 * config/nios2/nios2.md (UNSPEC_ROUND): New.
23547 (lroundsfsi2): New.
23548 * config/nios2/nios2.opt (mno-custom-round, mcustom-round=): New.
23549 * config/nios2/nios2-opts.h (N2FPU_ALL_CODES): Add round.
23550 * config/nios2/nios2.c (N2F_NO_ERRNO): Define.
23551 (nios2_fpu_insn): Add entry for round.
23552 (N2FPU_NO_ERRNO_P): Define.
23553 (nios2_custom_check_insns): Add check for N2F_NO_ERRNO and
23555 * doc/invoke.texi (Nios II Options): Document -mcustom-round.
23557 2014-04-22 Richard Henderson <rth@redhat.com>
23559 * config/aarch64/aarch64 (addti3, subti3): New expanders.
23560 (add<GPI>3_compare0): Remove leading * from name.
23561 (add<GPI>3_carryin): Likewise.
23562 (sub<GPI>3_compare0): Likewise.
23563 (sub<GPI>3_carryin): Likewise.
23564 (<su_optab>mulditi3): New expander.
23565 (multi3): New expander.
23566 (madd<GPI>): Remove leading * from name.
23568 2014-04-22 Martin Jambor <mjambor@suse.cz>
23570 * cgraphclones.c (cgraph_function_versioning): Copy
23571 ipa_transforms_to_apply instead of asserting it is empty.
23573 2014-04-22 H.J. Lu <hongjiu.lu@intel.com>
23576 * config/i386/i386.c (ix86_expand_set_or_movmem): Call counter_mode
23577 on count_exp to get mode.
23579 2014-04-22 Andrew Pinski <apinski@cavium.com>
23581 * config/aarch64/aarch64.c (aarch64_load_symref_appropriately):
23582 Handle TLS for ILP32.
23583 * config/aarch64/aarch64.md (tlsie_small): Rename to ...
23584 (tlsie_small_<mode>): this and handle PTR.
23585 (tlsie_small_sidi): New pattern.
23586 (tlsle_small): Change to an expand to handle ILP32.
23587 (tlsle_small_<mode>): New pattern.
23588 (tlsdesc_small): Rename to ...
23589 (tlsdesc_small_<mode>): this and handle PTR.
23591 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23593 * config/aarch64/aarch64.c (TARGET_FLAGS_REGNUM): Define.
23595 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23597 * config/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23598 (aarch64_types_signed_unsigned_qualifiers): Qualifier added.
23599 (aarch64_types_signed_poly_qualifiers): Likewise.
23600 (aarch64_types_unsigned_signed_qualifiers): Likewise.
23601 (aarch64_types_poly_signed_qualifiers): Likewise.
23602 (TYPES_REINTERP_SS): Type macro added.
23603 (TYPES_REINTERP_SU): Likewise.
23604 (TYPES_REINTERP_SP): Likewise.
23605 (TYPES_REINTERP_US): Likewise.
23606 (TYPES_REINTERP_PS): Likewise.
23607 (aarch64_fold_builtin): New expression folding added.
23608 * config/aarch64/aarch64-simd-builtins.def (REINTERP):
23609 Declarations removed.
23610 (REINTERP_SS): Declarations added.
23611 (REINTERP_US): Likewise.
23612 (REINTERP_PS): Likewise.
23613 (REINTERP_SU): Likewise.
23614 (REINTERP_SP): Likewise.
23615 * config/aarch64/arm_neon.h (vreinterpret_p8_f64): Implemented.
23616 (vreinterpretq_p8_f64): Likewise.
23617 (vreinterpret_p16_f64): Likewise.
23618 (vreinterpretq_p16_f64): Likewise.
23619 (vreinterpret_f32_f64): Likewise.
23620 (vreinterpretq_f32_f64): Likewise.
23621 (vreinterpret_f64_f32): Likewise.
23622 (vreinterpret_f64_p8): Likewise.
23623 (vreinterpret_f64_p16): Likewise.
23624 (vreinterpret_f64_s8): Likewise.
23625 (vreinterpret_f64_s16): Likewise.
23626 (vreinterpret_f64_s32): Likewise.
23627 (vreinterpret_f64_s64): Likewise.
23628 (vreinterpret_f64_u8): Likewise.
23629 (vreinterpret_f64_u16): Likewise.
23630 (vreinterpret_f64_u32): Likewise.
23631 (vreinterpret_f64_u64): Likewise.
23632 (vreinterpretq_f64_f32): Likewise.
23633 (vreinterpretq_f64_p8): Likewise.
23634 (vreinterpretq_f64_p16): Likewise.
23635 (vreinterpretq_f64_s8): Likewise.
23636 (vreinterpretq_f64_s16): Likewise.
23637 (vreinterpretq_f64_s32): Likewise.
23638 (vreinterpretq_f64_s64): Likewise.
23639 (vreinterpretq_f64_u8): Likewise.
23640 (vreinterpretq_f64_u16): Likewise.
23641 (vreinterpretq_f64_u32): Likewise.
23642 (vreinterpretq_f64_u64): Likewise.
23643 (vreinterpret_s64_f64): Likewise.
23644 (vreinterpretq_s64_f64): Likewise.
23645 (vreinterpret_u64_f64): Likewise.
23646 (vreinterpretq_u64_f64): Likewise.
23647 (vreinterpret_s8_f64): Likewise.
23648 (vreinterpretq_s8_f64): Likewise.
23649 (vreinterpret_s16_f64): Likewise.
23650 (vreinterpretq_s16_f64): Likewise.
23651 (vreinterpret_s32_f64): Likewise.
23652 (vreinterpretq_s32_f64): Likewise.
23653 (vreinterpret_u8_f64): Likewise.
23654 (vreinterpretq_u8_f64): Likewise.
23655 (vreinterpret_u16_f64): Likewise.
23656 (vreinterpretq_u16_f64): Likewise.
23657 (vreinterpret_u32_f64): Likewise.
23658 (vreinterpretq_u32_f64): Likewise.
23660 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23662 * config/aarch64/aarch64/aarch64-builtins.c (TYPES_REINTERP): Removed.
23663 * config/aarch64/aarch64/aarch64-simd-builtins.def (REINTERP): Removed.
23664 (vreinterpret_p8_s8): Likewise.
23665 * config/aarch64/aarch64/arm_neon.h (vreinterpret_p8_s8): Uses cast.
23666 (vreinterpret_p8_s16): Likewise.
23667 (vreinterpret_p8_s32): Likewise.
23668 (vreinterpret_p8_s64): Likewise.
23669 (vreinterpret_p8_f32): Likewise.
23670 (vreinterpret_p8_u8): Likewise.
23671 (vreinterpret_p8_u16): Likewise.
23672 (vreinterpret_p8_u32): Likewise.
23673 (vreinterpret_p8_u64): Likewise.
23674 (vreinterpret_p8_p16): Likewise.
23675 (vreinterpretq_p8_s8): Likewise.
23676 (vreinterpretq_p8_s16): Likewise.
23677 (vreinterpretq_p8_s32): Likewise.
23678 (vreinterpretq_p8_s64): Likewise.
23679 (vreinterpretq_p8_f32): Likewise.
23680 (vreinterpretq_p8_u8): Likewise.
23681 (vreinterpretq_p8_u16): Likewise.
23682 (vreinterpretq_p8_u32): Likewise.
23683 (vreinterpretq_p8_u64): Likewise.
23684 (vreinterpretq_p8_p16): Likewise.
23685 (vreinterpret_p16_s8): Likewise.
23686 (vreinterpret_p16_s16): Likewise.
23687 (vreinterpret_p16_s32): Likewise.
23688 (vreinterpret_p16_s64): Likewise.
23689 (vreinterpret_p16_f32): Likewise.
23690 (vreinterpret_p16_u8): Likewise.
23691 (vreinterpret_p16_u16): Likewise.
23692 (vreinterpret_p16_u32): Likewise.
23693 (vreinterpret_p16_u64): Likewise.
23694 (vreinterpret_p16_p8): Likewise.
23695 (vreinterpretq_p16_s8): Likewise.
23696 (vreinterpretq_p16_s16): Likewise.
23697 (vreinterpretq_p16_s32): Likewise.
23698 (vreinterpretq_p16_s64): Likewise.
23699 (vreinterpretq_p16_f32): Likewise.
23700 (vreinterpretq_p16_u8): Likewise.
23701 (vreinterpretq_p16_u16): Likewise.
23702 (vreinterpretq_p16_u32): Likewise.
23703 (vreinterpretq_p16_u64): Likewise.
23704 (vreinterpretq_p16_p8): Likewise.
23705 (vreinterpret_f32_s8): Likewise.
23706 (vreinterpret_f32_s16): Likewise.
23707 (vreinterpret_f32_s32): Likewise.
23708 (vreinterpret_f32_s64): Likewise.
23709 (vreinterpret_f32_u8): Likewise.
23710 (vreinterpret_f32_u16): Likewise.
23711 (vreinterpret_f32_u32): Likewise.
23712 (vreinterpret_f32_u64): Likewise.
23713 (vreinterpret_f32_p8): Likewise.
23714 (vreinterpret_f32_p16): Likewise.
23715 (vreinterpretq_f32_s8): Likewise.
23716 (vreinterpretq_f32_s16): Likewise.
23717 (vreinterpretq_f32_s32): Likewise.
23718 (vreinterpretq_f32_s64): Likewise.
23719 (vreinterpretq_f32_u8): Likewise.
23720 (vreinterpretq_f32_u16): Likewise.
23721 (vreinterpretq_f32_u32): Likewise.
23722 (vreinterpretq_f32_u64): Likewise.
23723 (vreinterpretq_f32_p8): Likewise.
23724 (vreinterpretq_f32_p16): Likewise.
23725 (vreinterpret_s64_s8): Likewise.
23726 (vreinterpret_s64_s16): Likewise.
23727 (vreinterpret_s64_s32): Likewise.
23728 (vreinterpret_s64_f32): Likewise.
23729 (vreinterpret_s64_u8): Likewise.
23730 (vreinterpret_s64_u16): Likewise.
23731 (vreinterpret_s64_u32): Likewise.
23732 (vreinterpret_s64_u64): Likewise.
23733 (vreinterpret_s64_p8): Likewise.
23734 (vreinterpret_s64_p16): Likewise.
23735 (vreinterpretq_s64_s8): Likewise.
23736 (vreinterpretq_s64_s16): Likewise.
23737 (vreinterpretq_s64_s32): Likewise.
23738 (vreinterpretq_s64_f32): Likewise.
23739 (vreinterpretq_s64_u8): Likewise.
23740 (vreinterpretq_s64_u16): Likewise.
23741 (vreinterpretq_s64_u32): Likewise.
23742 (vreinterpretq_s64_u64): Likewise.
23743 (vreinterpretq_s64_p8): Likewise.
23744 (vreinterpretq_s64_p16): Likewise.
23745 (vreinterpret_u64_s8): Likewise.
23746 (vreinterpret_u64_s16): Likewise.
23747 (vreinterpret_u64_s32): Likewise.
23748 (vreinterpret_u64_s64): Likewise.
23749 (vreinterpret_u64_f32): Likewise.
23750 (vreinterpret_u64_u8): Likewise.
23751 (vreinterpret_u64_u16): Likewise.
23752 (vreinterpret_u64_u32): Likewise.
23753 (vreinterpret_u64_p8): Likewise.
23754 (vreinterpret_u64_p16): Likewise.
23755 (vreinterpretq_u64_s8): Likewise.
23756 (vreinterpretq_u64_s16): Likewise.
23757 (vreinterpretq_u64_s32): Likewise.
23758 (vreinterpretq_u64_s64): Likewise.
23759 (vreinterpretq_u64_f32): Likewise.
23760 (vreinterpretq_u64_u8): Likewise.
23761 (vreinterpretq_u64_u16): Likewise.
23762 (vreinterpretq_u64_u32): Likewise.
23763 (vreinterpretq_u64_p8): Likewise.
23764 (vreinterpretq_u64_p16): Likewise.
23765 (vreinterpret_s8_s16): Likewise.
23766 (vreinterpret_s8_s32): Likewise.
23767 (vreinterpret_s8_s64): Likewise.
23768 (vreinterpret_s8_f32): Likewise.
23769 (vreinterpret_s8_u8): Likewise.
23770 (vreinterpret_s8_u16): Likewise.
23771 (vreinterpret_s8_u32): Likewise.
23772 (vreinterpret_s8_u64): Likewise.
23773 (vreinterpret_s8_p8): Likewise.
23774 (vreinterpret_s8_p16): Likewise.
23775 (vreinterpretq_s8_s16): Likewise.
23776 (vreinterpretq_s8_s32): Likewise.
23777 (vreinterpretq_s8_s64): Likewise.
23778 (vreinterpretq_s8_f32): Likewise.
23779 (vreinterpretq_s8_u8): Likewise.
23780 (vreinterpretq_s8_u16): Likewise.
23781 (vreinterpretq_s8_u32): Likewise.
23782 (vreinterpretq_s8_u64): Likewise.
23783 (vreinterpretq_s8_p8): Likewise.
23784 (vreinterpretq_s8_p16): Likewise.
23785 (vreinterpret_s16_s8): Likewise.
23786 (vreinterpret_s16_s32): Likewise.
23787 (vreinterpret_s16_s64): Likewise.
23788 (vreinterpret_s16_f32): Likewise.
23789 (vreinterpret_s16_u8): Likewise.
23790 (vreinterpret_s16_u16): Likewise.
23791 (vreinterpret_s16_u32): Likewise.
23792 (vreinterpret_s16_u64): Likewise.
23793 (vreinterpret_s16_p8): Likewise.
23794 (vreinterpret_s16_p16): Likewise.
23795 (vreinterpretq_s16_s8): Likewise.
23796 (vreinterpretq_s16_s32): Likewise.
23797 (vreinterpretq_s16_s64): Likewise.
23798 (vreinterpretq_s16_f32): Likewise.
23799 (vreinterpretq_s16_u8): Likewise.
23800 (vreinterpretq_s16_u16): Likewise.
23801 (vreinterpretq_s16_u32): Likewise.
23802 (vreinterpretq_s16_u64): Likewise.
23803 (vreinterpretq_s16_p8): Likewise.
23804 (vreinterpretq_s16_p16): Likewise.
23805 (vreinterpret_s32_s8): Likewise.
23806 (vreinterpret_s32_s16): Likewise.
23807 (vreinterpret_s32_s64): Likewise.
23808 (vreinterpret_s32_f32): Likewise.
23809 (vreinterpret_s32_u8): Likewise.
23810 (vreinterpret_s32_u16): Likewise.
23811 (vreinterpret_s32_u32): Likewise.
23812 (vreinterpret_s32_u64): Likewise.
23813 (vreinterpret_s32_p8): Likewise.
23814 (vreinterpret_s32_p16): Likewise.
23815 (vreinterpretq_s32_s8): Likewise.
23816 (vreinterpretq_s32_s16): Likewise.
23817 (vreinterpretq_s32_s64): Likewise.
23818 (vreinterpretq_s32_f32): Likewise.
23819 (vreinterpretq_s32_u8): Likewise.
23820 (vreinterpretq_s32_u16): Likewise.
23821 (vreinterpretq_s32_u32): Likewise.
23822 (vreinterpretq_s32_u64): Likewise.
23823 (vreinterpretq_s32_p8): Likewise.
23824 (vreinterpretq_s32_p16): Likewise.
23825 (vreinterpret_u8_s8): Likewise.
23826 (vreinterpret_u8_s16): Likewise.
23827 (vreinterpret_u8_s32): Likewise.
23828 (vreinterpret_u8_s64): Likewise.
23829 (vreinterpret_u8_f32): Likewise.
23830 (vreinterpret_u8_u16): Likewise.
23831 (vreinterpret_u8_u32): Likewise.
23832 (vreinterpret_u8_u64): Likewise.
23833 (vreinterpret_u8_p8): Likewise.
23834 (vreinterpret_u8_p16): Likewise.
23835 (vreinterpretq_u8_s8): Likewise.
23836 (vreinterpretq_u8_s16): Likewise.
23837 (vreinterpretq_u8_s32): Likewise.
23838 (vreinterpretq_u8_s64): Likewise.
23839 (vreinterpretq_u8_f32): Likewise.
23840 (vreinterpretq_u8_u16): Likewise.
23841 (vreinterpretq_u8_u32): Likewise.
23842 (vreinterpretq_u8_u64): Likewise.
23843 (vreinterpretq_u8_p8): Likewise.
23844 (vreinterpretq_u8_p16): Likewise.
23845 (vreinterpret_u16_s8): Likewise.
23846 (vreinterpret_u16_s16): Likewise.
23847 (vreinterpret_u16_s32): Likewise.
23848 (vreinterpret_u16_s64): Likewise.
23849 (vreinterpret_u16_f32): Likewise.
23850 (vreinterpret_u16_u8): Likewise.
23851 (vreinterpret_u16_u32): Likewise.
23852 (vreinterpret_u16_u64): Likewise.
23853 (vreinterpret_u16_p8): Likewise.
23854 (vreinterpret_u16_p16): Likewise.
23855 (vreinterpretq_u16_s8): Likewise.
23856 (vreinterpretq_u16_s16): Likewise.
23857 (vreinterpretq_u16_s32): Likewise.
23858 (vreinterpretq_u16_s64): Likewise.
23859 (vreinterpretq_u16_f32): Likewise.
23860 (vreinterpretq_u16_u8): Likewise.
23861 (vreinterpretq_u16_u32): Likewise.
23862 (vreinterpretq_u16_u64): Likewise.
23863 (vreinterpretq_u16_p8): Likewise.
23864 (vreinterpretq_u16_p16): Likewise.
23865 (vreinterpret_u32_s8): Likewise.
23866 (vreinterpret_u32_s16): Likewise.
23867 (vreinterpret_u32_s32): Likewise.
23868 (vreinterpret_u32_s64): Likewise.
23869 (vreinterpret_u32_f32): Likewise.
23870 (vreinterpret_u32_u8): Likewise.
23871 (vreinterpret_u32_u16): Likewise.
23872 (vreinterpret_u32_u64): Likewise.
23873 (vreinterpret_u32_p8): Likewise.
23874 (vreinterpret_u32_p16): Likewise.
23875 (vreinterpretq_u32_s8): Likewise.
23876 (vreinterpretq_u32_s16): Likewise.
23877 (vreinterpretq_u32_s32): Likewise.
23878 (vreinterpretq_u32_s64): Likewise.
23879 (vreinterpretq_u32_f32): Likewise.
23880 (vreinterpretq_u32_u8): Likewise.
23881 (vreinterpretq_u32_u16): Likewise.
23882 (vreinterpretq_u32_u64): Likewise.
23883 (vreinterpretq_u32_p8): Likewise.
23884 (vreinterpretq_u32_p16): Likewise.
23886 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
23888 * gcc/config/aarch64/aarch64-simd.md (aarch64_s<optab><mode>):
23890 * config/aarch64/aarch64-simd-builtins.def (sqneg): Iterator extended.
23892 * config/aarch64/arm_neon.h (vqneg_s64): New intrinsic.
23893 (vqnegd_s64): Likewise.
23894 (vqabs_s64): Likewise.
23895 (vqabsd_s64): Likewise.
23897 2014-04-22 Richard Henderson <rth@redhat.com>
23899 * config/sparc/sparc.c (sparc_init_modes): Hoist GET_MODE_SIZE
23900 computation to the top of the loop.
23902 2014-04-22 Renlin <renlin.li@arm.com>
23903 Jiong Wang <jiong.wang@arm.com>
23905 * config/aarch64/aarch64.h (aarch64_frame): Delete "fp_lr_offset".
23906 * config/aarch64/aarch64.c (aarch64_layout_frame)
23907 (aarch64_initial_elimination_offset): Likewise.
23909 2014-04-22 Marcus Shawcroft <marcus.shawcroft@arm.com>
23911 * config/aarch64/aarch64.c (aarch64_initial_elimination_offset):
23914 2014-04-22 Richard Sandiford <rdsandiford@googlemail.com>
23916 * machmode.h (bitwise_mode_for_mode): Declare.
23917 * stor-layout.h (bitwise_type_for_mode): Likewise.
23918 * stor-layout.c (bitwise_mode_for_mode): New function.
23919 (bitwise_type_for_mode): Likewise.
23920 * builtins.c (fold_builtin_memory_op): Use it instead of
23921 int_mode_for_mode and build_nonstandard_integer_type.
23923 2014-04-22 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23925 * config.gcc (enable_obsolete): Remove *-*-solaris2.9*.
23926 (*-*-solaris2.[0-9] | *-*-solaris2.[0-9].*): Mark unsupported.
23927 (*-*-solaris2*): Simplify.
23928 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Likewise.
23929 (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*): Remove
23930 *-*-solaris2.9* handling.
23932 * configure.ac (gcc_cv_as_hidden): Remove test for Solaris 9/x86
23934 (gcc_cv_ld_hidden): Remove *-*-solaris2.9* handling.
23935 (ld_tls_support): Remove i?86-*-solaris2.9, sparc*-*-solaris2.9
23936 handling, simplify.
23937 (gcc_cv_as_gstabs_flag): Remove workaround for Solaris 9/x86 as bug.
23938 * configure: Regenerate.
23940 * config/i386/sol2-9.h: Remove.
23942 * doc/install.texi (Specific, i?86-*-solaris2.9): Remove.
23943 (Specific, *-*-solaris2*): Mention Solaris 9 support removal.
23944 Remove Solaris 9 references.
23946 2014-04-22 Vidya Praveen <vidyapraveen@arm.com>
23948 * aarch64.md (float<GPI:mode><GPF:mode>2): Remove.
23949 (floatuns<GPI:mode><GPF:mode>2): Remove.
23950 (<optab><fcvt_target><GPF:mode>2): New pattern for equal width float
23951 and floatuns conversions.
23952 (<optab><fcvt_iesize><GPF:mode>2): New pattern for inequal width float
23953 and floatuns conversions.
23954 * iterators.md (fcvt_target, FCVT_TARGET): Support SF and DF modes.
23955 (w1,w2): New mode attributes for inequal width conversions.
23957 2014-04-22 Renlin Li <Renlin.Li@arm.com>
23959 * config/aarch64/aarch64.c (aarch64_print_operand_address): Adjust
23960 the output asm format.
23962 2014-04-22 James Greenhalgh <james.greenhalgh@arm.com>
23964 * config/aarch64/aarch64-simd.md
23965 (aarch64_cm<optab>di): Always split.
23966 (*aarch64_cm<optab>di): New.
23967 (aarch64_cmtstdi): Always split.
23968 (*aarch64_cmtstdi): New.
23970 2014-04-22 Jakub Jelinek <jakub@redhat.com>
23972 PR tree-optimization/60823
23973 * omp-low.c (ipa_simd_modify_function_body): Go through
23974 all SSA_NAMEs and for those refering to vector arguments
23975 which are going to be replaced adjust SSA_NAME_VAR and,
23976 if it is a default definition, change it into a non-default
23977 definition assigned at the beginning of function from new_decl.
23978 (ipa_simd_modify_stmt_ops): Rewritten.
23979 * tree-dfa.c (set_ssa_default_def): When removing default def,
23980 check for NULL loc instead of NULL *loc.
23982 2014-04-22 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
23984 * config/arm/arm.c (arm_hard_regno_mode_ok): Loosen
23985 restrictions on core registers for DImode values in Thumb2.
23987 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23989 * config/arm/arm.md (*anddi_notdi_zesidi): New pattern.
23990 * config/arm/thumb2.md (*iordi_notdi_zesidi): New pattern.
23992 2014-04-22 Ian Bolton <ian.bolton@arm.com>
23994 * config/arm/thumb2.md (*iordi_notdi_di): New pattern.
23995 (*iordi_notzesidi_di): Likewise.
23996 (*iordi_notsesidi_di): Likewise.
23998 2014-04-22 Ian Bolton <ian.bolton@arm.com>
24000 * config/arm/arm-protos.h (tune_params): New struct members.
24001 * config/arm/arm.c: Initialise tune_params per processor.
24002 (thumb2_reorg): Suppress conversion from t32 to t16 when optimizing
24003 for speed, based on new tune_params.
24005 2014-04-22 Alex Velenko <Alex.Velenko@arm.com>
24007 * config/aarch64/aarch64-builtins.c (BUILTIN_VDQF_DF): Macro added.
24008 * config/aarch64/aarch64-simd-builtins.def (frintn): Use added macro.
24009 * config/aarch64/aarch64-simd.md (<frint_pattern>): Comment corrected.
24010 * config/aarch64/aarch64.md (<frint_pattern>): Likewise.
24011 * config/aarch64/arm_neon.h (vrnd_f64): Added.
24012 (vrnda_f64): Likewise.
24013 (vrndi_f64): Likewise.
24014 (vrndm_f64): Likewise.
24015 (vrndn_f64): Likewise.
24016 (vrndp_f64): Likewise.
24017 (vrndx_f64): Likewise.
24019 2014-04-22 Zhenqiang Chen <zhenqiang.chen@linaro.org>
24021 * config/arm/arm.c (arm_print_operand, thumb_exit): Make sure
24022 GET_MODE_SIZE argument is enum machine_mode.
24024 2014-04-22 Jakub Jelinek <jakub@redhat.com>
24027 * config/sparc/sparc.c (sparc_init_modes): Pass enum machine_mode
24028 value instead of int to GET_MODE_CLASS and GET_MODE_SIZE macros.
24030 2014-04-22 Lin Zuojian <manjian2006@gmail.com>
24032 PR middle-end/60281
24033 * asan.c (asan_emit_stack_protection): Force the base to align to
24034 appropriate bits if STRICT_ALIGNMENT. Set shadow_mem align to
24035 appropriate bits if STRICT_ALIGNMENT.
24036 * cfgexpand.c (expand_stack_vars): Set base_align appropriately
24038 (expand_used_vars): Leave a space in the stack frame for alignment
24039 if STRICT_ALIGNMENT.
24041 2014-04-21 David Malcolm <dmalcolm@redhat.com>
24043 * gimple.h (gimple_assign_single_p): Accept a const_gimple rather
24045 (gimple_store_p): Likewise.
24046 (gimple_assign_load_p): Likewise.
24047 (gimple_assign_cast_p): Likewise.
24048 (gimple_clobber_p): Likewise.
24050 * doc/gimple.texi (gimple_assign_cast_p): Accept a const_gimple
24051 rather than a gimple.
24052 (gimple_assign_cast_p): Likewise.
24054 2014-04-21 Michael Meissner <meissner@linux.vnet.ibm.com>
24057 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64 case):
24058 If mode is DDmode and TARGET_E500_DOUBLE allow move.
24060 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print some
24061 more debug information for E500 if -mdebug=reg.
24063 2014-04-21 Uros Bizjak <ubizjak@gmail.com>
24066 * config/i386/i386.c (ix86_expand_builtin)
24067 <case IX86_BUILTIN_RDRAND{16,32,64}_STEP>: Use temporary
24068 register for target RTX.
24069 <case IX86_BUILTIN_RDSEED{16,32,64}_STEP>: Ditto.
24071 2014-04-18 Cong Hou <congh@google.com>
24073 * tree-vect-patterns.c (vect_recog_widen_mult_pattern): Enhance
24074 the widen-mult pattern by handling two operands with different sizes,
24075 and operands whose size is smaller than half of the result type.
24077 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24079 * ipa-inline.h (INLINE_HINT_known_hot): New hint.
24080 * ipa-inline-analysis.c (dump_inline_hints): Dump it.
24081 (do_estimate_edge_time): Compute it.
24082 * ipa-inline.c (want_inline_small_function_p): Bypass
24083 INLINE_INSNS_AUTO/SINGLE limits for calls that are known to be hot.
24085 2014-04-18 Jan Hubicka <hubicka@ucw.cz>
24087 * ipa-inline.c (spec_rem): New static variable.
24088 (dump_overall_stats): New function.
24089 (dump_inline_stats): New function.
24091 2014-04-18 Richard Henderson <rth@redhat.com>
24093 * config/aarch64/aarch64.c (aarch64_register_move_cost): Pass a mode
24094 to GET_MODE_SIZE, not a reg_class_t.
24096 2014-04-18 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24098 * config/rs6000/vsx.md (vsx_xxmrghw_<mode>): Adjust for little-endian.
24099 (vsx_xxmrglw_<mode>): Likewise.
24101 2014-04-17 Michael Meissner <meissner@linux.vnet.ibm.com>
24104 * config/rs6000/rs6000.c (rs6000_setup_reg_addr_masks): Make sure
24105 GET_MODE_SIZE gets passed an enum machine_mode type and not integer.
24106 (rs6000_init_hard_regno_mode_ok): Likewise.
24108 2014-04-17 Jan Hubicka <hubicka@ucw.cz>
24110 * ipa-inline.c (inline_small_functions): Account only non-cold
24112 * doc/invoke.texi (inline-unit-growth): Update documentation.
24114 2014-04-17 Pat Haugen <pthaugen@us.ibm.com>
24116 * config/rs6000/rs6000.md (addti3, subti3): New.
24118 2014-04-17 H.J. Lu <hongjiu.lu@intel.com>
24121 * config/i386/i386.c (ix86_expand_clear): Remove outdated
24122 comment. Check optimize_insn_for_size_p instead of
24123 optimize_insn_for_speed_p.
24125 2014-04-17 Martin Jambor <mjambor@suse.cz>
24127 * gimple-iterator.c (gsi_start_edge): New function.
24128 * gimple-iterator.h (gsi_start_edge): Declare.
24129 * tree-sra.c (single_non_eh_succ): New function.
24130 (disqualify_ops_if_throwing_stmt): Renamed to
24131 disqualify_if_bad_bb_terminating_stmt. Allow throwing statements
24132 having one non-EH successor BB.
24133 (sra_modify_expr): If stmt ends bb, use single non-EH successor to
24134 generate loads into replacements.
24135 (sra_modify_assign): Likewise and and also use the simple path for
24137 (sra_modify_function_body): Commit statements on edges.
24139 2014-04-17 Richard Biener <rguenther@suse.de>
24141 PR middle-end/60849
24142 * tree-ssa-propagate.c (valid_gimple_rhs_p): Allow vector
24143 comparison results and add clarifying comment.
24145 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24147 * genmodes.c (struct mode_data): Add need_bytesize_adj field.
24148 (blank_mode): Initialize it.
24149 (emit_mode_size_inline, emit_mode_nunits_inline,
24150 emit_mode_inner_inline): New functions.
24151 (emit_insn_modes_h): Call them and surround their output with
24152 #if GCC_VERSION >= 4001 ... #endif.
24153 * machmode.h (GET_MODE_SIZE, GET_MODE_NUNITS, GET_MODE_INNER):
24154 For GCC_VERSION >= 4001 use mode_*_inline routines instead of
24155 mode_* arrays if the argument is __builtin_constant_p.
24156 * lower-subreg.c (dump_choices): Make sure GET_MODE_SIZE argument
24157 is enum machine_mode.
24159 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24161 * passes.c (opt_pass::execute): Adjust.
24162 (pass_manager::execute_pass_mode_switching): Likewise.
24163 (early_local_passes::execute): Likewise.
24164 (execute_one_pass): Pass cfun to the pass's execute method.
24165 * tree-pass.h (opt_pass::execute): Add function * argument.
24166 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24167 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24168 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24169 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24170 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24171 config/sparc/sparc.c, cprop.c, dce.c, df-core.c, dse.c, dwarf2cfi.c,
24172 except.c, final.c, function.c, fwprop.c, gcse.c, gimple-low.c,
24173 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24174 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24175 ipa-inline-analysis.c, ipa-inline.c, ipa-profile.c, ipa-pure-const.c,
24176 ipa-reference.c, ipa-split.c, ipa.c, ira.c, jump.c, loop-init.c,
24177 lower-subreg.c, mode-switching.c, omp-low.c, postreload-gcse.c,
24178 postreload.c, predict.c, recog.c, ree.c, reg-stack.c, regcprop.c,
24179 reginfo.c, regrename.c, reorg.c, sched-rgn.c, stack-ptr-mod.c,
24180 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24181 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24182 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24183 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-ssa-ccp.c,
24184 tree-ssa-copy.c, tree-ssa-copyrename.c, tree-ssa-dce.c,
24185 tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24186 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24187 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24188 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24189 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24190 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24191 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24192 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24193 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24194 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24197 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24199 * passes.c (opt_pass::gate): Take function * argument.
24200 (gate_all_early_local_passes): Merge into
24201 (early_local_passes::gate): this.
24202 (gate_all_early_optimizations): Merge into
24203 (all_early_optimizations::gate): this.
24204 (gate_all_optimizations): Mege into
24205 (all_optimizations::gate): this.
24206 (gate_all_optimizations_g): Merge into
24207 (all_optimizations_g::gate): this.
24208 (gate_rest_of_compilation): Mege into
24209 (rest_of_compilation::gate): this.
24210 (gate_postreload): Merge into
24211 (postreload::gate): this.
24212 (dump_one_pass): Pass cfun to the pass's gate method.
24213 (execute_ipa_summary_passes): Likewise.
24214 (execute_one_pass): Likewise.
24215 (ipa_write_summaries_2): Likewise.
24216 (ipa_write_optimization_summaries_1): Likewise.
24217 (ipa_read_summaries_1): Likewise.
24218 (ipa_read_optimization_summaries_1): Likewise.
24219 (execute_ipa_stmt_fixups): Likewise.
24220 * tree-pass.h (opt_pass::gate): Add function * argument.
24221 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c,
24222 combine-stack-adj.c, combine.c, compare-elim.c,
24223 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24224 config/rl78/rl78.c, config/sh/sh_optimize_sett_clrt.cc,
24225 config/sh/sh_treg_combine.cc, config/sparc/sparc.c, cprop.c, cse.c,
24226 dce.c, df-core.c, dse.c, dwarf2cfi.c, except.c, fwprop.c, gcse.c,
24227 gimple-ssa-isolate-paths.c, gimple-ssa-strength-reduction.c,
24228 graphite.c, ifcvt.c, init-regs.c, ipa-cp.c, ipa-devirt.c,
24229 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24230 loop-init.c, lower-subreg.c, mode-switching.c, modulo-sched.c,
24231 omp-low.c, postreload-gcse.c, postreload.c, predict.c, recog.c, ree.c,
24232 reg-stack.c, regcprop.c, regrename.c, reorg.c, sched-rgn.c,
24233 store-motion.c, tracer.c, trans-mem.c, tree-call-cdce.c, tree-cfg.c,
24234 tree-cfgcleanup.c, tree-complex.c, tree-eh.c, tree-emutls.c,
24235 tree-if-conv.c, tree-into-ssa.c, tree-loop-distribution.c,
24236 tree-nrv.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24237 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24238 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24239 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24240 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24241 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24242 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24243 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24244 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24245 tree-ssa.c, tree-stdarg.c, tree-switch-conversion.c, tree-tailcall.c,
24246 tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c, tsan.c, ubsan.c,
24247 var-tracking.c, vtable-verify.c, web.c: Adjust.
24249 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24251 * configure.ac: Check for -Woverloaded-virtual and enable it if found.
24252 * configure: Regenerate.
24254 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24256 * passes.c (dump_one_pass): don't check pass->has_gate.
24257 (execute_ipa_summary_passes): Likewise.
24258 (execute_one_pass): Likewise.
24259 (ipa_write_summaries_2): Likewise.
24260 (ipa_write_optimization_summaries_1): Likewise.
24261 (ipa_read_optimization_summaries_1): Likewise.
24262 (execute_ipa_stmt_fixups): Likewise.
24263 * tree-pass.h (pass_data::has_gate): Remove.
24264 * asan.c, auto-inc-dec.c, bb-reorder.c, bt-load.c, cfgcleanup.c,
24265 cfgexpand.c, cfgrtl.c, cgraphbuild.c, combine-stack-adj.c, combine.c,
24266 compare-elim.c, config/arc/arc.c, config/epiphany/mode-switch-use.c,
24267 config/epiphany/resolve-sw-modes.c, config/i386/i386.c,
24268 config/mips/mips.c, config/rl78/rl78.c, config/s390/s390.c,
24269 config/sh/sh_optimize_sett_clrt.cc, config/sh/sh_treg_combine.cc,
24270 config/sparc/sparc.c, cprop.c, cse.c, dce.c, df-core.c, dse.c,
24271 dwarf2cfi.c, except.c, final.c, function.c, fwprop.c, gcse.c,
24272 gimple-low.c, gimple-ssa-isolate-paths.c,
24273 gimple-ssa-strength-reduction.c, graphite.c, ifcvt.c, init-regs.c,
24274 ipa-cp.c, ipa-devirt.c, ipa-inline-analysis.c, ipa-inline.c,
24275 ipa-profile.c, ipa-pure-const.c, ipa-reference.c, ipa-split.c, ipa.c,
24276 ira.c, jump.c, loop-init.c, lower-subreg.c, mode-switching.c,
24277 modulo-sched.c, omp-low.c, postreload-gcse.c, postreload.c, predict.c,
24278 recog.c, ree.c, reg-stack.c, regcprop.c, reginfo.c, regrename.c,
24279 reorg.c, sched-rgn.c, stack-ptr-mod.c, store-motion.c, tracer.c,
24280 trans-mem.c, tree-call-cdce.c, tree-cfg.c, tree-cfgcleanup.c,
24281 tree-complex.c, tree-eh.c, tree-emutls.c, tree-if-conv.c,
24282 tree-into-ssa.c, tree-loop-distribution.c, tree-nrv.c,
24283 tree-object-size.c, tree-parloops.c, tree-predcom.c, tree-profile.c,
24284 tree-sra.c, tree-ssa-ccp.c, tree-ssa-copy.c, tree-ssa-copyrename.c,
24285 tree-ssa-dce.c, tree-ssa-dom.c, tree-ssa-dse.c, tree-ssa-forwprop.c,
24286 tree-ssa-ifcombine.c, tree-ssa-loop-ch.c, tree-ssa-loop-im.c,
24287 tree-ssa-loop-ivcanon.c, tree-ssa-loop-prefetch.c,
24288 tree-ssa-loop-unswitch.c, tree-ssa-loop.c, tree-ssa-math-opts.c,
24289 tree-ssa-phiopt.c, tree-ssa-phiprop.c, tree-ssa-pre.c,
24290 tree-ssa-reassoc.c, tree-ssa-sink.c, tree-ssa-strlen.c,
24291 tree-ssa-structalias.c, tree-ssa-uncprop.c, tree-ssa-uninit.c,
24292 tree-ssa.c, tree-ssanames.c, tree-stdarg.c, tree-switch-conversion.c,
24293 tree-tailcall.c, tree-vect-generic.c, tree-vectorizer.c, tree-vrp.c,
24294 tree.c, tsan.c, ubsan.c, var-tracking.c, vtable-verify.c, web.c:
24297 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24299 * pass_manager.h (pass_manager::register_dump_files_1): Remove
24301 * passes.c (pass_manager::register_dump_files_1): Merge into
24302 (pass_manager::register_dump_files): this, and remove its handling of
24303 properties since the pass always has the properties anyway.
24304 (pass_manager::pass_manager): Adjust.
24306 2014-04-17 Trevor Saunders <tsaunders@mozilla.com>
24308 * pass_manager.h (pass_manager::register_dump_files_1): Adjust.
24309 * passes.c (pass_manager::register_dump_files_1): Remove dead code
24310 dealing with properties.
24311 (pass_manager::register_dump_files): Adjust.
24313 2014-03-20 Mark Wielaard <mjw@redhat.com>
24315 * dwarf2out.c (add_bound_info): If HOST_WIDE_INT is big enough,
24316 then represent the bound as normal constant value.
24318 2014-04-17 Jakub Jelinek <jakub@redhat.com>
24321 Forward port from 4.8 branch
24322 2013-07-19 Kirill Yukhin <kirill.yukhin@intel.com>
24324 * config/i386/bmiintrin.h (_blsi_u32): New.
24325 (_blsi_u64): Ditto.
24326 (_blsr_u32): Ditto.
24327 (_blsr_u64): Ditto.
24328 (_blsmsk_u32): Ditto.
24329 (_blsmsk_u64): Ditto.
24330 (_tzcnt_u32): Ditto.
24331 (_tzcnt_u64): Ditto.
24333 2014-04-17 Kito Cheng <kito@0xlab.org>
24335 * gcc.c (used_arg): Prevent out of bound access for multilib_options.
24337 2014-04-17 Richard Biener <rguenther@suse.de>
24339 PR middle-end/60849
24340 * tree-ssa-propagate.c (valid_gimple_rhs_p): Only allow effective
24341 boolean results for comparisons.
24343 2014-04-17 Richard Biener <rguenther@suse.de>
24345 PR tree-optimization/60836
24346 * tree-vect-loop.c (vect_create_epilog_for_reduction): Force
24347 initial PHI args to be gimple values.
24349 2014-04-17 Richard Biener <rguenther@suse.de>
24351 PR tree-optimization/60841
24352 * tree-vect-data-refs.c (vect_analyze_data_refs): Count stmts.
24353 * tree-vect-loop.c (vect_analyze_loop_2): Pass down number
24354 of stmts to SLP build.
24355 * tree-vect-slp.c (vect_slp_analyze_bb_1): Likewise.
24356 (vect_analyze_slp): Likewise.
24357 (vect_analyze_slp_instance): Likewise.
24358 (vect_build_slp_tree): Limit overall SLP tree growth.
24359 * tree-vectorizer.h (vect_analyze_data_refs,
24360 vect_analyze_slp): Adjust prototypes.
24362 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24364 * config/i386/i386.c (x86_add_stmt_cost): Fix vector cost model for
24367 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24369 * config/i386/x86-tune.def (TARGET_SLOW_PSHUFB): New tune definition.
24370 * config/i386/i386.h (TARGET_SLOW_PSHUFB): New tune flag.
24371 * config/i386/i386.c (expand_vec_perm_even_odd_1): Avoid byte shuffles
24372 for TARGET_SLOW_PSHUFB
24374 2014-04-17 Evgeny Stupachenko <evstupac@gmail.com>
24376 * config/i386/i386.c (slm_cost): Adjust vec_to_scalar_cost.
24377 * config/i386/i386.c (intel_cost): Ditto.
24379 2014-04-17 Joey Ye <joey.ye@arm.com>
24381 * opts.c (OPT_fif_conversion, OPT_fif_conversion2): Disable for Og.
24383 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24385 * opts.c (common_handle_option): Disable -fipa-reference coorectly
24386 with -fuse-profile.
24388 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24390 * ipa-devirt.c (odr_type_d): Add field all_derivations_known.
24391 (type_all_derivations_known_p): New predicate.
24392 (type_all_ctors_visible_p): New predicate.
24393 (type_possibly_instantiated_p): New predicate.
24394 (get_odr_type): Compute all_derivations_known.
24395 (dump_odr_type): Dump the flag.
24396 (maybe_record_type): Cleanup.
24397 (record_target_from_binfo): Add bases_to_consider array;
24398 record bases for types w/o instances and skip CXX destructor.
24399 (possible_polymorphic_call_targets_1): Add bases_to_consider
24400 and consider_construction parameters; check if type may have instance.
24401 (get_polymorphic_call_info): Set maybe_in_construction to true
24402 when we know nothing.
24403 (record_targets_from_bases): Skip CXX destructors; they are
24404 never called for types in construction.
24405 (possible_polymorphic_call_targets): Do not record target when
24406 type may not have instance.
24408 2014-04-16 Jan Hubicka <hubicka@ucw.cz>
24411 * ipa.c (symtab_remove_unreachable_nodes): Mark targets of
24412 external aliases alive, too.
24414 2014-04-16 Andrew Pinski <apinski@cavium.com>
24416 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Change aarch64 ilp32
24419 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24421 * final.c (compute_alignments): Do not apply loop alignment to a block
24422 falling through to the exit.
24424 2014-04-16 Catherine Moore <clm@codesourcery.com>
24426 * mips.md (*mov<mode>_internal, *movhi_internal, *movqi_internal):
24427 Adjust constraints for microMIPS store patterns.
24429 2014-04-16 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24431 * config/avr/avr-mcus.def: Correct typo for atxmega256a3bu macro.
24433 2014-04-16 Eric Botcazou <ebotcazou@adacore.com>
24435 * tree-ssa-operands.c (create_vop_var): Set DECL_IGNORED_P.
24436 (append_use): Run at -O0.
24437 (append_vdef): Likewise.
24438 * tree-ssa-ter.c (ter_is_replaceable_p): Do not special-case -O0.
24439 * tree-ssa-uninit.c (warn_uninitialized_vars): Remove obsolete comment.
24441 2014-04-16 Jakub Jelinek <jakub@redhat.com>
24443 PR tree-optimization/60844
24444 * tree-ssa-reassoc.c (reassoc_remove_stmt): New function.
24445 (propagate_op_to_single_use, remove_visited_stmt_chain,
24446 linearize_expr, repropagate_negates, reassociate_bb): Use it
24447 instead of gsi_remove.
24449 2014-04-16 Martin Jambor <mjambor@suse.cz>
24451 * cgraphclones.c (cgraph_create_virtual_clone): Duplicate
24452 ipa_transforms_to_apply.
24453 (cgraph_function_versioning): Assert that old_node has empty
24454 ipa_transforms_to_apply.
24455 * trans-mem.c (ipa_tm_create_version): Likewise.
24456 * tree-inline.c (tree_function_versioning): Do not duplicate
24457 ipa_transforms_to_apply.
24459 2014-04-16 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
24462 * configure.ac (set_have_as_tls): Merge i[34567]86-*-* and
24464 Pass necessary as flags on 64-bit Solaris/x86.
24465 Use lowercase relocs for x86_64-*-*.
24466 * configure: Regenerate.
24468 2014-04-15 Jan Hubicka <jh@suse.cz>
24470 * ipa-devirt.c (referenced_from_vtable_p): New predicate.
24471 (maybe_record_node, likely_target_p): Use it.
24473 2014-04-15 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24476 Revert following patch
24478 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
24481 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
24482 software floating point or no floating point registers, do not
24483 allow any type in the FPRs. Eliminate a test for SPE SIMD types
24484 in GPRs that occurs after we tested for GPRs that would never be
24487 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
24488 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
24489 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
24490 specifically allow DDmode, since that does not use the SPE SIMD
24493 2014-03-21 Mark Wielaard <mjw@redhat.com>
24495 * dwarf2out.c (gen_enumeration_type_die): Add DW_AT_const_value
24496 as unsigned or int depending on type and value used.
24498 2014-04-15 Richard Biener <rguenther@suse.de>
24500 PR rtl-optimization/56965
24501 * alias.c (ncr_compar, nonoverlapping_component_refs_p): Move ...
24502 * tree-ssa-alias.c (ncr_compar, nonoverlapping_component_refs_p):
24504 * alias.c (true_dependence_1): Do not call
24505 nonoverlapping_component_refs_p.
24506 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Call
24507 nonoverlapping_component_refs_p.
24508 (indirect_refs_may_alias_p): Likewise.
24510 2014-04-15 Teresa Johnson <tejohnson@google.com>
24512 * cfg.c (dump_bb_info): Fix flags check.
24513 * tree-cfg.c (remove_bb): Only dump TDF_BLOCKS when removing.
24515 2014-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24517 PR rtl-optimization/60663
24518 * config/arm/arm.c (arm_new_rtx_costs): Improve ASM_OPERANDS case,
24521 2014-04-15 Richard Biener <rguenther@suse.de>
24523 * lto-streamer.h (LTO_major_version): Bump to 4.
24525 2014-04-15 Richard Biener <rguenther@suse.de>
24527 * common.opt (lto_partition_model): New enum.
24528 (flto-partition=): Merge separate options with a single with argument,
24529 add -flto-partition=one support.
24530 * flag-types.h (enum lto_partition_model): Declare.
24531 * opts.c (finish_options): Remove duplicate -flto-partition=
24533 * lto-wrapper.c (run_gcc): Adjust.
24535 2014-04-15 Richard Biener <rguenther@suse.de>
24537 * alias.c (ncr_compar): New function.
24538 (nonoverlapping_component_refs_p): Re-implement in O (n log n).
24540 2014-04-15 Richard Biener <rguenther@suse.de>
24542 * alias.c (record_component_aliases): Do not walk BINFOs.
24544 2014-04-15 Richard Biener <rguenther@suse.de>
24546 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
24547 Add struct function argument and adjust.
24548 (find_func_aliases_for_call): Likewise.
24549 (find_func_aliases): Likewise.
24550 (find_func_clobbers): Likewise.
24551 (intra_create_variable_infos): Likewise.
24552 (compute_points_to_sets): Likewise.
24553 (ipa_pta_execute): Adjust. Do not push/pop cfun.
24555 2014-04-15 Richard Biener <rguenther@suse.de>
24557 * tree.c (iterative_hash_expr): Use enum tree_code_class
24558 to store TREE_CODE_CLASS.
24559 (tree_block): Likewise.
24560 (tree_set_block): Likewise.
24561 * tree.h (fold_build_pointer_plus_loc): Use
24562 convert_to_ptrofftype_loc.
24564 2014-04-15 Jakub Jelinek <jakub@redhat.com>
24567 * Makefile.in (PLUGIN_HEADERS): Add various headers that have been
24570 2014-04-15 Eric Botcazou <ebotcazou@adacore.com>
24572 * cfgloop.h (struct loop): Move force_vectorize down.
24573 * gimplify.c (gimple_boolify) <ANNOTATE_EXPR>: Handle new kinds.
24574 (gimplify_expr) <ANNOTATE_EXPR>: Minor tweak.
24575 * lto-streamer-in.c (input_cfg): Read dont_vectorize field.
24576 * lto-streamer-out.c (output_cfg): Write dont_vectorize field.
24577 * tree-cfg.c (replace_loop_annotate): Revamp and handle new kinds.
24578 * tree-core.h (enum annot_expr_kind): Add new kind values.
24579 * tree-inline.c (copy_loops): Copy dont_vectorize field and reorder.
24580 * tree-pretty-print.c (dump_generic_node) <ANNOTATE_EXPR>: Handle new
24582 * tree.def (ANNOTATE_EXPR): Tweak comment.
24584 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24586 * ipa-devirt.c (maybe_record_node): Ignore all non-methods (including
24589 2014-04-14 Paolo Carlini <paolo.carlini@oracle.com>
24591 * tree.h (TYPE_IDENTIFIER): Declare.
24592 * tree.c (subrange_type_for_debug_p): Use it.
24593 * godump.c (go_format_type): Likewise.
24594 * dwarf2out.c (is_cxx_auto, modified_type_die,
24595 gen_type_die_with_usage, gen_type_die_with_usage): Likewise.
24596 * dbxout.c (dbxout_type, dbxout_symbol): Likewise.
24598 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24601 * varpool.c (varpool_remove_node): Do not alter decls when streaming.
24603 2014-04-14 Uros Bizjak <ubizjak@gmail.com>
24605 * config/i386/i386.c (examine_argument): Return bool. Return true if
24606 parameter should be passed in memory.
24607 <case X86_64_COMPLEX_X87_CLASS>: Adjust.
24608 (construct_container): Update calls to examine_argument.
24609 (function_arg_advance_64): Ditto.
24610 (return_in_memory_32): Merge with ix86_return_in_memory.
24611 (return_in_memory_64): Ditto.
24612 (return_in_memory_ms_64): Ditto.
24614 2014-04-14 Jan Hubicka <hubicka@ucw.cz>
24616 * ipa-utils.c (ipa_merge_profiles): Merge profile_id.
24617 * coverage.c (coverage_compute_profile_id): Handle externally visible
24620 2014-04-14 Martin Jambor <mjambor@suse.cz>
24622 * tree-sra.c (ipa_sra_preliminary_function_checks): Skip
24623 DECL_DISREGARD_INLINE_LIMITS functions.
24625 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24628 * config/i386/i386.md (*fixuns_trunc<mode>_1): Revert the last change.
24630 2014-04-14 H.J. Lu <hongjiu.lu@intel.com>
24633 * config/i386/i386.md (*fixuns_trunc<mode>_1): Check
24634 optimize_insn_for_speed_p instead of
24635 optimize_function_for_speed_p.
24637 2014-04-14 Yufeng Zhang <yufeng.zhang@arm.com>
24639 * doc/invoke.texi (free): Document AArch64.
24641 2014-04-14 Richard Biener <rguenther@suse.de>
24643 PR tree-optimization/60042
24644 * tree-ssa-pre.c (inhibit_phi_insertion): Remove.
24645 (insert_into_preds_of_block): Do not prevent PHI insertion
24646 for REFERENCE exprs here ...
24647 (eliminate_dom_walker::before_dom_children): ... but prevent
24648 their use here under similar conditions when applied to the
24649 IL after PRE optimizations.
24651 2014-04-14 Richard Biener <rguenther@suse.de>
24653 * passes.def: Move early points-to after early SRA.
24655 2014-04-14 Richard Biener <rguenther@suse.de>
24657 * tree-ssa-forwprop.c (simplify_gimple_switch): Enhance
24658 check for which sign-changes we allow when forwarding
24659 a converted value into a switch.
24661 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24663 * stor-layout.c (place_field): Finalize non-constant offset for the
24666 2014-04-14 Richard Biener <rguenther@suse.de>
24668 * tree-switch-conversion.c (lshift_cheap_p): Get speed_p
24670 (expand_switch_using_bit_tests_p): Likewise.
24671 (process_switch): Compute and pass on speed_p based on the
24673 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Use
24674 optimize_bb_for_speed_p.
24676 2014-04-14 Eric Botcazou <ebotcazou@adacore.com>
24678 * cfgloop.h (struct loop): Rename force_vect into force_vectorize.
24679 * function.h (struct function): Rename has_force_vect_loops into
24680 has_force_vectorize_loops.
24681 * lto-streamer-in.c (input_cfg): Adjust for renaming.
24682 (input_struct_function_base): Likewise.
24683 * lto-streamer-out.c (output_cfg): Likewise.
24684 (output_struct_function_base): Likewise.
24685 * omp-low.c (expand_omp_simd): Likewise.
24686 * tree-cfg.c (move_sese_region_to_fn): Likewise.
24687 * tree-if-conv.c (ifcvt_can_use_mask_load_store): Likewise.
24688 (version_loop_for_if_conversion): Likewise.
24689 (tree_if_conversion): Likewise.
24690 (main_tree_if_conversion): Likewise.
24691 (gate_tree_if_conversion): Likewise.
24692 * tree-inline.c (copy_loops): Likewise.
24693 * tree-ssa-loop-ivcanon.c (tree_unroll_loops_completely_1): Likewise.
24694 * tree-ssa-loop.c (tree_loop_vectorize): Likewise.
24695 * tree-ssa-phiopt.c (tree_ssa_phiopt_worker): Likewise.
24696 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Likewise.
24697 * tree-vectorizer.c (vectorize_loops): Likewise.
24698 * tree-vectorizer.h (unlimited_cost_model): Likewise.
24700 2014-04-14 Richard Biener <rguenther@suse.de>
24703 * lto-streamer-out.c (wrap_refs): New function.
24704 (lto_output): Wrap symbol references in global initializes in
24705 type-preserving MEM_REFs.
24707 2014-04-14 Christian Bruel <christian.bruel@st.com>
24709 * config/sh/sh-mem.cc (sh_expand_strlen): Unroll last word.
24711 2014-04-14 Christian Bruel <christian.bruel@st.com>
24713 * config/sh/sh.md (setmemqi): New expand pattern.
24714 * config/sh/sh.h (CLEAR_RATIO): Define.
24715 * config/sh/sh-mem.cc (sh_expand_setmem): Define.
24716 * config/sh/sh-protos.h (sh_expand_setmem): Declare.
24718 2014-04-14 Richard Biener <rguenther@suse.de>
24720 PR middle-end/55022
24721 * fold-const.c (negate_expr_p): Don't negate directional rounding
24723 (fold_negate_expr): Likewise.
24725 2014-04-14 Richard Biener <rguenther@suse.de>
24727 PR tree-optimization/59817
24728 PR tree-optimization/60453
24729 * graphite-scop-detection.c (graphite_can_represent_scev): Complete
24730 recursion to catch all CHRECs in the scalar evolution and restrict
24731 the predicate for the remains appropriately.
24733 2014-04-12 Catherine Moore <clm@codesourcery.com>
24735 * config/mips/constraints.md: Add new register constraint "kb".
24736 * config/mips/mips.md (*mov<mode>_internal): Use constraint "kb".
24737 (*movhi_internal): Likewise.
24738 (*movqi_internal): Likewise.
24739 * config/mips/mips.h (M16_STORE_REGS): New register class.
24740 (REG_CLASS_NAMES): Add M16_STORE_REGS.
24741 (REG_CLASS_CONTENTS): Likewise.
24742 * config/mips/mips.c (mips_regno_to_class): Add M16_STORE_REGS.
24744 2014-04-11 Tobias Burnus <burnus@net-b.de>
24747 * doc/invoke.texi (-Wformat-signedness): Document it.
24748 (Wformat=2): Mention that this enables -Wformat-signedness.
24750 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24752 * common/config/epiphany/epiphany-common.c
24753 (epiphany_option_optimization_table): Enable section anchors by
24754 default at -O1 or higher.
24755 * config/epiphany/epiphany.c (TARGET_MAX_ANCHOR_OFFSET): Define.
24756 (TARGET_MIN_ANCHOR_OFFSET): Likewise.
24757 (epiphany_rtx_costs) <SET>: For binary operators, the set as such
24758 carries no extra cost.
24759 (epiphany_legitimate_address_p): For BLKmode, apply SImode check.
24760 * config/epiphany/epiphany.h (ASM_OUTPUT_DEF): Define.
24761 * config/epiphany/predicates.md (memclob_operand): New predicate.
24762 * config/epiphany/epiphany.md (stack_adjust_add, stack_adjust_str):
24763 Use memclob_operand predicate and X constraint for operand 3.
24765 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24767 * config/epiphany/epiphany.c (epiphany_rtx_cost): Compare
24768 with CC_N_NE / CC_C_LTU / CC_C_GTU carries no extra cost for
24771 2014-04-11 Joern Rennecke <joern.rennecke@embecosm.com>
24773 PR rtl-optimization/60651
24774 * mode-switching.c (optimize_mode_switching): Make sure to emit
24775 sets of a lower numbered entity before sets of a higher numbered
24776 entity to a mode of the same or lower priority.
24777 When creating a seginfo for a basic block that starts with a code
24778 label, move the insertion point past the code label.
24779 (new_seginfo): Document and enforce requirement that
24780 NOTE_INSN_BASIC_BLOCK only appears for empty blocks.
24781 * doc/tm.texi.in: Document ordering constraint for emitted mode sets.
24782 * doc/tm.texi: Regenerate.
24784 2014-01-11 Joern Rennecke <joern.rennecke@embecosm.com>
24787 * config/arc/arc.c (arc_save_restore): Fix assert typo.
24789 2013-04-11 Jakub Jelinek <jakub@redhat.com>
24791 * BASE-VER: Set to 4.10.0.
24793 2014-04-11 Tobias Burnus <burnus@net-b.de>
24796 * doc/bugreport.texi (Bugs): Remove nodes pointing to the nirvana.
24797 * doc/gcc.texi (Service): Update description in the @menu
24798 * doc/invoke.texi (Option Summary): Remove misplaced and
24801 2014-04-11 Steve Ellcey <sellcey@mips.com>
24802 Jakub Jelinek <jakub@redhat.com>
24804 PR middle-end/60556
24805 * expr.c (convert_move): Use emit_store_flag_force instead of
24806 emit_store_flag. Pass lowpart_mode instead of VOIDmode as 5th
24809 2014-04-11 Richard Biener <rguenther@suse.de>
24811 PR middle-end/60797
24812 * varasm.c (assemble_alias): Avoid endless error reporting
24813 recursion by setting TREE_ASM_WRITTEN.
24815 2014-04-11 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
24817 * config/s390/s390.md: Add a splitter for NOT rtx.
24819 2014-04-11 Jakub Jelinek <jakub@redhat.com>
24821 PR rtl-optimization/60663
24822 * cse.c (cse_insn): Set src_volatile on ASM_OPERANDS in PARALLEL.
24824 2014-04-10 Jan Hubicka <hubicka@ucw.cz>
24825 Jakub Jelinek <jakub@redhat.com>
24828 * ipa.c (function_and_variable_visibility): Copy forced_by_abi
24829 flag from decl_node to node.
24831 2014-04-10 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
24834 * config/arm/arm.c (TARGET_CONST_NOT_OK_FOR_DEBUG_P): Define
24835 (arm_const_not_ok_for_debug_p): Reject MINUS with SYM_REF's
24836 ameliorating the cases where it can be.
24838 2014-04-09 David Edelsohn <dje.gcc@gmail.com>
24841 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24843 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24844 (loadsync_<mode>): Change mode.
24845 (load_quadpti, store_quadpti): New.
24846 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24847 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24848 * config/rs6000/predicates.md (quad_memory_operand): !TARGET_SYNC_TI.
24850 2014-04-09 Cong Hou <congh@google.com>
24853 * doc/sourcebuild.texi (vect_widen_mult_si_to_di_pattern): Add
24856 2014-04-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
24858 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Use vnand
24859 instead of vnor to exploit possible fusion opportunity in the
24861 (altivec_expand_vec_perm_const_le): Likewise.
24863 2014-04-08 Pat Haugen <pthaugen@us.ibm.com>
24865 * config/rs6000/sync.md (AINT mode_iterator): Move definition.
24866 (loadsync_<mode>): Change mode.
24867 (load_quadpti, store_quadpti): New.
24868 (atomic_load<mode>, atomic_store<mode>): Add support for TI mode.
24869 * config/rs6000/rs6000.md (unspec enum): Add UNSPEC_LSQ.
24871 2014-04-08 Richard Sandiford <rdsandiford@googlemail.com>
24874 * config/rs6000/vsx.md (vsx_xscvdpspn_scalar): Change input to DImode.
24875 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Update accordingly.
24876 Use gen_rtx_REG rather than simplify_gen_subreg for op0_di.
24878 2014-04-08 Richard Biener <rguenther@suse.de>
24880 PR middle-end/60706
24881 * tree-pretty-print.c (pp_double_int): For HWI32 hosts with
24882 a 64bit widest int print double-int similar to on HWI64 hosts.
24884 2014-04-08 Richard Biener <rguenther@suse.de>
24886 PR tree-optimization/60785
24887 * graphite-sese-to-poly.c (rewrite_phi_out_of_ssa): Treat
24888 default defs properly.
24890 2014-04-08 Nathan Sidwell <nathan@codesourcery.com>
24892 * doc/invoke (Wnon-virtual-dtor): Update to match implementation.
24893 (Weffc++): Likewise.
24895 2014-04-07 Jan Hubicka <hubcika@ucw.cz>
24897 * ipa-devirt.c (maybe_record_node): When node is not recorded,
24898 set completep to false rather than true.
24900 2014-04-07 Douglas B Rupp <rupp@adacore.com>
24903 * config/arm/arm.h (ASM_PREFERRED_EH_DATA_FORMAT): Expose from
24904 ARM_TARGET2_DWARF_FORMAT.
24906 2014-04-07 Charles Baylis <charles.baylis@linaro.org>
24909 * config/arm/arm.h (ASM_OUTPUT_CASE_END): Remove.
24910 (LABEL_ALIGN_AFTER_BARRIER): Align barriers which occur after
24913 2014-04-07 Richard Biener <rguenther@suse.de>
24915 PR tree-optimization/60766
24916 * tree-ssa-loop-ivopts.c (cand_value_at): Compute in an unsigned type.
24917 (may_eliminate_iv): Convert cand_value_at result to desired type.
24919 2014-04-07 Jason Merrill <jason@redhat.com>
24922 * common.opt (-fno-gnu-unique): Add.
24923 * config/elfos.h (USE_GNU_UNIQUE_OBJECT): Check it.
24925 2014-04-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
24927 * haifa-sched.c: Fix outdated function reference and minor
24928 grammar errors in introductory comment.
24930 2014-04-07 Richard Biener <rguenther@suse.de>
24932 PR middle-end/60750
24933 * tree-ssa-operands.c (maybe_add_call_vops): Also add VDEFs
24934 for noreturn calls.
24935 * tree-cfgcleanup.c (fixup_noreturn_call): Do not remove VDEFs.
24937 2014-04-06 John David Anglin <danglin@gcc.gnu.org>
24940 * config/pa/pa.c (pa_output_function_epilogue): Skip address and code
24941 size accounting for thunks.
24942 (pa_asm_output_mi_thunk): Use final_start_function() and
24943 final_end_function() to output function start and end directives.
24945 2014-04-05 Pitchumani Sivanupandi <Pitchumani.S@atmel.com>
24947 * config/avr/avr-arch.h (avr_mcu_t): Add dev_attribute field to have
24948 device specific ISA/ feature information. Remove short_sp and
24949 errata_skip ds. Add avr_device_specific_features enum to have device
24951 * config/avr/avr-c.c (avr_cpu_cpp_builtins): use dev_attribute to check
24952 errata_skip. Add __AVR_ISA_RMW__ builtin macro if RMW ISA available.
24953 * config/avr/avr-devices.c (avr_mcu_types): Update AVR_MCU macro for
24954 updated device specific info.
24955 * config/avr/avr-mcus.def: Merge device specific details to
24956 dev_attribute field.
24957 * config/avr/avr.c (avr_2word_insn_p): use dev_attribute field to check
24959 * config/avr/avr.h (AVR_HAVE_8BIT_SP): same for short sp info.
24960 * config/avr/driver-avr.c (avr_device_to_as): Pass -mrmw option to
24961 assembler if RMW isa supported by current device.
24962 * config/avr/genmultilib.awk: Update as device info structure changed.
24963 * doc/invoke.texi: Add info for __AVR_ISA_RMW__ builtin macro
24965 2014-04-04 Cong Hou <congh@google.com>
24967 PR tree-optimization/60656
24968 * tree-vect-stmts.c (supportable_widening_operation):
24969 Fix a bug that elements in a vector with vect_used_by_reduction
24970 property are incorrectly reordered when the operation on it is not
24971 consistant with the one in reduction operation.
24973 2014-04-04 John David Anglin <danglin@gcc.gnu.org>
24975 PR rtl-optimization/60155
24976 * gcse.c (record_set_data): New function.
24977 (single_set_gcse): New function.
24978 (gcse_emit_move_after): Use single_set_gcse instead of single_set.
24979 (hoist_code): Likewise.
24980 (get_pressure_class_and_nregs): Likewise.
24982 2014-04-04 Eric Botcazou <ebotcazou@adacore.com>
24984 * explow.c (probe_stack_range): Emit a final optimization blockage.
24986 2014-04-04 Anthony Green <green@moxielogic.com>
24988 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2): Fix
24991 2014-04-04 Jan Hubicka <hubicka@ucw.cz>
24994 * lto-cgraph.c (input_overwrite_node): Check that partitioning
24995 flags are set only during streaming.
24996 * ipa.c (process_references, walk_polymorphic_call_targets,
24997 symtab_remove_unreachable_nodes): Drop bodies of always inline
24998 after early inlining.
24999 (symtab_remove_unreachable_nodes): Remove always_inline attribute.
25001 2014-04-04 Jakub Jelinek <jakub@redhat.com>
25002 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25005 * dwarf2out.c (const_ok_for_output_1): Reject expressions
25008 2014-04-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25011 * config/arm/cortex-a53.md (cortex_a53_fdivs): Reduce reservation
25013 (cortex_a53_fdivd): Likewise.
25015 2014-04-04 Martin Jambor <mjambor@suse.cz>
25018 * cgraph.h (cgraph_clone_node): New parameter added to declaration.
25019 Adjust all callers.
25020 * cgraph.c (clone_of_p): Also return true if thunks match.
25021 (verify_edge_corresponds_to_fndecl): Removed extraneous call to
25022 cgraph_function_or_thunk_node and an obsolete comment.
25023 * cgraphclones.c (build_function_type_skip_args): Moved upwards in the
25025 (build_function_decl_skip_args): Likewise.
25026 (set_new_clone_decl_and_node_flags): New function.
25027 (duplicate_thunk_for_node): Likewise.
25028 (redirect_edge_duplicating_thunks): Likewise.
25029 (cgraph_clone_node): New parameter args_to_skip, pass it to
25030 redirect_edge_duplicating_thunks which is called instead of
25031 cgraph_redirect_edge_callee.
25032 (cgraph_create_virtual_clone): Pass args_to_skip to cgraph_clone_node,
25033 moved setting of a lot of flags to set_new_clone_decl_and_node_flags.
25035 2014-04-04 Jeff Law <law@redhat.com>
25038 * config/arm/predicates.md (const_int_I_operand): New predicate.
25039 (const_int_M_operand): Similarly.
25040 * config/arm/arm.md (insv_zero): Use const_int_M_operand instead of
25042 (insv_t2, extv_reg, extzv_t2): Likewise.
25043 (load_multiple_with_writeback): Similarly for const_int_I_operand.
25044 (pop_multiple_with_writeback_and_return): Likewise.
25045 (vfp_pop_multiple_with_writeback): Likewise
25047 2014-04-04 Richard Biener <rguenther@suse.de>
25050 * tree-ssanames.c (make_ssa_name_fn): Fix assert.
25051 * gimple.c (gimple_set_bb): Avoid ICEing for NULL cfun for
25053 * gimplify.h (gimple_add_tmp_var_fn): Declare.
25054 * gimplify.c (gimple_add_tmp_var_fn): New function.
25055 * gimple-expr.h (create_tmp_reg_fn): Declare.
25056 * gimple-expr.c (create_tmp_reg_fn): New function.
25057 * gimple-low.c (record_vars_into): Don't change cfun.
25058 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Fix
25059 code generation without cfun.
25061 2014-04-04 Thomas Schwinge <thomas@codesourcery.com>
25064 * Makefile.in (install-driver): Fix shell scripting.
25066 2014-04-03 Cong Hou <congh@google.com>
25068 PR tree-optimization/60505
25069 * tree-vectorizer.h (struct _stmt_vec_info): Add th field as the
25070 threshold of number of iterations below which no vectorization
25072 * tree-vect-loop.c (new_loop_vec_info):
25073 Initialize LOOP_VINFO_COST_MODEL_THRESHOLD.
25074 * tree-vect-loop.c (vect_analyze_loop_operations):
25075 Set LOOP_VINFO_COST_MODEL_THRESHOLD.
25076 * tree-vect-loop.c (vect_transform_loop):
25077 Use LOOP_VINFO_COST_MODEL_THRESHOLD.
25078 * tree-vect-loop.c (vect_analyze_loop_2): Check the maximum number
25079 of iterations of the loop and see if we should build the epilogue.
25081 2014-04-03 Richard Biener <rguenther@suse.de>
25083 * tree-streamer.h (struct streamer_tree_cache_d): Add next_idx member.
25084 (streamer_tree_cache_create): Adjust.
25085 * tree-streamer.c (streamer_tree_cache_add_to_node_array): Adjust
25086 to allow optional nodes array.
25087 (streamer_tree_cache_insert_1): Use next_idx to assign idx.
25088 (streamer_tree_cache_append): Likewise.
25089 (streamer_tree_cache_create): Create nodes array optionally
25090 as specified by parameter.
25091 * lto-streamer-out.c (create_output_block): Avoid maintaining
25092 the node array in the writer cache.
25093 (DFS_write_tree): Remove assertion.
25094 (produce_asm_for_decls): Free the out decl state hash table early.
25095 * lto-streamer-in.c (lto_data_in_create): Adjust for
25096 streamer_tree_cache_create prototype change.
25098 2014-04-03 Richard Biener <rguenther@suse.de>
25100 * tree-streamer-out.c (streamer_write_chain): Do not temporarily
25101 set TREE_CHAIN to NULL_TREE.
25103 2014-04-03 Richard Biener <rguenther@suse.de>
25105 PR tree-optimization/60740
25106 * graphite-scop-detection.c (stmt_simple_for_scop_p): Iterate
25107 over all GIMPLE_COND operands.
25109 2014-04-03 Nathan Sidwell <nathan@codesourcery.com>
25111 * doc/invoke.texi (Wnon-virtual-dtor): Adjust documentation.
25112 (Weffc++): Remove Scott's numbering, merge lists and reference
25115 2014-04-03 Nick Clifton <nickc@redhat.com>
25117 * config/rl78/rl78-expand.md (movqi): Handle (SUBREG (SYMBOL_REF))
25120 2014-04-03 Martin Jambor <mjambor@suse.cz>
25122 * ipa-cp.c (ipcp_verify_propagated_values): Also dump symtab and
25123 mention gcc_unreachable before failing.
25124 * ipa.c (symtab_remove_unreachable_nodes): Also print order of
25127 2014-04-02 Jan Hubicka <hubicka@ucw.cz>
25130 * ipa-devirt.c (get_polymorphic_call_info): Do not ICE on type
25131 inconsistent code and instead mark the context inconsistent.
25132 (possible_polymorphic_call_targets): For inconsistent contexts
25133 return empty complete list.
25135 2014-04-02 Anthony Green <green@moxielogic.com>
25137 * config/moxie/moxie.md (zero_extendqisi2, zero_extendhisi2)
25138 (extendqisi2, extendhisi2): Define.
25139 * config/moxie/moxie.h (DEFAULT_SIGNED_CHAR): Change to 0.
25140 (WCHAR_TYPE): Change to unsigned int.
25142 2014-04-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25144 PR tree-optimization/60733
25145 * gimple-ssa-strength-reduction.c (ncd_with_phi): Change required
25146 insertion point for PHI candidates to be the end of the feeding
25147 block for the PHI argument.
25149 2014-04-02 Vladimir Makarov <vmakarov@redhat.com>
25151 PR rtl-optimization/60650
25152 * lra-constraints.c (process_alt_operands): Decrease reject for
25153 earlyclobber matching.
25155 2014-04-02 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25157 * config/s390/s390.c (s390_expand_insv): Use GET_MODE_BITSIZE.
25159 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25161 * config/spu/spu.c (pad_bb): Do not crash when the last
25162 insn is CODE_FOR_blockage.
25164 2014-04-02 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25166 * config/spu/spu.md ("insv"): Fail if bitoffset+bitsize
25167 lies outside the target mode.
25169 2014-04-02 Michael Meissner <meissner@linux.vnet.ibm.com>
25172 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): If we have
25173 software floating point or no floating point registers, do not
25174 allow any type in the FPRs. Eliminate a test for SPE SIMD types
25175 in GPRs that occurs after we tested for GPRs that would never be
25178 * config/rs6000/rs6000.md (mov<mode>_softfloat32, FMOVE64):
25179 Rewrite tests to use TARGET_DOUBLE_FLOAT and TARGET_E500_DOUBLE,
25180 since the FMOVE64 type is DFmode/DDmode. If TARGET_E500_DOUBLE,
25181 specifically allow DDmode, since that does not use the SPE SIMD
25184 2014-04-02 Richard Biener <rguenther@suse.de>
25186 PR middle-end/60729
25187 * optabs.c (expand_abs_nojump): Honor flag_trapv only for
25188 MODE_INTs. Properly use negv_optab.
25189 (expand_abs): Likewise.
25191 2014-04-02 Richard Biener <rguenther@suse.de>
25194 * Makefile.in (install-driver): Guard extra installs with special
25197 2014-04-01 Michael Meissner <meissner@linux.vnet.ibm.com>
25199 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25200 Document vec_vgbbd.
25202 2014-04-01 Richard Henderson <rth@redhat.com>
25205 * config/i386/i386.md (*float<SWI48><MODEF>2_sse): Leave the second
25206 alternative enabled before register allocation.
25208 2014-04-01 Chung-Lin Tang <cltang@codesourcery.com>
25210 * config/nios2/nios2.md (unspec): Remove UNSPEC_TLS, UNSPEC_TLS_LDM.
25211 * config/nios2/nios2.c (nios2_function_profiler): Fix addi operand
25213 (nios2_large_got_address): Remove unneeded 'sym' parameter.
25214 (nios2_got_address): Update nios2_large_got_address call site.
25215 (nios2_delegitimize_address): New function.
25216 (TARGET_DELEGITIMIZE_ADDRESS): Define to nios2_delegitimize_address.
25217 * config/nios2/linux.h (GLIBC_DYNAMIC_LINKER): Define.
25218 (LINK_SPEC): Specify dynamic linker using GNU_USER_DYNAMIC_LINKER.
25220 2014-04-01 Martin Husemann <martin@duskware.de>
25222 * config/mips/netbsd.h (TARGET_OS_CPP_BUILTINS): Define __mips_o32
25225 2014-04-01 Richard Sandiford <rdsandiford@googlemail.com>
25227 PR rtl-optimization/60604
25228 * recog.c (general_operand): Incorporate REG_CANNOT_CHANGE_MODE_P
25229 check from register_operand.
25230 (register_operand): Redefine in terms of general_operand.
25231 (nonmemory_operand): Use register_operand for the non-constant cases.
25233 2014-04-01 Richard Biener <rguenther@suse.de>
25235 * gimple.h (struct gimple_statement_base): Align subcode to 16 bits.
25237 2014-04-01 Sebastian Huber <sebastian.huber@embedded-brains.de>
25239 * doc/invoke.texi (mapp-regs): Clarify.
25241 2014-03-31 Ulrich Drepper <drepper@gmail.com>
25243 * config/i386/avx512fintrin.h (__v32hi): Define type.
25244 (__v64qi): Likewise.
25245 (_mm512_set1_epi8): Define.
25246 (_mm512_set1_epi16): Define.
25247 (_mm512_set4_epi32): Define.
25248 (_mm512_set4_epi64): Define.
25249 (_mm512_set4_pd): Define.
25250 (_mm512_set4_ps): Define.
25251 (_mm512_setr4_epi64): Define.
25252 (_mm512_setr4_epi32): Define.
25253 (_mm512_setr4_pd): Define.
25254 (_mm512_setr4_ps): Define.
25255 (_mm512_setzero_epi32): Define.
25257 2014-03-31 Martin Jambor <mjambor@suse.cz>
25259 PR middle-end/60647
25260 * tree-sra.c (callsite_has_enough_arguments_p): Renamed to
25261 callsite_arguments_match_p. Updated all callers. Also check types of
25262 corresponding formal parameters and actual arguments.
25263 (not_all_callers_have_enough_arguments_p) Renamed to
25264 some_callers_have_mismatched_arguments_p.
25266 2014-03-31 Yuri Rumyantsev <ysrumyan@gmail.com>
25268 * tree-inline.c (copy_loops): Add missed copy of 'safelen'.
25270 2014-03-31 Kugan Vivekanandarajah <kuganv@linaro.org>
25273 * aarch64/aarch64.c (aarch64_classify_address): Fix alignment for
25276 2014-03-30 Uros Bizjak <ubizjak@gmail.com>
25278 * config/i386/sse.md (FMAMODE_NOVF512): New mode iterator.
25279 (<sd_mask_codefor>fma_fmadd_<mode><sd_maskz_name><round_name>):
25281 <sd_mask_codefor>fma_fmadd_<VF_512:mode><sd_maskz_name><round_name>.
25282 Use FMAMODE_NOVF512 mode iterator.
25283 (<sd_mask_codefor>fma_fmsub_<mode><sd_maskz_name><round_name>): Ditto.
25284 (<sd_mask_codefor>fma_fnmadd_<mode><sd_maskz_name><round_name>): Ditto.
25285 (<sd_mask_codefor>fma_fnmsub_<mode><sd_maskz_name><round_name>): Ditto.
25286 (<sd_mask_codefor>fma_fmaddsub_<mode><sd_maskz_name><round_name>):
25288 <sd_mask_codefor>fma_fmaddsub_<VF_512:mode><sd_maskz_name><round_name>.
25289 Use VF_128_256 mode iterator.
25290 (<sd_mask_codefor>fma_fmsubadd_<mode><sd_maskz_name><round_name>):
25293 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25295 * cgraph.c (cgraph_redirect_edge_call_stmt_to_callee): Clear
25296 static chain if needed.
25298 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25301 * lra-constraints.c (index_part_to_reg): New.
25302 (process_address): Use it.
25304 2014-03-27 Jeff Law <law@redhat.com>
25305 Jakub Jelinek <jakub@redhat.com>
25308 * expr.c (do_tablejump): Use simplify_gen_binary rather than
25309 gen_rtx_{PLUS,MULT} to build up the address expression.
25311 * i386/i386.c (ix86_legitimize_address): Use copy_addr_to_reg to avoid
25312 creating non-canonical RTL.
25314 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25317 * ipa-inline.c (want_inline_small_function_p): Short circuit large
25318 functions; reorganize to make cheap checks first.
25319 (inline_small_functions): Do not estimate growth when dumping;
25321 * ipa-inline.h (inline_summary): Add min_size.
25322 (growth_likely_positive): New function.
25323 * ipa-inline-analysis.c (dump_inline_summary): Add min_size.
25324 (set_cond_stmt_execution_predicate): Cleanup.
25325 (estimate_edge_size_and_time): Compute min_size.
25326 (estimate_calls_size_and_time): Likewise.
25327 (estimate_node_size_and_time): Likewise.
25328 (inline_update_overall_summary): Update min_size.
25329 (do_estimate_edge_time): Likewise.
25330 (do_estimate_edge_size): Update.
25331 (do_estimate_edge_hints): Update.
25332 (growth_likely_positive): New function.
25334 2014-03-28 Jakub Jelinek <jakub@redhat.com>
25337 * config/i386/i386.c (ix86_copy_addr_to_reg): Call copy_addr_to_reg
25338 also if addr has VOIDmode.
25340 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25342 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue): New.
25343 * config/arm/aarch-common-protos.h (aarch_crypto_can_dual_issue):
25345 * config/arm/cortex-a53.md: Add reservations and bypass for crypto
25346 instructions as well as AdvancedSIMD loads.
25348 2014-03-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
25350 * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aes_op>v16qi):
25351 Use crypto_aese type.
25352 (aarch64_crypto_aes<aesmc_op>v16qi): Use crypto_aesmc type.
25353 * config/arm/arm.md (is_neon_type): Replace crypto_aes with
25354 crypto_aese, crypto_aesmc. Move to types.md.
25355 * config/arm/types.md (crypto_aes): Split into crypto_aese,
25357 * config/arm/iterators.md (crypto_type): Likewise.
25359 2014-03-28 Jan Hubicka <hubicka@ucw.cz>
25361 * cgraph.c: Include expr.h and tree-dfa.h.
25362 (cgraph_redirect_edge_call_stmt_to_callee): If call in noreturn;
25365 2014-03-28 Vladimir Makarov <vmakarov@redhat.com>
25368 * lra-assigns.c (find_hard_regno_for): Remove unavailable hard
25369 regs from checking multi-reg pseudos.
25371 2014-03-28 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25373 * config/arm/t-aprofile (MULTILIB_MATCHES): Correct A12 rule.
25375 2014-03-28 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
25377 * config/rs6000/rs6000.c (fusion_gpr_load_p): Refuse optimization
25378 if it would clobber the stack pointer, even temporarily.
25380 2014-03-28 Eric Botcazou <ebotcazou@adacore.com>
25382 * mode-switching.c: Make small adjustments to the top comment.
25384 2014-03-27 Michael Meissner <meissner@linux.vnet.ibm.com>
25386 * config/rs6000/constraints.md (wD constraint): New constraint to
25387 match the constant integer to get the top DImode/DFmode out of a
25388 vector in a VSX register.
25390 * config/rs6000/predicates.md (vsx_scalar_64bit): New predicate to
25391 match the constant integer to get the top DImode/DFmode out of a
25392 vector in a VSX register.
25394 * config/rs6000/rs6000-builtins.def (VBPERMQ): Add vbpermq builtin
25397 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
25400 * config/rs6000/rs6000.c (rs6000_debug_reg_global): If
25401 -mdebug=reg, print value of VECTOR_ELEMENT_SCALAR_64BIT.
25403 * config/rs6000/vsx.md (vsx_extract_<mode>, V2DI/V2DF modes):
25404 Optimize vec_extract of 64-bit values, where the value being
25405 extracted is in the top word, where we can use scalar
25406 instructions. Add direct move and store support. Combine the big
25407 endian/little endian vector select load support into a single insn.
25408 (vsx_extract_<mode>_internal1): Likewise.
25409 (vsx_extract_<mode>_internal2): Likewise.
25410 (vsx_extract_<mode>_load): Likewise.
25411 (vsx_extract_<mode>_store): Likewise.
25412 (vsx_extract_<mode>_zero): Delete, big and little endian insns are
25413 combined into vsx_extract_<mode>_load.
25414 (vsx_extract_<mode>_one_le): Likewise.
25416 * config/rs6000/rs6000.h (VECTOR_ELEMENT_SCALAR_64BIT): Macro to
25417 define the top 64-bit vector element.
25419 * doc/md.texi (PowerPC and IBM RS6000 constraints): Document wD
25422 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25423 Document vec_vbpermq builtin.
25426 * config/rs6000/altivec.h (vec_xxsldwi): Add missing define to
25427 enable use of xxsldwi and xxpermdi builtin functions.
25428 (vec_xxpermdi): Likewise.
25430 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
25431 Document use of vec_xxsldwi and vec_xxpermdi builtins.
25433 2014-03-27 Vladimir Makarov <vmakarov@redhat.com>
25435 PR rtl-optimization/60650
25436 * lra-assign.c (find_hard_regno_for, spill_for): Add parameter
25438 (find_spills_for): New.
25439 (assign_by_spills): Pass the new parameter to find_hard_regno_for.
25440 Spill all pseudos on the second iteration.
25442 2014-03-27 Marek Polacek <polacek@redhat.com>
25445 * doc/extend.texi (ffs Builtins): Change unsigned types to signed
25448 2014-03-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25450 * config/s390/s390.c (s390_can_use_return_insn): Check for
25451 call-saved FPRs on 31 bit.
25453 2014-03-27 Jakub Jelinek <jakub@redhat.com>
25455 PR middle-end/60682
25456 * omp-low.c (lower_omp_1): For gimple_clobber_p stmts,
25457 if they need regimplification, just drop them instead of
25458 calling gimple_regimplify_operands on them.
25460 2014-03-27 Marcus Shawcroft <marcus.shawcroft@arm.com>
25463 * config/aarch64/aarch64.c (faked_omit_frame_pointer): Remove.
25464 (aarch64_frame_pointer_required): Adjust logic.
25465 (aarch64_can_eliminate): Adjust logic.
25466 (aarch64_override_options_after_change): Adjust logic.
25468 2014-03-27 Dehao Chen <dehao@google.com>
25470 * ipa-inline.c (early_inliner): Update node's inline info.
25472 2014-03-26 Dehao Chen <dehao@google.com>
25474 * dojump.c (do_compare_rtx_and_jump): Sets correct probability for
25475 compiler inserted conditional jumps for NAN float check.
25477 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25479 * ubsan.h (ubsan_create_data): Change second argument's type
25480 to const location_t *.
25481 * ubsan.c (ubsan_source_location): If xloc.file is NULL, set it to
25483 (ubsan_create_data): Change second argument to const location_t *PLOC.
25484 Create Loc field whenever PLOC is non-NULL.
25485 (ubsan_instrument_unreachable, ubsan_expand_null_ifn,
25486 ubsan_build_overflow_builtin, instrument_bool_enum_load): Adjust
25490 * real.c (real_to_integer2): Change type of low to UHWI.
25492 2014-03-26 Tobias Burnus <burnus@net-b.de>
25494 * gcc.c (LINK_COMMAND_SPEC): Use libcilkrts.spec for -fcilkplus.
25495 (CILK_SELF_SPECS): New define.
25496 (driver_self_specs): Use it.
25498 2014-03-26 Richard Biener <rguenther@suse.de>
25500 * tree-pretty-print.c (percent_K_format): Implement special
25501 case for LTO and its stripped down BLOCK tree.
25503 2014-03-26 Jakub Jelinek <jakub@redhat.com>
25506 * ubsan.c (instrument_si_overflow): Instrument ABS_EXPR.
25508 * tree-vrp.c (simplify_internal_call_using_ranges): If only
25509 one range is range_int_cst_p, but not both, at least optimize
25510 addition/subtraction of 0 and multiplication by 0 or 1.
25511 * gimple-fold.c (gimple_fold_call): Fold
25512 IFN_UBSAN_CHECK_{ADD,SUB,MUL}.
25513 (gimple_fold_stmt_to_constant_1): If both op0 and op1 aren't
25514 INTEGER_CSTs, try to fold at least x * 0 and y - y.
25516 2014-03-26 Eric Botcazou <ebotcazou@adacore.com>
25518 PR rtl-optimization/60452
25519 * rtlanal.c (rtx_addr_can_trap_p_1): Fix head comment.
25520 <case REG>: Return 1 for invalid offsets from the frame pointer.
25522 2014-03-26 Marek Polacek <polacek@redhat.com>
25525 * doc/extend.texi (C Extensions): Mention variable-length arrays in
25528 2014-03-26 Marek Polacek <polacek@redhat.com>
25531 * doc/extend.texi (Designated Inits): Describe what happens to omitted
25534 2014-03-26 Marek Polacek <polacek@redhat.com>
25537 * ira-color.c (update_conflict_hard_regno_costs): Perform the
25538 multiplication in unsigned type.
25540 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25542 * doc/install.texi: Document nds32le-*-elf and nds32be-*-elf.
25544 2014-03-26 Chung-Ju Wu <jasonwucj@gmail.com>
25546 * doc/contrib.texi: Add myself as Andes nds32 port contributor.
25548 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25551 * cif-code.def (UNREACHABLE) New code.
25552 * ipa-inline.c (inline_small_functions): Skip edges to
25553 __builtlin_unreachable.
25554 (estimate_edge_growth): Allow edges to __builtlin_unreachable.
25555 * ipa-inline-analysis.c (edge_set_predicate): Redirect edges with false
25556 predicate to __bulitin_unreachable.
25557 (set_cond_stmt_execution_predicate): Fix issue when
25558 invert_tree_comparison returns ERROR_MARK.
25559 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow): Do not
25560 propagate to inline clones.
25561 * cgraph.c (verify_edge_corresponds_to_fndecl): Allow redirection
25563 * ipa-cp.c (create_specialized_node): Be ready for new node to appear.
25564 * cgraphclones.c (cgraph_clone_node): If call destination is already
25565 ureachable, do not redirect it back.
25566 * tree-inline.c (fold_marked_statements): Hanlde calls becoming
25569 2014-03-25 Jan Hubicka <hubicka@ucw.cz>
25571 * ipa-pure-const.c (propagate_pure_const, propagate_nothrow):
25572 Do not modify inline clones.
25574 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25576 * config/i386/i386.md (general_sext_operand): New mode attr.
25577 (addv<mode>4, subv<mode>4, mulv<mode>4): If operands[2] is CONST_INT,
25578 don't generate (sign_extend (const_int)).
25579 (*addv<mode>4, *subv<mode>4, *mulv<mode>4): Disallow CONST_INT_P
25580 operands[2]. Use We constraint instead of <i> and
25581 <general_sext_operand> predicate instead of <general_operand>.
25582 (*addv<mode>4_1, *subv<mode>4_1, *mulv<mode>4_1): New insns.
25583 * config/i386/constraints.md (We): New constraint.
25584 * config/i386/predicates.md (x86_64_sext_operand,
25585 sext_operand): New predicates.
25587 2014-03-25 Martin Jambor <mjambor@suse.cz>
25590 * ipa-cp.c (ipa_get_indirect_edge_target_1): Redirect type
25591 inconsistent devirtualizations to __builtin_unreachable.
25593 2014-03-25 Marek Polacek <polacek@redhat.com>
25596 * doc/extend.texi (Example of asm with clobbered asm reg): Fix typo.
25598 2014-03-25 Alan Lawrence <alan.lawrence@arm.com>
25600 * config/aarch64/aarch64.c (aarch64_simd_valid_immediate): Reverse
25601 order of elements for big-endian.
25603 2014-03-25 Richard Biener <rguenther@suse.de>
25605 PR middle-end/60635
25606 * gimplify-me.c (gimple_regimplify_operands): Update the
25609 2014-03-25 Martin Jambor <mjambor@suse.cz>
25612 * lto-cgraph.c (lto_output_node): Stream body_removed flag.
25613 (lto_output_varpool_node): Likewise.
25614 (input_overwrite_node): Likewise.
25615 (input_varpool_node): Likewise.
25617 2014-03-25 Richard Biener <rguenther@suse.de>
25619 * lto-wrapper.c (merge_and_complain): Handle OPT_fPIE like OPT_fpie.
25620 (run_gcc): Likewise.
25622 2014-03-25 Jakub Jelinek <jakub@redhat.com>
25624 * combine.c (simplify_compare_const): Add MODE argument.
25625 Handle mode_width 0 as very large mode_width.
25626 (try_combine, simplify_comparison): Adjust callers.
25628 * cselib.c (cselib_hash_rtx): Perform addition in unsigned
25629 type to avoid signed integer overflow.
25630 * explow.c (plus_constant): Likewise.
25632 2014-03-25 Dominik Vogt <vogt@linux.vnet.ibm.com>
25634 * doc/generic.texi: Correct typos.
25636 2014-03-24 Tobias Burnus <burnus@net-b.de>
25638 * doc/invoke.texi (-flto): Expand section about
25639 using static libraries with LTO.
25641 2014-03-24 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
25643 PR rtl-optimization/60501
25644 * optabs.def (addptr3_optab): New optab.
25645 * optabs.c (gen_addptr3_insn, have_addptr3_insn): New function.
25646 * doc/md.texi ("addptrm3"): Document new RTL standard expander.
25647 * expr.h (gen_addptr3_insn, have_addptr3_insn): Add prototypes.
25649 * lra.c (emit_add3_insn): Use the addptr pattern if available.
25651 * config/s390/s390.md ("addptrdi3", "addptrsi3"): New expanders.
25653 2014-03-24 Ulrich Drepper <drepper@gmail.com>
25655 * config/i386/avx512fintrin.h: Define _mm512_set1_ps and
25658 * config/i386/avxintrin.h (_mm256_undefined_si256): Define.
25659 (_mm256_undefined_ps): Define.
25660 (_mm256_undefined_pd): Define.
25661 * config/i386/emmintrin.h (_mm_undefined_si128): Define.
25662 (_mm_undefined_pd): Define.
25663 * config/i386/xmmintrin.h (_mm_undefined_ps): Define.
25664 * config/i386/avx512fintrin.h (_mm512_undefined_si512): Define.
25665 (_mm512_undefined_ps): Define.
25666 (_mm512_undefined_pd): Define.
25667 Use _mm*_undefined_*.
25668 * config/i386/avx2intrin.h: Use _mm*_undefined_*.
25670 2014-03-24 Alex Velenko <Alex.Velenko@arm.com>
25672 * config/aarch64/aarch64-simd-builtins.def (lshr): DI mode excluded.
25673 (lshr_simd): DI mode added.
25674 * config/aarch64/aarch64-simd.md (aarch64_lshr_simddi): New pattern.
25675 (aarch64_ushr_simddi): Likewise.
25676 * config/aarch64/aarch64.md (UNSPEC_USHR64): New unspec.
25677 * config/aarch64/arm_neon.h (vshr_n_u64): Intrinsic fixed.
25678 (vshrd_n_u64): Likewise.
25680 2014-03-24 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
25682 * Makefile.in (s-macro_list): Depend on cc1.
25684 2014-03-23 Teresa Johnson <tejohnson@google.com>
25686 * ipa-utils.c (ipa_print_order): Use specified dump file.
25688 2014-03-23 Eric Botcazou <ebotcazou@adacore.com>
25690 PR rtl-optimization/60601
25691 * bb-reorder.c (fix_up_fall_thru_edges): Test EDGE_FALLTHRU everywhere.
25693 * gcc.c (eval_spec_function): Initialize save_growing_value.
25695 2014-03-22 Jakub Jelinek <jakub@redhat.com>
25698 * internal-fn.c (ubsan_expand_si_overflow_addsub_check): For
25699 code == MINUS_EXPR, never swap op0 with op1.
25701 * toplev.c (init_local_tick): Avoid signed integer multiplication
25703 * genautomata.c (reserv_sets_hash_value): Fix rotate idiom, avoid
25704 shift by first operand's bitsize.
25706 2014-03-21 Jakub Jelinek <jakub@redhat.com>
25709 * config/i386/i386.h (TARGET_64BIT_P): If not TARGET_BI_ARCH,
25710 redefine to 1 or 0.
25711 * config/i386/darwin.h (TARGET_64BIT_P): Redefine to
25712 TARGET_ISA_64BIT_P(x).
25714 2014-03-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
25716 * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate a
25717 pattern for vector nor instead of subtract from splat(-1).
25718 (altivec_expand_vec_perm_const_le): Likewise.
25720 2014-03-21 Richard Henderson <rth@twiddle.net>
25723 * ifcvt.c (dead_or_predicable): Return FALSE if there are any frame
25724 related insns after epilogue_completed.
25726 2014-03-21 Martin Jambor <mjambor@suse.cz>
25729 * cgraph.h (symtab_node): New flag body_removed.
25730 * ipa.c (symtab_remove_unreachable_nodes): Set body_removed flag
25731 when removing bodies.
25732 * symtab.c (dump_symtab_base): Dump body_removed flag.
25733 * cgraph.c (verify_edge_corresponds_to_fndecl): Skip nodes which
25734 had their bodies removed.
25736 2014-03-21 Martin Jambor <mjambor@suse.cz>
25739 * ipa.c (symtab_remove_unreachable_nodes): Clear thunk flag of nodes
25742 2014-03-21 Richard Biener <rguenther@suse.de>
25744 PR tree-optimization/60577
25745 * tree-core.h (struct tree_base): Document nothrow_flag use
25746 in DECL_NONALIASED.
25747 * tree.h (DECL_NONALIASED): New.
25748 (may_be_aliased): Adjust.
25749 * coverage.c (build_var): Set DECL_NONALIASED.
25751 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25753 * expr.c (expand_expr_real_1): Remove outdated comment.
25755 2014-03-20 Jakub Jelinek <jakub@redhat.com>
25757 PR middle-end/60597
25758 * ira.c (adjust_cleared_regs): Call copy_rtx on
25759 *reg_equiv[REGNO (loc)].src_p before passing it to
25760 simplify_replace_fn_rtx.
25763 * config/i386/i386.c (x86_output_mi_thunk): Surround UNSPEC_GOT
25764 into CONST, put pic register as first operand of PLUS. Use
25765 gen_const_mem for both 32-bit and 64-bit PIC got loads.
25767 2014-03-20 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
25769 * config/aarch64/aarch64.c (MEMORY_MOVE_COST): Delete.
25771 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25773 * config/sparc/sparc.c (sparc_do_work_around_errata): Implement work
25774 around for store forwarding issue in the FPU on the UT699.
25775 * config/sparc/sparc.md (in_branch_delay): Return false for single FP
25776 loads and operations if -mfix-ut699 is specified.
25777 (divtf3_hq): Tweak attribute.
25778 (sqrttf2_hq): Likewise.
25780 2014-03-20 Eric Botcazou <ebotcazou@adacore.com>
25782 * calls.c (store_one_arg): Remove incorrect const qualification on the
25783 type of the temporary.
25784 * cfgexpand.c (expand_return): Likewise.
25785 * expr.c (expand_constructor): Likewise.
25786 (expand_expr_real_1): Likewise.
25788 2014-03-20 Zhenqiang Chen <zhenqiang.chen@linaro.org>
25790 * config/arm/arm.c (arm_dwarf_register_span): Update the element number
25793 2014-03-19 Kaz Kojima <kkojima@gcc.gnu.org>
25796 * config/sh/sh.md (udivsi3_i1): Clobber R1 register.
25798 2014-03-19 James Greenhalgh <james.greenhalgh@arm.com>
25800 * config/arm/aarch-common-protos.h
25801 (alu_cost_table): Fix spelling of "extend".
25802 * config/arm/arm.c (arm_new_rtx_costs): Fix spelling of "extend".
25804 2014-03-19 Richard Biener <rguenther@suse.de>
25806 PR middle-end/60553
25807 * tree-core.h (tree_type_common): Re-order pointer members
25808 to reduce recursion depth during GC walks.
25810 2014-03-19 Marek Polacek <polacek@redhat.com>
25813 * ubsan.c (ubsan_type_descriptor): Check that DECL_NAME is nonnull
25814 before accessing it.
25816 2014-03-19 Richard Biener <rguenther@suse.de>
25819 * lto-streamer-in.c (input_function): In WPA stage do not drop
25822 2014-03-19 Jakub Jelinek <jakub@redhat.com>
25824 PR tree-optimization/60559
25825 * vectorizable_mask_load_store): Replace scalar MASK_LOAD
25826 with build_zero_cst assignment.
25828 2014-03-18 Kai Tietz <ktietz@redhat.com>
25830 PR rtl-optimization/56356
25831 * sdbout.c (sdbout_parms): Verify that parms'
25832 incoming argument is valid.
25833 (sdbout_reg_parms): Likewise.
25835 2014-03-18 Richard Henderson <rth@redhat.com>
25838 * config/i386/i386.md (*float<SWI48x><MODEF>2_i387): Move down to
25839 be shadowed by *float<SWI48><MODEF>2_sse. Test X87_ENABLE_FLOAT.
25840 (*float<SWI48><MODEF>2_sse): Check X87_ENABLE_FLOAT for alternative 0.
25842 2014-03-18 Basile Starynkevitch <basile@starynkevitch.net>
25844 * plugin.def: Improve comment for PLUGIN_INCLUDE_FILE.
25845 * doc/plugins.texi (Plugin callbacks): Mention PLUGIN_INCLUDE_FILE.
25846 Italicize plugin event names in description. Explain that
25847 PLUGIN_PRAGMAS has no sense for lto1. Explain PLUGIN_INCLUDE_FILE.
25848 Remind that no GCC functions should be called after PLUGIN_FINISH.
25849 Explain what pragmas with expansion are.
25851 2014-03-18 Martin Liska <mliska@suse.cz>
25853 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Added case when
25854 gimple call statement is update.
25855 * gimple-fold.c (gimple_fold_call): Changed order for GIMPLE_ASSIGN and
25856 GIMPLE_CALL, where gsi iterator still points to GIMPLE CALL.
25858 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25861 * ubsan.c (ubsan_instrument_unreachable): Call
25862 initialize_sanitizer_builtins.
25863 (ubsan_pass): Likewise.
25866 * ubsan.c (ubsan_type_descriptor, ubsan_create_data): Call
25867 varpool_finalize_decl instead of rest_of_decl_compilation.
25869 2014-03-18 Richard Biener <rguenther@suse.de>
25871 * df-problems.c (df_rd_confluence_n): Avoid bitmap_copy
25872 by using bitmap_and_compl instead of bitmap_and_compl_into.
25873 (df_rd_transfer_function): Likewise.
25875 2014-03-18 Richard Biener <rguenther@suse.de>
25877 * doc/lto.texi (fresolution): Fix typo.
25879 2014-03-18 Richard Biener <rguenther@suse.de>
25881 * doc/invoke.texi (flto): Update for changes in 4.9.
25883 2014-03-18 Richard Biener <rguenther@suse.de>
25885 * doc/loop.texi: Remove section on the removed lambda framework.
25886 Update loop docs with recent changes in preserving loop structure.
25888 2014-03-18 Richard Biener <rguenther@suse.de>
25890 * doc/lto.texi (-fresolution): Document.
25892 2014-03-18 Richard Biener <rguenther@suse.de>
25894 * doc/contrib.texi: Adjust my name.
25896 2014-03-18 Jakub Jelinek <jakub@redhat.com>
25899 * internal-fn.c: Include diagnostic-core.h.
25900 (expand_BUILTIN_EXPECT): New function.
25901 * gimplify.c (gimplify_call_expr): Use false instead of FALSE.
25902 (gimplify_modify_expr): Gimplify 3 argument __builtin_expect into
25903 IFN_BUILTIN_EXPECT call instead of __builtin_expect builtin call.
25904 * ipa-inline-analysis.c (find_foldable_builtin_expect): Handle
25905 IFN_BUILTIN_EXPECT.
25906 * predict.c (expr_expected_value_1): Handle IFN_BUILTIN_EXPECT.
25907 Revert 3 argument __builtin_expect code.
25908 (strip_predict_hints): Handle IFN_BUILTIN_EXPECT.
25909 * gimple-fold.c (gimple_fold_call): Likewise.
25910 * tree.h (fold_builtin_expect): New prototype.
25911 * builtins.c (build_builtin_expect_predicate): Add predictor
25912 argument, if non-NULL, create 3 argument __builtin_expect.
25913 (fold_builtin_expect): No longer static. Add ARG2 argument,
25914 pass it through to build_builtin_expect_predicate.
25915 (fold_builtin_2): Adjust caller.
25916 (fold_builtin_3): Handle BUILT_IN_EXPECT.
25917 * internal-fn.def (BUILTIN_EXPECT): New.
25919 2014-03-18 Tobias Burnus <burnus@net-b.de>
25922 * predict.def (PRED_FORTRAN_OVERFLOW, PRED_FORTRAN_FAIL_ALLOC,
25923 PRED_FORTRAN_FAIL_IO, PRED_FORTRAN_WARN_ONCE, PRED_FORTRAN_SIZE_ZERO,
25924 PRED_FORTRAN_INVALID_BOUND, PRED_FORTRAN_ABSENT_DUMMY): Add.
25926 2014-03-18 Jan Hubicka <hubicka@ucw.cz>
25929 * predict.c (combine_predictions_for_bb): Fix up formatting.
25930 (expr_expected_value_1, expr_expected_value): Add predictor argument,
25931 fill what it points to if non-NULL.
25932 (tree_predict_by_opcode): Adjust caller, use the predictor.
25933 * predict.def (PRED_COMPARE_AND_SWAP): Add.
25935 2014-03-18 Eric Botcazou <ebotcazou@adacore.com>
25937 * config/sparc/sparc.c (sparc_do_work_around_errata): Speed up and use
25938 proper constant for the store mode.
25940 2014-03-18 Ilya Enkovich <ilya.enkovich@intel.com>
25942 * symtab.c (change_decl_assembler_name): Fix transparent alias
25943 chain construction.
25945 2014-03-16 Renlin Li <Renlin.Li@arm.com>
25947 * config/aarch64/aarch64.c: Correct the comments about the
25948 aarch64 stack layout.
25950 2014-03-18 Thomas Schwinge <thomas@codesourcery.com>
25952 * omp-low.c (lower_rec_input_clauses) <build_omp_barrier>: Restore
25953 check for GF_OMP_FOR_KIND_FOR.
25955 2013-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
25957 * config/i386/i386.h (ADDITIONAL_REGISTER_NAMES): Add
25958 ymm and zmm register names.
25960 2014-03-17 Jakub Jelinek <jakub@redhat.com>
25963 * config/i386/i386.c (ix86_expand_epilogue): Adjust REG_CFA_ADJUST_CFA
25964 note creation for the 2010-08-31 changes.
25966 2014-03-17 Marek Polacek <polacek@redhat.com>
25968 PR middle-end/60534
25969 * omp-low.c (omp_max_vf): Treat -fno-tree-loop-optimize the same
25970 as -fno-tree-loop-vectorize.
25971 (expand_omp_simd): Likewise.
25973 2014-03-15 Eric Botcazou <ebotcazou@adacore.com>
25975 * config/sparc/sparc-protos.h (tls_call_delay): Delete.
25976 (eligible_for_call_delay): New prototype.
25977 * config/sparc/sparc.c (tls_call_delay): Rename into...
25978 (eligible_for_call_delay): ...this. Return false if the instruction
25979 cannot be put in the delay slot of a branch.
25980 (eligible_for_restore_insn): Simplify.
25981 (eligible_for_return_delay): Return false if the instruction cannot be
25982 put in the delay slot of a branch and simplify.
25983 (eligible_for_sibcall_delay): Return false if the instruction cannot be
25984 put in the delay slot of a branch.
25985 * config/sparc/sparc.md (fix_ut699): New attribute.
25986 (tls_call_delay): Delete.
25987 (in_call_delay): Reimplement.
25988 (eligible_for_sibcall_delay): Rename into...
25989 (in_sibcall_delay): ...this.
25990 (eligible_for_return_delay): Rename into...
25991 (in_return_delay): ...this.
25992 (in_branch_delay): Reimplement.
25993 (in_uncond_branch_delay): Delete.
25994 (in_annul_branch_delay): Delete.
25996 2014-03-14 Richard Henderson <rth@redhat.com>
25999 * config/i386/i386.md (floathi<X87MODEF>2): Delete expander; rename
26000 define_insn from *floathi<X87MODEF>2_i387; allow nonimmediate_operand.
26001 (*floathi<X87MODEF>2_i387_with_temp): Remove.
26002 (floathi splitters): Remove.
26003 (float<SWI48x>xf2): New pattern.
26004 (float<SWI48><MODEF>2): Rename from float<SWI48x><X87MODEF>2. Drop
26005 code that tried to handle DImode for 32-bit, but which was excluded
26006 by the pattern's condition. Drop allocation of stack temporary.
26007 (*floatsi<MODEF>2_vector_mixed_with_temp): Remove.
26008 (*float<SWI48><MODEF>2_mixed_with_temp): Remove.
26009 (*float<SWI48><MODEF>2_mixed_interunit): Remove.
26010 (*float<SWI48><MODEF>2_mixed_nointerunit): Remove.
26011 (*floatsi<MODEF>2_vector_sse_with_temp): Remove.
26012 (*float<SWI48><MODEF>2_sse_with_temp): Remove.
26013 (*float<SWI48><MODEF>2_sse_interunit): Remove.
26014 (*float<SWI48><MODEF>2_sse_nointerunit): Remove.
26015 (*float<SWI48x><X87MODEF>2_i387_with_temp): Remove.
26016 (*float<SWI48x><X87MODEF>2_i387): Remove.
26017 (all float _with_temp splitters): Remove.
26018 (*float<SWI48x><MODEF>2_i387): New pattern.
26019 (*float<SWI48><MODEF>2_sse): New pattern.
26020 (float TARGET_USE_VECTOR_CONVERTS splitters): Merge them.
26021 (float TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters): Merge them.
26023 2014-03-14 Jakub Jelinek <jakub@redhat.com>
26024 Marek Polacek <polacek@redhat.com>
26026 PR middle-end/60484
26027 * common.opt (dump_base_name_prefixed): New Variable.
26028 * opts.c (finish_options): Don't prepend directory to x_dump_base_name
26029 if x_dump_base_name_prefixed is already set, set it at the end.
26031 2014-03-14 Vladimir Makarov <vmakarov@redhat.com>
26033 PR rtl-optimization/60508
26034 * lra-constraints.c (get_reload_reg): Add new parameter
26036 (process_addr_reg, simplify_operand_subreg, curr_insn_transform):
26037 Pass the new parameter values.
26039 2014-03-14 Richard Biener <rguenther@suse.de>
26041 * common.opt: Revert unintented changes from r205065.
26042 * opts.c: Likewise.
26044 2014-03-14 Richard Biener <rguenther@suse.de>
26046 PR middle-end/60518
26047 * cfghooks.c (split_block): Properly adjust all loops the
26048 block was a latch of.
26050 2014-03-14 Martin Jambor <mjambor@suse.cz>
26053 * ipa-prop.c (ipa_modify_call_arguments): Fix iteration condition
26056 2014-03-14 Georg-Johann Lay <avr@gjlay.de>
26059 * config/avr/avr.c (avr_set_current_function): Pass function name
26060 through default_strip_name_encoding before sanity checking instead
26061 of skipping the first char of the assembler name.
26063 2014-03-13 Richard Henderson <rth@redhat.com>
26066 * config/i386/i386.c (ix86_split_fp_branch): Remove pushed argument.
26067 (ix86_force_to_memory, ix86_free_from_memory): Remove.
26068 * config/i386/i386-protos.h: Likewise.
26069 * config/i386/i386.md (floathi<X87MODEF>2): Use assign_386_stack_local
26070 in the expander instead of a splitter.
26071 (float<SWI48x><X87MODEF>2): Use assign_386_stack_local if there is
26072 any possibility of requiring a memory.
26073 (*floatsi<MODEF>2_vector_mixed): Remove, and the splitters.
26074 (*floatsi<MODEF>2_vector_sse): Remove, and the splitters.
26075 (fp branch splitters): Update for ix86_split_fp_branch.
26076 (*jcc<X87MODEF>_<SWI24>_i387): Remove r/f alternative.
26077 (*jcc<X87MODEF>_<SWI24>_r_i387): Likewise.
26078 (splitter for jcc<X87MODEF>_<SWI24>_i387 r/f): Remove.
26079 (*fop_<MODEF>_2_i387): Remove f/r alternative.
26080 (*fop_<MODEF>_3_i387): Likewise.
26081 (*fop_xf_2_i387, *fop_xf_3_i387): Likewise.
26082 (splitters for the fop_* register patterns): Remove.
26083 (fscalexf4_i387): Rename from *fscalexf4_i387.
26084 (ldexpxf3): Use gen_floatsixf2 and gen_fscalexf4_i387.
26086 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26088 PR tree-optimization/59779
26089 * tree-dfa.c (get_ref_base_and_extent): Use double_int
26090 type for bitsize and maxsize instead of HOST_WIDE_INT.
26092 2014-03-13 Steven Bosscher <steven@gcc.gnu.org>
26094 PR rtl-optimization/57320
26095 * function.c (rest_of_handle_thread_prologue_and_epilogue): Cleanup
26096 the CFG after thread_prologue_and_epilogue_insns.
26098 2014-03-13 Vladimir Makarov <vmakarov@redhat.com>
26100 PR rtl-optimization/57189
26101 * lra-constraints.c (process_alt_operands): Disfavor spilling
26104 2014-03-13 Cesar Philippidis <cesar@codesourcery.com>
26106 * lto-wrapper.c (maybe_unlink_file): Suppress diagnostic messages.
26108 2014-03-13 Jakub Jelinek <jakub@redhat.com>
26110 PR tree-optimization/59025
26111 PR middle-end/60418
26112 * tree-ssa-reassoc.c (sort_by_operand_rank): For SSA_NAMEs with the
26113 same rank, sort by bb_rank and gimple_uid of SSA_NAME_DEF_STMT first.
26115 2014-03-13 Georg-Johann Lay <avr@gjlay.de>
26118 * config/avr/avr.c (avr_out_plus): Swap cc_plus and cc_minus in
26119 calls of avr_out_plus_1.
26121 2014-03-13 Bin Cheng <bin.cheng@arm.com>
26123 * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Record
26124 BB's single pred and update the father loop's latch info later.
26126 2014-03-12 Michael Meissner <meissner@linux.vnet.ibm.com>
26128 * config/rs6000/vector.md (VEC_L): Add V1TI mode to vector types.
26132 (VEC_base): Likewise.
26133 (mov<MODE>, VEC_M modes): If we are loading TImode into VSX
26134 registers, we need to swap double words in little endian mode.
26136 * config/rs6000/rs6000-modes.def (V1TImode): Add new vector mode
26137 to be a container mode for 128-bit integer operations added in ISA
26138 2.07. Unlike TImode and PTImode, the preferred register set is
26139 the Altivec/VMX registers for the 128-bit operations.
26141 * config/rs6000/rs6000-protos.h (rs6000_move_128bit_ok_p): Add
26143 (rs6000_split_128bit_ok_p): Likewise.
26145 * config/rs6000/rs6000-builtin.def (BU_P8V_AV_3): Add new support
26146 macros for creating ISA 2.07 normal and overloaded builtin
26147 functions with 3 arguments.
26148 (BU_P8V_OVERLOAD_3): Likewise.
26149 (VPERM_1T): Add support for V1TImode in 128-bit vector operations
26150 for use as overloaded functions.
26151 (VPERM_1TI_UNS): Likewise.
26152 (VSEL_1TI): Likewise.
26153 (VSEL_1TI_UNS): Likewise.
26154 (ST_INTERNAL_1ti): Likewise.
26155 (LD_INTERNAL_1ti): Likewise.
26156 (XXSEL_1TI): Likewise.
26157 (XXSEL_1TI_UNS): Likewise.
26158 (VPERM_1TI): Likewise.
26159 (VPERM_1TI_UNS): Likewise.
26160 (XXPERMDI_1TI): Likewise.
26161 (SET_1TI): Likewise.
26162 (LXVD2X_V1TI): Likewise.
26163 (STXVD2X_V1TI): Likewise.
26164 (VEC_INIT_V1TI): Likewise.
26165 (VEC_SET_V1TI): Likewise.
26166 (VEC_EXT_V1TI): Likewise.
26167 (EQV_V1TI): Likewise.
26168 (NAND_V1TI): Likewise.
26169 (ORC_V1TI): Likewise.
26170 (VADDCUQ): Add support for 128-bit integer arithmetic instructions
26171 added in ISA 2.07. Add both normal 'altivec' builtins, and the
26172 overloaded builtin.
26173 (VADDUQM): Likewise.
26174 (VSUBCUQ): Likewise.
26175 (VADDEUQM): Likewise.
26176 (VADDECUQ): Likewise.
26177 (VSUBEUQM): Likewise.
26178 (VSUBECUQ): Likewise.
26180 * config/rs6000/rs6000-c.c (__int128_type): New static to hold
26181 __int128_t and __uint128_t types.
26182 (__uint128_type): Likewise.
26183 (altivec_categorize_keyword): Add support for vector __int128_t,
26184 vector __uint128_t, vector __int128, and vector unsigned __int128
26185 as a container type for TImode operations that need to be done in
26186 VSX/Altivec registers.
26187 (rs6000_macro_to_expand): Likewise.
26188 (altivec_overloaded_builtins): Add ISA 2.07 overloaded functions
26189 to support 128-bit integer instructions vaddcuq, vadduqm,
26190 vaddecuq, vaddeuqm, vsubcuq, vsubuqm, vsubecuq, vsubeuqm.
26191 (altivec_resolve_overloaded_builtin): Add support for V1TImode.
26193 * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
26194 for V1TImode, and set up preferences to use VSX/Altivec registers.
26195 Setup VSX reload handlers.
26196 (rs6000_debug_reg_global): Likewise.
26197 (rs6000_init_hard_regno_mode_ok): Likewise.
26198 (rs6000_preferred_simd_mode): Likewise.
26199 (vspltis_constant): Do not allow V1TImode as easy altivec constants.
26200 (easy_altivec_constant): Likewise.
26201 (output_vec_const_move): Likewise.
26202 (rs6000_expand_vector_set): Convert V1TImode set and extract to
26204 (rs6000_expand_vector_extract): Likewise.
26205 (reg_offset_addressing_ok_p): Setup V1TImode to use VSX reg+reg
26207 (rs6000_const_vec): Add support for V1TImode.
26208 (rs6000_emit_le_vsx_load): Swap double words when loading or
26209 storing TImode/V1TImode.
26210 (rs6000_emit_le_vsx_store): Likewise.
26211 (rs6000_emit_le_vsx_move): Likewise.
26212 (rs6000_emit_move): Add support for V1TImode.
26213 (altivec_expand_ld_builtin): Likewise.
26214 (altivec_expand_st_builtin): Likewise.
26215 (altivec_expand_vec_init_builtin): Likewise.
26216 (altivec_expand_builtin): Likewise.
26217 (rs6000_init_builtins): Add support for V1TImode type. Add
26218 support for ISA 2.07 128-bit integer builtins. Define type names
26219 for the VSX/Altivec vector types.
26220 (altivec_init_builtins): Add support for overloaded vector
26221 functions with V1TImode type.
26222 (rs6000_preferred_reload_class): Prefer Altivec registers for V1TImode.
26223 (rs6000_move_128bit_ok_p): Move 128-bit move/split validation to
26225 (rs6000_split_128bit_ok_p): Likewise.
26226 (rs6000_handle_altivec_attribute): Create V1TImode from vector
26227 __int128_t and vector __uint128_t.
26229 * config/rs6000/vsx.md (VSX_L): Add V1TImode to vector iterators
26230 and mode attributes.
26232 (VSX_M2): Likewise.
26237 (VS_scalar): Likewise.
26238 (VS_double): Likewise.
26239 (vsx_set_v1ti): New builtin function to create V1TImode from TImode.
26241 * config/rs6000/rs6000.h (TARGET_VADDUQM): New macro to say whether
26242 we support the ISA 2.07 128-bit integer arithmetic instructions.
26243 (ALTIVEC_OR_VSX_VECTOR_MODE): Add V1TImode.
26244 (enum rs6000_builtin_type_index): Add fields to hold V1TImode
26245 and TImode types for use with the builtin functions.
26246 (V1TI_type_node): Likewise.
26247 (unsigned_V1TI_type_node): Likewise.
26248 (intTI_type_internal_node): Likewise.
26249 (uintTI_type_internal_node): Likewise.
26251 * config/rs6000/altivec.md (UNSPEC_VADDCUQ): New unspecs for ISA 2.07
26252 128-bit builtin functions.
26253 (UNSPEC_VADDEUQM): Likewise.
26254 (UNSPEC_VADDECUQ): Likewise.
26255 (UNSPEC_VSUBCUQ): Likewise.
26256 (UNSPEC_VSUBEUQM): Likewise.
26257 (UNSPEC_VSUBECUQ): Likewise.
26258 (VM): Add V1TImode to vector mode iterators.
26260 (VI_unit): Likewise.
26261 (altivec_vadduqm): Add ISA 2.07 128-bit binary builtins.
26262 (altivec_vaddcuq): Likewise.
26263 (altivec_vsubuqm): Likewise.
26264 (altivec_vsubcuq): Likewise.
26265 (altivec_vaddeuqm): Likewise.
26266 (altivec_vaddecuq): Likewise.
26267 (altivec_vsubeuqm): Likewise.
26268 (altivec_vsubecuq): Likewise.
26270 * config/rs6000/rs6000.md (FMOVE128_GPR): Add V1TImode to vector
26272 (BOOL_128): Likewise.
26273 (BOOL_REGS_OUTPUT): Likewise.
26274 (BOOL_REGS_OP1): Likewise.
26275 (BOOL_REGS_OP2): Likewise.
26276 (BOOL_REGS_UNARY): Likewise.
26277 (BOOL_REGS_AND_CR0): Likewise.
26279 * config/rs6000/altivec.h (vec_vaddcuq): Add support for ISA 2.07
26280 128-bit integer builtin support.
26281 (vec_vadduqm): Likewise.
26282 (vec_vaddecuq): Likewise.
26283 (vec_vaddeuqm): Likewise.
26284 (vec_vsubecuq): Likewise.
26285 (vec_vsubeuqm): Likewise.
26286 (vec_vsubcuq): Likewise.
26287 (vec_vsubuqm): Likewise.
26289 * doc/extend.texi (PowerPC AltiVec/VSX Built-in Functions):
26290 Document vec_vaddcuq, vec_vadduqm, vec_vaddecuq, vec_vaddeuqm,
26291 vec_subecuq, vec_subeuqm, vec_vsubcuq, vec_vsubeqm builtins adding
26292 128-bit integer add/subtract to ISA 2.07.
26294 2014-03-12 Joern Rennecke <joern.rennecke@embecosm.com>
26296 * config/arc/arc.c (arc_predicate_delay_insns):
26297 Fix third argument passed to conditionalize_nonjump.
26299 2014-03-12 Yufeng Zhang <yufeng.zhang@arm.com>
26301 * config/aarch64/aarch64-builtins.c
26302 (aarch64_builtin_vectorized_function): Add BUILT_IN_LFLOORF,
26303 BUILT_IN_LLFLOOR, BUILT_IN_LCEILF and BUILT_IN_LLCEIL.
26304 * config/aarch64/arm_neon.h (vcvtaq_u64_f64): Call __builtin_llfloor
26305 instead of __builtin_lfloor.
26306 (vcvtnq_u64_f64): Call __builtin_llceil instead of __builtin_lceil.
26308 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26310 * tree-ssa-ifcombine.c (forwarder_block_to): New function.
26311 (tree_ssa_ifcombine_bb_1): New function.
26312 (tree_ssa_ifcombine_bb): Use it. Handle also cases where else_bb
26313 is an empty forwarder block to then_bb or vice versa and then_bb
26314 and else_bb are effectively swapped.
26316 2014-03-12 Christian Bruel <christian.bruel@st.com>
26319 * config/arm/arm.c (arm_emit_vfp_multi_reg_pop): Emit a
26320 REG_CFA_DEF_CFA note.
26321 (arm_expand_epilogue_apcs_frame): call arm_add_cfa_adjust_cfa_note.
26322 (arm_unwind_emit): Allow REG_CFA_DEF_CFA.
26324 2014-03-12 Thomas Preud'homme <thomas.preudhomme@arm.com>
26326 PR tree-optimization/60454
26327 * tree-ssa-math-opts.c (find_bswap_1): Fix bswap detection.
26329 2014-03-12 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26331 * config.gcc (aarch64*-*-*): Use ISA flags from aarch64-arches.def.
26332 Do not define target_cpu_default2 to generic.
26333 * config/aarch64/aarch64.h (TARGET_CPU_DEFAULT): Use generic cpu.
26334 * config/aarch64/aarch64.c (aarch64_override_options): Update comment.
26335 * config/aarch64/aarch64-arches.def (armv8-a): Use generic cpu.
26337 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26338 Marc Glisse <marc.glisse@inria.fr>
26340 PR tree-optimization/60502
26341 * tree-ssa-reassoc.c (eliminate_not_pairs): Use build_all_ones_cst
26342 instead of build_low_bits_mask.
26344 2014-03-12 Jakub Jelinek <jakub@redhat.com>
26346 PR middle-end/60482
26347 * tree-vrp.c (register_edge_assert_for_1): Don't add assert
26348 if there are multiple uses, but op doesn't live on E edge.
26349 * tree-cfg.c (assert_unreachable_fallthru_edge_p): Also ignore
26350 clobber stmts before __builtin_unreachable.
26352 2014-03-11 Richard Sandiford <rdsandiford@googlemail.com>
26354 * builtins.c (expand_builtin_setjmp_receiver): Use and clobber
26355 hard_frame_pointer_rtx.
26356 * cse.c (cse_insn): Remove volatile check.
26357 * cselib.c (cselib_process_insn): Likewise.
26358 * dse.c (scan_insn): Likewise.
26360 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26362 * config/arc/arc.c (conditionalize_nonjump): New function,
26364 (arc_ifcvt): ... this.
26365 (arc_predicate_delay_insns): Use it.
26367 2014-03-11 Joern Rennecke <joern.rennecke@embecosm.com>
26369 * config/arc/predicates.md (extend_operand): During/after reload,
26370 allow const_int_operand.
26371 * config/arc/arc.md (mulsidi3_700): Use extend_operand predicate.
26372 (umulsidi3_700): Likewise. Change operand 2 constraint back to "cL".
26373 (mulsi3_highpart): Change operand 2 constraint alternatives 2 and 3
26375 (umulsi3_highpart_i): Likewise.
26377 2014-03-11 Richard Biener <rguenther@suse.de>
26379 * tree-ssa-structalias.c (get_constraint_for_ptr_offset):
26380 Add asserts to guard possible wrong-code bugs.
26382 2014-03-11 Richard Biener <rguenther@suse.de>
26384 PR tree-optimization/60429
26385 PR tree-optimization/60485
26386 * tree-ssa-structalias.c (set_union_with_increment): Properly
26387 take into account all fields that overlap the shifted vars.
26388 (do_sd_constraint): Likewise.
26389 (do_ds_constraint): Likewise.
26390 (get_constraint_for_ptr_offset): Likewise.
26392 2014-03-11 Chung-Lin Tang <cltang@codesourcery.com>
26394 * config/nios2/nios2.c (machine_function): Add fp_save_offset field.
26395 (nios2_compute_frame_layout):
26396 Add calculation of cfun->machine->fp_save_offset.
26397 (nios2_expand_prologue): Correct setting of frame pointer register
26399 (nios2_expand_epilogue): Update recovery of stack pointer from
26400 frame pointer accordingly.
26401 (nios2_initial_elimination_offset): Update calculation of offset
26402 for eliminating to HARD_FRAME_POINTER_REGNUM.
26404 2014-03-10 Jakub Jelinek <jakub@redhat.com>
26407 * ipa.c (symtab_remove_unreachable_nodes): Don't call
26408 cgraph_get_create_node on VAR_DECLs.
26410 2014-03-10 Richard Biener <rguenther@suse.de>
26412 PR middle-end/60474
26413 * tree.c (signed_or_unsigned_type_for): Handle OFFSET_TYPEs.
26415 2014-03-08 Douglas B Rupp <rupp@gnat.com>
26417 * config/vms/vms.opt (vms_float_format): New variable.
26419 2014-03-08 Tobias Burnus <burnus@net-b.de>
26421 * doc/invoke.texi (-fcilkplus): Update implementation status.
26423 2014-03-08 Paulo Matos <paulo@matos-sorge.com>
26424 Richard Biener <rguenther@suse.de>
26426 * lto-wrapper.c (merge_and_complain): Ensure -fshort-double is used
26427 consistently accross all TUs.
26428 (run_gcc): Enable -fshort-double automatically at link at link-time
26429 and disallow override.
26431 2014-03-08 Richard Sandiford <rdsandiford@googlemail.com>
26434 * config/mips/mips.c (mips_option_override): Promote -mpaired-single
26435 warning to an error. Disable TARGET_PAIRED_SINGLE and TARGET_MIPS3D
26436 if they can't be used.
26438 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26440 * configure.ac (HAVE_AS_IX86_TLSLDMPLT): Improve test
26441 for Solaris 11/x86 ld.
26442 * configure: Regenerate.
26444 2014-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
26446 * configure.ac (TLS_SECTION_ASM_FLAG): Save as tls_section_flag.
26447 (LIB_TLS_SPEC): Save as ld_tls_libs.
26448 (HAVE_AS_IX86_TLSLDMPLT): Define as 1/0.
26449 (HAVE_AS_IX86_TLSLDM): New test.
26450 * configure, config.in: Regenerate.
26451 * config/i386/i386.c (legitimize_tls_address): Fall back to
26452 TLS_MODEL_GLOBAL_DYNAMIC on 32-bit Solaris/x86 if tool chain
26453 cannot support TLS_MODEL_LOCAL_DYNAMIC.
26454 * config/i386/i386.md (*tls_local_dynamic_base_32_gnu): Use if
26455 instead of #ifdef in HAVE_AS_IX86_TLSLDMPLT test.
26457 2014-03-07 Paulo Matos <paulo@matos-sorge.com>
26459 * common.opt (fira-loop-pressure): Mark as optimization.
26461 2014-03-07 Thomas Schwinge <thomas@codesourcery.com>
26463 * langhooks.c (lhd_omp_mappable_type): The error_mark_node is not
26464 an OpenMP mappable type.
26466 2014-03-06 Matthias Klose <doko@ubuntu.com>
26468 * Makefile.in (s-mlib): Only pass MULTIARCH_DIRNAME if
26469 MULTILIB_OSDIRNAMES is not defined.
26471 2014-03-06 Jakub Jelinek <jakub@redhat.com>
26472 Meador Inge <meadori@codesourcery.com>
26475 * config/arm/arm.c (arm_tls_symbol_p): Remove.
26476 (arm_legitimize_address): Call legitimize_tls_address for any
26477 arm_tls_referenced_p expression, handle constant addend. Call it
26478 before testing for !TARGET_ARM.
26479 (thumb_legitimize_address): Don't handle arm_tls_symbol_p here.
26481 2014-03-06 Richard Biener <rguenther@suse.de>
26483 PR middle-end/60445
26487 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26489 * tree-streamer.c (record_common_node): Assert we don't record
26490 nodes with type double.
26491 (preload_common_node): Skip type double, complex double and double
26492 pointer since it is now frontend dependent due to fshort-double option.
26494 2014-03-06 Richard Biener <rguenther@suse.de>
26496 * gcc.c (PLUGIN_COND): Always enable unless -fno-use-linker-plugin
26497 or -fno-lto is specified and the linker has full plugin support.
26498 * collect2.c (lto_mode): Default to LTO_MODE_WHOPR if LTO is enabled.
26499 (main): Remove -flto processing, adjust lto_mode using use_plugin late.
26500 * lto-wrapper.c (merge_and_complain): Merge compile-time
26501 optimization levels.
26502 (run_gcc): And pass it through to the link options.
26504 2014-03-06 Alexandre Oliva <aoliva@redhat.com>
26508 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26510 * cselib.c (remove_useless_values): Skip to avoid quadratic
26511 behavior if the condition moved from...
26512 (cselib_process_insn): ... here holds.
26514 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26517 * Makefile.in (PLUGIN_HEADERS): Add tree-phinodes.h, stor-layout.h,
26518 ssa-iterators.h, $(RESOURCE_H) and tree-cfgcleanup.h.
26521 * config/i386/t-i386 (OPTIONS_H_EXTRA): Add stringop.def.
26522 (TM_H): Add x86-tune.def.
26524 2014-03-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26526 * config/aarch64/aarch64.c (generic_tunings):
26527 Use cortexa57_extra_costs.
26529 2014-03-05 Jakub Jelinek <jakub@redhat.com>
26532 * cfgexpand.c (expand_used_vars): Do not assume all SSA_NAMEs
26533 of PARM/RESULT_DECLs must be coalesced with optimize && in_lto_p.
26534 * tree-ssa-coalesce.c (coalesce_ssa_name): Use MUST_COALESCE_COST - 1
26537 2014-03-04 Heiher <r@hev.cc>
26539 * config/mips/mips-cpus.def (loongson3a): Mark as a MIPS64r2 processor.
26540 * config/mips/mips.h (MIPS_ISA_LEVEL_SPEC): Adjust accordingly.
26542 2014-03-04 Uros Bizjak <ubizjak@gmail.com>
26544 * config/i386/predicates.md (const2356_operand): Change to ...
26545 (const2367_operand): ... this.
26546 * config/i386/sse.md (avx512pf_scatterpf<mode>sf): Use
26548 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26549 (*avx512pf_scatterpf<mode>sf): Ditto.
26550 (avx512pf_scatterpf<mode>df): Ditto.
26551 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26552 (*avx512pf_scatterpf<mode>df): Ditto.
26553 * config/i386/i386.c (ix86_expand_builtin): Update
26554 incorrect hint operand error message.
26556 2014-03-04 Richard Biener <rguenther@suse.de>
26558 * lto-section-in.c (lto_get_section_data): Fix const cast.
26560 2014-03-04 Paulo Matos <paulo@matos-sorge.com>
26562 * tree-streamer.c (record_common_node): Assert we don't record
26563 nodes with type double.
26564 (preload_common_node): Skip type double, complex double and double
26565 pointer since it is now frontend dependent due to fshort-double option.
26567 2014-03-04 Richard Biener <rguenther@suse.de>
26570 * lto-streamer-in.c (lto_read_body): Remove LTO bytecode version check.
26571 (lto_input_toplevel_asms): Likewise.
26572 * lto-section-in.c (lto_get_section_data): Instead do it here
26575 2014-03-04 Richard Biener <rguenther@suse.de>
26577 PR tree-optimization/60382
26578 * tree-vect-loop.c (vect_is_simple_reduction_1): Do not consider
26579 dead PHIs a reduction.
26581 2014-03-03 Uros Bizjak <ubizjak@gmail.com>
26583 * config/i386/xmmintrin.h (enum _mm_hint) <_MM_HINT_ET0>: Correct
26585 (_mm_prefetch): Move out of GCC target("sse") pragma.
26586 * config/i386/prfchwintrin.h (_m_prefetchw): Move out of
26587 GCC target("prfchw") pragma.
26588 * config/i386/i386.md (prefetch): Emit prefetchwt1 only
26590 * config/i386/i386.c (ix86_option_override_internal): Enable
26591 -mprfchw with -mprefetchwt1.
26593 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26595 * config/arc/arc.md (casesi_load) <length attribute alternative 0>:
26598 2014-03-03 Joern Rennecke <joern.rennecke@embecosm.com>
26600 * opts.h (CL_PCH_IGNORE): Define.
26601 * targhooks.c (option_affects_pch_p):
26602 Return false for options that have CL_PCH_IGNORE set.
26603 * opt-functions.awk: Process PchIgnore.
26604 * doc/options.texi: Document PchIgnore.
26606 * config/arc/arc.opt (misize): Add PchIgnore property.
26608 2014-03-03 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26610 * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Disallow
26611 reload of PLUS rtx's outside of GENERAL_REGS or BASE_REGS; relax
26612 constraint on constants to permit them being loaded into
26613 GENERAL_REGS or BASE_REGS.
26615 2014-03-03 Nick Clifton <nickc@redhat.com>
26617 * config/rl78/rl78-real.md (cbranchsi4_real_signed): Add
26618 anti-cacnonical alternatives.
26619 (negandhi3_real): New pattern.
26620 * config/rl78/rl78-virt.md (negandhi3_virt): New pattern.
26622 2014-03-03 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
26624 * config/avr/avr-mcus.def: Remove atxmega16x1.
26625 * config/avr/avr-tables.opt: Regenerate.
26626 * config/avr/t-multilib: Regenerate.
26627 * doc/avr-mmcu.texi: Regenerate.
26629 2014-03-03 Tobias Grosser <tobias@grosser.es>
26630 Mircea Namolaru <mircea.namolaru@inria.fr>
26632 PR tree-optimization/58028
26633 * graphite-clast-to-gimple.c (set_cloog_options): Don't remove
26636 2014-03-03 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
26638 * config/arm/neon.md (*movmisalign<mode>): Legitimize addresses
26639 not handled by recognizers.
26641 2014-03-03 Jakub Jelinek <jakub@redhat.com>
26643 PR middle-end/60175
26644 * function.c (expand_function_end): Don't emit
26645 clobber_return_register sequence if clobber_after is a BARRIER.
26646 * cfgexpand.c (construct_exit_block): Append instructions before
26647 return_label to prev_bb.
26649 2014-03-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26651 * config/rs6000/constraints.md: Document reserved use of "wc".
26653 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26656 * ipa.c (function_and_variable_visibility): When dissolving comdat
26657 group, also set all symbols to local.
26659 2014-03-02 Jan Hubicka <hubicka@ucw.cz>
26664 2013-12-14 Jan Hubicka <jh@suse.cz>
26665 PR middle-end/58477
26666 * ipa-prop.c (stmt_may_be_vtbl_ptr_store): Skip clobbers.
26668 2014-03-02 Jon Beniston <jon@beniston.com>
26674 * config/lm32/lm32.c (lm32_legitimate_constant_p): Remove, as incorrect.
26675 (TARGET_LEGITIMATE_CONSTANT_P): Undefine, as not needed.
26676 * config/lm32/lm32.md (movsi_insn): Add 32-bit immediate support.
26677 (simple_return, *simple_return): New patterns
26678 * config/lm32/predicates.md (movsi_rhs_operand): Remove as obsolete.
26679 * configure.ac (force_sjlj_exceptions): Force sjlj exceptions for lm32.
26681 2014-03-01 Paolo Carlini <paolo.carlini@oracle.com>
26683 * dwarf2out.c (gen_subprogram_die): Tidy.
26685 2014-03-01 Oleg Endo <olegendo@gcc.gnu.org>
26688 * config/sh/sh.md (*mov_t_msb_neg): Split into ...
26689 (*mov_t_msb_neg_negc): ... this new insn.
26691 2014-02-28 Jason Merrill <jason@redhat.com>
26694 * ipa-devirt.c (ipa_devirt): Don't choose an implicitly-declared
26697 2014-02-28 Paolo Carlini <paolo.carlini@oracle.com>
26700 * dwarf2out.c (decltype_auto_die): New static.
26701 (gen_subprogram_die): Handle 'decltype(auto)' like 'auto'.
26702 (gen_type_die_with_usage): Handle 'decltype(auto)'.
26703 (is_cxx_auto): Likewise.
26705 2014-02-28 Ian Bolton <ian.bolton@arm.com>
26707 * config/aarch64/aarch64.h: Define __ARM_NEON by default if
26708 we are not using general regs only.
26710 2014-02-28 Richard Biener <rguenther@suse.de>
26713 * tree-cfgcleanup.c (tree_forwarder_block_p): Restrict
26714 previous fix and only allow to remove trivial pre-headers
26715 and latches. Also honor LOOPS_MAY_HAVE_MULTIPLE_LATCHES.
26716 (remove_forwarder_block): Properly update the latch of a loop.
26718 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26721 * cselib.c (cselib_hasher::equal): Special-case VALUE lookup.
26722 (cselib_preserved_hash_table): New.
26723 (preserve_constants_and_equivs): Move preserved vals to it.
26724 (cselib_find_slot): Look it up first.
26725 (cselib_init): Initialize it.
26726 (cselib_finish): Release it.
26727 (dump_cselib_table): Dump it.
26729 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26732 * cselib.c (remove_useless_values): Skip to avoid quadratic
26733 behavior if the condition moved from...
26734 (cselib_process_insn): ... here holds.
26736 2014-02-28 Alexandre Oliva <aoliva@redhat.com>
26739 * var-tracking.c (vt_initialize): Apply the same condition to
26740 preserve the CFA base value.
26742 2014-02-28 Joey Ye <joey.ye@arm.com>
26745 * config/arm/arm.c (thumb_far_jump_used_p): Don't change
26746 if reload in progress or completed.
26748 2014-02-28 Tobias Burnus <burnus@net-b.de>
26750 PR middle-end/60147
26751 * tree-pretty-print.c (dump_generic_node, print_declaration): Handle
26754 2014-02-27 H.J. Lu <hongjiu.lu@intel.com>
26756 * doc/tm.texi.in (Condition Code Status): Update documention for
26757 relative locations of cc0-setter and cc0-user.
26759 2014-02-27 Jeff Law <law@redhat.com>
26761 PR rtl-optimization/52714
26762 * combine.c (try_combine): When splitting an unrecognized PARALLEL
26763 into two independent simple sets, if I3 is a jump, ensure the
26764 pattern we place into I3 is a (set (pc) ...).
26766 2014-02-27 Mikael Pettersson <mikpe@it.uu.se>
26767 Jeff Law <law@redhat.com>
26769 PR rtl-optimization/49847
26770 * cse.c (fold_rtx) Handle case where cc0 setter and cc0 user
26771 are in different blocks.
26772 * doc/tm.texi (Condition Code Status): Update documention for
26773 relative locations of cc0-setter and cc0-user.
26775 2014-02-27 Vladimir Makarov <vmakarov@redhat.com>
26778 * lra.c (lra_emit_add): Check SUBREG too.
26780 2014-02-27 Andreas Schwab <schwab@suse.de>
26782 * config/m68k/m68k.c (m68k_option_override): Disable
26783 -flive-range-shrinkage for classic m68k.
26784 (m68k_override_options_after_change): Likewise.
26786 2014-02-27 Marek Polacek <polacek@redhat.com>
26788 PR middle-end/59223
26789 * tree-ssa-uninit.c (gate_warn_uninitialized): Run the pass even for
26790 -Wmaybe-uninitialized.
26792 2014-02-27 Alan Modra <amodra@gmail.com>
26795 * reload1.c (emit_input_reload_insns): When reload_override_in,
26796 set old to rl->in_reg when rl->in_reg is a subreg.
26798 2014-02-26 Richard Biener <rguenther@suse.de>
26801 * lra-assigns.c (spill_for): Avoid mixed-sign comparison.
26803 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26805 * common/config/i386/predicates.md (const1256_operand): Remove.
26806 (const2356_operand): New.
26807 (const_1_to_2_operand): Remove.
26808 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
26809 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
26810 (*avx512pf_gatherpf<mode>sf): Ditto.
26811 (avx512pf_gatherpf<mode>df): Ditto.
26812 (*avx512pf_gatherpf<mode>df_mask): Ditto.
26813 (*avx512pf_gatherpf<mode>df): Ditto.
26814 (avx512pf_scatterpf<mode>sf): Ditto.
26815 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
26816 (*avx512pf_scatterpf<mode>sf): Ditto.
26817 (avx512pf_scatterpf<mode>df): Ditto.
26818 (*avx512pf_scatterpf<mode>df_mask): Ditto.
26819 (*avx512pf_scatterpf<mode>df): Ditto.
26820 * common/config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET0.
26822 2014-02-26 Ilya Tocar <ilya.tocar@intel.com>
26824 * config/i386/avx512fintrin.h (_mm512_testn_epi32_mask),
26825 (_mm512_mask_testn_epi32_mask), (_mm512_testn_epi64_mask),
26826 (_mm512_mask_testn_epi64_mask): Move to ...
26827 * config/i386/avx512cdintrin.h: Here.
26828 * config/i386/i386.c (bdesc_args): Change MASK_ISA for testnm.
26829 * config/i386/sse.md (avx512f_vmscalef<mode><round_name>): Remove %.
26830 (avx512f_scalef<mode><mask_name><round_name>): Ditto.
26831 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Change conditon to
26832 TARGET_AVX512F from TARGET_AVX512CD.
26834 2014-02-26 Richard Biener <rguenther@suse.de>
26837 * ipa.c (walk_polymorphic_call_targets): Properly guard
26838 call to inline_update_overall_summary.
26840 2014-02-26 Bin Cheng <bin.cheng@arm.com>
26843 * tree-cfgcleanup.c (tree_forwarder_block_p): Protect loop preheaders
26844 and latches only if requested. Fix latch if it is removed.
26845 * tree-ssa-dom.c (tree_ssa_dominator_optimize): Set
26846 LOOPS_HAVE_PREHEADERS.
26848 2014-02-25 Andrew Pinski <apinski@cavium.com>
26850 * builtins.c (expand_builtin_thread_pointer): Create a new target
26851 when the target is NULL.
26853 2014-02-25 Vladimir Makarov <vmakarov@redhat.com>
26855 PR rtl-optimization/60317
26856 * params.def (PARAM_LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26857 * params.h (LRA_MAX_CONSIDERED_RELOAD_PSEUDOS): New.
26858 * lra-assigns.c: Include params.h.
26859 (spill_for): Use LRA_MAX_CONSIDERED_RELOAD_PSEUDOS as guard for
26860 other reload pseudos considerations.
26862 2014-02-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
26864 * config/rs6000/vector.md (*vector_unordered<mode>): Change split
26865 to use canonical form for nor<mode>3.
26867 2014-02-25 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
26870 * config/arm/arm.h (CANNOT_CHANGE_MODE_CLASS): Allow 128 to 64-bit
26873 2014-02-25 Ilya Tocar <ilya.tocar@intel.com>
26875 * common/config/i386/i386-common.c (OPTION_MASK_ISA_PREFETCHWT1_SET),
26876 (OPTION_MASK_ISA_PREFETCHWT1_UNSET): New.
26877 (ix86_handle_option): Handle OPT_mprefetchwt1.
26878 * config/i386/cpuid.h (bit_PREFETCHWT1): New.
26879 * config/i386/driver-i386.c (host_detect_local_cpu): Detect
26881 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
26882 OPTION_MASK_ISA_PREFETCHWT1.
26883 * config/i386/i386.c (ix86_target_string): Handle mprefetchwt1.
26884 (PTA_PREFETCHWT1): New.
26885 (ix86_option_override_internal): Handle PTA_PREFETCHWT1.
26886 (ix86_valid_target_attribute_inner_p): Handle OPT_mprefetchwt1.
26887 * config/i386/i386.h (TARGET_PREFETCHWT1, TARGET_PREFETCHWT1_P): New.
26888 * config/i386/i386.md (prefetch): Check TARGET_PREFETCHWT1
26889 (*prefetch_avx512pf_<mode>_: Change into ...
26890 (*prefetch_prefetchwt1_<mode>: This.
26891 * config/i386/i386.opt (mprefetchwt1): New.
26892 * config/i386/xmmintrin.h (_mm_hint): Add _MM_HINT_ET1.
26893 (_mm_prefetch): Handle intent to write.
26894 * doc/invoke.texi (mprefetchwt1), (mno-prefetchwt1): Doccument.
26896 2014-02-25 Richard Biener <rguenther@suse.de>
26898 PR middle-end/60291
26899 * emit-rtl.c (mem_attrs_htab): Remove.
26900 (mem_attrs_htab_hash): Likewise.
26901 (mem_attrs_htab_eq): Likewise.
26902 (set_mem_attrs): Always allocate new mem-attrs when something changed.
26903 (init_emit_once): Do not allocate mem_attrs_htab.
26905 2014-02-25 Richard Biener <rguenther@suse.de>
26908 * lto-opts.c (lto_write_options): Output non-explicit conservative
26909 -fwrapv, -fno-trapv and -fno-strict-overflow.
26910 * lto-wrapper.c (merge_and_complain): Handle merging those options.
26911 (run_gcc): And pass them through.
26913 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26915 * sel-sched.c (calculate_new_fences): New parameter ptime.
26916 Calculate it as a maximum over all fence cycles.
26917 (sel_sched_region_2): Adjust the call to calculate_new_fences.
26918 Print the final schedule timing when sched_verbose.
26920 2014-02-25 Andrey Belevantsev <abel@ispras.ru>
26922 PR rtl-optimization/60292
26923 * sel-sched.c (fill_vec_av_set): Do not reset target availability
26924 bit fot the fence instruction.
26926 2014-02-24 Alangi Derick <alangiderick@gmail.com>
26928 * calls.h: Fix typo in comment.
26930 2014-02-24 John David Anglin <danglin@gcc.gnu.org>
26932 * config/pa/pa.c (pa_output_move_double): Don't valididate when
26933 adjusting offsetable addresses.
26935 2014-02-24 Guozhi Wei <carrot@google.com>
26937 * sparseset.h (sparseset_pop): Fix the wrong index.
26939 2014-02-24 Walter Lee <walt@tilera.com>
26941 * config.gcc (tilepro-*-*): Change to tilepro*-*-*.
26942 (tilegx-*-linux*): Change to tilegx*-*-linux*; Support tilegxbe
26944 * common/config/tilegx/tilegx-common.c
26945 (TARGET_DEFAULT_TARGET_FLAGS): Define.
26946 * config/tilegx/linux.h (ASM_SPEC): Add endian_spec.
26947 (LINK_SPEC): Ditto.
26948 * config/tilegx/sync.md (atomic_test_and_set): Handle big endian.
26949 * config/tilegx/tilegx.c (tilegx_return_in_msb): New.
26950 (tilegx_gimplify_va_arg_expr): Handle big endian.
26951 (tilegx_expand_unaligned_load): Ditto.
26952 (tilegx_expand_unaligned_store): Ditto.
26953 (TARGET_RETURN_IN_MSB): New.
26954 * config/tilegx/tilegx.h (TARGET_DEFAULT): New.
26955 (TARGET_ENDIAN_DEFAULT): New.
26956 (TARGET_BIG_ENDIAN): Handle big endian.
26957 (BYTES_BIG_ENDIAN): Ditto.
26958 (WORDS_BIG_ENDIAN): Ditto.
26959 (FLOAT_WORDS_BIG_ENDIAN): Ditto.
26960 (ENDIAN_SPEC): New.
26961 (EXTRA_SPECS): New.
26962 * config/tilegx/tilegx.md (extv): Handle big endian.
26964 (insn_st<n>): Ditto.
26965 (insn_st<n>_add<bitsuffix>): Ditto.
26966 (insn_stnt<n>): Ditto.
26967 (insn_stnt<n>_add<bitsuffix>):Ditto.
26968 (vec_interleave_highv8qi): Handle big endian.
26969 (vec_interleave_highv8qi_be): New.
26970 (vec_interleave_highv8qi_le): New.
26971 (insn_v1int_h): Handle big endian.
26972 (vec_interleave_lowv8qi): Handle big endian.
26973 (vec_interleave_lowv8qi_be): New.
26974 (vec_interleave_lowv8qi_le): New.
26975 (insn_v1int_l): Handle big endian.
26976 (vec_interleave_highv4hi): Handle big endian.
26977 (vec_interleave_highv4hi_be): New.
26978 (vec_interleave_highv4hi_le): New.
26979 (insn_v2int_h): Handle big endian.
26980 (vec_interleave_lowv4hi): Handle big endian.
26981 (vec_interleave_lowv4hi_be): New.
26982 (vec_interleave_lowv4hi_le): New.
26983 (insn_v2int_l): Handle big endian.
26984 (vec_interleave_highv2si): Handle big endian.
26985 (vec_interleave_highv2si_be): New.
26986 (vec_interleave_highv2si_le): New.
26987 (insn_v4int_h): Handle big endian.
26988 (vec_interleave_lowv2si): Handle big endian.
26989 (vec_interleave_lowv2si_be): New.
26990 (vec_interleave_lowv2si_le): New.
26991 (insn_v4int_l): Handle big endian.
26992 * config/tilegx/tilegx.opt (mbig-endian): New option.
26993 (mlittle-endian): New option.
26994 * doc/install.texi: Document tilegxbe-linux.
26995 * doc/invoke.texi: Document -mbig-endian and -mlittle-endian.
26997 2014-02-24 Martin Jambor <mjambor@suse.cz>
27000 * ipa-cp.c (propagate_constants_accross_call): Bail out early if
27001 there are no parameter descriptors.
27003 2014-02-24 Andrey Belevantsev <abel@ispras.ru>
27005 PR rtl-optimization/60268
27006 * sched-rgn.c (haifa_find_rgns): Move the nr_regions_initial variable
27007 initialization to ...
27008 (sched_rgn_init): ... here.
27009 (schedule_region): Check for SCHED_PRESSURE_NONE earlier.
27011 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27013 * config/microblaze/microblaze.md: Correct ashrsi_reg / lshrsi_reg
27016 2014-02-23 Edgar E. Iglesias <edgar.iglesias@xilinx.com>
27018 * config/microblaze/microblaze.h: Remove SECONDARY_MEMORY_NEEDED
27021 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27023 * /config/microblaze/microblaze.c: Add microblaze_asm_output_mi_thunk,
27024 define TARGET_ASM_OUTPUT_MI_THUNK and TARGET_ASM_CAN_OUTPUT_MI_THUNK.
27026 2014-02-23 David Holsgrove <david.holsgrove@xilinx.com>
27028 * config/microblaze/predicates.md: Add cmp_op predicate.
27029 * config/microblaze/microblaze.md: Add branch_compare instruction
27030 which uses cmp_op predicate and emits cmp insn before branch.
27031 * config/microblaze/microblaze.c (microblaze_emit_compare): Rename
27032 to microblaze_expand_conditional_branch and consolidate logic.
27033 (microblaze_expand_conditional_branch): emit branch_compare
27034 insn instead of handling cmp op separate from branch insn.
27036 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27038 * config/rs6000/rs6000.c (rs6000_emit_le_vsx_move): Relax assert
27041 2014-02-23 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27043 * config/rs6000/altivec.md (altivec_lve<VI_char>x): Replace
27044 define_insn with define_expand and new define_insn
27045 *altivec_lve<VI_char>x_internal.
27046 (altivec_stve<VI_char>x): Replace define_insn with define_expand
27047 and new define_insn *altivec_stve<VI_char>x_internal.
27048 * config/rs6000/rs6000-protos.h (altivec_expand_stvex_be): New
27050 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Document use by
27052 (altivec_expand_stvex_be): New function.
27054 2014-02-22 Joern Rennecke <joern.rennecke@embecosm.com>
27056 * config/avr/avr.c (avr_can_eliminate): Allow elimination from
27057 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM if !frame_pointer_needed.
27058 * config/avr/avr.c (ELIMINABLE_REGS): Add elimination from
27059 ARG_POINTER_REGNUM to STACK_POINTER_REGNUM.
27061 2014-02-21 Vladimir Makarov <vmakarov@redhat.com>
27064 * lra-constraints.c (inherit_reload_reg): Use lra_emit_move
27065 instead of emit_move_insn.
27067 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27069 * config/rs6000/altivec.md (altivec_vsumsws): Replace second
27070 vspltw with vsldoi.
27071 (reduc_uplus_v16qi): Use gen_altivec_vsumsws_direct instead of
27072 gen_altivec_vsumsws.
27074 2014-02-21 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27076 * config/rs6000/altivec.md (altivec_lvxl): Rename as
27077 *altivec_lvxl_<mode>_internal and use VM2 iterator instead of V4SI.
27078 (altivec_lvxl_<mode>): New define_expand incorporating
27079 -maltivec=be semantics where needed.
27080 (altivec_lvx): Rename as *altivec_lvx_<mode>_internal.
27081 (altivec_lvx_<mode>): New define_expand incorporating -maltivec=be
27082 semantics where needed.
27083 (altivec_stvx): Rename as *altivec_stvx_<mode>_internal.
27084 (altivec_stvx_<mode>): New define_expand incorporating
27085 -maltivec=be semantics where needed.
27086 (altivec_stvxl): Rename as *altivec_stvxl_<mode>_internal and use
27087 VM2 iterator instead of V4SI.
27088 (altivec_stvxl_<mode>): New define_expand incorporating
27089 -maltivec=be semantics where needed.
27090 * config/rs6000/rs6000-builtin.def: Add new built-in definitions
27091 LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI, LVXL_V16QI,
27092 LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI, LVX_V8HI, LVX_V16QI, STVX_V2DF,
27093 STVX_V2DI, STVX_V4SF, STVX_V4SI, STVX_V8HI, STVX_V16QI, STVXL_V2DF,
27094 STVXL_V2DI, STVXL_V4SF, STVXL_V4SI, STVXL_V8HI, STVXL_V16QI.
27095 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Replace
27096 ALTIVEC_BUILTIN_LVX with ALTIVEC_BUILTIN_LVX_<MODE> throughout;
27097 similarly for ALTIVEC_BUILTIN_LVXL, ALTIVEC_BUILTIN_STVX, and
27098 ALTIVEC_BUILTIN_STVXL.
27099 * config/rs6000/rs6000-protos.h (altivec_expand_lvx_be): New prototype.
27100 (altivec_expand_stvx_be): Likewise.
27101 * config/rs6000/rs6000.c (swap_selector_for_mode): New function.
27102 (altivec_expand_lvx_be): Likewise.
27103 (altivec_expand_stvx_be): Likewise.
27104 (altivec_expand_builtin): Add cases for
27105 ALTIVEC_BUILTIN_STVX_<MODE>, ALTIVEC_BUILTIN_STVXL_<MODE>,
27106 ALTIVEC_BUILTIN_LVXL_<MODE>, and ALTIVEC_BUILTIN_LVX_<MODE>.
27107 (altivec_init_builtins): Add definitions for
27108 __builtin_altivec_lvxl_<mode>, __builtin_altivec_lvx_<mode>,
27109 __builtin_altivec_stvx_<mode>, and __builtin_altivec_stvxl_<mode>.
27111 2014-02-21 Catherine Moore <clm@codesourcery.com>
27113 * doc/invoke.texi (mvirt, mno-virt): Document.
27114 * config/mips/mips.opt (mvirt): New option.
27115 * config/mips/mips.h (ASM_SPEC): Pass mvirt to the assembler.
27117 2014-02-21 Richard Biener <rguenther@suse.de>
27119 PR tree-optimization/60276
27120 * tree-vectorizer.h (struct _stmt_vec_info): Add min_neg_dist field.
27121 (STMT_VINFO_MIN_NEG_DIST): New macro.
27122 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Record
27123 STMT_VINFO_MIN_NEG_DIST.
27124 * tree-vect-stmts.c (vectorizable_load): Verify if assumptions
27125 made for negative dependence distances still hold.
27127 2014-02-21 Richard Biener <rguenther@suse.de>
27129 PR middle-end/60291
27130 * tree-ssa-live.c (mark_all_vars_used_1): Do not walk
27131 DECL_INITIAL for globals not in the current function context.
27133 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27135 PR tree-optimization/56490
27136 * params.def (PARAM_UNINIT_CONTROL_DEP_ATTEMPTS): New param.
27137 * tree-ssa-uninit.c: Include params.h.
27138 (compute_control_dep_chain): Add num_calls argument, return false
27139 if it exceed PARAM_UNINIT_CONTROL_DEP_ATTEMPTS param, pass
27140 num_calls to recursive call.
27141 (find_predicates): Change dep_chain into normal array,
27142 cur_chain into auto_vec<edge, MAX_CHAIN_LEN + 1>, add num_calls
27143 variable and adjust compute_control_dep_chain caller.
27144 (find_def_preds): Likewise.
27146 2014-02-21 Thomas Schwinge <thomas@codesourcery.com>
27148 * gimple-pretty-print.c (dump_gimple_omp_for) [flags & TDF_RAW]
27149 <case GF_OMP_FOR_KIND_CILKSIMD>: Add missing break statement.
27151 2014-02-21 Nick Clifton <nickc@redhat.com>
27153 * config/stormy16/stormy16.md (pushdqi1): Add mode to post_inc.
27154 (pushhi1): Likewise.
27155 (popqi1): Add mode to pre_dec.
27156 (pophi1): Likewise.
27158 2014-02-21 Jakub Jelinek <jakub@redhat.com>
27160 * config/i386/i386.c (ix86_expand_vec_perm): Use V8SImode
27161 mode for mask of V8SFmode permutation.
27163 2014-02-20 Richard Henderson <rth@redhat.com>
27166 * builtins.c (expand_builtin_atomic_compare_exchange): Always make
27167 a new pseudo for OLDVAL.
27169 2014-02-20 Jakub Jelinek <jakub@redhat.com>
27172 * config/i386/i386.c (expand_vec_perm_interleave2): Don't call
27173 gen_reg_rtx if d->testing_p.
27174 (expand_vec_perm_pshufb2, expand_vec_perm_broadcast_1): Return early
27175 if d->testing_p and we will certainly return true.
27176 (expand_vec_perm_even_odd_1): Likewise. Don't call gen_reg_rtx
27179 2014-02-20 Uros Bizjak <ubizjak@gmail.com>
27181 * emit-rtl.c (gen_reg_rtx): Assert that
27182 crtl->emit.regno_pointer_align_length is non-zero.
27184 2014-02-20 Richard Henderson <rth@redhat.com>
27187 * builtins.c (expand_builtin_atomic_compare_exchange): Conditionalize
27188 on failure the store back into EXPECT.
27190 2014-02-20 Chung-Lin Tang <cltang@codesourcery.com>
27191 Sandra Loosemore <sandra@codesourcery.com>
27193 * config/nios2/nios2.md (unspec): Add UNSPEC_PIC_GOTOFF_SYM enum.
27194 * config/nios2/nios2.c (nios2_function_profiler): Add
27195 -fPIC (flag_pic == 2) support.
27196 (nios2_handle_custom_fpu_cfg): Fix warning parameter.
27197 (nios2_large_offset_p): New function.
27198 (nios2_unspec_reloc_p): Move up position, update to use
27199 nios2_large_offset_p.
27200 (nios2_unspec_address): Remove function.
27201 (nios2_unspec_offset): New function.
27202 (nios2_large_got_address): New function.
27203 (nios2_got_address): Add large offset support.
27204 (nios2_legitimize_tls_address): Update usage of removed and new
27206 (nios2_symbol_binds_local_p): New function.
27207 (nios2_load_pic_address): Add -fPIC (flag_pic == 2) support.
27208 (nios2_legitimize_address): Update to use nios2_large_offset_p.
27209 (nios2_emit_move_sequence): Avoid legitimizing (const (unspec ...)).
27210 (nios2_print_operand): Merge H/L processing, add hiadj/lo
27211 processing for (const (unspec ...)).
27212 (nios2_unspec_reloc_name): Add UNSPEC_PIC_GOTOFF_SYM case.
27214 2014-02-20 Richard Biener <rguenther@suse.de>
27216 * tree-cfg.c (replace_uses_by): Mark altered BBs before
27217 doing the substitution.
27218 (verify_gimple_assign_single): Also verify bare MEM_REFs on the lhs.
27220 2014-02-20 Martin Jambor <mjambor@suse.cz>
27223 * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Uce correct
27224 info when checking whether lattices are bottom.
27226 2014-02-20 Richard Biener <rguenther@suse.de>
27228 PR middle-end/60221
27229 * tree-eh.c (execute_cleanup_eh_1): Also cleanup empty EH
27232 2014-02-20 Jan Hubicka <hubicka@ucw.cz>
27235 * ipa-inline-transform.c (clone_inlined_nodes): Add freq_scale
27236 parameter specifying the scaling.
27237 (inline_call): Update.
27238 (want_inline_recursively): Guard division by zero.
27239 (recursive_inlining): Update.
27240 * ipa-inline.h (clone_inlined_nodes): Update.
27242 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27245 * config/i386/i386.c (classify_argument): Pass structures of size
27246 64 bytes or less in register.
27248 2014-02-20 Ilya Tocar <ilya.tocar@intel.com>
27249 Kirill Yukhin <kirill.yukhin@intel.com>
27251 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): Swap operands.
27252 (_mm_rcp28_round_ss): Ditto.
27253 (_mm_rsqrt28_round_sd): Ditto.
27254 (_mm_rsqrt28_round_ss): Ditto.
27255 * config/i386/avx512erintrin.h (_mm_rcp14_round_sd): Ditto.
27256 (_mm_rcp14_round_ss): Ditto.
27257 (_mm_rsqrt14_round_sd): Ditto.
27258 (_mm_rsqrt14_round_ss): Ditto.
27259 * config/i386/sse.md (rsqrt14<mode>): Put nonimmediate operand as
27260 the first input operand, get rid of match_dup.
27261 (avx512er_exp2<mode><mask_name><round_saeonly_name>): Set type
27263 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
27265 (avx512er_vmrcp28<mode><round_saeonly_name>): Put nonimmediate
27266 operand as the first input operand, set type attribute.
27267 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
27268 Set type attribute.
27269 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Put nonimmediate
27270 operand as the first input operand, set type attribute.
27272 2014-02-19 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27274 * config/rs6000/rs6000.c (vspltis_constant): Fix most significant
27277 2014-02-19 H.J. Lu <hongjiu.lu@intel.com>
27280 * config/i386/i386.c (construct_container): Remove TFmode check
27281 for X86_64_INTEGER_CLASS.
27283 2014-02-19 Uros Bizjak <ubizjak@gmail.com>
27286 * config/i386/i386.c (type_natural_mode): Warn for ABI changes
27287 only when -Wpsabi is enabled.
27289 2014-02-19 Michael Hudson-Doyle <michael.hudson@linaro.org>
27292 * config/aarch64/aarch64.c (aarch64_pass_by_reference): The rules for
27293 passing arrays in registers are the same as for structs, so remove the
27294 special case for them.
27296 2014-02-19 Eric Botcazou <ebotcazou@adacore.com>
27298 * expr.c (expand_expr_real_1) <case VIEW_CONVERT_EXPR>: For a bit-field
27299 destination type, extract only the valid bits if the source type is not
27300 integral and has a different mode.
27302 2014-02-19 Richard Biener <rguenther@suse.de>
27305 * tree-inline.c (estimate_num_insns): Avoid calling cgraph_get_node
27308 2014-02-19 Richard Biener <rguenther@suse.de>
27311 * ipa-prop.c: Include stringpool.h and tree-ssanames.h.
27312 (ipa_modify_call_arguments): Emit an argument load explicitely and
27313 preserve virtual SSA form there and for the replacement call.
27314 Do not update SSA form nor free dominance info.
27316 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27318 * ipa.c (function_and_variable_visibility): Also clear WEAK
27319 flag when disolving COMDAT_GROUP.
27321 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27323 * ipa-prop.h (ipa_ancestor_jf_data): Update ocmment.
27324 * ipa-prop.c (ipa_set_jf_known_type): Return early when
27325 not devirtualizing.
27326 (ipa_set_ancestor_jf): Set type to NULL hwen it is not preserved;
27327 do more sanity checks.
27328 (detect_type_change): Return true when giving up early.
27329 (compute_complex_assign_jump_func): Fix type parameter of
27330 ipa_set_ancestor_jf.
27331 (compute_complex_ancestor_jump_func): Likewise.
27332 (update_jump_functions_after_inlining): Fix updating of
27334 * ipa-cp.c (ipa_get_jf_ancestor_result): Be ready for type to be NULL.
27336 2014-02-18 Jan Hubicka <hubicka@ucw.cz>
27338 * cgraph.c (cgraph_update_edges_for_call_stmt_node): Also remove
27339 inline clones when edge disappears.
27341 2014-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
27344 * config/rs6000/rs6000.md (mov<mode>_64bit, TF/TDmode moves):
27345 Split 64-bit moves into 2 patterns. Do not allow the use of
27346 direct move for TDmode in little endian, since the decimal value
27347 has little endian bytes within a word, but the 64-bit pieces are
27348 ordered in a big endian fashion, and normal subreg's of TDmode are
27350 (mov<mode>_64bit_dm): Likewise.
27351 (movtd_64bit_nodm): Likewise.
27353 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27355 PR tree-optimization/60174
27356 * tree-ssa-reassoc.c (init_range_entry): Do not look into the defining
27357 statement of an SSA_NAME that occurs in an abnormal PHI node.
27359 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27362 * final.c (SEEN_BB): Remove.
27363 (SEEN_NOTE, SEEN_EMITTED): Renumber.
27364 (final_scan_insn): Don't force_source_line on second
27365 NOTE_INSN_BASIC_BLOCK.
27367 2014-02-18 Uros Bizjak <ubizjak@gmail.com>
27370 * config/i386/i386.h (struct ix86_args): Add warn_avx512f.
27371 * config/i386/i386.c (init_cumulative_args): Initialize warn_avx512f.
27372 (type_natural_mode): Warn ABI change when %zmm register is not
27373 available for AVX512F vector value passing.
27375 2014-02-18 Kai Tietz <ktietz@redhat.com>
27378 * config/i386/i386.c (ix86_expand_prologue): Use value in
27379 rax register as displacement when restoring %r10 or %rax.
27380 Fix wrong offset when restoring both registers.
27382 2014-02-18 Eric Botcazou <ebotcazou@adacore.com>
27384 * ipa-prop.c (compute_complex_ancestor_jump_func): Replace overzealous
27385 assertion with conditional return.
27387 2014-02-18 Jakub Jelinek <jakub@redhat.com>
27388 Uros Bizjak <ubizjak@gmail.com>
27391 * config/i386/driver-i386.c (host_detect_local_cpu): If
27392 YMM state is not saved by the OS, also clear has_f16c. Move
27393 CPUID 0x80000001 handling before YMM state saving checking.
27395 2014-02-18 Andrey Belevantsev <abel@ispras.ru>
27397 PR rtl-optimization/58960
27398 * haifa-sched.c (alloc_global_sched_pressure_data): New,
27399 factored out from ...
27400 (sched_init): ... here.
27401 (free_global_sched_pressure_data): New, factored out from ...
27402 (sched_finish): ... here.
27403 * sched-int.h (free_global_sched_pressure_data): Declare.
27404 * sched-rgn.c (nr_regions_initial): New static global.
27405 (haifa_find_rgns): Initialize it.
27406 (schedule_region): Disable sched-pressure for the newly
27409 2014-02-17 Richard Biener <rguenther@suse.de>
27411 * tree-vect-stmts.c (free_stmt_vec_info): Clear BB and
27412 release SSA defs of pattern stmts.
27414 2014-02-17 Richard Biener <rguenther@suse.de>
27416 * tree-inline.c (expand_call_inline): Release the virtual
27417 operand defined by the call we are about to inline.
27419 2014-02-17 Richard Biener <rguenther@suse.de>
27421 * tree-ssa.c (verify_ssa): If verify_def found an error, ICE.
27423 2014-02-17 Kirill Yukhin <kirill.yukhin@intel.com>
27424 Ilya Tocar <ilya.tocar@intel.com>
27426 * config/i386/avx512fintrin.h (_mm512_maskz_permutexvar_epi64): Swap
27427 arguments order in builtin.
27428 (_mm512_permutexvar_epi64): Ditto.
27429 (_mm512_mask_permutexvar_epi64): Ditto
27430 (_mm512_maskz_permutexvar_epi32): Ditto
27431 (_mm512_permutexvar_epi32): Ditto
27432 (_mm512_mask_permutexvar_epi32): Ditto
27434 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27436 * config/rs6000/altivec.md (p8_vmrgew): Handle little endian targets.
27437 (p8_vmrgow): Likewise.
27439 2014-02-16 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
27441 * config/rs6000/vsx.md (vsx_xxpermdi_<mode>): Handle little
27444 2014-02-15 Michael Meissner <meissner@linux.vnet.ibm.com>
27447 * config/rs6000/rs6000.md (rreg): Add TFmode, TDmode constraints.
27448 (mov<mode>_internal, TFmode/TDmode): Split TFmode/TDmode moves
27449 into 64-bit and 32-bit moves. On 64-bit moves, add support for
27450 using direct move instructions on ISA 2.07. Also adjust
27451 instruction length for 64-bit.
27452 (mov<mode>_64bit, TFmode/TDmode): Likewise.
27453 (mov<mode>_32bit, TFmode/TDmode): Likewise.
27455 2014-02-15 Alan Modra <amodra@gmail.com>
27459 * config/rs6000/rs6000.c (rs6000_secondary_reload_inner): Use
27460 find_replacement on parts of insn rtl that might be reloaded.
27462 2014-02-15 Richard Biener <rguenther@suse.de>
27464 PR tree-optimization/60183
27465 * tree-ssa-phiprop.c (propagate_with_phi): Avoid speculating loads.
27466 (tree_ssa_phiprop): Calculate and free post-dominators.
27468 2014-02-14 Jeff Law <law@redhat.com>
27470 PR rtl-optimization/60131
27471 * ree.c (get_extended_src_reg): New function.
27472 (combine_reaching_defs): Use it rather than assuming location of REG.
27473 (find_and_remove_re): Verify first operand of extension is
27474 a REG before adding the insns to the copy list.
27476 2014-02-14 Roland McGrath <mcgrathr@google.com>
27478 * configure.ac (HAVE_AS_IX86_UD2): New test for 'ud2' mnemonic.
27479 * configure: Regenerated.
27480 * config.in: Regenerated.
27481 * config/i386/i386.md (trap) [HAVE_AS_IX86_UD2]: Use the mnemonic
27482 instead of ASM_SHORT.
27484 2014-02-14 Vladimir Makarov <vmakarov@redhat.com>
27485 Richard Earnshaw <rearnsha@arm.com>
27487 PR rtl-optimization/59535
27488 * lra-constraints.c (process_alt_operands): Encourage alternative
27489 when unassigned pseudo class is superset of the alternative class.
27490 (inherit_reload_reg): Don't inherit when optimizing for code size.
27491 * config/arm/arm.h (MODE_BASE_REG_CLASS): Add version for LRA
27492 returning CORE_REGS for anything but Thumb1 and BASE_REGS for
27493 modes not less than 4 for Thumb1.
27495 2014-02-14 Kyle McMartin <kyle@redhat.com>
27498 * config/host-linux.c (TRY_EMPTY_VM_SPACE): Define for AArch64.
27500 2014-02-14 Richard Biener <rguenther@suse.de>
27502 * cilk-common.c (cilk_arrow): Build a MEM_REF, not an INDIRECT_REF.
27503 (get_frame_arg): Drop the assert with langhook types_compatible_p.
27504 Do not strip INDIRECT_REFs.
27506 2014-02-14 Richard Biener <rguenther@suse.de>
27509 * lto-streamer-out.c (DFS_write_tree_body): Do not follow
27510 DECL_FUNCTION_SPECIFIC_TARGET.
27511 (hash_tree): Do not hash DECL_FUNCTION_SPECIFIC_TARGET.
27512 * tree-streamer-out.c (pack_ts_target_option): Remove.
27513 (streamer_pack_tree_bitfields): Do not stream TS_TARGET_OPTION.
27514 (write_ts_function_decl_tree_pointers): Do not stream
27515 DECL_FUNCTION_SPECIFIC_TARGET.
27516 * tree-streamer-in.c (unpack_ts_target_option): Remove.
27517 (unpack_value_fields): Do not stream TS_TARGET_OPTION.
27518 (lto_input_ts_function_decl_tree_pointers): Do not stream
27519 DECL_FUNCTION_SPECIFIC_TARGET.
27521 2014-02-14 Jakub Jelinek <jakub@redhat.com>
27523 * tree-vect-loop.c (vect_is_slp_reduction): Don't set use_stmt twice.
27524 (get_initial_def_for_induction, vectorizable_induction): Ignore
27525 debug stmts when looking for exit_phi.
27526 (vectorizable_live_operation): Fix up condition.
27528 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27530 * config/nds32/nds32.c (nds32_asm_function_prologue): Do not use
27531 nreverse() because it changes the content of original tree list.
27533 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27535 * config/nds32/t-mlibs (MULTILIB_OPTIONS): Fix typo in comment.
27536 * config/nds32/nds32.c (nds32_merge_decl_attributes): Likewise.
27538 2014-02-14 Chung-Ju Wu <jasonwucj@gmail.com>
27540 * config/nds32/nds32.c (nds32_naked_function_p): Follow the
27541 GNU coding standards.
27543 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27546 * dwarf2out.c (gen_subprogram_die): Don't call
27547 add_calling_convention_attribute if subr_die is old_die.
27549 2014-02-13 Sharad Singhai <singhai@google.com>
27551 * doc/optinfo.texi: Fix order of nodes.
27553 2014-02-13 Uros Bizjak <ubizjak@gmail.com>
27555 * config/i386/sse.md (xop_vmfrcz<mode>2): Generate const0 in
27556 operands[2], not operands[3].
27558 2014-02-13 Richard Biener <rguenther@suse.de>
27561 * doc/install.texi (ISL): Update recommended version to 0.12.2,
27562 mention the possibility of an in-tree build.
27563 (CLooG): Update recommended version to 0.18.1, mention the
27564 possibility of an in-tree build and clarify that the ISL
27565 bundled with CLooG does not work.
27567 2014-02-13 Jakub Jelinek <jakub@redhat.com>
27570 * expr.c (compress_float_constant): If x is a hard register,
27571 extend into a pseudo and then move to x.
27573 2014-02-13 Dominik Vogt <vogt@linux.vnet.ibm.com>
27575 * config/s390/s390.c (s390_asm_output_function_label): Fix crash
27576 caused by bad second argument to warning_at() with -mhotpatch and
27577 nested functions (e.g. with gfortran).
27579 2014-02-13 Richard Sandiford <rdsandiford@googlemail.com>
27581 * opts.c (option_name): Remove "enabled by default" rider.
27583 2014-02-12 John David Anglin <danglin@gcc.gnu.org>
27585 * config/pa/pa.c (pa_option_override): Remove auto increment FIXME.
27587 2014-02-12 H.J. Lu <hongjiu.lu@intel.com>
27588 Uros Bizjak <ubizjak@gmail.com>
27591 * configure.ac (HAVE_AS_GOTOFF_IN_DATA): Pass --32 to GNU assembler.
27592 * configure: Regenerated.
27594 2014-02-12 Richard Biener <rguenther@suse.de>
27596 * vec.c (vec_prefix::calculate_allocation): Move as
27597 inline variant to vec.h.
27598 (vec_prefix::calculate_allocation_1): New out-of-line version.
27599 * vec.h (vec_prefix::calculate_allocation_1): Declare.
27600 (vec_prefix::m_has_auto_buf): Rename to ...
27601 (vec_prefix::m_using_auto_storage): ... this.
27602 (vec_prefix::calculate_allocation): Inline the easy cases
27603 and dispatch to calculate_allocation_1 which doesn't need the
27605 (va_heap::reserve): Use gcc_checking_assert.
27606 (vec<T, A, vl_embed>::embedded_init): Add argument to initialize
27607 m_using_auto_storage.
27608 (auto_vec): Change m_vecpfx member to a vec<T, va_heap, vl_embed>
27610 (vec<T, va_heap, vl_ptr>::reserve): Remove redundant check.
27611 (vec<T, va_heap, vl_ptr>::release): Avoid casting.
27612 (vec<T, va_heap, vl_ptr>::using_auto_storage): Simplify.
27614 2014-02-12 Richard Biener <rguenther@suse.de>
27616 * gcse.c (compute_transp): break from loop over canon_modify_mem_list
27617 when we found a dependence.
27619 2014-02-12 Thomas Schwinge <thomas@codesourcery.com>
27621 * gimplify.c (gimplify_call_expr, gimplify_modify_expr): Move
27623 (maybe_fold_stmt): ... into this new function.
27624 * omp-low.c (lower_omp): Update comment.
27626 * omp-low.c (lower_omp_target): Add clobber for sizes array, after
27629 * omp-low.c (diagnose_sb_0): Make sure label_ctx is valid to
27632 2014-02-12 James Greenhalgh <james.greenhalgh@arm.com>
27634 * config/arm/aarch-cost-tables.h (generic_extra_costs): Fix
27635 identifiers in comments.
27636 (cortexa53_extra_costs): Likewise.
27637 * config/arm/arm.c (cortexa9_extra_costs): Fix identifiers in comments.
27638 (cortexa7_extra_costs): Likewise.
27639 (cortexa12_extra_costs): Likewise.
27640 (cortexa15_extra_costs): Likewise.
27641 (v7m_extra_costs): Likewise.
27643 2014-02-12 Richard Biener <rguenther@suse.de>
27645 PR middle-end/60092
27646 * gimple-low.c (lower_builtin_posix_memalign): Lower conditional
27647 of posix_memalign being successful.
27648 (lower_stmt): Restrict lowering of posix_memalign to when
27649 -ftree-bit-ccp is enabled.
27651 2014-02-12 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
27653 * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Pass vNULL for
27655 * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
27657 2014-02-12 Eric Botcazou <ebotcazou@adacore.com>
27659 PR rtl-optimization/60116
27660 * combine.c (try_combine): Also remove dangling REG_DEAD notes on the
27661 other_insn once the combination has been validated.
27663 2014-02-11 Jan Hubicka <hubicka@ucw.cz>
27666 * ipa-utils.h (possible_polymorphic_call_targets): Update prototype
27668 * ipa-devirt.c: Include demangle.h
27669 (odr_violation_reported): New static variable.
27670 (add_type_duplicate): Update odr_violations.
27671 (maybe_record_node): Add completep parameter; update it.
27672 (record_target_from_binfo): Add COMPLETEP parameter;
27673 update it as needed.
27674 (possible_polymorphic_call_targets_1): Likewise.
27675 (struct polymorphic_call_target_d): Add nonconstruction_targets;
27676 rename FINAL to COMPLETE.
27677 (record_targets_from_bases): Sanity check we found the binfo;
27678 fix COMPLETEP updating.
27679 (possible_polymorphic_call_targets): Add NONCONSTRUTION_TARGETSP
27680 parameter, fix computing of COMPLETEP.
27681 (dump_possible_polymorphic_call_targets): Imrove readability of dump;
27682 at LTO time do demangling.
27683 (ipa_devirt): Use nonconstruction_targets; Improve dumps.
27684 * gimple-fold.c (gimple_get_virt_method_for_vtable): Add can_refer
27686 (gimple_get_virt_method_for_binfo): Likewise.
27687 * gimple-fold.h (gimple_get_virt_method_for_binfo,
27688 gimple_get_virt_method_for_vtable): Update prototypes.
27690 2014-02-11 Vladimir Makarov <vmakarov@redhat.com>
27693 * genautomata.c (add_presence_absence): Fix typo with
27694 {final_}presence_list.
27696 2014-02-11 Michael Meissner <meissner@linux.vnet.ibm.com>
27699 * config/rs6000/rs6000.md (128-bit GPR splitter): Add a splitter
27700 for VSX/Altivec vectors that land in GPR registers.
27702 2014-02-11 Richard Henderson <rth@redhat.com>
27703 Jakub Jelinek <jakub@redhat.com>
27706 * tree-sra.c (load_assign_lhs_subreplacements): Add VIEW_CONVERT_EXPR
27707 around drhs if type conversion to lacc->type is not useless.
27709 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27711 * config/aarch64/aarch64-cores.def (cortex-a57): Use cortexa57
27713 (cortex-a57.cortex-a53): Likewise.
27714 * config/aarch64/aarch64.c (cortexa57_tunings): New tuning struct.
27716 2014-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27718 * config/arm/thumb2.md (*thumb2_movhi_insn): Add alternatives for
27721 2014-02-11 Renlin Li <Renlin.Li@arm.com>
27723 * doc/sourcebuild.texi: Document check_effective_target_arm_vfp3_ok and
27724 add_options_for_arm_vfp3.
27726 2014-02-11 Jeff Law <law@redhat.com>
27728 PR middle-end/54041
27729 * expr.c (expand_expr_addr_expr_1): Handle expand_expr returning an
27730 object with an undesirable mode.
27732 2014-02-11 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
27735 * config/i386/sol2-9.h: New file.
27736 * config.gcc (i[34567]86-*-solaris2* | x86_64-*-solaris2.1[0-9]*,
27737 *-*-solaris2.9*): Use it.
27739 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27741 * config/microblaze/microblaze.md: Add movsi4_rev insn pattern.
27742 * config/microblaze/predicates.md: Add reg_or_mem_operand predicate.
27744 2014-02-10 Nagaraju Mekala <nagaraju.mekala@xilinx.com>
27746 * config/microblaze/microblaze.c: Extend mcpu version format
27748 2014-02-10 David Holsgrove <david.holsgrove@xilinx.com>
27750 * config/microblaze/microblaze.h: Define SIZE_TYPE and PTRDIFF_TYPE.
27752 2014-02-10 Richard Henderson <rth@redhat.com>
27755 * calls.c (expand_call): Don't double-push for reg_parm_stack_space.
27756 * config/i386/i386.c (init_cumulative_args): Remove sorry for 64-bit
27757 ms-abi vs -mno-accumulate-outgoing-args.
27758 (ix86_expand_prologue): Unconditionally call ix86_eax_live_at_start_p.
27759 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Fix comment with
27762 2014-02-10 Bernd Edlinger <bernd.edlinger@hotmail.de>
27764 PR middle-end/60080
27765 * cfgexpand.c (expand_asm_operands): Attach source location to
27766 ASM_INPUT rtx objects.
27767 * print-rtl.c (print_rtx): Check for UNKNOWN_LOCATION.
27769 2014-02-10 Nick Clifton <nickc@redhat.com>
27771 * config/mn10300/mn10300.c (popcount): New function.
27772 (mn10300_expand_prologue): Include saved registers in stack usage
27775 2014-02-10 Jeff Law <law@redhat.com>
27777 PR middle-end/52306
27778 * reload1.c (emit_input_reload_insns): Do not create invalid RTL
27779 when changing the SET_DEST of a prior insn to avoid an input reload.
27781 2014-02-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
27783 * config/rs6000/sysv4.h (ENDIAN_SELECT): Do not attempt to enforce
27784 big-endian mode for -mcall-aixdesc, -mcall-freebsd, -mcall-netbsd,
27785 -mcall-openbsd, or -mcall-linux.
27786 (CC1_ENDIAN_BIG_SPEC): Remove.
27787 (CC1_ENDIAN_LITTLE_SPEC): Remove.
27788 (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27789 (CC1_SPEC): Remove (always empty) %cc1_endian_... spec.
27790 (SUBTARGET_EXTRA_SPECS): Remove %cc1_endian_big, %cc1_endian_little,
27791 and %cc1_endian_default.
27792 * config/rs6000/sysv4le.h (CC1_ENDIAN_DEFAULT_SPEC): Remove.
27794 2014-02-10 Richard Biener <rguenther@suse.de>
27796 PR tree-optimization/60115
27797 * tree-eh.c (tree_could_trap_p): Unify TARGET_MEM_REF and
27798 MEM_REF handling. Properly verify that the accesses are not
27799 out of the objects bound.
27801 2014-02-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
27803 * config/aarch64/aarch64.c (aarch64_override_options): Fix typo from
27806 2014-02-10 Eric Botcazou <ebotcazou@adacore.com>
27808 * ipa-devirt.c (get_polymorphic_call_info_from_invariant): Return
27809 proper constants and fix formatting.
27810 (possible_polymorphic_call_targets): Fix formatting.
27812 2014-02-10 Kirill Yukhin <kirill.yukhin@intel.com>
27813 Ilya Tocar <ilya.tocar@intel.com>
27815 * config/i386/avx512fintrin.h (_mm512_storeu_epi64): Removed.
27816 (_mm512_loadu_epi32): Renamed into...
27817 (_mm512_loadu_si512): This.
27818 (_mm512_storeu_epi32): Renamed into...
27819 (_mm512_storeu_si512): This.
27820 (_mm512_maskz_ceil_ps): Removed.
27821 (_mm512_maskz_ceil_pd): Ditto.
27822 (_mm512_maskz_floor_ps): Ditto.
27823 (_mm512_maskz_floor_pd): Ditto.
27824 (_mm512_floor_round_ps): Ditto.
27825 (_mm512_floor_round_pd): Ditto.
27826 (_mm512_ceil_round_ps): Ditto.
27827 (_mm512_ceil_round_pd): Ditto.
27828 (_mm512_mask_floor_round_ps): Ditto.
27829 (_mm512_mask_floor_round_pd): Ditto.
27830 (_mm512_mask_ceil_round_ps): Ditto.
27831 (_mm512_mask_ceil_round_pd): Ditto.
27832 (_mm512_maskz_floor_round_ps): Ditto.
27833 (_mm512_maskz_floor_round_pd): Ditto.
27834 (_mm512_maskz_ceil_round_ps): Ditto.
27835 (_mm512_maskz_ceil_round_pd): Ditto.
27836 (_mm512_expand_pd): Ditto.
27837 (_mm512_expand_ps): Ditto.
27838 * config/i386/i386.c (ix86_builtins): Remove
27839 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK.
27840 (bdesc_args): Ditto.
27841 * config/i386/predicates.md (const1256_operand): New.
27842 (const_1_to_2_operand): Ditto.
27843 * config/i386/sse.md (avx512pf_gatherpf<mode>sf): Change hint value.
27844 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
27845 (*avx512pf_gatherpf<mode>sf): Ditto.
27846 (avx512pf_gatherpf<mode>df): Ditto.
27847 (*avx512pf_gatherpf<mode>df_mask): Ditto.
27848 (*avx512pf_gatherpf<mode>df): Ditto.
27849 (avx512pf_scatterpf<mode>sf): Ditto.
27850 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
27851 (*avx512pf_scatterpf<mode>sf): Ditto.
27852 (avx512pf_scatterpf<mode>df): Ditto.
27853 (*avx512pf_scatterpf<mode>df_mask): Ditto.
27854 (*avx512pf_scatterpf<mode>df): Ditto.
27855 (avx512f_expand<mode>): Removed.
27856 (<shift_insn><mode>3<mask_name>): Change predicate type.
27858 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27860 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers
27861 not at the end of datarefs vector use ordered_remove to avoid
27862 reordering datarefs vector.
27865 * gimplify.c (gimplify_bind_expr): In ORT_SIMD region
27866 mark local addressable non-static vars as GOVD_PRIVATE
27867 instead of GOVD_LOCAL.
27868 * omp-low.c (lower_omp_for): Move gimple_bind_vars
27869 and BLOCK_VARS of gimple_bind_block to new_stmt rather
27872 PR middle-end/60092
27873 * tree-ssa-ccp.c (surely_varying_stmt_p): Don't return true
27874 if TYPE_ATTRIBUTES (gimple_call_fntype ()) contain
27875 assume_aligned or alloc_align attributes.
27876 (bit_value_assume_aligned): Add ATTR, PTRVAL and ALLOC_ALIGN
27877 arguments. Handle also assume_aligned and alloc_align attributes.
27878 (evaluate_stmt): Adjust bit_value_assume_aligned caller. Handle
27879 calls to functions with assume_aligned or alloc_align attributes.
27880 * doc/extend.texi: Document assume_aligned and alloc_align attributes.
27882 2014-02-08 Terry Guo <terry.guo@arm.com>
27884 * doc/invoke.texi: Document ARM -march=armv7e-m.
27886 2014-02-08 Jakub Jelinek <jakub@redhat.com>
27888 * cilk-common.c (cilk_init_builtins): Clear TREE_NOTHROW
27889 flag on __cilkrts_rethrow builtin.
27892 * ipa-cp.c (determine_versionability): Fail at -O0
27893 or __attribute__((optimize (0))) or -fno-ipa-cp functions.
27894 * tree-sra.c (ipa_sra_preliminary_function_checks): Similarly.
27897 2014-02-04 Jakub Jelinek <jakub@redhat.com>
27900 * tree-inline.c (copy_forbidden): Fail for
27901 __attribute__((optimize (0))) functions.
27903 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27905 * varpool.c: Include pointer-set.h.
27906 (varpool_remove_unreferenced_decls): Variables in other partitions
27907 will not be output; be however careful to not lose information
27908 about partitioning.
27910 2014-02-07 Jan Hubicka <hubicka@ucw.cz>
27912 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do O(1)
27913 lookup in the vtable constructor.
27915 2014-02-07 Jeff Law <law@redhat.com>
27918 * config/m68k/m68k.md (ashldi_extsi): Turn into a
27919 define_insn_and_split.
27921 * ipa-inline.c (inline_small_functions): Fix typos.
27923 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27925 * config/s390/s390-protos.h (s390_can_use_simple_return_insn)
27926 (s390_can_use_return_insn): Declare.
27927 * config/s390/s390.h (EPILOGUE_USES): Define.
27928 * config/s390/s390.c (s390_mainpool_start): Allow two main_pool
27930 (s390_chunkify_start): Handle return JUMP_LABELs.
27931 (s390_early_mach): Emit a main_pool instruction on the entry edge.
27932 (s300_set_up_by_prologue, s390_can_use_simple_return_insn)
27933 (s390_can_use_return_insn): New functions.
27934 (s390_fix_long_loop_prediction): Handle conditional returns.
27935 (TARGET_SET_UP_BY_PROLOGUE): Define.
27936 * config/s390/s390.md (ANY_RETURN): New code iterator.
27937 (*creturn, *csimple_return, return, simple_return): New patterns.
27939 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27941 * config/s390/s390.c (s390_restore_gprs_from_fprs): Add REG_CFA_RESTORE
27942 notes to each restore. Also add REG_CFA_DEF_CFA when restoring %r15.
27943 (s390_optimize_prologue): Don't clear RTX_FRAME_RELATED_P. Update the
27944 REG_CFA_RESTORE list when deciding not to restore a register.
27946 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27948 * config/s390/s390.c: Include tree-pass.h and context.h.
27949 (s390_early_mach): New function, split out from...
27950 (s390_emit_prologue): ...here.
27951 (pass_data_s390_early_mach): New pass structure.
27952 (pass_s390_early_mach): New class.
27953 (s390_option_override): Create and register early_mach pass.
27954 Move to end of file.
27956 2014-02-07 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
27958 * var-tracking.c (vt_stack_adjustments): Don't require stack_adjusts
27959 to match for the exit block.
27961 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27963 * config/s390/s390.md ("atomic_load<mode>", "atomic_store<mode>")
27964 ("atomic_compare_and_swap<mode>", "atomic_fetch_<atomic><mode>"):
27965 Reject misaligned operands.
27967 2014-02-07 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
27969 * optabs.c (expand_atomic_compare_and_swap): Allow expander to fail.
27971 2014-02-07 Richard Biener <rguenther@suse.de>
27973 PR middle-end/60092
27974 * gimple-low.c (lower_builtin_posix_memalign): New function.
27975 (lower_stmt): Call it to lower posix_memalign in a way
27976 to make alignment info accessible.
27978 2014-02-07 Jakub Jelinek <jakub@redhat.com>
27981 * tree.c (build_common_builtin_nodes): Set ECF_LEAF for
27982 __builtin_setjmp_receiver.
27984 2014-02-07 Richard Biener <rguenther@suse.de>
27986 PR middle-end/60092
27987 * builtin-types.def (BT_FN_INT_PTRPTR_SIZE_SIZE): Add.
27988 * builtins.def (BUILT_IN_POSIX_MEMALIGN): Likewise.
27989 * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
27990 Handle BUILT_IN_POSIX_MEMALIGN.
27991 (find_func_clobbers): Likewise.
27992 * tree-ssa-alias.c (ref_maybe_used_by_call_p_1): Likewise.
27993 (call_may_clobber_ref_p_1): Likewise.
27995 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
27998 * ipa-devirt.c (record_target_from_binfo): Remove overactive
28001 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28004 * lto-cgraph.c (lto_output_node): Use
28005 symtab_get_symbol_partitioning_class.
28006 (lto_output_varpool_node): likewise.
28007 (symtab_get_symbol_partitioning_class): Move here from
28008 lto/lto-partition.c
28009 * cgraph.h (symbol_partitioning_class): Likewise.
28010 (symtab_get_symbol_partitioning_class): Declare.
28012 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28014 * ggc.h (ggc_internal_cleared_alloc): New macro.
28015 * vec.h (vec_safe_copy): Handle memory stats.
28016 * omp-low.c (simd_clone_struct_alloc): Use ggc_internal_cleared_alloc.
28017 * target-globals.c (save_target_globals): Likewise.
28019 2014-02-06 Jan Hubicka <hubicka@ucw.cz>
28022 * expr.c (emit_move_resolve_push): Export; be bit more selective
28023 on when to clear alias set.
28024 * expr.h (emit_move_resolve_push): Declare.
28025 * function.h (struct function): Add tail_call_marked.
28026 * tree-tailcall.c (optimize_tail_call): Set tail_call_marked.
28027 * config/i386/i386-protos.h (ix86_expand_push): Remove.
28028 * config/i386/i386.md (TImode move expander): De not call
28030 (FP push expanders): Preserve memory attributes.
28031 * config/i386/sse.md (push<mode>1): Remove.
28032 * config/i386/i386.c (ix86_expand_vector_move): Handle push operation.
28033 (ix86_expand_push): Remove.
28034 * config/i386/mmx.md (push<mode>1): Remove.
28036 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28038 PR rtl-optimization/60030
28039 * internal-fn.c (ubsan_expand_si_overflow_mul_check): Surround
28040 lopart with paradoxical subreg before shifting it up by hprec.
28042 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28044 * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): New table.
28045 Remove extra newline at end of file.
28046 * config/arm/arm.c (arm_cortex_a57_tune): New tuning struct.
28047 (arm_issue_rate): Handle cortexa57.
28048 * config/arm/arm-cores.def (cortex-a57): Use cortex_a57 tuning.
28049 (cortex-a57.cortex-a53): Likewise.
28051 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28054 * config/arm/arm.c (emit_multi_reg_push): Add dwarf_regs_mask argument,
28055 don't record in REG_FRAME_RELATED_EXPR registers not set in that
28057 (arm_expand_prologue): Adjust all callers.
28058 (arm_unwind_emit_sequence): Allow saved, but not important for unwind
28059 info, registers also at the lowest numbered registers side. Use
28060 gcc_assert instead of abort, and SET_SRC/SET_DEST macros instead of
28064 * var-tracking.c (adjust_mems): Before adding a SET to
28065 amd->side_effects, adjust it's SET_SRC using simplify_replace_fn_rtx.
28067 2014-02-06 Alan Modra <amodra@gmail.com>
28070 * config/rs6000/rs6000.c (rs6000_secondary_memory_needed_mode): Only
28071 change SDmode to DDmode when lra_in_progress.
28073 2014-02-06 Jakub Jelinek <jakub@redhat.com>
28075 PR middle-end/59150
28076 * tree-vect-data-refs.c (vect_analyze_data_refs): For clobbers, call
28077 free_data_ref on the dr first, and before goto again also set dr
28078 to the next dr. For simd_lane_access, free old datarefs[i] before
28079 overwriting it. For get_vectype_for_scalar_type failure, don't
28080 free_data_ref if simd_lane_access.
28082 * Makefile.in (prefix.o, cppbuiltin.o): Depend on $(BASEVER).
28085 * tree.h (opts_for_fn): New inline function.
28086 (opt_for_fn): Define.
28087 * config/i386/i386.c (ix86_function_regparm): Use
28088 opt_for_fn (decl, optimize) instead of optimize.
28090 2014-02-06 Marcus Shawcroft <marcus.shawcroft@arm.com>
28092 * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix logic
28093 for SYMBOL_REF in large memory model.
28095 2014-02-06 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28097 * config/aarch64/aarch64-cores.def (cortex-a53): Specify CRC32
28098 and crypto support.
28099 (cortex-a57): Likewise.
28100 (cortex-a57.cortex-a53): Likewise.
28102 2014-02-06 Yury Gribov <y.gribov@samsung.com>
28103 Kugan Vivekanandarajah <kuganv@linaro.org>
28105 * config/arm/arm.c (arm_vector_alignment_reachable): Check
28107 * config/arm/arm.c (arm_builtin_support_vector_misalignment): Likewise.
28109 2014-02-06 Richard Biener <rguenther@suse.de>
28111 * tree-cfg.c (gimple_duplicate_sese_region): Fix ordering of
28112 set_loop_copy and initialize_original_copy_tables.
28114 2014-02-06 Alex Velenko <Alex.Velenko@arm.com>
28116 * config/aarch64/aarch64-simd.md
28117 (aarch64_ashr_simddi): Change QI to SI.
28119 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28120 Jakub Jelinek <jakub@redhat.com>
28122 PR middle-end/60013
28123 * ipa-inline-analysis.c (compute_bb_predicates): Ensure monotonicity
28126 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28128 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Change
28129 CODE_FOR_altivec_vpku[hw]um to
28130 CODE_FOR_altivec_vpku[hw]um_direct.
28131 * config/rs6000/altivec.md (vec_unpacks_hi_<VP_small_lc>): Change
28132 UNSPEC_VUNPACK_HI_SIGN to UNSPEC_VUNPACK_HI_SIGN_DIRECT.
28133 (vec_unpacks_lo_<VP_small_lc>): Change UNSPEC_VUNPACK_LO_SIGN to
28134 UNSPEC_VUNPACK_LO_SIGN_DIRECT.
28136 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28138 * config/rs6000/altivec.md (altivec_vsum2sws): Adjust code
28139 generation for -maltivec=be.
28140 (altivec_vsumsws): Simplify redundant test.
28142 2014-02-05 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28144 * altivec.md (UNSPEC_VPACK_UNS_UNS_MOD_DIRECT): New unspec.
28145 (UNSPEC_VUNPACK_HI_SIGN_DIRECT): Likewise.
28146 (UNSPEC_VUNPACK_LO_SIGN_DIRECT): Likewise.
28147 (mulv8hi3): Use gen_altivec_vpkuwum_direct instead of
28148 gen_altivec_vpkuwum.
28149 (altivec_vpkpx): Test for VECTOR_ELT_ORDER_BIG instead of for
28151 (altivec_vpks<VI_char>ss): Likewise.
28152 (altivec_vpks<VI_char>us): Likewise.
28153 (altivec_vpku<VI_char>us): Likewise.
28154 (altivec_vpku<VI_char>um): Likewise.
28155 (altivec_vpku<VI_char>um_direct): New (copy of
28156 altivec_vpku<VI_char>um that still relies on BYTES_BIG_ENDIAN, for
28158 (altivec_vupkhs<VU_char>): Emit vupkls* instead of vupkhs* when
28159 target is little endian and -maltivec=be is not specified.
28160 (*altivec_vupkhs<VU_char>_direct): New (copy of
28161 altivec_vupkhs<VU_char> that always emits vupkhs*, for internal use).
28162 (altivec_vupkls<VU_char>): Emit vupkhs* instead of vupkls* when
28163 target is little endian and -maltivec=be is not specified.
28164 (*altivec_vupkls<VU_char>_direct): New (copy of
28165 altivec_vupkls<VU_char> that always emits vupkls*, for internal use).
28166 (altivec_vupkhpx): Emit vupklpx instead of vupkhpx when target is
28167 little endian and -maltivec=be is not specified.
28168 (altivec_vupklpx): Emit vupkhpx instead of vupklpx when target is
28169 little endian and -maltivec=be is not specified.
28171 2014-02-05 Richard Henderson <rth@redhat.com>
28174 * combine-stack-adj.c: Revert r206943.
28175 * sched-int.h (struct deps_desc): Add last_args_size.
28176 * sched-deps.c (init_deps): Initialize it.
28177 (sched_analyze_insn): Add OUTPUT dependencies between insns that
28178 contain REG_ARGS_SIZE notes.
28180 2014-02-05 Jan Hubicka <hubicka@ucw.cz>
28182 * lto-cgraph.c (asm_nodes_output): Make global.
28183 * lto-wrapper.c (run_gcc): Pass down paralelizm to WPA.
28184 * gcc.c (AS_NEEDS_DASH_FOR_PIPED_INPUT): Allow WPA parameter
28185 (driver_handle_option): Handle OPT_fwpa.
28187 2014-02-05 Jakub Jelinek <jakub@redhat.com>
28190 * ipa-devirt.c (possible_polymorphic_call_targets): Fix
28191 a comment typo and formatting issue. If odr_hash hasn't been
28192 created, return vNULL and set *completep to false.
28194 PR middle-end/57499
28195 * tree-eh.c (cleanup_empty_eh): Bail out on totally empty
28196 bb with no successors.
28198 2014-02-05 James Greenhalgh <james.greenhalgh@arm.com>
28201 * doc/invoke.texi (-march): Clarify documentation for ARM.
28202 (-mtune): Likewise.
28205 2014-02-05 Richard Biener <rguenther@suse.de>
28207 * tree-vect-loop.c (vect_analyze_loop_2): Be more informative
28208 when not vectorizing because of too many alias checks.
28209 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
28210 Add more verboseness, avoid duplicate MSG_MISSED_OPTIMIZATION.
28212 2014-02-05 Nick Clifton <nickc@redhat.com>
28214 * config/mn10300/mn10300.c (mn10300_hard_regno_mode_ok): Do not
28215 accept extended registers in any mode when compiling for the MN10300.
28217 2014-02-05 Yury Gribov <y.gribov@samsung.com>
28219 * cif-code.def (ATTRIBUTE_MISMATCH): New CIF code.
28220 * ipa-inline.c (report_inline_failed_reason): Handle mismatched
28221 sanitization attributes.
28222 (can_inline_edge_p): Likewise.
28223 (sanitize_attrs_match_for_inline_p): New function.
28225 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28227 * ipa-prop.c (detect_type_change): Shor circuit testing of
28228 type changes on THIS pointer.
28230 2014-02-04 John David Anglin <danglin@gcc.gnu.org>
28233 * config/pa/pa.c (legitimize_tls_address): Return original address
28234 if not passed a SYMBOL_REF rtx.
28235 (hppa_legitimize_address): Call legitimize_tls_address for all TLS
28237 (pa_emit_move_sequence): Simplify TLS source operands.
28238 (pa_legitimate_constant_p): Reject all TLS constants.
28239 * config/pa/pa.h (PA_SYMBOL_REF_TLS_P): Correct comment.
28240 (CONSTANT_ADDRESS_P): Reject TLS CONST addresses.
28242 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28244 * ipa.c (function_and_variable_visibility): Decompose DECL_ONE_ONLY
28245 groups when we know they are controlled by LTO.
28246 * varasm.c (default_binds_local_p_1): If object is in other partition,
28247 it will be resolved locally.
28249 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28251 * config/host-linux.c (linux_gt_pch_use_address): Don't
28252 use SSIZE_MAX because it is not always defined.
28254 2014-02-04 Vladimir Makarov <vmakarov@redhat.com>
28257 * lra-constraints.c (need_for_split_p): Use more 3 reloads as
28258 threshold for pseudo splitting.
28259 (update_ebb_live_info): Process call argument hard registers and
28260 hard registers from insn definition too.
28261 (max_small_class_regs_num): New constant.
28262 (inherit_in_ebb): Update live hard regs through EBBs. Update
28263 reloads_num only for small register classes. Don't split for
28266 2014-02-04 Markus Trippelsdorf <markus@trippelsdorf.de>
28269 * ipa-cp.c (ipa_get_indirect_edge_target_1): Check that target
28272 2014-02-04 Jan Hubicka <hubicka@ucw.cz>
28274 * gimple-fold.c (can_refer_decl_in_current_unit_p): Default
28275 visibility is safe.
28277 2014-02-04 Marek Polacek <polacek@redhat.com>
28279 * gdbinit.in (pel): Define.
28281 2014-02-04 Bernd Edlinger <bernd.edlinger@hotmail.de>
28283 * doc/invoke.texi (fstrict-volatile-bitfields): Clarify current
28286 2014-02-04 Richard Biener <rguenther@suse.de>
28289 * lto-streamer-out.c (tree_is_indexable): Force NAMELIST_DECLs
28290 in function context local.
28291 (lto_output_tree_ref): Do not write trees from lto_output_tree_ref.
28292 * lto-streamer-in.c (lto_input_tree_ref): Handle LTO_namelist_decl_ref
28293 similar to LTO_imported_decl_ref.
28295 2014-02-04 Jakub Jelinek <jakub@redhat.com>
28297 PR tree-optimization/60002
28298 * cgraphclones.c (build_function_decl_skip_args): Clear
28299 DECL_LANG_SPECIFIC.
28301 PR tree-optimization/60023
28302 * tree-if-conv.c (predicate_mem_writes): Pass true instead of
28303 false to gsi_replace.
28304 * tree-vect-stmts.c (vect_finish_stmt_generation): If stmt
28305 has been in some EH region and vec_stmt could throw, add
28306 vec_stmt into the same EH region.
28307 * tree-data-ref.c (get_references_in_stmt): If IFN_MASK_LOAD
28308 has no lhs, ignore it.
28309 * internal-fn.c (expand_MASK_LOAD): Likewise.
28312 * tree-inline.c (copy_forbidden): Fail for
28313 __attribute__((optimize (0))) functions.
28316 * omp-low.c (simd_clone_struct_copy): If from->inbranch
28317 is set, copy one less argument.
28318 (expand_simd_clones): Don't subtract clone_info->inbranch
28319 from simd_clone_struct_alloc argument.
28321 PR rtl-optimization/57915
28322 * recog.c (simplify_while_replacing): If all unary/binary/relational
28323 operation arguments are constant, attempt to simplify those.
28325 PR middle-end/59261
28326 * expmed.c (expand_mult): For MODE_VECTOR_INT multiplication
28327 if there is no vashl<mode>3 or ashl<mode>3 insn, skip_synth.
28329 2014-02-04 Richard Biener <rguenther@suse.de>
28331 PR tree-optimization/60012
28332 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Apply
28333 TBAA disambiguation to all DDRs.
28335 2014-02-04 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
28338 * config/sol2.h (LINK_LIBGCC_MAPFILE_SPEC): Define.
28339 (LINK_SPEC): Use it for -shared, -shared-libgcc.
28341 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28344 * tree.c (get_binfo_at_offset): Do not get confused by empty classes;
28346 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28348 * gimple-fold.c (gimple_extract_devirt_binfo_from_cst): Remove.
28349 * gimple-fold.h (gimple_extract_devirt_binfo_from_cst): Remove.
28351 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28354 * ipa-cp.c (ipa_get_indirect_edge_target_1): Use ipa-devirt
28355 to figure out targets of polymorphic calls with known decl.
28356 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28357 * ipa-utils.h (get_polymorphic_call_info_from_invariant): Declare.
28358 * ipa-devirt.c (get_polymorphic_call_info_for_decl): Break out from ...
28359 (get_polymorphic_call_info): ... here.
28360 (get_polymorphic_call_info_from_invariant): New function.
28362 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28364 * ipa-cp.c (ipa_get_indirect_edge_target_1): Do direct
28365 lookup via vtable pointer; check for type consistency
28366 and turn inconsitent facts into UNREACHABLE.
28367 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28368 * gimple-fold.c (gimple_get_virt_method_for_vtable): Do not ICE on
28369 type inconsistent querries; return UNREACHABLE instead.
28371 2014-02-03 Richard Henderson <rth@twiddle.net>
28374 * tree-ssa-uninit.c (push_to_worklist): Don't re-push if we've
28375 already processed this node.
28376 (normalize_one_pred_1): Pass along mark_set.
28377 (normalize_one_pred): Create and destroy a pointer_set_t.
28378 (normalize_one_pred_chain): Likewise.
28380 2014-02-03 Laurent Aflonsi <laurent.alfonsi@st.com>
28382 PR gcov-profile/58602
28383 * gcc/gcov-io.c (gcov_open): Open with truncation when mode < 0.
28385 2014-02-03 Jan Hubicka <hubicka@ucw.cz>
28388 * ipa-cp.c (ipa_get_indirect_edge_target_1): Give up on
28389 -fno-devirtualize; try to devirtualize by the knowledge of
28390 virtual table pointer given by aggregate propagation.
28391 * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
28392 (ipa_print_node_jump_functions): Dump also offset that
28393 is relevant for polymorphic calls.
28394 (determine_known_aggregate_parts): Add arg_type parameter; use it
28395 instead of determining the type from pointer type.
28396 (ipa_compute_jump_functions_for_edge): Update call of
28397 determine_known_aggregate_parts.
28398 * gimple-fold.c (gimple_get_virt_method_for_vtable): Break out from ...
28399 (gimple_get_virt_method_for_binfo): ... here; simplify using
28400 vtable_pointer_value_to_vtable.
28401 * gimple-fold.h (gimple_get_virt_method_for_vtable): Declare.
28402 * ipa-devirt.c (subbinfo_with_vtable_at_offset): Turn OFFSET parameter
28403 to unsigned HOST_WIDE_INT; use vtable_pointer_value_to_vtable.
28404 (vtable_pointer_value_to_vtable): Break out from ...; handle also
28406 (vtable_pointer_value_to_binfo): ... here.
28407 * ipa-utils.h (vtable_pointer_value_to_vtable): Declare.
28409 2014-02-03 Teresa Johnson <tejohnson@google.com>
28411 * tree-vect-slp.c (vect_supported_load_permutation_p): Avoid
28412 redef of outer loop index variable.
28414 2014-02-03 Marc Glisse <marc.glisse@inria.fr>
28418 * doc/extend.texi (Function Attributes): Typo.
28420 2014-02-03 Cong Hou <congh@google.com>
28422 PR tree-optimization/60000
28423 * tree-vect-loop.c (vect_transform_loop): Set pattern_def_seq to NULL
28424 if the vectorized statement is a store. A store statement can only
28425 appear at the end of pattern statements.
28427 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28429 * config/i386/i386.c (flag_opts): Add -mlong-double-128.
28430 (ix86_option_override_internal): Default long double to 64-bit for
28431 32-bit Bionic and to 128-bit for 64-bit Bionic.
28433 * config/i386/i386.h (LONG_DOUBLE_TYPE_SIZE): Use 128 if
28434 TARGET_LONG_DOUBLE_128 is true.
28435 (LIBGCC2_LONG_DOUBLE_TYPE_SIZE): Likewise.
28437 * config/i386/i386.opt (mlong-double-80): Negate -mlong-double-64.
28438 (mlong-double-64): Negate -mlong-double-128.
28439 (mlong-double-128): New option.
28441 * config/i386/i386-c.c (ix86_target_macros): Define
28442 __LONG_DOUBLE_128__ for TARGET_LONG_DOUBLE_128.
28444 * doc/invoke.texi: Document -mlong-double-128.
28446 2014-02-03 H.J. Lu <hongjiu.lu@intel.com>
28448 PR rtl-optimization/60024
28449 * sel-sched.c (init_regs_for_mode): Check if mode is OK first.
28451 2014-02-03 Markus Trippelsdorf <markus@trippelsdorf.de>
28453 * doc/invoke.texi (fprofile-reorder-functions): Fix typo.
28455 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28457 PR rtl-optimization/57662
28458 * sel-sched.c (code_motion_path_driver): Do not mark already not
28459 existing blocks in the visiting bitmap.
28461 2014-02-03 Andrey Belevantsev <abel@ispras.ru>
28463 * sel-sched-ir.c (sel_gen_insn_from_expr_after): Reset INSN_DELETED_P
28464 on the insn being emitted.
28466 2014-02-03 James Greenhalgh <james.greenhalgh@arm.com>
28467 Will Deacon <will.deacon@arm.com>
28469 * doc/gimple.texi (gimple_asm_clear_volatile): Remove.
28471 2014-02-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
28473 * config/arm/arm-tables.opt: Regenerate.
28475 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28477 * config/rs6000/rs6000.c (altivec_expand_vec_perm_le): Generalize
28478 for vector types other than V16QImode.
28479 * config/rs6000/altivec.md (altivec_vperm_<mode>): Change to a
28480 define_expand, and call altivec_expand_vec_perm_le when producing
28481 code with little endian element order.
28482 (*altivec_vperm_<mode>_internal): New insn having previous
28483 behavior of altivec_vperm_<mode>.
28484 (altivec_vperm_<mode>_uns): Change to a define_expand, and call
28485 altivec_expand_vec_perm_le when producing code with little endian
28487 (*altivec_vperm_<mode>_uns_internal): New insn having previous
28488 behavior of altivec_vperm_<mode>_uns.
28490 2014-02-02 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28492 * config/rs6000/altivec.md (UNSPEC_VSUMSWS_DIRECT): New unspec.
28493 (altivec_vsumsws): Add handling for -maltivec=be with a little
28495 (altivec_vsumsws_direct): New.
28496 (reduc_splus_<mode>): Call gen_altivec_vsumsws_direct instead of
28497 gen_altivec_vsumsws.
28499 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28501 * ipa-devirt.c (subbinfo_with_vtable_at_offset,
28502 vtable_pointer_value_to_binfo): New functions.
28503 * ipa-utils.h (vtable_pointer_value_to_binfo): Declare.
28504 * ipa-prop.c (extr_type_from_vtbl_ptr_store): Use it.
28506 2014-02-02 Sandra Loosemore <sandra@codesourcery.com>
28508 * config/nios2/nios2.md (load_got_register): Initialize GOT
28509 pointer from _gp_got instead of _GLOBAL_OFFSET_TABLE_.
28510 * config/nios2/nios2.c (nios2_function_profiler): Likewise.
28512 2014-02-02 Jan Hubicka <hubicka@ucw.cz>
28514 * ipa-prop.c (update_jump_functions_after_inlining): When type is not
28515 preserverd by passthrough, do not propagate the type.
28517 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28519 * config/mips/mips.c (MIPS_GET_FCSR, MIPS_SET_FCSR): New macros.
28520 (mips_atomic_assign_expand_fenv): New function.
28521 (TARGET_ATOMIC_ASSIGN_EXPAND_FENV): Define.
28523 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28525 * doc/extend.texi (__builtin_mips_get_fcsr): Document.
28526 (__builtin_mips_set_fcsr): Likewise.
28527 * config/mips/mips-ftypes.def: Add MIPS_VOID_FTYPE_USI and
28528 MIPS_USI_FTYPE_VOID.
28529 * config/mips/mips-protos.h (mips16_expand_get_fcsr): Declare
28530 (mips16_expand_set_fcsr): Likewise.
28531 * config/mips/mips.c (mips16_get_fcsr_stub): New variable.
28532 (mips16_set_fcsr_stub): Likewise.
28533 (mips16_get_fcsr_one_only_stub): New class.
28534 (mips16_set_fcsr_one_only_stub): Likewise.
28535 (mips16_expand_get_fcsr, mips16_expand_set_fcsr): New functions.
28536 (mips_code_end): Output the get_fcsr and set_fcsr stubs, if needed.
28537 (BUILTIN_AVAIL_MIPS16, AVAIL_ALL): New macros.
28538 (hard_float): New availability predicate.
28539 (mips_builtins): Add get_fcsr and set_fcsr.
28540 (mips_expand_builtin): Check BUILTIN_AVAIL_MIPS16.
28541 * config/mips/mips.md (UNSPEC_GET_FCSR, UNSPEC_SET_FCSR): New unspecs.
28542 (GET_FCSR_REGNUM, SET_FCSR_REGNUM): New constants.
28543 (mips_get_fcsr, *mips_get_fcsr, mips_get_fcsr_mips16_<mode>)
28544 (mips_set_fcsr, *mips_set_fcsr, mips_set_fcsr_mips16_<mode>): New
28547 2014-02-02 Richard Sandiford <rdsandiford@googlemail.com>
28549 * config/mips/mips.c (mips_one_only_stub): New class.
28550 (mips_need_mips16_rdhwr_p): Replace with...
28551 (mips16_rdhwr_stub): ...this new variable.
28552 (mips16_stub_call_address): New function.
28553 (mips16_rdhwr_one_only_stub): New class.
28554 (mips_expand_thread_pointer): Use mips16_stub_call_address.
28555 (mips_output_mips16_rdhwr): Delete.
28556 (mips_finish_stub): New function.
28557 (mips_code_end): Use it to handle rdhwr stubs.
28559 2014-02-02 Uros Bizjak <ubizjak@gmail.com>
28562 * config/i386/i386.c (classify_argument): Fix handling of bit_offset
28563 when calculating size of integer atomic types.
28565 2014-02-02 H.J. Lu <hongjiu.lu@intel.com>
28567 * ipa-inline-analysis.c (true_predicate_p): Fix a typo in comments.
28569 2014-02-01 Jakub Jelinek <jakub@redhat.com>
28571 PR tree-optimization/60003
28572 * gimple-low.c (lower_builtin_setjmp): Set cfun->has_nonlocal_label.
28573 * profile.c (branch_prob): Use gimple_call_builtin_p
28574 to check for BUILT_IN_SETJMP_RECEIVER.
28575 * tree-inline.c (copy_bb): Call notice_special_calls.
28577 2014-01-31 Vladimir Makarov <vmakarov@redhat.com>
28580 * lra-constraints.c (process_alt_operands): Update reload_sum only
28583 2014-01-31 Richard Henderson <rth@redhat.com>
28585 PR middle-end/60004
28586 * tree-eh.c (lower_try_finally_switch): Delay lowering finally block
28587 until after else_eh is processed.
28589 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28591 * config/i386/avx512fintrin.h (_MM_FROUND_TO_NEAREST_INT),
28592 (_MM_FROUND_TO_NEG_INF), (_MM_FROUND_TO_POS_INF),
28593 (_MM_FROUND_TO_ZERO), (_MM_FROUND_CUR_DIRECTION): Are already defined
28594 in smmintrin.h, remove them.
28595 (_MM_FROUND_NO_EXC): Same as above, bit also wrong value.
28596 * config/i386/i386.c (ix86_print_operand): Split sae and rounding.
28597 * config/i386/i386.md (ROUND_SAE): Fix value.
28598 * config/i386/predicates.md (const_4_or_8_to_11_operand): New.
28599 (const48_operand): New.
28600 * config/i386/subst.md (round), (round_expand): Use
28601 const_4_or_8_to_11_operand.
28602 (round_saeonly), (round_saeonly_expand): Use const48_operand.
28604 2014-01-31 Ilya Tocar <ilya.tocar@intel.com>
28606 * config/i386/constraints.md (Yk): Swap meaning with k.
28607 * config/i386/i386.md (movhi_internal): Change Yk to k.
28608 (movqi_internal): Ditto.
28609 (*k<logic><mode>): Ditto.
28612 (kandn<mode>): Ditto.
28613 (*<code>hi_1): Ditto.
28614 (*<code>qi_1): Ditto.
28615 (kxnor<mode>): Ditto.
28616 (kortestzhi): Ditto.
28617 (kortestchi): Ditto.
28619 (*one_cmplhi2_1): Ditto.
28620 (*one_cmplqi2_1): Ditto.
28621 * config/i386/sse.md (): Change k to Yk.
28622 (avx512f_load<mode>_mask): Ditto.
28623 (avx512f_blendm<mode>): Ditto.
28624 (avx512f_store<mode>_mask): Ditto.
28625 (avx512f_storeu<ssemodesuffix>512_mask): Ditto.
28626 (avx512f_storedqu<mode>_mask): Ditto.
28627 (avx512f_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>):
28629 (avx512f_ucmp<mode>3<mask_scalar_merge_name>): Ditto.
28630 (avx512f_vmcmp<mode>3<round_saeonly_name>): Ditto.
28631 (avx512f_vmcmp<mode>3_mask<round_saeonly_name>): Ditto.
28632 (avx512f_maskcmp<mode>3): Ditto.
28633 (avx512f_fmadd_<mode>_mask<round_name>): Ditto.
28634 (avx512f_fmadd_<mode>_mask3<round_name>): Ditto.
28635 (avx512f_fmsub_<mode>_mask<round_name>): Ditto.
28636 (avx512f_fmsub_<mode>_mask3<round_name>): Ditto.
28637 (avx512f_fnmadd_<mode>_mask<round_name>): Ditto.
28638 (avx512f_fnmadd_<mode>_mask3<round_name>): Ditto.
28639 (avx512f_fnmsub_<mode>_mask<round_name>): Ditto.
28640 (avx512f_fnmsub_<mode>_mask3<round_name>): Ditto.
28641 (avx512f_fmaddsub_<mode>_mask<round_name>): Ditto.
28642 (avx512f_fmaddsub_<mode>_mask3<round_name>): Ditto.
28643 (avx512f_fmsubadd_<mode>_mask<round_name>): Ditto.
28644 (avx512f_fmsubadd_<mode>_mask3<round_name>): Ditto.
28645 (avx512f_vextract<shuffletype>32x4_1_maskm): Ditto.
28646 (vec_extract_lo_<mode>_maskm): Ditto.
28647 (vec_extract_hi_<mode>_maskm): Ditto.
28648 (avx512f_vternlog<mode>_mask): Ditto.
28649 (avx512f_fixupimm<mode>_mask<round_saeonly_name>): Ditto.
28650 (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Ditto.
28651 (avx512f_<code><pmov_src_lower><mode>2_mask): Ditto.
28652 (avx512f_<code>v8div16qi2_mask): Ditto.
28653 (avx512f_<code>v8div16qi2_mask_store): Ditto.
28654 (avx512f_eq<mode>3<mask_scalar_merge_name>_1): Ditto.
28655 (avx512f_gt<mode>3<mask_scalar_merge_name>): Ditto.
28656 (avx512f_testm<mode>3<mask_scalar_merge_name>): Ditto.
28657 (avx512f_testnm<mode>3<mask_scalar_merge_name>): Ditto.
28658 (*avx512pf_gatherpf<mode>sf_mask): Ditto.
28659 (*avx512pf_gatherpf<mode>df_mask): Ditto.
28660 (*avx512pf_scatterpf<mode>sf_mask): Ditto.
28661 (*avx512pf_scatterpf<mode>df_mask): Ditto.
28662 (avx512cd_maskb_vec_dupv8di): Ditto.
28663 (avx512cd_maskw_vec_dupv16si): Ditto.
28664 (avx512f_vpermi2var<mode>3_maskz): Ditto.
28665 (avx512f_vpermi2var<mode>3_mask): Ditto.
28666 (avx512f_vpermi2var<mode>3_mask): Ditto.
28667 (avx512f_vpermt2var<mode>3_maskz): Ditto.
28668 (*avx512f_gathersi<mode>): Ditto.
28669 (*avx512f_gathersi<mode>_2): Ditto.
28670 (*avx512f_gatherdi<mode>): Ditto.
28671 (*avx512f_gatherdi<mode>_2): Ditto.
28672 (*avx512f_scattersi<mode>): Ditto.
28673 (*avx512f_scatterdi<mode>): Ditto.
28674 (avx512f_compress<mode>_mask): Ditto.
28675 (avx512f_compressstore<mode>_mask): Ditto.
28676 (avx512f_expand<mode>_mask): Ditto.
28677 * config/i386/subst.md (mask): Change k to Yk.
28678 (mask_scalar_merge): Ditto.
28681 2014-01-31 Marc Glisse <marc.glisse@inria.fr>
28683 * doc/extend.texi (Vector Extensions): Document ?: in C++.
28685 2014-01-31 Richard Biener <rguenther@suse.de>
28687 PR middle-end/59990
28688 * builtins.c (fold_builtin_memory_op): Make sure to not
28689 use a floating-point mode or a boolean or enumeral type for
28690 the copy operation.
28692 2014-01-30 DJ Delorie <dj@redhat.com>
28694 * config/msp430/msp430.h (LIB_SPEC): Add -lcrt
28695 * config/msp430/msp430.md (msp430_refsym_need_exit): New.
28696 * config/msp430/msp430.c (msp430_expand_epilogue): Call it
28697 whenever main() has an epilogue.
28699 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28701 * config/rs6000/rs6000.c (rs6000_expand_vector_init): Remove
28702 unused variable "field".
28703 * config/rs6000/vsx.md (vsx_mergel_<mode>): Add missing DONE.
28704 (vsx_mergeh_<mode>): Likewise.
28705 * config/rs6000/altivec.md (altivec_vmrghb): Likewise.
28706 (altivec_vmrghh): Likewise.
28707 (altivec_vmrghw): Likewise.
28708 (altivec_vmrglb): Likewise.
28709 (altivec_vmrglh): Likewise.
28710 (altivec_vmrglw): Likewise.
28711 (altivec_vspltb): Add missing uses.
28712 (altivec_vsplth): Likewise.
28713 (altivec_vspltw): Likewise.
28714 (altivec_vspltsf): Likewise.
28716 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28719 * ifcvt.c (cond_exec_process_insns): Don't conditionalize
28720 frame related instructions.
28722 2014-01-30 Vladimir Makarov <vmakarov@redhat.com>
28724 PR rtl-optimization/59959
28725 * lra-constrains.c (simplify_operand_subreg): Assign NO_REGS to
28726 any reload of register whose subreg is invalid.
28728 2014-01-30 Jakub Jelinek <jakub@redhat.com>
28730 * config/i386/f16cintrin.h (_cvtsh_ss): Avoid -Wnarrowing warning.
28731 * config/i386/avx512fintrin.h (_mm512_mask_cvtusepi64_storeu_epi32):
28732 Add missing return type - void.
28734 2014-01-30 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28736 * gcc/config/rs6000/rs6000.c (rs6000_expand_vector_init): Use
28737 gen_vsx_xxspltw_v4sf_direct instead of gen_vsx_xxspltw_v4sf;
28738 remove element index adjustment for endian (now handled in vsx.md
28740 (altivec_expand_vec_perm_const): Use
28741 gen_altivec_vsplt[bhw]_direct instead of gen_altivec_vsplt[bhw].
28742 * gcc/config/rs6000/vsx.md (UNSPEC_VSX_XXSPLTW): New unspec.
28743 (vsx_xxspltw_<mode>): Adjust element index for little endian.
28744 * gcc/config/rs6000/altivec.md (altivec_vspltb): Divide into a
28745 define_expand and a new define_insn *altivec_vspltb_internal;
28746 adjust for -maltivec=be on a little endian target.
28747 (altivec_vspltb_direct): New.
28748 (altivec_vsplth): Divide into a define_expand and a new
28749 define_insn *altivec_vsplth_internal; adjust for -maltivec=be on a
28750 little endian target.
28751 (altivec_vsplth_direct): New.
28752 (altivec_vspltw): Divide into a define_expand and a new
28753 define_insn *altivec_vspltw_internal; adjust for -maltivec=be on a
28754 little endian target.
28755 (altivec_vspltw_direct): New.
28756 (altivec_vspltsf): Divide into a define_expand and a new
28757 define_insn *altivec_vspltsf_internal; adjust for -maltivec=be on
28758 a little endian target.
28760 2014-01-30 Richard Biener <rguenther@suse.de>
28762 PR tree-optimization/59993
28763 * tree-ssa-forwprop.c (associate_pointerplus): Check we
28764 can propagate form the earlier stmt and avoid the transform
28765 when the intermediate result is needed.
28767 2014-01-30 Alangi Derick <alangiderick@gmail.com>
28769 * README.Portability: Fix typo.
28771 2014-01-30 David Holsgrove <david.holsgrove@xilinx.com>
28773 * config/microblaze/microblaze.md(cstoresf4, cbranchsf4): Replace
28774 comparison_operator with ordered_comparison_operator.
28776 2014-01-30 Nick Clifton <nickc@redhat.com>
28778 * config/mn10300/mn10300-protos.h (mn10300_store_multiple_operation_p):
28779 Rename to mn10300_store_multiple_regs.
28780 * config/mn10300/mn10300.c: Likewise.
28781 * config/mn10300/mn10300.md (store_movm): Fix typo: call
28782 store_multiple_regs.
28783 * config/mn10300/predicates.md (mn10300_store_multiple_operation):
28784 Call mn10300_store_multiple_regs.
28786 2014-01-30 Nick Clifton <nickc@redhat.com>
28787 DJ Delorie <dj@redhat.com>
28789 * config/rl78/rl78.c (register_sizes): Make the "upper half" of
28790 %fp 2 to keep registers after it properly word-aligned.
28791 (rl78_alloc_physical_registers_umul): Handle the case where both
28792 input operands are the same.
28794 2014-01-30 Richard Biener <rguenther@suse.de>
28796 PR tree-optimization/59903
28797 * tree-vect-loop.c (vect_transform_loop): Guard multiple-types
28800 2014-01-30 Jason Merrill <jason@redhat.com>
28803 * tree.c (walk_type_fields): Handle VECTOR_TYPE.
28806 * cgraphunit.c (expand_thunk): Copy volatile arg to a temporary.
28808 2014-01-30 Richard Biener <rguenther@suse.de>
28810 PR tree-optimization/59951
28811 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Skip uses in debug insns.
28813 2014-01-30 Savin Zlobec <savin.zlobec@gmail.com>
28816 * config/nios2/nios2.c (nios2_fpu_insn_asm): Fix asm output of
28817 SFmode to DFmode case.
28819 2014-01-29 DJ Delorie <dj@redhat.com>
28821 * config/msp430/msp430.opt (-minrt): New.
28822 * config/msp430/msp430.h (STARTFILE_SPEC): Link alternate runtime
28824 (ENDFILE_SPEC): Likewise.
28826 2014-01-29 Jan Hubicka <hubicka@ucw.cz>
28828 * ipa-inline-analysis.c (clobber_only_eh_bb_p): New function.
28829 (estimate_function_body_sizes): Use it.
28831 2014-01-29 Paolo Carlini <paolo.carlini@oracle.com>
28834 * dwarf2out.c (is_cxx_auto): New.
28835 (is_base_type): Use it.
28836 (gen_type_die_with_usage): Likewise.
28838 2014-01-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
28840 * config/rs6000/rs6000.c (altivec_expand_vec_perm_const): Use
28841 CODE_FOR_altivec_vmrg*_direct rather than CODE_FOR_altivec_vmrg*.
28842 * config/rs6000/vsx.md (vsx_mergel_<mode>): Adjust for
28843 -maltivec=be with LE targets.
28844 (vsx_mergeh_<mode>): Likewise.
28845 * config/rs6000/altivec.md (UNSPEC_VMRG[HL]_DIRECT): New unspecs.
28846 (mulv8hi3): Use gen_altivec_vmrg[hl]w_direct.
28847 (altivec_vmrghb): Replace with define_expand and new
28848 *altivec_vmrghb_internal insn; adjust for -maltivec=be with LE targets.
28849 (altivec_vmrghb_direct): New define_insn.
28850 (altivec_vmrghh): Replace with define_expand and new
28851 *altivec_vmrghh_internal insn; adjust for -maltivec=be with LE targets.
28852 (altivec_vmrghh_direct): New define_insn.
28853 (altivec_vmrghw): Replace with define_expand and new
28854 *altivec_vmrghw_internal insn; adjust for -maltivec=be with LE targets.
28855 (altivec_vmrghw_direct): New define_insn.
28856 (*altivec_vmrghsf): Adjust for endianness.
28857 (altivec_vmrglb): Replace with define_expand and new
28858 *altivec_vmrglb_internal insn; adjust for -maltivec=be with LE targets.
28859 (altivec_vmrglb_direct): New define_insn.
28860 (altivec_vmrglh): Replace with define_expand and new
28861 *altivec_vmrglh_internal insn; adjust for -maltivec=be with LE targets.
28862 (altivec_vmrglh_direct): New define_insn.
28863 (altivec_vmrglw): Replace with define_expand and new
28864 *altivec_vmrglw_internal insn; adjust for -maltivec=be with LE targets.
28865 (altivec_vmrglw_direct): New define_insn.
28866 (*altivec_vmrglsf): Adjust for endianness.
28867 (vec_widen_umult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28868 (vec_widen_umult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28869 (vec_widen_smult_hi_v16qi): Use gen_altivec_vmrghh_direct.
28870 (vec_widen_smult_lo_v16qi): Use gen_altivec_vmrglh_direct.
28871 (vec_widen_umult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28872 (vec_widen_umult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28873 (vec_widen_smult_hi_v8hi): Use gen_altivec_vmrghw_direct.
28874 (vec_widen_smult_lo_v8hi): Use gen_altivec_vmrglw_direct.
28876 2014-01-29 Marcus Shawcroft <marcus.shawcroft@arm.com>
28878 * config/aarch64/aarch64.c (aarch64_expand_mov_immediate)
28879 (aarch64_legitimate_address_p, aarch64_class_max_nregs): Adjust
28882 2014-01-29 Richard Biener <rguenther@suse.de>
28884 PR tree-optimization/58742
28885 * tree-ssa-forwprop.c (associate_pointerplus): Rename to
28886 associate_pointerplus_align.
28887 (associate_pointerplus_diff): New function.
28888 (associate_pointerplus): Likewise. Call associate_pointerplus_align
28889 and associate_pointerplus_diff.
28891 2014-01-29 Richard Biener <rguenther@suse.de>
28893 * lto-streamer.h (LTO_major_version): Bump to 3.
28894 (LTO_minor_version): Reset to 0.
28896 2014-01-29 Renlin Li <Renlin.Li@arm.com>
28898 * config/arm/arm-arches.def (ARM_ARCH): Add armv7ve arch.
28899 * config/arm/arm.c (FL_FOR_ARCH7VE): New.
28900 (arm_file_start): Generate correct asm header for armv7ve.
28901 * config/arm/bpabi.h: Add multilib support for armv7ve.
28902 * config/arm/driver-arm.c: Change the architectures of cortex-a7
28903 and cortex-a15 to armv7ve.
28904 * config/arm/t-aprofile: Add multilib support for armv7ve.
28905 * doc/invoke.texi: Document -march=armv7ve.
28907 2014-01-29 Richard Biener <rguenther@suse.de>
28909 PR tree-optimization/58742
28910 * tree-ssa-forwprop.c (associate_plusminus): Return true
28911 if we changed sth, defer EH cleanup to ...
28912 (ssa_forward_propagate_and_combine): ... here. Call simplify_mult.
28913 (simplify_mult): New function.
28915 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28917 PR middle-end/59917
28918 PR tree-optimization/59920
28919 * tree.c (build_common_builtin_nodes): Remove
28920 __builtin_setjmp_dispatcher initialization.
28921 * omp-low.h (make_gimple_omp_edges): Add a new int * argument.
28922 * profile.c (branch_prob): Use gsi_start_nondebug_after_labels_bb
28923 instead of gsi_after_labels + manually skipping debug stmts.
28924 Don't ignore bbs with BUILT_IN_SETJMP_DISPATCHER, instead
28925 ignore bbs with IFN_ABNORMAL_DISPATCHER.
28926 * tree-inline.c (copy_edges_for_bb): Remove
28927 can_make_abnormal_goto argument, instead add abnormal_goto_dest
28928 argument. Ignore computed_goto_p stmts. Don't call
28929 make_abnormal_goto_edges. If a call might need abnormal edges
28930 for non-local gotos, see if it already has an edge to
28931 IFN_ABNORMAL_DISPATCHER or if it is IFN_ABNORMAL_DISPATCHER
28932 with true argument, don't do anything then, otherwise add
28933 EDGE_ABNORMAL from the call's bb to abnormal_goto_dest.
28934 (copy_cfg_body): Compute abnormal_goto_dest, adjust copy_edges_for_bb
28936 * gimple-low.c (struct lower_data): Remove calls_builtin_setjmp.
28937 (lower_function_body): Don't emit __builtin_setjmp_dispatcher.
28938 (lower_stmt): Don't set data->calls_builtin_setjmp.
28939 (lower_builtin_setjmp): Adjust comment.
28940 * builtins.def (BUILT_IN_SETJMP_DISPATCHER): Remove.
28941 * tree-cfg.c (found_computed_goto): Remove.
28942 (factor_computed_gotos): Remove.
28943 (make_goto_expr_edges): Return bool, true for computed gotos.
28944 Don't call make_abnormal_goto_edges.
28945 (build_gimple_cfg): Don't set found_computed_goto, don't call
28946 factor_computed_gotos.
28947 (computed_goto_p): No longer static.
28948 (make_blocks): Don't set found_computed_goto.
28949 (get_abnormal_succ_dispatcher, handle_abnormal_edges): New functions.
28950 (make_edges): If make_goto_expr_edges returns true, push bb
28951 into ab_edge_goto vector, for stmt_can_make_abnormal_goto calls
28952 instead of calling make_abnormal_goto_edges push bb into ab_edge_call
28953 vector. Record mapping between bbs and OpenMP regions if there
28954 are any, adjust make_gimple_omp_edges caller. Call
28955 handle_abnormal_edges.
28956 (make_abnormal_goto_edges): Remove.
28957 * tree-cfg.h (make_abnormal_goto_edges): Remove.
28958 (computed_goto_p, get_abnormal_succ_dispatcher): New prototypes.
28959 * internal-fn.c (expand_ABNORMAL_DISPATCHER): New function.
28960 * builtins.c (expand_builtin): Don't handle BUILT_IN_SETJMP_DISPATCHER.
28961 * internal-fn.def (ABNORMAL_DISPATCHER): New.
28962 * omp-low.c (make_gimple_omp_edges): Add region_idx argument, when
28963 filling *region also set *region_idx to (*region)->entry->index.
28966 * read-rtl.c (read_rtx_code): Clear all of RTX_CODE_SIZE (code).
28967 For REGs set ORIGINAL_REGNO.
28969 2014-01-29 Bingfeng Mei <bmei@broadcom.com>
28971 * doc/md.texi: Mention that a target shouldn't implement
28972 vec_widen_(s|u)mul_even/odd pair if it is less efficient
28975 2014-01-29 Jakub Jelinek <jakub@redhat.com>
28977 PR tree-optimization/59594
28978 * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Sort
28979 a copy of the datarefs vector rather than the vector itself.
28981 2014-01-28 Jason Merrill <jason@redhat.com>
28984 * dwarf2out.c (auto_die): New static.
28985 (gen_type_die_with_usage): Handle C++1y 'auto'.
28986 (gen_subprogram_die): If in-class DIE had 'auto', emit type again
28989 2014-01-28 H.J. Lu <hongjiu.lu@intel.com>
28992 * config/i386/gnu-user64.h (SPEC_32): Add "m16|" to "m32".
28993 (SPEC_X32): Likewise.
28994 (SPEC_64): Likewise.
28995 * config/i386/i386.c (ix86_option_override_internal): Turn off
28996 OPTION_MASK_ISA_64BIT, OPTION_MASK_ABI_X32 and OPTION_MASK_ABI_64
28998 (x86_file_start): Output .code16gcc for TARGET_16BIT.
28999 * config/i386/i386.h (TARGET_16BIT): New macro.
29000 (TARGET_16BIT_P): Likewise.
29001 * config/i386/i386.opt: Add m16.
29002 * doc/invoke.texi: Document -m16.
29004 2014-01-28 Jakub Jelinek <jakub@redhat.com>
29006 PR preprocessor/59935
29007 * input.c (location_get_source_line): Bail out on when line number
29008 is zero, and test the return value of lookup_or_add_file_to_cache_tab.
29010 2014-01-28 Richard Biener <rguenther@suse.de>
29012 PR tree-optimization/58742
29013 * tree-ssa-forwprop.c (associate_plusminus): Handle
29014 pointer subtraction of the form (T)(P + A) - (T)P.
29016 2014-01-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
29018 * config/arm/arm.c (arm_new_rtx_costs): Remove useless statement
29021 2014-01-28 Richard Biener <rguenther@suse.de>
29024 2014-01-28 Richard Biener <rguenther@suse.de>
29026 PR rtl-optimization/45364
29027 PR rtl-optimization/59890
29028 * var-tracking.c (local_get_addr_clear_given_value): Handle
29029 already cleared slot.
29030 (val_reset): Handle not allocated local_get_addr_cache.
29031 (vt_find_locations): Use post-order on the inverted CFG.
29033 2014-01-28 Richard Biener <rguenther@suse.de>
29035 * tree-data-ref.h (ddr_is_anti_dependent, ddrs_have_anti_deps): Remove.
29037 2014-01-28 Richard Biener <rguenther@suse.de>
29039 PR rtl-optimization/45364
29040 PR rtl-optimization/59890
29041 * var-tracking.c (local_get_addr_clear_given_value): Handle
29042 already cleared slot.
29043 (val_reset): Handle not allocated local_get_addr_cache.
29044 (vt_find_locations): Use post-order on the inverted CFG.
29046 2014-01-28 Alan Modra <amodra@gmail.com>
29048 * Makefile.in (BUILD_CPPFLAGS): Do not use ALL_CPPFLAGS.
29049 * configure.ac <recursive call for build != host>: Define
29050 GENERATOR_FILE. Comment. Use CXX_FOR_BUILD, CXXFLAGS_FOR_BUILD
29051 and LD_FOR_BUILD too.
29052 * configure: Regenerate.
29054 2014-01-27 Allan Sandfeld Jensen <sandfeld@kde.org>
29056 * config/i386/i386.c (get_builtin_code_for_version): Separate
29057 Westmere from Nehalem, Ivy Bridge from Sandy Bridge and
29058 Broadwell from Haswell.
29060 2014-01-27 Steve Ellcey <sellcey@mips.com>
29062 * common/config/mips/mips-common.c (TARGET_DEFAULT_TARGET_FLAGS):
29063 Remove TARGET_FP_EXCEPTIONS_DEFAULT and MASK_FUSED_MADD.
29064 * config/mips/mips.c (mips_option_override): Change setting
29066 * config/mips/mips.h (TARGET_FP_EXCEPTIONS_DEFAULT): Remove.
29067 * config/mips/mips.opt (DSP, DSPR2, FP_EXCEPTIONS, FUSED_MADD, MIPS3D):
29068 Change from Mask to Var.
29070 2014-01-27 Jeff Law <law@redhat.com>
29072 * ipa-inline.c (inline_small_functions): Fix typo.
29074 2014-01-27 Ilya Tocar <ilya.tocar@intel.com>
29076 * config/i386/avx512fintrin.h (_mm512_mask_cvtepi32_storeu_epi8): New.
29077 (_mm512_mask_cvtsepi32_storeu_epi8): Ditto.
29078 (_mm512_mask_cvtusepi32_storeu_epi8): Ditto.
29079 (_mm512_mask_cvtepi32_storeu_epi16): Ditto.
29080 (_mm512_mask_cvtsepi32_storeu_epi16): Ditto.
29081 (_mm512_mask_cvtusepi32_storeu_epi16): Ditto.
29082 (_mm512_mask_cvtepi64_storeu_epi32): Ditto.
29083 (_mm512_mask_cvtsepi64_storeu_epi32): Ditto.
29084 (_mm512_mask_cvtusepi64_storeu_epi32): Ditto.
29085 (_mm512_mask_cvtepi64_storeu_epi16): Ditto.
29086 (_mm512_mask_cvtsepi64_storeu_epi16): Ditto.
29087 (_mm512_mask_cvtusepi64_storeu_epi16): Ditto.
29088 (_mm512_mask_cvtepi64_storeu_epi8): Ditto.
29089 (_mm512_mask_cvtsepi64_storeu_epi8): Ditto.
29090 (_mm512_mask_cvtusepi64_storeu_epi8): Ditto.
29091 (_mm512_storeu_epi64): Ditto.
29092 (_mm512_cmpge_epi32_mask): Ditto.
29093 (_mm512_cmpge_epu32_mask): Ditto.
29094 (_mm512_cmpge_epi64_mask): Ditto.
29095 (_mm512_cmpge_epu64_mask): Ditto.
29096 (_mm512_cmple_epi32_mask): Ditto.
29097 (_mm512_cmple_epu32_mask): Ditto.
29098 (_mm512_cmple_epi64_mask): Ditto.
29099 (_mm512_cmple_epu64_mask): Ditto.
29100 (_mm512_cmplt_epi32_mask): Ditto.
29101 (_mm512_cmplt_epu32_mask): Ditto.
29102 (_mm512_cmplt_epi64_mask): Ditto.
29103 (_mm512_cmplt_epu64_mask): Ditto.
29104 (_mm512_cmpneq_epi32_mask): Ditto.
29105 (_mm512_cmpneq_epu32_mask): Ditto.
29106 (_mm512_cmpneq_epi64_mask): Ditto.
29107 (_mm512_cmpneq_epu64_mask): Ditto.
29108 (_mm512_expand_pd): Ditto.
29109 (_mm512_expand_ps): Ditto.
29110 * config/i386/i386-builtin-types.def: Add PV16QI, PV16QI, PV16HI,
29111 VOID_PV8SI_V8DI_QI, VOID_PV8HI_V8DI_QI, VOID_PV16QI_V8DI_QI,
29112 VOID_PV16QI_V16SI_HI, VOID_PV16HI_V16SI_HI.
29113 * config/i386/i386.c (ix86_builtins): Add
29114 IX86_BUILTIN_EXPANDPD512_NOMASK, IX86_BUILTIN_EXPANDPS512_NOMASK,
29115 IX86_BUILTIN_PMOVDB512_MEM, IX86_BUILTIN_PMOVDW512_MEM,
29116 IX86_BUILTIN_PMOVQB512_MEM, IX86_BUILTIN_PMOVQD512_MEM,
29117 IX86_BUILTIN_PMOVQW512_MEM, IX86_BUILTIN_PMOVSDB512_MEM,
29118 IX86_BUILTIN_PMOVSDW512_MEM, IX86_BUILTIN_PMOVSQB512_MEM,
29119 IX86_BUILTIN_PMOVSQD512_MEM, IX86_BUILTIN_PMOVSQW512_MEM,
29120 IX86_BUILTIN_PMOVUSDB512_MEM, IX86_BUILTIN_PMOVUSDW512_MEM,
29121 IX86_BUILTIN_PMOVUSQB512_MEM, IX86_BUILTIN_PMOVUSQD512_MEM,
29122 IX86_BUILTIN_PMOVUSQW512_MEM.
29123 (bdesc_special_args): Add __builtin_ia32_pmovusqd512mem_mask,
29124 __builtin_ia32_pmovsqd512mem_mask,
29125 __builtin_ia32_pmovqd512mem_mask,
29126 __builtin_ia32_pmovusqw512mem_mask,
29127 __builtin_ia32_pmovsqw512mem_mask,
29128 __builtin_ia32_pmovqw512mem_mask,
29129 __builtin_ia32_pmovusdw512mem_mask,
29130 __builtin_ia32_pmovsdw512mem_mask,
29131 __builtin_ia32_pmovdw512mem_mask,
29132 __builtin_ia32_pmovqb512mem_mask,
29133 __builtin_ia32_pmovusqb512mem_mask,
29134 __builtin_ia32_pmovsqb512mem_mask,
29135 __builtin_ia32_pmovusdb512mem_mask,
29136 __builtin_ia32_pmovsdb512mem_mask,
29137 __builtin_ia32_pmovdb512mem_mask.
29138 (bdesc_args): Add __builtin_ia32_expanddf512,
29139 __builtin_ia32_expandsf512.
29140 (ix86_expand_special_args_builtin): Handle VOID_FTYPE_PV8SI_V8DI_QI,
29141 VOID_FTYPE_PV8HI_V8DI_QI, VOID_FTYPE_PV16HI_V16SI_HI,
29142 VOID_FTYPE_PV16QI_V8DI_QI, VOID_FTYPE_PV16QI_V16SI_HI.
29143 * config/i386/sse.md (unspec): Add UNSPEC_EXPAND_NOMASK.
29144 (avx512f_<code><pmov_src_lower><mode>2_mask_store): New.
29145 (*avx512f_<code>v8div16qi2_store_mask): Renamed to ...
29146 (avx512f_<code>v8div16qi2_mask_store): This.
29147 (avx512f_expand<mode>): New.
29149 2014-01-27 Kirill Yukhin <kirill.yukhin@intel.com>
29151 * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd):
29153 (_mm512_mask_prefetch_i64gather_pd): Ditto.
29154 (_mm512_prefetch_i32scatter_pd): Ditto.
29155 (_mm512_mask_prefetch_i32scatter_pd): Ditto.
29156 (_mm512_prefetch_i64scatter_pd): Ditto.
29157 (_mm512_mask_prefetch_i64scatter_pd): Ditto.
29158 (_mm512_mask_prefetch_i32gather_ps): Fix operand type.
29159 (_mm512_mask_prefetch_i64gather_ps): Ditto.
29160 (_mm512_prefetch_i32scatter_ps): Ditto.
29161 (_mm512_mask_prefetch_i32scatter_ps): Ditto.
29162 (_mm512_prefetch_i64scatter_ps): Ditto.
29163 (_mm512_mask_prefetch_i64scatter_ps): Ditto.
29164 * config/i386/i386-builtin-types.def: Define
29165 VOID_FTYPE_QI_V8SI_PCINT64_INT_INT
29166 and VOID_FTYPE_QI_V8DI_PCINT64_INT_INT.
29167 * config/i386/i386.c (ix86_builtins): Define IX86_BUILTIN_GATHERPFQPD,
29168 IX86_BUILTIN_GATHERPFDPD, IX86_BUILTIN_SCATTERPFDPD,
29169 IX86_BUILTIN_SCATTERPFQPD.
29170 (ix86_init_mmx_sse_builtins): Define __builtin_ia32_gatherpfdpd,
29171 __builtin_ia32_gatherpfdps, __builtin_ia32_gatherpfqpd,
29172 __builtin_ia32_gatherpfqps, __builtin_ia32_scatterpfdpd,
29173 __builtin_ia32_scatterpfdps, __builtin_ia32_scatterpfqpd,
29174 __builtin_ia32_scatterpfqps.
29175 (ix86_expand_builtin): Expand new built-ins.
29176 * config/i386/sse.md (avx512pf_gatherpf<mode>): Add SF suffix,
29177 fix memory access data type.
29178 (*avx512pf_gatherpf<mode>_mask): Ditto.
29179 (*avx512pf_gatherpf<mode>): Ditto.
29180 (avx512pf_scatterpf<mode>): Ditto.
29181 (*avx512pf_scatterpf<mode>_mask): Ditto.
29182 (*avx512pf_scatterpf<mode>): Ditto.
29183 (GATHER_SCATTER_SF_MEM_MODE): New.
29184 (avx512pf_gatherpf<mode>df): Ditto.
29185 (*avx512pf_gatherpf<mode>df_mask): Ditto.
29186 (*avx512pf_scatterpf<mode>df): Ditto.
29188 2014-01-27 Jakub Jelinek <jakub@redhat.com>
29191 * expmed.h (expmed_mode_index): Rework so that analysis and optimziers
29192 know when the MODE_PARTIAL_INT and MODE_VECTOR_INT cases can never be
29195 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29197 * common/config/arm/arm-common.c
29198 (arm_rewrite_mcpu): Handle multiple names.
29200 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29202 2014-01-27 James Greenhalgh <james.greenhalgh@arm.com>
29204 * gimple-builder.h (create_gimple_tmp): Delete.
29206 2014-01-27 Christian Bruel <christian.bruel@st.com>
29208 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Fix remaining bytes after
29211 2014-01-26 John David Anglin <danglin@gcc.gnu.org>
29213 * config/pa/pa.md (call): Generate indirect long calls to non-local
29214 functions when outputing 32-bit code.
29215 (call_value): Likewise except for special call to buggy powf function.
29217 * config/pa/pa.c (pa_attr_length_indirect_call): Adjust length of
29218 portable runtime and PIC indirect calls.
29219 (pa_output_indirect_call): Remove unnecessary nop from portable runtime
29220 and PIC call sequences. Use ldo instead of blr to set return register
29221 in PIC call sequence.
29223 2014-01-25 Walter Lee <walt@tilera.com>
29225 * config/tilegx/sync.md (atomic_fetch_sub): Fix negation and
29226 avoid clobbering a live register.
29228 2014-01-25 Walter Lee <walt@tilera.com>
29230 * config/tilegx/tilegx-c.c (tilegx_cpu_cpp_builtins):
29231 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2}.
29232 * config/tilegx/tilepro-c.c (tilepro_cpu_cpp_builtins):
29233 Define __GCC_HAVE_SYNC_COMPARE_AND_SWAP_{1,2,4,8}.
29235 2014-01-25 Walter Lee <walt@tilera.com>
29237 * config/tilegx/tilegx.c (tilegx_function_arg): Start 16-byte
29238 arguments on even registers.
29239 (tilegx_gimplify_va_arg_expr): Align 16-byte var args to
29241 * config/tilegx/tilegx.h (STACK_BOUNDARY): Change to 16 bytes.
29242 (BIGGEST_ALIGNMENT): Ditto.
29243 (BIGGEST_FIELD_ALIGNMENT): Ditto.
29245 2014-01-25 Walter Lee <walt@tilera.com>
29247 * config/tilegx/tilegx.c (tilegx_gen_bundles): Delete barrier
29248 insns before bundling.
29249 * config/tilegx/tilegx.md (tile_network_barrier): Update comment.
29251 2014-01-25 Walter Lee <walt@tilera.com>
29253 * config/tilegx/tilegx.c (tilegx_expand_builtin): Set
29254 PREFETCH_SCHEDULE_BARRIER_P to true for prefetches.
29255 * config/tilepro/tilepro.c (tilepro_expand_builtin): Ditto.
29257 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29259 * config/mips/constraints.md (kl): Delete.
29260 * config/mips/mips.md (divmod<mode>4, udivmod<mode>4): Turn into
29261 define expands, using...
29262 (divmod<mode>4_mips16, udivmod<mode>4_mips16): ...these new
29263 instructions for MIPS16.
29264 (*divmod<mode>4, *udivmod<mode>4): New patterns, taken from the
29265 non-MIPS16 version of the old divmod<mode>4 and udivmod<mode>4.
29267 2014-01-25 Walter Lee <walt@tilera.com>
29269 * config/tilepro/tilepro.md (ctzdi2): Use register_operand predicate.
29273 2014-01-25 Walter Lee <walt@tilera.com>
29275 * config/tilegx/tilegx.c (tilegx_expand_to_rtl_hook): New.
29276 (TARGET_EXPAND_TO_RTL_HOOK): Define.
29278 2014-01-25 Richard Sandiford <rdsandiford@googlemail.com>
29280 * rtlanal.c (canonicalize_condition): Split out duplicated mode check.
29283 2014-01-25 Jakub Jelinek <jakub@redhat.com>
29285 * print-rtl.c (in_call_function_usage): New var.
29286 (print_rtx): When in CALL_INSN_FUNCTION_USAGE, always print
29287 EXPR_LIST mode as mode and not as reg note name.
29289 PR middle-end/59561
29290 * cfgloopmanip.c (copy_loop_info): If
29291 loop->warned_aggressive_loop_optimizations, make sure
29292 the flag is set in target loop too.
29294 2014-01-24 Balaji V. Iyer <balaji.v.iyer@intel.com>
29296 * builtins.c (is_builtin_name): Renamed flag_enable_cilkplus to
29298 * builtins.def: Likewise.
29299 * cilk.h (fn_contains_cilk_spawn_p): Likewise.
29300 * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Likewise.
29301 * ira.c (ira_setup_eliminable_regset): Likewise.
29302 * omp-low.c (gate_expand_omp): Likewise.
29303 (execute_lower_omp): Likewise.
29304 (diagnose_sb_0): Likewise.
29305 (gate_diagnose_omp_blocks): Likewise.
29306 (simd_clone_clauses_extract): Likewise.
29309 2014-01-24 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
29311 * config/rs6000/rs6000.c (rs6000_expand_vec_perm_const_1): Remove
29312 correction for little endian...
29313 * config/rs6000/vsx.md (vsx_xxpermdi2_<mode>_1): ...and move it to
29316 2014-01-24 Jeff Law <law@redhat.com>
29318 PR tree-optimization/59919
29319 * tree-vrp.c (find_assert_locations_1): Do not register asserts
29320 for non-returning calls.
29322 2014-01-24 James Greenhalgh <james.greenhalgh@arm.com>
29324 * common/config/aarch64/aarch64-common.c
29325 (aarch64_rewrite_mcpu): Handle multiple names.
29326 * config/aarch64/aarch64.h
29327 (BIG_LITTLE_SPEC): Do not discard mcpu switches.
29329 2014-01-24 Dodji Seketeli <dodji@redhat.com>
29331 * input.c (add_file_to_cache_tab): Handle the case where fopen
29334 2014-01-23 H.J. Lu <hongjiu.lu@intel.com>
29337 * config/i386/i386.md (pushsf splitter): Get stack adjustment
29338 from push operand if code of push isn't PRE_DEC.
29340 2014-01-23 Michael Meissner <meissner@linux.vnet.ibm.com>
29343 * doc/invoke.texi (RS/6000 and PowerPC Options): Document
29344 -mquad-memory-atomic. Update -mquad-memory documentation to say
29345 it is only used for non-atomic loads/stores.
29347 * config/rs6000/predicates.md (quad_int_reg_operand): Allow either
29348 -mquad-memory or -mquad-memory-atomic switches.
29350 * config/rs6000/rs6000-cpus.def (ISA_2_7_MASKS_SERVER): Add
29351 -mquad-memory-atomic to ISA 2.07 support.
29353 * config/rs6000/rs6000.opt (-mquad-memory-atomic): Add new switch
29354 to separate support of normal quad word memory operations (ldq, stq)
29355 from the atomic quad word memory operations.
29357 * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
29358 support to separate non-atomic quad word operations from atomic
29359 quad word operations. Disable non-atomic quad word operations in
29360 little endian mode so that we don't have to swap words after the
29361 load and before the store.
29362 (quad_load_store_p): Add comment about atomic quad word support.
29363 (rs6000_opt_masks): Add -mquad-memory-atomic to the list of
29364 options printed with -mdebug=reg.
29366 * config/rs6000/rs6000.h (TARGET_SYNC_TI): Use
29367 -mquad-memory-atomic as the test for whether we have quad word
29368 atomic instructions.
29369 (TARGET_SYNC_HI_QI): If either -mquad-memory-atomic, -mquad-memory,
29370 or -mp8-vector are used, allow byte/half-word atomic operations.
29372 * config/rs6000/sync.md (load_lockedti): Insure that the address
29373 is a proper indexed or indirect address for the lqarx instruction.
29374 On little endian systems, swap the hi/lo registers after the lqarx
29376 (load_lockedpti): Use indexed_or_indirect_operand predicate to
29377 insure the address is valid for the lqarx instruction.
29378 (store_conditionalti): Insure that the address is a proper indexed
29379 or indirect address for the stqcrx. instruction. On little endian
29380 systems, swap the hi/lo registers before doing the stqcrx.
29382 (store_conditionalpti): Use indexed_or_indirect_operand predicate to
29383 insure the address is valid for the stqcrx. instruction.
29385 * gcc/config/rs6000/rs6000-c.c (rs6000_target_modify_macros):
29386 Define __QUAD_MEMORY__ and __QUAD_MEMORY_ATOMIC__ based on what
29387 type of quad memory support is available.
29389 2014-01-23 Vladimir Makarov <vmakarov@redhat.com>
29391 PR regression/59915
29392 * lra-constraints.c (simplify_operand_subreg): Spill pseudo if
29393 there is a danger of looping.
29395 2014-01-23 Pat Haugen <pthaugen@us.ibm.com>
29397 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
29398 force flag_ira_loop_pressure if set via command line.
29400 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29402 * config/aarch64/aarch64-simd-builtins.def (ashr): DI mode removed.
29403 (ashr_simd): New builtin handling DI mode.
29404 * config/aarch64/aarch64-simd.md (aarch64_ashr_simddi): New pattern.
29405 (aarch64_sshr_simddi): New match pattern.
29406 * config/aarch64/arm_neon.h (vshr_n_s32): Builtin call modified.
29407 (vshrd_n_s64): Likewise.
29408 * config/aarch64/predicates.md (aarch64_shift_imm64_di): New predicate.
29410 2014-01-23 Nick Clifton <nickc@redhat.com>
29412 * config/msp430/msp430.h (ASM_SPEC): Pass the -mcpu as -mcpu.
29413 (LIB_SPEC): Drop use of memory.ld and peripherals.ld scripts in
29414 favour of mcu specific scripts.
29415 * config/msp430/t-msp430 (MULTILIB_MATCHES): Add more matches for
29418 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29419 Alex Velenko <Alex.Velenko@arm.com>
29421 * config/aarch64/arm_neon.h (vaddv_s8): __LANE0 cleanup.
29422 (vaddv_s16): Likewise.
29423 (vaddv_s32): Likewise.
29424 (vaddv_u8): Likewise.
29425 (vaddv_u16): Likewise.
29426 (vaddv_u32): Likewise.
29427 (vaddvq_s8): Likewise.
29428 (vaddvq_s16): Likewise.
29429 (vaddvq_s32): Likewise.
29430 (vaddvq_s64): Likewise.
29431 (vaddvq_u8): Likewise.
29432 (vaddvq_u16): Likewise.
29433 (vaddvq_u32): Likewise.
29434 (vaddvq_u64): Likewise.
29435 (vaddv_f32): Likewise.
29436 (vaddvq_f32): Likewise.
29437 (vaddvq_f64): Likewise.
29438 (vmaxv_f32): Likewise.
29439 (vmaxv_s8): Likewise.
29440 (vmaxv_s16): Likewise.
29441 (vmaxv_s32): Likewise.
29442 (vmaxv_u8): Likewise.
29443 (vmaxv_u16): Likewise.
29444 (vmaxv_u32): Likewise.
29445 (vmaxvq_f32): Likewise.
29446 (vmaxvq_f64): Likewise.
29447 (vmaxvq_s8): Likewise.
29448 (vmaxvq_s16): Likewise.
29449 (vmaxvq_s32): Likewise.
29450 (vmaxvq_u8): Likewise.
29451 (vmaxvq_u16): Likewise.
29452 (vmaxvq_u32): Likewise.
29453 (vmaxnmv_f32): Likewise.
29454 (vmaxnmvq_f32): Likewise.
29455 (vmaxnmvq_f64): Likewise.
29456 (vminv_f32): Likewise.
29457 (vminv_s8): Likewise.
29458 (vminv_s16): Likewise.
29459 (vminv_s32): Likewise.
29460 (vminv_u8): Likewise.
29461 (vminv_u16): Likewise.
29462 (vminv_u32): Likewise.
29463 (vminvq_f32): Likewise.
29464 (vminvq_f64): Likewise.
29465 (vminvq_s8): Likewise.
29466 (vminvq_s16): Likewise.
29467 (vminvq_s32): Likewise.
29468 (vminvq_u8): Likewise.
29469 (vminvq_u16): Likewise.
29470 (vminvq_u32): Likewise.
29471 (vminnmv_f32): Likewise.
29472 (vminnmvq_f32): Likewise.
29473 (vminnmvq_f64): Likewise.
29475 2014-01-23 James Greenhalgh <james.greenhalgh@arm.com>
29477 * config/aarch64/aarch64-simd.md
29478 (aarch64_dup_lane<mode>): Correct lane number on big-endian.
29479 (aarch64_dup_lane_<vswap_widthi_name><mode>): Likewise.
29480 (*aarch64_mul3_elt<mode>): Likewise.
29481 (*aarch64_mul3_elt<vswap_width_name><mode>): Likewise.
29482 (*aarch64_mul3_elt_to_64v2df): Likewise.
29483 (*aarch64_mla_elt<mode>): Likewise.
29484 (*aarch64_mla_elt_<vswap_width_name><mode>): Likewise.
29485 (*aarch64_mls_elt<mode>): Likewise.
29486 (*aarch64_mls_elt_<vswap_width_name><mode>): Likewise.
29487 (*aarch64_fma4_elt<mode>): Likewise.
29488 (*aarch64_fma4_elt_<vswap_width_name><mode>): Likewise.
29489 (*aarch64_fma4_elt_to_64v2df): Likewise.
29490 (*aarch64_fnma4_elt<mode>): Likewise.
29491 (*aarch64_fnma4_elt_<vswap_width_name><mode>): Likewise.
29492 (*aarch64_fnma4_elt_to_64v2df): Likewise.
29493 (aarch64_sq<r>dmulh_lane<mode>): Likewise.
29494 (aarch64_sq<r>dmulh_laneq<mode>): Likewise.
29495 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29496 (aarch64_sqdml<SBINQOPS:as>l_lane<mode>_internal): Likewise.
29497 (aarch64_sqdml<SBINQOPS:as>l2_lane<mode>_internal): Likewise.
29498 (aarch64_sqdmull_lane<mode>_internal): Likewise.
29499 (aarch64_sqdmull2_lane<mode>_internal): Likewise.
29501 2013-01-23 Alex Velenko <Alex.Velenko@arm.com>
29503 * config/aarch64/aarch64-simd.md
29504 (aarch64_be_checked_get_lane<mode>): New define_expand.
29505 * config/aarch64/aarch64-simd-builtins.def
29506 (BUILTIN_VALL (GETLANE, be_checked_get_lane, 0)):
29507 New builtin definition.
29508 * config/aarch64/arm_neon.h: (__aarch64_vget_lane_any):
29509 Use new safe be builtin.
29511 2014-01-23 Alex Velenko <Alex.Velenko@arm.com>
29513 * config/aarch64/aarch64-simd.md (aarch64_be_ld1<mode>):
29515 (aarch64_be_st1<mode>): Likewise.
29516 (aarch_ld1<VALL:mode>): Define_expand modified.
29517 (aarch_st1<VALL:mode>): Likewise.
29518 * config/aarch64/aarch64.md (UNSPEC_LD1): New unspec definition.
29519 (UNSPEC_ST1): Likewise.
29521 2014-01-23 David Holsgrove <david.holsgrove@xilinx.com>
29523 * config/microblaze/microblaze.md: Add trap insn and attribute
29525 2014-01-23 Dodji Seketeli <dodji@redhat.com>
29527 PR preprocessor/58580
29528 * input.h (location_get_source_line): Take an additional line_size
29530 (void diagnostics_file_cache_fini): Declare new function.
29531 * input.c (struct fcache): New type.
29532 (fcache_tab_size, fcache_buffer_size, fcache_line_record_size):
29533 New static constants.
29534 (diagnostic_file_cache_init, total_lines_num)
29535 (lookup_file_in_cache_tab, evicted_cache_tab_entry)
29536 (add_file_to_cache_tab, lookup_or_add_file_to_cache_tab)
29537 (needs_read, needs_grow, maybe_grow, read_data, maybe_read_data)
29538 (get_next_line, read_next_line, goto_next_line, read_line_num):
29539 New static function definitions.
29540 (diagnostic_file_cache_fini): New function.
29541 (location_get_source_line): Take an additional output line_len
29542 parameter. Re-write using lookup_or_add_file_to_cache_tab and
29544 * diagnostic.c (diagnostic_finish): Call
29545 diagnostic_file_cache_fini.
29546 (adjust_line): Take an additional input parameter for the length
29547 of the line, rather than calculating it with strlen.
29548 (diagnostic_show_locus): Adjust the use of
29549 location_get_source_line and adjust_line with respect to their new
29550 signature. While displaying a line now, do not stop at the first
29551 null byte. Rather, display the zero byte as a space and keep
29552 going until we reach the size of the line.
29553 * Makefile.in: Add vec.o to OBJS-libcommon
29555 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29556 Ilya Tocar <ilya.tocar@intel.com>
29558 * config/i386/avx512fintrin.h (_mm512_kmov): New.
29559 * config/i386/i386.c (IX86_BUILTIN_KMOV16): Ditto.
29560 (__builtin_ia32_kmov16): Ditto.
29561 * config/i386/i386.md (UNSPEC_KMOV): New.
29564 2014-01-23 Kirill Yukhin <kirill.yukhin@intel.com>
29566 * config/i386/avx512fintrin.h (_mm512_loadu_si512): Rename.
29567 (_mm512_storeu_si512): Ditto.
29569 2014-01-23 Richard Sandiford <rdsandiford@googlemail.com>
29572 * rtl.h (get_referenced_operands): Declare.
29573 * recog.c (get_referenced_operands): New function.
29574 * config/mips/mips.c (mips_reorg_process_insns): Check which asm
29575 operands have been referenced when recording LO_SUM references.
29577 2014-01-22 David Holsgrove <david.holsgrove@xilinx.com>
29579 * config/microblaze/microblaze.md: Correct bswaphi2 insn.
29581 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29583 * config/i386/x86-tune.def (X86_TUNE_ACCUMULATE_OUTGOING_ARGS):
29584 Enable for generic and recent AMD targets.
29586 2014-01-22 Jan Hubicka <hubicka@ucw.cz>
29588 * combine-stack-adj.c (combine_stack_adjustments_for_block): Remove
29589 ARG_SIZE note when adjustment was eliminated.
29591 2014-01-22 Jeff Law <law@redhat.com>
29593 PR tree-optimization/59597
29594 * tree-ssa-threadupdate.c (dump_jump_thread_path): Move to earlier
29595 in file. Accept new argument REGISTERING and use it to modify
29596 dump output appropriately.
29597 (register_jump_thread): Corresponding changes.
29598 (mark_threaded_blocks): Reinstate code to cancel unprofitable
29599 thread paths involving joiner blocks. Add code to dump cancelled
29600 jump threading paths.
29602 2014-01-22 Vladimir Makarov <vmakarov@redhat.com>
29604 PR rtl-optimization/59477
29605 * lra-constraints.c (inherit_in_ebb): Process call for living hard
29606 regs. Update reloads_num and potential_reload_hard_regs for all insns.
29608 2014-01-22 Tom Tromey <tromey@redhat.com>
29610 * config/i386/i386-interix.h (i386_pe_unique_section): Don't use
29612 * config/cr16/cr16-protos.h (notice_update_cc): Don't use PARAMS.
29614 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29616 PR rtl-optimization/59896
29617 * lra-constraints.c (process_alt_operands): Check unused note for
29618 matched operands of insn with no output reloads.
29620 2014-01-21 Richard Sandiford <rdsandiford@googlemail.com>
29622 * config/mips/mips.c (mips_move_to_gpr_cost): Add M16_REGS case.
29623 (mips_move_from_gpr_cost): Likewise.
29625 2014-01-21 Vladimir Makarov <vmakarov@redhat.com>
29627 PR rtl-optimization/59858
29628 * lra-constraints.c (SMALL_REGISTER_CLASS_P): Use
29629 ira_class_hard_regs_num.
29630 (process_alt_operands): Increase reject for dying matched operand.
29632 2014-01-21 Jakub Jelinek <jakub@redhat.com>
29635 * config/i386/i386.c (expand_small_movmem_or_setmem): If mode is
29636 smaller than size, perform several stores or loads and stores
29637 at dst + count - size to store or copy all of size bytes, rather
29638 than just last modesize bytes.
29640 2014-01-20 DJ Delorie <dj@redhat.com>
29642 * config/rl78/rl78.c (rl78_propogate_register_origins): Verify
29643 that CLOBBERs are REGs before propogating their values.
29645 2014-01-20 H.J. Lu <hongjiu.lu@intel.com>
29647 PR middle-end/59789
29648 * cgraph.c (cgraph_inline_failed_string): Add type to DEFCIFCODE.
29649 (cgraph_inline_failed_type): New function.
29650 * cgraph.h (DEFCIFCODE): Add type.
29651 (cgraph_inline_failed_type_t): New enum.
29652 (cgraph_inline_failed_type): New prototype.
29653 * cif-code.def: Add CIF_FINAL_NORMAL to OK, FUNCTION_NOT_CONSIDERED,
29654 FUNCTION_NOT_OPTIMIZED, REDEFINED_EXTERN_INLINE,
29655 FUNCTION_NOT_INLINE_CANDIDATE, LARGE_FUNCTION_GROWTH_LIMIT,
29656 LARGE_STACK_FRAME_GROWTH_LIMIT, MAX_INLINE_INSNS_SINGLE_LIMIT,
29657 MAX_INLINE_INSNS_AUTO_LIMIT, INLINE_UNIT_GROWTH_LIMIT,
29658 RECURSIVE_INLINING, UNLIKELY_CALL, NOT_DECLARED_INLINED,
29659 OPTIMIZING_FOR_SIZE, ORIGINALLY_INDIRECT_CALL,
29660 INDIRECT_UNKNOWN_CALL, USES_COMDAT_LOCAL.
29661 Add CIF_FINAL_ERROR to UNSPECIFIED, BODY_NOT_AVAILABLE,
29662 FUNCTION_NOT_INLINABLE, OVERWRITABLE, MISMATCHED_ARGUMENTS,
29663 EH_PERSONALITY, NON_CALL_EXCEPTIONS, TARGET_OPTION_MISMATCH,
29664 OPTIMIZATION_MISMATCH.
29665 * tree-inline.c (expand_call_inline): Emit errors during
29666 early_inlining if cgraph_inline_failed_type returns CIF_FINAL_ERROR.
29668 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29671 * config/i386/sse.md (*andnot<mode>3<mask_name>): Handle MODE_V16SF
29672 mode attribute in insn output.
29674 2014-01-20 Eric Botcazou <ebotcazou@adacore.com>
29676 * output.h (output_constant): Delete.
29677 * varasm.c (output_constant): Make private.
29679 2014-01-20 Alex Velenko <Alex.Velenko@arm.com>
29681 * config/aarch64/aarch64-simd.md (vec_perm<mode>): Add BE check.
29683 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29685 PR middle-end/59860
29686 * tree.h (fold_builtin_strcat): New prototype.
29687 * builtins.c (fold_builtin_strcat): No longer static. Add len
29688 argument, if non-NULL, don't call c_strlen. Optimize
29689 directly into __builtin_memcpy instead of __builtin_strcpy.
29690 (fold_builtin_2): Adjust fold_builtin_strcat caller.
29691 * gimple-fold.c (gimple_fold_builtin): Handle BUILT_IN_STRCAT.
29693 2014-01-20 Uros Bizjak <ubizjak@gmail.com>
29695 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29696 for SImode_address_operand operands, having only a REG argument.
29698 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
29700 * config/aarch64/aarch64-linux.h (GLIBC_DYNAMIC_LINKER): Expand
29701 loader name using mbig-endian.
29702 (LINUX_TARGET_LINK_SPEC): Pass linker -m flag.
29704 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29706 * doc/invoke.texi (-march): Clarify documentation for AArch64.
29707 (-mtune): Likewise.
29710 2014-01-20 Tejas Belagod <tejas.belagod@arm.com>
29712 * config/aarch64/aarch64-protos.h
29713 (aarch64_cannot_change_mode_class_ptr): Declare.
29714 * config/aarch64/aarch64.c (aarch64_cannot_change_mode_class,
29715 aarch64_cannot_change_mode_class_ptr): New.
29716 * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Change to call
29717 backend hook aarch64_cannot_change_mode_class.
29719 2014-01-20 James Greenhalgh <james.greenhalgh@arm.com>
29721 * common/config/aarch64/aarch64-common.c
29722 (aarch64_handle_option): Don't handle any option order logic here.
29723 * config/aarch64/aarch64.c (aarch64_parse_arch): Do not override
29724 selected_cpu, warn on architecture version mismatch.
29725 (aarch64_override_options): Fix parsing order for option strings.
29727 2014-01-20 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29728 Iain Sandoe <iain@codesourcery.com>
29731 * config/rs6000/darwin.h (ADJUST_FIELD_ALIGN): Fix unused variable
29732 warning. Amend comment to reflect current functionality.
29734 2014-01-20 Richard Biener <rguenther@suse.de>
29736 PR middle-end/59860
29737 * builtins.c (fold_builtin_strcat): Remove case better handled
29738 by tree-ssa-strlen.c.
29740 2014-01-20 Alan Lawrence <alan.lawrence@arm.com>
29742 * config/aarch64/aarch64.opt
29743 (mcpu, march, mtune): Make case-insensitive.
29745 2014-01-20 Jakub Jelinek <jakub@redhat.com>
29748 * config/i386/i386.c (ix86_avoid_lea_for_addr): Return false
29749 if operands[1] is a REG or ZERO_EXTEND of a REG.
29751 2014-01-19 Jan Hubicka <hubicka@ucw.cz>
29753 * varasm.c (compute_reloc_for_constant): Use targetm.binds_local_p.
29755 2014-01-19 John David Anglin <danglin@gcc.gnu.org>
29757 * config/pa/pa.c (pa_attr_length_millicode_call): Correct length of
29758 long non-pic millicode calls.
29760 2014-01-19 Jan-Benedict Glaw <jbglaw@lug-owl.de>
29762 * config/vax/vax.h (FUNCTION_ARG_REGNO_P): Fix unused variable warning.
29764 2014-01-19 Kito Cheng <kito@0xlab.org>
29766 * builtins.c (expand_movstr): Check movstr expand done or fail.
29768 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29769 H.J. Lu <hongjiu.lu@intel.com>
29772 * config/i386/i386.md (*lea<mode>): Zero-extend return register
29773 to DImode for zero-extended addresses.
29775 2014-01-19 Jakub Jelinek <jakub@redhat.com>
29777 PR rtl-optimization/57763
29778 * bb-reorder.c (fix_crossing_unconditional_branches): Set JUMP_LABEL
29779 on the new indirect jump_insn and increment LABEL_NUSES (label).
29781 2014-01-18 H.J. Lu <hongjiu.lu@intel.com>
29785 * config.gcc (x86_archs): New variable.
29786 (x86_64_archs): Likewise.
29787 (x86_cpus): Likewise.
29788 Use $x86_archs, $x86_64_archs and $x86_cpus to check valid
29789 --with-arch/--with-cpu= options.
29790 Support --with-arch=/--with-cpu={nehalem,westmere,
29791 sandybridge,ivybridge,haswell,broadwell,bonnell,silvermont}.
29793 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29795 * config/i386/i386.c (ix86_adjust_cost): Reorder PROCESSOR_K8
29796 and PROCESSOR_ATHLON to simplify code. Move "memory" calculation.
29798 2014-01-18 Uros Bizjak <ubizjak@gmail.com>
29800 * config/i386/i386.md (*swap<mode>): Rename from swap<mode>.
29802 2014-01-18 Jakub Jelinek <jakub@redhat.com>
29805 * config/i386/i386-c.c (ix86_pragma_target_parse): Temporarily
29806 clear cpp_get_options (parse_in)->warn_unused_macros for
29807 ix86_target_macros_internal with cpp_define.
29809 2014-01-18 Richard Sandiford <rdsandiford@googlemail.com>
29811 * jump.c (delete_related_insns): Keep (use (insn))s.
29812 * reorg.c (redundant_insn): Check for barriers too.
29814 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29816 * config/i386/i386.c (ix86_split_lea_for_addr): Fix a comment typo.
29818 2014-01-17 John David Anglin <danglin@gcc.gnu.org>
29820 * config/pa/pa.c (pa_attr_length_indirect_call): Don't output a short
29821 call to $$dyncall when TARGET_LONG_CALLS is true.
29823 2014-01-17 Jeff Law <law@redhat.com>
29825 * ree.c (combine_set_extension): Temporarily disable test for
29826 changing number of hard registers.
29828 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29830 PR middle-end/58125
29831 * ipa-inline-analysis.c (inline_free_summary):
29832 Do not free summary of aliases.
29834 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29836 PR middle-end/59706
29837 * gimplify.c (gimplify_expr): Use create_tmp_var
29838 instead of create_tmp_var_raw. If cond doesn't have
29839 integral type, don't add the IFN_ANNOTATE builtin at all.
29841 2014-01-17 Martin Jambor <mjambor@suse.cz>
29844 * ipa-cp.c (prev_edge_clone): New variable.
29845 (grow_next_edge_clone_vector): Renamed to grow_edge_clone_vectors.
29846 Also resize prev_edge_clone vector.
29847 (ipcp_edge_duplication_hook): Also update prev_edge_clone.
29848 (ipcp_edge_removal_hook): New function.
29849 (ipcp_driver): Register ipcp_edge_removal_hook.
29851 2014-01-17 Andrew Pinski <apinski@cavium.com>
29852 Steve Ellcey <sellcey@mips.com>
29855 * config/mips/mips.c (mips_print_operand): Check operand mode instead
29858 2014-01-17 Jeff Law <law@redhat.com>
29860 PR middle-end/57904
29861 * passes.def: Reorder pass_copy_prop, pass_unrolli, pass_ccp sequence
29862 so that pass_ccp runs first.
29864 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29866 * config/i386/i386.c (ix86_lea_outperforms): Use TARGET_XXX.
29867 (ix86_adjust_cost): Use !TARGET_XXX.
29868 (do_reorder_for_imul): Likewise.
29869 (swap_top_of_ready_list): Likewise.
29870 (ix86_sched_reorder): Likewise.
29872 2014-01-17 H.J. Lu <hongjiu.lu@intel.com>
29874 * config/i386/i386-c.c (ix86_target_macros_internal): Handle
29875 PROCESSOR_INTEL. Treat like PROCESSOR_GENERIC.
29876 * config/i386/i386.c (intel_memcpy): New. Duplicate slm_memcpy.
29877 (intel_memset): New. Duplicate slm_memset.
29878 (intel_cost): New. Duplicate slm_cost.
29879 (m_INTEL): New macro.
29880 (processor_target_table): Add "intel".
29881 (ix86_option_override_internal): Replace PROCESSOR_SILVERMONT
29882 with PROCESSOR_INTEL for "intel".
29883 (ix86_lea_outperforms): Support PROCESSOR_INTEL. Duplicate
29884 PROCESSOR_SILVERMONT.
29885 (ix86_issue_rate): Likewise.
29886 (ix86_adjust_cost): Likewise.
29887 (ia32_multipass_dfa_lookahead): Likewise.
29888 (swap_top_of_ready_list): Likewise.
29889 (ix86_sched_reorder): Likewise.
29890 (ix86_avoid_lea_for_addr): Check TARGET_AVOID_LEA_FOR_ADDR
29891 instead of TARGET_OPT_AGU.
29892 * config/i386/i386.h (TARGET_INTEL): New.
29893 (TARGET_AVOID_LEA_FOR_ADDR): Likewise.
29894 (processor_type): Add PROCESSOR_INTEL.
29895 * config/i386/x86-tune.def: Support m_INTEL. Duplicate m_SILVERMONT.
29896 Add X86_TUNE_AVOID_LEA_FOR_ADDR.
29898 2014-01-17 Marek Polacek <polacek@redhat.com>
29901 * gimple-fold.c (fold_array_ctor_reference): Don't fold if element
29904 2014-01-17 Richard Biener <rguenther@suse.de>
29906 PR tree-optimization/46590
29907 * opts.c (default_options_table): Add entries for
29908 OPT_fbranch_count_reg, OPT_fmove_loop_invariants and OPT_ftree_pta,
29909 all enabled at -O1 but not for -Og.
29910 * common.opt (fbranch-count-reg): Remove Init(1).
29911 (fmove-loop-invariants): Likewise.
29912 (ftree-pta): Likewise.
29914 2014-01-17 Jakub Jelinek <jakub@redhat.com>
29916 * config/i386/i386.c (ix86_data_alignment): For compatibility with
29917 (incorrect) GCC 4.8 and earlier alignment assumptions ensure we align
29918 decls to at least the GCC 4.8 used alignments.
29921 * tree-nested.c (convert_nonlocal_reference_stmt,
29922 convert_local_reference_stmt): For NAMELIST_DECLs in gimple_bind_vars
29923 of GIMPLE_BIND stmts, adjust associated decls.
29925 2014-01-17 Richard Biener <rguenther@suse.de>
29927 PR tree-optimization/46590
29928 * vec.h (vec<>::bseach): New member function implementing
29929 binary search according to C89 bsearch.
29930 (vec<>::qsort): Avoid calling ::qsort for vectors with sizes 0 or 1.
29931 * tree-ssa-loop-im.c (struct mem_ref): Make stored member a
29932 bitmap pointer again. Make accesses_in_loop a flat array.
29933 (mem_ref_obstack): New global.
29934 (outermost_indep_loop): Adjust for mem_ref->stored changes.
29935 (mark_ref_stored): Likewise.
29936 (ref_indep_loop_p_2): Likewise.
29937 (set_ref_stored_in_loop): New helper function.
29938 (mem_ref_alloc): Allocate mem_refs on the mem_ref_obstack obstack.
29939 (memref_free): Adjust.
29940 (record_mem_ref_loc): Simplify.
29941 (gather_mem_refs_stmt): Adjust.
29942 (sort_locs_in_loop_postorder_cmp): New function.
29943 (analyze_memory_references): Sort accesses_in_loop after
29944 loop postorder number.
29945 (find_ref_loc_in_loop_cmp): New function.
29946 (for_all_locs_in_loop): Find relevant cluster of locs in
29947 accesses_in_loop and iterate without recursion.
29948 (execute_sm): Avoid uninit warning.
29949 (struct ref_always_accessed): Simplify.
29950 (ref_always_accessed::operator ()): Likewise.
29951 (ref_always_accessed_p): Likewise.
29952 (tree_ssa_lim_initialize): Initialize mem_ref_obstack, compute
29953 loop postorder numbers here.
29954 (tree_ssa_lim_finalize): Free mem_ref_obstack and loop postorder
29957 2014-01-17 Jan Hubicka <hubicka@ucw.cz>
29960 * passes.c (rest_of_decl_compilation): Don't call varpool_finalize_decl
29961 on decls for which assemble_alias has been called.
29963 2014-01-17 Nick Clifton <nickc@redhat.com>
29965 * config/msp430/msp430.opt: (mcpu): New option.
29966 * config/msp430/msp430.c (msp430_mcu_name): Use target_mcu.
29967 (msp430_option_override): Parse target_cpu. If the MCU name
29968 matches a generic string, clear target_mcu.
29969 (msp430_attr): Allow numeric interrupt values up to 63.
29970 (msp430_expand_epilogue): No longer invert operand 1 of gen_popm.
29971 * config/msp430/msp430.h (ASM_SPEC): Convert -mcpu into a -mmcu
29973 * config/msp430/t-msp430: (MULTILIB_MATCHES): Remove mcu matches.
29975 * config/msp430/msp430.md (popm): Use %J rather than %I.
29976 (addsi3): Use msp430_nonimmediate_operand for operand 2.
29977 (addhi_cy_i): Use immediate_operand for operand 2.
29978 * doc/invoke.texi: Document -mcpu option.
29980 2014-01-17 Richard Biener <rguenther@suse.de>
29982 PR rtl-optimization/38518
29983 * df.h (df_analyze_loop): Declare.
29984 * df-core.c: Include cfgloop.h.
29985 (df_analyze_1): Split out main part of df_analyze.
29986 (df_analyze): Adjust.
29987 (loop_inverted_post_order_compute): New function.
29988 (loop_post_order_compute): Likewise.
29989 (df_analyze_loop): New function avoiding whole-function
29990 postorder computes.
29991 * loop-invariant.c (find_defs): Use df_analyze_loop.
29992 (find_invariants): Adjust.
29993 * loop-iv.c (iv_analysis_loop_init): Use df_analyze_loop.
29995 2014-01-17 Zhenqiang Chen <zhenqiang.chen@arm.com>
29997 * config/arm/arm.c (arm_v7m_tune): Set max_insns_skipped to 2.
29998 (thumb2_final_prescan_insn): Set max to MAX_INSN_PER_IT_BLOCK.
30000 2014-01-16 Ilya Enkovich <ilya.enkovich@intel.com>
30002 * ipa-ref.c (ipa_remove_stmt_references): Fix references
30003 traversal when removing references.
30005 2014-01-16 Jan Hubicka <hubicka@ucw.cz>
30008 * tree.c (get_binfo_at_offset): Look harder for virtual bases.
30010 2014-01-16 Bernd Schmidt <bernds@codesourcery.com>
30012 PR middle-end/56791
30013 * reload.c (find_reloads_address_1): Do not use RELOAD_OTHER when
30014 pushing a reload for an autoinc when we had previously reloaded an
30015 inner part of the address.
30017 2014-01-16 Jakub Jelinek <jakub@redhat.com>
30019 * tree-vectorizer.h (struct _loop_vec_info): Add no_data_dependencies
30021 (LOOP_VINFO_NO_DATA_DEPENDENCIES): Define.
30022 * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Clear it
30023 when not giving up or versioning for alias only because of
30025 (vect_analyze_data_ref_dependences): Set to true.
30026 * tree-vect-stmts.c (hoist_defs_of_uses): Return false if def_stmt
30028 (vectorizable_load): Use LOOP_VINFO_NO_DATA_DEPENDENCIES instead of
30029 LOOP_REQUIRES_VERSIONING_FOR_ALIAS, add && !nested_in_vect_loop
30032 PR middle-end/58344
30033 * expr.c (expand_expr_real_1): Handle init == NULL_TREE.
30036 * config/i386/i386.c (ix86_expand_builtin): If target doesn't satisfy
30037 operand 0 predicate for gathers, use a new pseudo as subtarget.
30039 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30041 PR middle-end/59609
30042 * lra-constraints.c (process_alt_operands): Add printing debug info.
30043 Check absence of input/output reloads for matched operands too.
30045 2014-01-16 Vladimir Makarov <vmakarov@redhat.com>
30047 PR rtl-optimization/59835
30048 * ira.c (ira_init_register_move_cost): Increase cost for
30051 2014-01-16 Alan Lawrence <alan.lawrence@arm.com>
30053 * config/arm/arm.opt (mcpu, march, mtune): Make case-insensitive.
30055 2014-01-16 Richard Earnshaw <rearnsha@arm.com>
30058 * aarch64.c (aarch64_split_128bit_move): Don't lookup REGNO on
30059 non-register objects. Use gen_(high/low)part more consistently.
30062 2014-01-16 Michael Meissner <meissner@linux.vnet.ibm.com>
30065 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Add little
30066 endian support, remove tests for WORDS_BIG_ENDIAN.
30067 (p8_mfvsrd_3_<mode>): Likewise.
30068 (reload_gpr_from_vsx<mode>): Likewise.
30069 (reload_gpr_from_vsxsf): Likewise.
30070 (p8_mfvsrd_4_disf): Likewise.
30072 2014-01-16 Richard Biener <rguenther@suse.de>
30074 PR rtl-optimization/46590
30075 * lcm.c (compute_antinout_edge): Use postorder iteration.
30076 (compute_laterin): Use inverted postorder iteration.
30078 2014-01-16 Nick Clifton <nickc@redhat.com>
30080 PR middle-end/28865
30081 * varasm.c (output_constant): Return the number of bytes actually
30083 (output_constructor_array_range): Update the field size with the
30084 number of bytes emitted by output_constant.
30085 (output_constructor_regular_field): Likewise. Also do not
30086 complain if the total number of bytes emitted is now greater
30087 than the expected fieldpos.
30088 * output.h (output_constant): Update prototype and descriptive comment.
30090 2014-01-16 Marek Polacek <polacek@redhat.com>
30092 PR middle-end/59827
30093 * cgraph.c (gimple_check_call_args): Don't use DECL_ARG_TYPE if
30094 it is error_mark_node.
30096 2014-01-15 Uros Bizjak <ubizjak@gmail.com>
30098 * config/i386/i386.c (ix86_hard_regno_mode_ok): Use
30099 VALID_AVX256_REG_OR_OI_MODE.
30101 2014-01-15 Pat Haugen <pthaugen@us.ibm.com>
30103 * config/rs6000/rs6000.c (rs6000_output_function_prologue): Check if
30104 current procedure should be profiled.
30106 2014-01-15 Andrew Pinski <apinski@cavium.com>
30108 * config/aarch64/aarch64.c (aarch64_register_move_cost): Correct cost
30109 of moving from/to the STACK_REG register class.
30111 2014-01-15 Richard Henderson <rth@redhat.com>
30114 * reginfo.c (global_regs_decl): Globalize.
30115 * rtl.h (global_regs_decl): Declare.
30116 * ira.c (do_reload): Diagnose frame_pointer_needed and it
30117 reserved via global_regs.
30119 2014-01-15 Teresa Johnson <tejohnson@google.com>
30121 * tree-ssa-sccvn.c (visit_reference_op_call): Handle NULL vdef.
30123 2014-01-15 Bill Schmidt <wschmidt@vnet.linux.ibm.com>
30125 * config/rs6000/altivec.md (mulv8hi3): Explicitly generate vmulesh
30126 and vmulosh rather than call gen_vec_widen_smult_*.
30127 (vec_widen_umult_even_v16qi): Test VECTOR_ELT_ORDER_BIG rather
30128 than BYTES_BIG_ENDIAN to determine use of even or odd instruction.
30129 (vec_widen_smult_even_v16qi): Likewise.
30130 (vec_widen_umult_even_v8hi): Likewise.
30131 (vec_widen_smult_even_v8hi): Likewise.
30132 (vec_widen_umult_odd_v16qi): Likewise.
30133 (vec_widen_smult_odd_v16qi): Likewise.
30134 (vec_widen_umult_odd_v8hi): Likewise.
30135 (vec_widen_smult_odd_v8hi): Likewise.
30136 (vec_widen_umult_hi_v16qi): Explicitly generate vmuleub and
30137 vmuloub rather than call gen_vec_widen_umult_*.
30138 (vec_widen_umult_lo_v16qi): Likewise.
30139 (vec_widen_smult_hi_v16qi): Explicitly generate vmulesb and
30140 vmulosb rather than call gen_vec_widen_smult_*.
30141 (vec_widen_smult_lo_v16qi): Likewise.
30142 (vec_widen_umult_hi_v8hi): Explicitly generate vmuleuh and vmulouh
30143 rather than call gen_vec_widen_umult_*.
30144 (vec_widen_umult_lo_v8hi): Likewise.
30145 (vec_widen_smult_hi_v8hi): Explicitly gnerate vmulesh and vmulosh
30146 rather than call gen_vec_widen_smult_*.
30147 (vec_widen_smult_lo_v8hi): Likewise.
30149 2014-01-15 Jeff Law <law@redhat.com>
30151 PR tree-optimization/59747
30152 * ree.c (find_and_remove_re): Properly handle case where a second
30153 eliminated extension requires widening a copy created for elimination
30154 of a prior extension.
30155 (combine_set_extension): Ensure that the number of hard regs needed
30156 for a destination register does not change when we widen it.
30158 2014-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
30160 * config.gcc (*-*-rtems*): Add t-rtems to tmake_file.
30161 (arm*-*-uclinux*eabi*): Do not override an existing tmake_file.
30162 (arm*-*-eabi* | arm*-*-symbianelf* | arm*-*-rtems*): Likwise.
30163 (arm*-*-rtems*): Use t-rtems from existing tmake_file.
30164 (avr-*-rtems*): Likewise.
30165 (bfin*-rtems*): Likewise.
30166 (moxie-*-rtems*): Likewise.
30167 (h8300-*-rtems*): Likewise.
30168 (i[34567]86-*-rtems*): Likewise.
30169 (lm32-*-rtems*): Likewise.
30170 (m32r-*-rtems*): Likewise.
30171 (m68k-*-rtems*): Likewise.
30172 (microblaze*-*-rtems*): Likewise.
30173 (mips*-*-rtems*): Likewise.
30174 (powerpc-*-rtems*): Likewise.
30175 (sh-*-rtems*): Likewise.
30176 (sparc-*-rtems*): Likewise.
30177 (sparc64-*-rtems*): Likewise.
30178 (v850-*-rtems*): Likewise.
30179 (m32c-*-rtems*): Likewise.
30181 2014-01-15 Vladimir Makarov <vmakarov@redhat.com>
30183 PR rtl-optimization/59511
30184 * ira.c (ira_init_register_move_cost): Use memory costs for some
30185 cases of register move cost calculations.
30186 * lra-constraints.c (lra_constraints): Use REG_FREQ_FROM_BB
30187 instead of BB frequency.
30188 * lra-coalesce.c (move_freq_compare_func, lra_coalesce): Ditto.
30189 * lra-assigns.c (find_hard_regno_for): Ditto.
30191 2014-01-15 Richard Biener <rguenther@suse.de>
30193 PR tree-optimization/59822
30194 * tree-vect-stmts.c (hoist_defs_of_uses): New function.
30195 (vectorizable_load): Use it to hoist defs of uses of invariant
30196 loads out of the loop.
30198 2014-01-15 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
30199 Kugan Vivekanandarajah <kuganv@linaro.org>
30202 * config/aarch64/aarch64.c (aarch64_build_constant): Fix incorrect
30205 2014-01-15 Richard Biener <rguenther@suse.de>
30207 PR rtl-optimization/59802
30208 * lcm.c (compute_available): Use inverted postorder to seed
30209 the initial worklist.
30211 2014-01-15 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30214 * config/s390/s390.c (s390_preferred_reload_class): Don't return
30215 ADDR_REGS for invalid symrefs in non-PIC code.
30217 2014-01-15 Jakub Jelinek <jakub@redhat.com>
30220 * builtins.c (determine_block_size): Initialize *probable_max_size
30221 even if len_rtx is CONST_INT.
30223 2014-01-14 Andrew Pinski <apinski@cavium.com>
30225 * config/aarch64/aarch64-protos.h (tune_params): Add issue_rate.
30226 * config/aarch64/aarch64.c (generic_tunings): Add issue rate of 2.
30227 (cortexa53_tunings): Likewise.
30228 (aarch64_sched_issue_rate): New function.
30229 (TARGET_SCHED_ISSUE_RATE): Define.
30231 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30233 * ira-costs.c (find_costs_and_classes): Add missed
30234 ira_init_register_move_cost_if_necessary.
30236 2014-01-14 Vladimir Makarov <vmakarov@redhat.com>
30239 * config/arm/arm.c (arm_coproc_mem_operand): Add lra_in_progress.
30241 2014-01-14 H.J. Lu <hongjiu.lu@intel.com>
30244 * config/i386/i386.c (type_natural_mode): Add a bool parameter
30245 to indicate if type is used for function return value. Warn ABI
30246 change if the vector mode isn't available for function return value.
30247 (ix86_function_arg_advance): Pass false to type_natural_mode.
30248 (ix86_function_arg): Likewise.
30249 (ix86_gimplify_va_arg): Likewise.
30250 (function_arg_32): Don't warn ABI change.
30251 (ix86_function_value): Pass true to type_natural_mode.
30252 (ix86_return_in_memory): Likewise.
30253 (ix86_struct_value_rtx): Removed.
30254 (TARGET_STRUCT_VALUE_RTX): Likewise.
30256 2014-01-14 Richard Sandiford <rsandifo@linux.vnet.ibm.com>
30258 * jump.c (redirect_jump_2): Remove REG_CROSSING_JUMP notes when
30259 converting a conditional jump into a conditional return.
30261 2014-01-14 Richard Biener <rguenther@suse.de>
30263 PR tree-optimization/58921
30264 PR tree-optimization/59006
30265 * tree-vect-loop-manip.c (vect_loop_versioning): Remove code
30266 hoisting invariant stmts.
30267 * tree-vect-stmts.c (vectorizable_load): Insert the splat of
30268 invariant loads on the preheader edge if possible.
30270 2014-01-14 Joey Ye <joey.ye@arm.com>
30272 * doc/plugin.texi (Building GCC plugins): Update to C++.
30274 2014-01-14 Kirill Yukhin <kirill.yukhin@intel.com>
30276 * config/i386/avx512erintrin.h (_mm_rcp28_round_sd): New.
30277 (_mm_rcp28_round_ss): Ditto.
30278 (_mm_rsqrt28_round_sd): Ditto.
30279 (_mm_rsqrt28_round_ss): Ditto.
30280 (_mm_rcp28_sd): Ditto.
30281 (_mm_rcp28_ss): Ditto.
30282 (_mm_rsqrt28_sd): Ditto.
30283 (_mm_rsqrt28_ss): Ditto.
30284 * config/i386/avx512fintrin.h (_mm512_stream_load_si512): Ditto.
30285 * config/i386/i386-builtin-types.def (V8DI_FTYPE_PV8DI): Ditto.
30286 * config/i386/i386.c (IX86_BUILTIN_MOVNTDQA512): Ditto.
30287 (IX86_BUILTIN_RCP28SD): Ditto.
30288 (IX86_BUILTIN_RCP28SS): Ditto.
30289 (IX86_BUILTIN_RSQRT28SD): Ditto.
30290 (IX86_BUILTIN_RSQRT28SS): Ditto.
30291 (bdesc_special_args): Define __builtin_ia32_movntdqa512,
30292 __builtin_ia32_rcp28sd_round, __builtin_ia32_rcp28ss_round,
30293 __builtin_ia32_rsqrt28sd_round, __builtin_ia32_rsqrt28ss_round.
30294 (ix86_expand_special_args_builtin): Expand new FTYPE.
30295 * config/i386/sse.md (define_mode_attr "sse4_1_avx2"): Expand to V8DI.
30296 (srcp14<mode>): Make insn unary.
30297 (avx512f_vmscalef<mode><round_name>): Use substed predicate.
30298 (avx512f_sgetexp<mode><round_saeonly_name>): Ditto.
30299 (avx512f_rndscale<mode><round_saeonly_name>): Ditto.
30300 (<sse4_1_avx2>_movntdqa): Extend to 512 bits.
30301 (avx512er_exp2<mode><mask_name><round_saeonly_name>):
30302 Fix rounding: make it SAE only.
30303 (<mask_codefor>avx512er_rcp28<mode><mask_name><round_saeonly_name>):
30305 (<mask_codefor>avx512er_rsqrt28<mode><mask_name><round_saeonly_name>):
30307 (avx512er_vmrcp28<mode><round_saeonly_name>): Ditto.
30308 (avx512er_vmrsqrt28<mode><round_saeonly_name>): Ditto.
30309 (avx512f_getmant<mode><mask_name><round_saeonly_name>): Ditto.
30310 * config/i386/subst.md (round_saeonly_mask_scalar_operand3): Remove.
30311 (round_saeonly_mask_scalar_operand4): Ditto.
30312 (round_saeonly_mask_scalar_op3): Ditto.
30313 (round_saeonly_mask_scalar_op4): Ditto.
30315 2014-01-13 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30317 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
30318 Implement -maltivec=be for vec_insert and vec_extract.
30320 2014-01-10 DJ Delorie <dj@redhat.com>
30322 * config/msp430/msp430.md (call_internal): Don't allow memory
30323 references with SP as the base register.
30324 (call_value_internal): Likewise.
30325 * config/msp430/constraints.md (Yc): New. For memory references
30326 that don't use SP as a base register.
30328 * config/msp430/msp430.c (msp430_print_operand): Add 'J' to mean
30329 "an integer without a # prefix"
30330 * config/msp430/msp430.md (epilogue_helper): Use it.
30332 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30335 * config/i386/i386.c (ix86_vectorize_builtin_gather): Uncomment
30336 AVX512F gather builtins.
30337 * tree-vect-stmts.c (vectorizable_mask_load_store): For now punt
30338 on gather decls with INTEGER_TYPE masktype.
30339 (vectorizable_load): For INTEGER_TYPE masktype, put the INTEGER_CST
30340 directly into the builtin rather than hoisting it before loop.
30342 PR tree-optimization/59387
30343 * tree-scalar-evolution.c: Include gimple-fold.h and gimplify-me.h.
30344 (scev_const_prop): If folded_casts and type has undefined overflow,
30345 use force_gimple_operand instead of force_gimple_operand_gsi and
30346 for each added stmt if it is assign with
30347 arith_code_with_undefined_signed_overflow, call
30348 rewrite_to_defined_overflow.
30349 * tree-ssa-loop-im.c: Don't include gimplify-me.h, include
30350 gimple-fold.h instead.
30351 (arith_code_with_undefined_signed_overflow,
30352 rewrite_to_defined_overflow): Moved to ...
30353 * gimple-fold.c (arith_code_with_undefined_signed_overflow,
30354 rewrite_to_defined_overflow): ... here. No longer static.
30355 Include gimplify-me.h.
30356 * gimple-fold.h (arith_code_with_undefined_signed_overflow,
30357 rewrite_to_defined_overflow): New prototypes.
30359 2014-01-13 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30361 * config/arm/arm.h (MAX_CONDITIONAL_EXECUTE): Fix typo in description.
30363 2014-01-13 Eric Botcazou <ebotcazou@adacore.com>
30365 * builtins.c (get_object_alignment_2): Minor tweak.
30366 * tree-ssa-loop-ivopts.c (may_be_unaligned_p): Rewrite.
30368 2014-01-13 Christian Bruel <christian.bruel@st.com>
30370 * config/sh/sh-mem.cc (sh_expand_cmpnstr): Unroll small sizes and
30371 optimized non constant lengths.
30373 2014-01-13 Jakub Jelinek <jakub@redhat.com>
30376 * omp-low.c (expand_omp_atomic_pipeline): Expand the initial
30377 load as __atomic_load_N if possible.
30379 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30381 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): Remove
30383 (rs6000_expand_builtin): Adjust call.
30385 2014-01-11 David Edelsohn <dje.gcc@gmail.com>
30388 * config/rs6000/rs6000.h (SWITCHABLE_TARGET): Define.
30389 * config/rs6000/rs6000.c: Include target-globals.h.
30390 (rs6000_set_current_function): Instead of doing target_reinit
30391 unconditionally, use save_target_globals_default_opts and
30392 restore_target_globals.
30394 * config/rs6000/rs6000-builtin.def (mffs, mtfsf): Add builtins for
30396 * config/rs6000/rs6000.c (rs6000_expand_mtfsf_builtin): New.
30397 (rs6000_expand_builtin): Handle mffs and mtfsf.
30398 (rs6000_init_builtins): Define mffs and mtfsf.
30399 * config/rs6000/rs6000.md (UNSPECV_MFFS, UNSPECV_MTFSF): New constants.
30400 (rs6000_mffs): New pattern.
30401 (rs6000_mtfsf): New pattern.
30403 2014-01-11 Bin Cheng <bin.cheng@arm.com>
30405 * tree-ssa-loop-ivopts.c (iv_ca_narrow): New parameter.
30406 Start narrowing with START. Apply candidate-use pair
30407 and check overall cost in narrowing.
30408 (iv_ca_prune): Pass new argument.
30410 2014-01-10 Jeff Law <law@redhat.com>
30412 PR middle-end/59743
30413 * ree.c (combine_reaching_defs): Ensure the defining statement
30414 occurs before the extension when optimizing extensions with
30415 different source and destination hard registers.
30417 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30420 * ipa-devirt.c (build_type_inheritance_graph): Also add types of
30421 vtables into the type inheritance graph.
30423 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30425 PR rtl-optimization/59754
30426 * ree.c (combine_reaching_defs): Disallow !SCALAR_INT_MODE_P
30427 modes in the REGNO != REGNO case.
30429 2014-01-10 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30431 * config/rs6000/rs6000-builtin.def: Fix pasto for VPKSDUS.
30433 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30435 PR tree-optimization/59745
30436 * tree-predcom.c (tree_predictive_commoning_loop): Call
30437 free_affine_expand_cache if giving up because components is NULL.
30439 * target-globals.c (save_target_globals): Allocate < 4KB structs using
30440 GC in payload of target_globals struct instead of allocating them on
30441 the heap and the larger structs separately using GC.
30442 * target-globals.h (struct target_globals): Make regs, hard_regs,
30443 reload, expmed, ira, ira_int and lra_fields GTY((atomic)) instead
30444 of GTY((skip)) and change type to void *.
30445 (reset_target_globals): Cast loads from those fields to corresponding
30448 2014-01-10 Steve Ellcey <sellcey@mips.com>
30451 * Makefile.in (PLUGIN_HEADERS): Add gimplify.h, gimple-iterator.h,
30452 gimple-ssa.h, fold-const.h, tree-cfg.h, tree-into-ssa.h,
30453 tree-ssanames.h, print-tree.h, varasm.h, and context.h.
30455 2014-01-10 Richard Earnshaw <rearnsha@arm.com>
30458 * aarch64-modes.def (CC_Zmode): New flags mode.
30459 * aarch64.c (aarch64_select_cc_mode): Only allow NEG when the condition
30460 represents an equality.
30461 (aarch64_get_condition_code): Handle CC_Zmode.
30462 * aarch64.md (compare_neg<mode>): Restrict to equality operations.
30464 2014-01-10 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
30466 * config/s390/s390.c (s390_expand_tbegin): Remove jump over CC
30467 extraction in good case.
30469 2014-01-10 Richard Biener <rguenther@suse.de>
30471 PR tree-optimization/59374
30472 * tree-vect-slp.c (vect_slp_analyze_bb_1): Move dependence
30473 checking after SLP discovery. Mark stmts not participating
30474 in any SLP instance properly.
30476 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30478 * config/arm/arm.c (arm_new_rtx_costs): Use destination mode
30479 when handling a SET rtx.
30481 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30483 * config/arm/arm-cores.def (cortex-a53): Specify FL_CRC32.
30484 (cortex-a57): Likewise.
30485 (cortex-a57.cortex-a53): Likewise. Remove redundant flags.
30487 2014-01-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
30489 * config/arm/arm.c (arm_init_iwmmxt_builtins): Skip
30490 non-iwmmxt builtins.
30492 2014-01-10 Jan Hubicka <hubicka@ucw.cz>
30496 * ipa-devirt.c record_target_from_binfo): Take as argument
30497 stack of binfos and lookup matching one for virtual inheritance.
30498 (possible_polymorphic_call_targets_1): Update.
30500 2014-01-10 Huacai Chen <chenhc@lemote.com>
30502 * config/mips/driver-native.c (host_detect_local_cpu): Handle new
30503 kernel strings for Loongson-2E/2F/3A.
30505 2014-01-10 Jakub Jelinek <jakub@redhat.com>
30507 PR middle-end/59670
30508 * tree-vect-data-refs.c (vect_analyze_data_refs): Check
30509 is_gimple_call before calling gimple_call_internal_p.
30511 2014-01-09 Steve Ellcey <sellcey@mips.com>
30513 * Makefile.in (TREE_FLOW_H): Remove.
30514 (TREE_SSA_H): Add file names from tree-flow.h.
30515 * doc/tree-ssa.texi (Annotations): Remove reference to tree-flow.h
30516 * tree.h: Remove tree-flow.h reference.
30517 * hash-table.h: Remove tree-flow.h reference.
30518 * tree-ssa-loop-niter.c (dump_affine_iv): Replace tree-flow.h
30519 reference with tree-ssa-loop.h.
30521 2014-01-09 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30523 * doc/invoke.texi: Add -maltivec={be,le} options, and document
30524 default element-order behavior for -maltivec.
30525 * config/rs6000/rs6000.opt: Add -maltivec={be,le} options.
30526 * config/rs6000/rs6000.c (rs6000_option_override_internal): Ensure
30527 that -maltivec={le,be} implies -maltivec; disallow -maltivec=le
30528 when targeting big endian, at least for now.
30529 * config/rs6000/rs6000.h: Add #define of VECTOR_ELT_ORDER_BIG.
30531 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30533 PR middle-end/47735
30534 * cfgexpand.c (expand_one_var): For SSA_NAMEs, if the underlying
30535 var satisfies use_register_for_decl, just take into account type
30536 alignment, rather than decl alignment.
30538 PR tree-optimization/59622
30539 * gimple-fold.c (gimple_fold_call): Fix a typo in message. For
30540 __builtin_unreachable replace the OBJ_TYPE_REF call with a call to
30541 __builtin_unreachable and add if needed a setter of the lhs SSA_NAME.
30542 Don't devirtualize for inplace at all. For targets.length () == 1,
30543 if the call is noreturn and cfun isn't in SSA form yet, clear lhs.
30545 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30547 * config/i386/i386.md (cpu): Remove the unused btver1.
30549 2014-01-09 H.J. Lu <hongjiu.lu@intel.com>
30551 * gdbasan.in: Put a breakpoint on __sanitizer::Report.
30553 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30556 * tree-core.h (struct target_globals): New forward declaration.
30557 (struct tree_target_option): Add globals field.
30558 * tree.h (TREE_TARGET_GLOBALS): Define.
30559 (prepare_target_option_nodes_for_pch): New prototype.
30560 * target-globals.h (struct target_globals): Define even if
30561 !SWITCHABLE_TARGET.
30562 * tree.c (prepare_target_option_node_for_pch,
30563 prepare_target_option_nodes_for_pch): New functions.
30564 * config/i386/i386.h (SWITCHABLE_TARGET): Define.
30565 * config/i386/i386.c: Include target-globals.h.
30566 (ix86_set_current_function): Instead of doing target_reinit
30567 unconditionally, use save_target_globals_default_opts and
30568 restore_target_globals.
30570 2014-01-09 Richard Biener <rguenther@suse.de>
30572 PR tree-optimization/59715
30573 * tree-cfg.h (split_critical_edges): Declare.
30574 * tree-cfg.c (split_critical_edges): Export.
30575 * tree-ssa-sink.c (execute_sink_code): Split critical edges.
30577 2014-01-09 Max Ostapenko <m.ostapenko@partner.samsung.com>
30579 * cfgexpand.c (expand_stack_vars): Optionally disable
30580 asan stack protection.
30581 (expand_used_vars): Likewise.
30582 (partition_stack_vars): Likewise.
30583 * asan.c (asan_emit_stack_protection): Optionally disable
30584 after return stack usage.
30585 (instrument_derefs): Optionally disable memory access instrumentation.
30586 (instrument_builtin_call): Likewise.
30587 (instrument_strlen_call): Likewise.
30588 (asan_protect_global): Optionally disable global variables protection.
30589 * doc/invoke.texi: Added doc for new options.
30590 * params.def: Added new options.
30591 * params.h: Likewise.
30593 2014-01-09 Jakub Jelinek <jakub@redhat.com>
30595 PR rtl-optimization/59724
30596 * ifcvt.c (cond_exec_process_if_block): Don't call
30597 flow_find_head_matching_sequence with 0 longest_match.
30598 * cfgcleanup.c (flow_find_head_matching_sequence): Count even
30599 non-active insns if !stop_after.
30600 (try_head_merge_bb): Revert 2014-01-07 changes.
30602 2014-01-08 Jeff Law <law@redhat.com>
30604 * ree.c (get_sub_rtx): New function, extracted from...
30605 (merge_def_and_ext): Here.
30606 (combine_reaching_defs): Use get_sub_rtx.
30608 2014-01-08 Eric Botcazou <ebotcazou@adacore.com>
30610 * cgraph.h (varpool_variable_node): Do not choke on null node.
30612 2014-01-08 Catherine Moore <clm@codesourcery.com>
30614 * config/mips/mips.md (simple_return): Attempt to use JRC
30616 * config/mips/mips.h (MIPS_CALL): Attempt to use JALS for microMIPS.
30618 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30620 PR rtl-optimization/59137
30621 * reorg.c (steal_delay_list_from_target): Call update_block for
30623 (steal_delay_list_from_fallthrough, relax_delay_slots): Likewise.
30625 2014-01-08 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
30627 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
30628 two duplicate entries.
30630 2014-01-08 Richard Sandiford <rdsandiford@googlemail.com>
30633 2012-10-07 Richard Sandiford <rdsandiford@googlemail.com>
30635 * config/mips/mips.c (mips_truncated_op_cost): New function.
30636 (mips_rtx_costs): Adjust test for BADDU.
30637 * config/mips/mips.md (*baddu_di<mode>): Push truncates to operands.
30639 2012-10-02 Richard Sandiford <rdsandiford@googlemail.com>
30641 * config/mips/mips.md (*baddu_si_eb, *baddu_si_el): Merge into...
30642 (*baddu_si): ...this new pattern.
30644 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30647 * ipa-prop.c (ipa_analyze_params_uses): Ignore uses in debug stmts.
30649 2014-01-08 Bernd Edlinger <bernd.edlinger@hotmail.de>
30651 PR middle-end/57748
30652 * expr.h (expand_expr_real, expand_expr_real_1): Add new parameter
30654 (expand_expr, expand_normal): Adjust.
30655 * expr.c (expand_expr_real, expand_expr_real_1): Add new parameter
30656 inner_reference_p. Use inner_reference_p to expand inner references.
30657 (store_expr): Adjust.
30658 * cfgexpand.c (expand_call_stmt): Adjust.
30660 2014-01-08 Rong Xu <xur@google.com>
30662 * gcov-io.c (gcov_var): Move from gcov-io.h.
30663 (gcov_position): Ditto.
30664 (gcov_is_error): Ditto.
30665 (gcov_rewrite): Ditto.
30666 * gcov-io.h: Refactor. Move gcov_var to gcov-io.h, and libgcov
30667 only part to libgcc/libgcov.h.
30669 2014-01-08 Marek Polacek <polacek@redhat.com>
30671 PR middle-end/59669
30672 * omp-low.c (simd_clone_adjust): Don't crash if def is NULL.
30674 2014-01-08 Marek Polacek <polacek@redhat.com>
30677 * ubsan.c (ubsan_type_descriptor): Call strip_array_types on type2.
30679 2014-01-08 Jakub Jelinek <jakub@redhat.com>
30681 PR rtl-optimization/59649
30682 * stor-layout.c (get_mode_bounds): For BImode return
30683 0 and STORE_FLAG_VALUE.
30685 2014-01-08 Richard Biener <rguenther@suse.de>
30687 PR middle-end/59630
30688 * gimple.h (is_gimple_builtin_call): Remove.
30689 (gimple_builtin_call_types_compatible_p): New.
30690 (gimple_call_builtin_p): New overload.
30691 * gimple.c (is_gimple_builtin_call): Remove.
30692 (validate_call): Rename to ...
30693 (gimple_builtin_call_types_compatible_p): ... this and export. Also
30694 check return types.
30695 (validate_type): New static function.
30696 (gimple_call_builtin_p): New overload and adjust.
30697 * gimple-fold.c (gimple_fold_builtin): Fold the return value.
30698 (gimple_fold_call): Likewise. Use gimple_call_builtin_p.
30699 (gimple_fold_stmt_to_constant_1): Likewise.
30700 * tsan.c (instrument_gimple): Use gimple_call_builtin_p.
30702 2014-01-08 Richard Biener <rguenther@suse.de>
30704 PR middle-end/59471
30705 * gimplify.c (gimplify_expr): Gimplify register-register type
30706 VIEW_CONVERT_EXPRs to separate stmts.
30708 2014-01-07 Jeff Law <law@redhat.com>
30710 PR middle-end/53623
30711 * ree.c (combine_set_extension): Handle case where source
30712 and destination registers in an extension insn are different.
30713 (combine_reaching_defs): Allow source and destination registers
30714 in extension to be different under limited circumstances.
30715 (add_removable_extension): Remove restriction that the
30716 source and destination registers in the extension are the same.
30717 (find_and_remove_re): Emit a copy from the extension's
30718 destination to its source after the defining insn if
30719 the source and destination registers are different.
30721 PR middle-end/59285
30722 * ifcvt.c (merge_if_block): If we are merging a block with more than
30723 one successor with a block with no successors, remove any BARRIER
30724 after the second block.
30726 2014-01-07 Dan Xio Qiang <ziyan01@163.com>
30728 * hw-doloop.c (reorg_loops): Release the bitmap obstack.
30730 2014-01-07 John David Anglin <danglin@gcc.gnu.org>
30733 * config/pa/pa.c (pa_legitimate_address_p): Return false before reload
30734 for 14-bit register offsets when INT14_OK_STRICT is false.
30736 2014-01-07 Roland Stigge <stigge@antcom.de>
30737 Michael Meissner <meissner@linux.vnet.ibm.com>
30740 * config/rs6000/rs6000.c (rs6000_legitimate_offset_address_p):
30741 Only check TFmode for SPE constants. Don't check TImode or TDmode.
30743 2014-01-07 James Greenhalgh <james.greenhalgh@arm.com>
30745 * config/aarch64/aarch64-elf.h (ASM_SPEC): Remove identity spec for
30748 2014-01-07 Yufeng Zhang <yufeng.zhang@arm.com>
30750 * config/arm/arm.c (arm_expand_neon_args): Call expand_expr
30751 with EXPAND_MEMORY for NEON_ARG_MEMORY; check if the returned
30752 rtx is const0_rtx or not.
30754 2014-01-07 Richard Sandiford <rdsandiford@googlemail.com>
30757 * target-globals.c (save_target_globals): Remove this_fn_optab
30759 * toplev.c: Include optabs.h.
30760 (target_reinit): Temporarily restore the global options if another
30761 set of options are in force.
30763 2014-01-07 Jakub Jelinek <jakub@redhat.com>
30765 PR rtl-optimization/58668
30766 * cfgcleanup.c (flow_find_cross_jump): Don't count
30767 any jumps if dir_p is NULL. Remove p1 variable, use active_insn_p
30768 to determine what is counted.
30769 (flow_find_head_matching_sequence): Use active_insn_p to determine
30771 (try_head_merge_bb): Adjust for the flow_find_head_matching_sequence
30773 * ifcvt.c (count_bb_insns): Use active_insn_p && !JUMP_P to
30774 determine what is counted.
30776 PR tree-optimization/59643
30777 * tree-predcom.c (split_data_refs_to_components): If one dr is
30778 read and one write, determine_offset fails and the write isn't
30779 in the bad component, just put the read into the bad component.
30781 2014-01-07 Mike Stump <mikestump@comcast.net>
30782 Jakub Jelinek <jakub@redhat.com>
30785 * tree-core.h (struct tree_optimization_option): Change optabs
30786 type from unsigned char * to void *.
30787 * optabs.c (init_tree_optimization_optabs): Adjust
30788 TREE_OPTIMIZATION_OPTABS initialization.
30790 2014-01-06 Jakub Jelinek <jakub@redhat.com>
30793 * config/i386/i386.h (struct machine_function): Add
30794 no_drap_save_restore field.
30795 * config/i386/i386.c (ix86_save_reg): Use
30796 !cfun->machine->no_drap_save_restore instead of
30797 crtl->stack_realign_needed.
30798 (ix86_finalize_stack_realign_flags): Don't clear drap_reg unless
30799 this function clears frame_pointer_needed. Set
30800 cfun->machine->no_drap_save_restore if clearing frame_pointer_needed
30801 and DRAP reg is needed.
30803 2014-01-06 Marek Polacek <polacek@redhat.com>
30806 * doc/implement-c.texi: Mention that other integer types are
30807 permitted as bit-field types in strictly conforming mode.
30809 2014-01-06 Felix Yang <fei.yang0953@gmail.com>
30811 * modulo-sched.c (schedule_reg_moves): Clear distance1_uses if it
30812 is newly allocated.
30814 2014-01-06 Richard Earnshaw <rearnsha@arm.com>
30816 * aarch64.c (aarch64_rtx_costs): Fix cost calculation for MADD.
30818 2014-01-06 Martin Jambor <mjambor@suse.cz>
30821 * ipa-cp.c (ipcp_discover_new_direct_edges): Changed param_index type
30823 * ipa-prop.c (ipa_print_node_params): Fix indentation.
30825 2014-01-06 Eric Botcazou <ebotcazou@adacore.com>
30829 * var-tracking.c (add_stores): Preserve the value of the source even if
30830 we don't record the store.
30832 2014-01-06 Terry Guo <terry.guo@arm.com>
30834 * config.gcc (arm*-*-*): Check --with-arch against arm-arches.def.
30836 2014-01-05 Iain Sandoe <iain@codesourcery.com>
30839 * config/darwin.c (darwin_function_section): Adjust return values to
30840 correspond to optimisation changes made in r206070.
30842 2014-01-05 Uros Bizjak <ubizjak@gmail.com>
30844 * config/i386/i386.c (ix86_data_alignment): Calculate max_align
30845 from prefetch_block tune setting.
30846 (nocona_cost): Correct size of prefetch block to 64.
30848 2014-01-04 Eric Botcazou <ebotcazou@adacore.com>
30850 * config/arm/arm.c (arm_get_frame_offsets): Revamp long lines.
30851 (arm_expand_epilogue_apcs_frame): Take into account the number of bytes
30852 used to save the static chain register in the computation of the offset
30853 from which the FP registers need to be restored.
30855 2014-01-04 Jakub Jelinek <jakub@redhat.com>
30857 PR tree-optimization/59519
30858 * tree-vect-loop-manip.c (slpeel_update_phi_nodes_for_guard1): Don't
30859 ICE if get_current_def (current_new_name) is already non-NULL, as long
30860 as it is a phi result of some other phi in *new_exit_bb that has
30863 * config/i386/sse.md (avx512f_load<mode>_mask): Emit vmovup{s,d}
30864 or vmovdqu* for misaligned_operand.
30865 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>,
30866 <sse2_avx_avx512f>_loaddqu<mode><mask_name>): Handle <mask_applied>.
30867 * config/i386/i386.c (ix86_expand_special_args_builtin): Set
30868 aligned_mem for AVX512F masked aligned load and store builtins and for
30869 non-temporal moves.
30871 2014-01-03 Bingfeng Mei <bmei@broadcom.com>
30873 PR tree-optimization/59651
30874 * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks):
30875 Address range for negative step should be added by TYPE_SIZE_UNIT.
30877 2014-01-03 Andreas Schwab <schwab@linux-m68k.org>
30879 * config/m68k/m68k.c (handle_move_double): Handle pushes with
30880 overlapping registers also for registers other than the stack pointer.
30882 2014-01-03 Marek Polacek <polacek@redhat.com>
30885 * doc/extend.texi: Fix the return value of __builtin_FUNCTION and
30888 2014-01-03 Jakub Jelinek <jakub@redhat.com>
30891 * config/i386/i386.c (ix86_avoid_jump_mispredicts): Don't consider
30894 * config/i386/i386.md (MODE_SIZE): New mode attribute.
30895 (push splitter): Use <P:MODE_SIZE> instead of
30896 GET_MODE_SIZE (<P:MODE>mode).
30897 (lea splitter): Use <MODE_SIZE> instead of GET_MODE_SIZE (<MODE>mode).
30898 (mov -1, reg peephole2): Likewise.
30899 * config/i386/sse.md (*mov<mode>_internal,
30900 <sse>_storeu<ssemodesuffix><avxsizesuffix>,
30901 <sse2_avx_avx512f>_storedqu<mode>, <sse>_andnot<mode>3,
30902 *<code><mode>3, *andnot<mode>3<mask_name>,
30903 <mask_codefor><code><mode>3<mask_name>): Likewise.
30904 * config/i386/subst.md (mask_mode512bit_condition,
30905 sd_mask_mode512bit_condition): Likewise.
30907 2014-01-02 Xinliang David Li <davidxl@google.com>
30909 PR tree-optimization/59303
30910 * tree-ssa-uninit.c (is_use_properly_guarded): Main cleanup.
30911 (dump_predicates): Better output format.
30912 (pred_equal_p): New function.
30913 (is_neq_relop_p): Ditto.
30914 (is_neq_zero_form_p): Ditto.
30915 (pred_expr_equal_p): Ditto.
30916 (pred_neg_p): Ditto.
30917 (simplify_pred): Ditto.
30918 (simplify_preds_2): Ditto.
30919 (simplify_preds_3): Ditto.
30920 (simplify_preds_4): Ditto.
30921 (simplify_preds): Ditto.
30922 (push_pred): Ditto.
30923 (push_to_worklist): Ditto.
30924 (get_pred_info_from_cmp): Ditto.
30925 (is_degenerated_phi): Ditto.
30926 (normalize_one_pred_1): Ditto.
30927 (normalize_one_pred): Ditto.
30928 (normalize_one_pred_chain): Ditto.
30929 (normalize_preds): Ditto.
30930 (normalize_cond_1): Remove function.
30931 (normalize_cond): Ditto.
30932 (is_gcond_subset_of): Ditto.
30933 (is_subset_of_any): Ditto.
30934 (is_or_set_subset_of): Ditto.
30935 (is_and_set_subset_of): Ditto.
30936 (is_norm_cond_subset_of): Ditto.
30937 (pred_chain_length_cmp): Ditto.
30938 (convert_control_dep_chain_into_preds): Type change.
30939 (find_predicates): Ditto.
30940 (find_def_preds): Ditto.
30941 (destroy_predicates_vecs): Ditto.
30942 (find_matching_predicates_in_rest_chains): Ditto.
30943 (use_pred_not_overlap_with_undef_path_pred): Ditto.
30944 (is_pred_expr_subset): Ditto.
30945 (is_pred_chain_subset_of): Ditto.
30946 (is_included_in): Ditto.
30947 (is_superset_of): Ditto.
30949 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30951 Update copyright years.
30953 2014-01-02 Richard Sandiford <rdsandiford@googlemail.com>
30955 * common/config/arc/arc-common.c, config/arc/arc-modes.def,
30956 config/arc/arc-protos.h, config/arc/arc.c, config/arc/arc.h,
30957 config/arc/arc.md, config/arc/arc.opt,
30958 config/arm/arm_neon_builtins.def, config/arm/crypto.def,
30959 config/i386/avx512cdintrin.h, config/i386/avx512erintrin.h,
30960 config/i386/avx512fintrin.h, config/i386/avx512pfintrin.h,
30961 config/i386/btver2.md, config/i386/shaintrin.h, config/i386/slm.md,
30962 config/linux-protos.h, config/linux.c, config/winnt-c.c,
30963 diagnostic-color.c, diagnostic-color.h, gimple-ssa-isolate-paths.c,
30964 vtable-verify.c, vtable-verify.h: Use the standard form for the
30967 2014-01-02 Tobias Burnus <burnus@net-b.de>
30969 * gcc.c (process_command): Update copyright notice dates.
30970 * gcov-dump.c: Ditto.
30972 * doc/cpp.texi: Bump @copying's copyright year.
30973 * doc/cppinternals.texi: Ditto.
30974 * doc/gcc.texi: Ditto.
30975 * doc/gccint.texi: Ditto.
30976 * doc/gcov.texi: Ditto.
30977 * doc/install.texi: Ditto.
30978 * doc/invoke.texi: Ditto.
30980 2014-01-01 Jan-Benedict Glaw <jbglaw@lug-owl.de>
30982 * config/nios2/nios2.h (BITS_PER_UNIT): Don't define it.
30984 2014-01-01 Jakub Jelinek <jakub@redhat.com>
30986 * config/i386/sse.md (*mov<mode>_internal): Guard
30987 EXT_REX_SSE_REGNO_P (REGNO ()) uses with REG_P.
30989 PR rtl-optimization/59647
30990 * cse.c (cse_process_notes_1): Don't substitute negative VOIDmode
30991 new_rtx into UNSIGNED_FLOAT rtxes.
30993 Copyright (C) 2014 Free Software Foundation, Inc.
30995 Copying and distribution of this file, with or without modification,
30996 are permitted in any medium without royalty provided the copyright
30997 notice and this notice are preserved.